/datum/status_effect/shapechange_mob
Vars | |
already_restored | Whether we're currently undoing the change |
---|---|
caster_mob | The caster's mob. Who has transformed into us This reference is handled in [/proc/restore_caster], which is always called if we delete |
Procs | |
after_unchange | Effects done after the casting mob has reverted to their human form. |
on_caster_death | Signal proc for COMSIG_LIVING_DEATH from our caster. If our internal caster is killed, kill our owner, too (which causes the above signal). This should very rarely end up being called but you never know |
on_caster_deleted | Signal proc for [COMSIG_QDELETING] from our caster, delete us / our owner if we get deleted |
on_shape_death | Signal proc for COMSIG_LIVING_DEATH from our owner. If our owner mob is killed, we should revert back to normal. |
on_wabbajacked | Signal proc for COMSIG_LIVING_PRE_WABBAJACKED to prevent us from being Wabbajacked and messed up. |
restore_caster | Restores the caster back to their human form. if kill_caster_after is TRUE, the caster will have death() called on them after restoring. |
Var Details
already_restored
Whether we're currently undoing the change
caster_mob
The caster's mob. Who has transformed into us This reference is handled in [/proc/restore_caster], which is always called if we delete
Proc Details
after_unchange
Effects done after the casting mob has reverted to their human form.
on_caster_death
Signal proc for COMSIG_LIVING_DEATH from our caster. If our internal caster is killed, kill our owner, too (which causes the above signal). This should very rarely end up being called but you never know
on_caster_deleted
Signal proc for [COMSIG_QDELETING] from our caster, delete us / our owner if we get deleted
on_shape_death
Signal proc for COMSIG_LIVING_DEATH from our owner. If our owner mob is killed, we should revert back to normal.
on_wabbajacked
Signal proc for COMSIG_LIVING_PRE_WABBAJACKED to prevent us from being Wabbajacked and messed up.
restore_caster
Restores the caster back to their human form. if kill_caster_after is TRUE, the caster will have death() called on them after restoring.