[MIRROR] Immobilized trait (#280)

* immobilized (#52578)


    Adds an immobilized trait.
    Adds procs for several variable changes so we can respond to their events.
    Adds some signals for said variables changing.

Need to turn the variation in number of usable legs and arms (get_num_legs() and get_num_arms()) into events we can respond to, but they are pretty annoying to do so. Probably for a different PR.

* Immobilized trait

Co-authored-by: Rohesie <rohesie@gmail.com>
This commit is contained in:
SkyratBot
2020-08-11 05:08:31 +02:00
committed by GitHub
parent 4ab413a983
commit e551ebd990
14 changed files with 160 additions and 27 deletions
@@ -528,11 +528,11 @@
step_towards(user, T2)
T1 = get_turf(user)
if(T1 == T2)
user.resting = TRUE //so people can jump into crates without slamming the lid on their head
user.set_resting(TRUE) //so people can jump into crates without slamming the lid on their head
if(!close(user))
to_chat(user, "<span class='warning'>You can't get [src] to close!</span>")
user.resting = FALSE
user.set_resting(FALSE)
return
user.resting = FALSE
user.set_resting(FALSE)
togglelock(user)
T1.visible_message("<span class='warning'>[user] dives into [src]!</span>")