* maps, tgui, tools * defines and helpers * onclick and controllers * datums fucking caught that hulk reversal too. * game and shuttle modular * module/admin * oh god they fucking moved antag shit again * haaaaate. Haaaaaaaaaate. * enables moff wings * more modules things * tgstation.dme before I forget something important * some mob stuff * s'more mob/living stuff * some carbon stuff * ayy lmaos and kitchen meat * Human stuff * species things moff wings have a 'none' version too * the rest of the module stuff. * some strings * misc * mob icons * some other icons. * It compiles FUCK BORERS FUCK BORERS
21 lines
838 B
Plaintext
21 lines
838 B
Plaintext
//Here are the procs used to modify status effects of a mob.
|
|
//The effects include: stun, knockdown, unconscious, sleeping, resting, jitteriness, dizziness, ear damage,
|
|
// eye damage, eye_blind, eye_blurry, druggy, TRAIT_BLIND trait, and TRAIT_NEARSIGHT trait.
|
|
|
|
/////////////////////////////////// STUN ////////////////////////////////////
|
|
|
|
/mob/living/carbon/alien/Stun(amount, updating = 1, ignore_canstun = 0)
|
|
. = ..()
|
|
if(!.)
|
|
move_delay_add = min(move_delay_add + round(amount / 2), 10) //a maximum delay of 10
|
|
|
|
/mob/living/carbon/alien/SetStun(amount, updating = 1, ignore_canstun = 0)
|
|
. = ..()
|
|
if(!.)
|
|
move_delay_add = min(move_delay_add + round(amount / 2), 10)
|
|
|
|
/mob/living/carbon/alien/AdjustStun(amount, updating = 1, ignore_canstun = 0)
|
|
. = ..()
|
|
if(!.)
|
|
move_delay_add = CLAMP(move_delay_add + round(amount/2), 0, 10)
|