Yogstation 13 - Modules - TypesVar Details - Proc Details

/datum/action/cooldown/spell/shapeshift

Shapeshift spells.

Allows the caster to transform to and from a different mob type.

Vars

convert_damageWhether we convert our health from one form to another
convert_damage_typeIf convert damage is true, the damage type we deal when converting damage back and forth
die_with_shapeshifted_formWhether we die when our shapeshifted form is killed
possible_shapesAll possible types we can become. This should be implemented even if there is only one choice.
pre_shift_requirementsOur spell's requrements before we shapeshifted. Stored on shapeshift so we can restore them after unshifting.
revert_on_deathWhether we revert to our human form on death.
shapeshift_typeOur chosen type.

Procs

check_menuCallback for the radial that allows the user to choose their species.
create_shapeshift_mobHelper proc that instantiates the mob we shapeshift into. Returns an instance of a living mob. Can be overridden.
do_shapeshiftActually does the shapeshift, for the caster.
do_unshapeshiftActually does the un-shapeshift, from the caster. (Caster is a shapeshifted mob.)
eject_from_ventsWhenever someone shapeshifts within a vent, and enters a state in which they are no longer a ventcrawler, they are brutally ejected from the vents. In the form of gibs.

Var Details

convert_damage

Whether we convert our health from one form to another

convert_damage_type

If convert damage is true, the damage type we deal when converting damage back and forth

die_with_shapeshifted_form

Whether we die when our shapeshifted form is killed

possible_shapes

All possible types we can become. This should be implemented even if there is only one choice.

pre_shift_requirements

Our spell's requrements before we shapeshifted. Stored on shapeshift so we can restore them after unshifting.

revert_on_death

Whether we revert to our human form on death.

shapeshift_type

Our chosen type.

Proc Details

check_menu

Callback for the radial that allows the user to choose their species.

create_shapeshift_mob

Helper proc that instantiates the mob we shapeshift into. Returns an instance of a living mob. Can be overridden.

do_shapeshift

Actually does the shapeshift, for the caster.

do_unshapeshift

Actually does the un-shapeshift, from the caster. (Caster is a shapeshifted mob.)

eject_from_vents

Whenever someone shapeshifts within a vent, and enters a state in which they are no longer a ventcrawler, they are brutally ejected from the vents. In the form of gibs.