Corner case speedups for bola and bear trap (#48194)

* Update speed in dismemberment

* updates speed in Uncuff()

Used in freedom implants, cult stuff, etc.

* update speed after stripping other

makes changes to speed like removing someone's bear trap instant.

* update speed on handcuffs removed by Uncuff()
This commit is contained in:
JDHoffmann
2019-12-12 00:17:46 -05:00
committed by Emmett Gaines
parent 1465adb116
commit aed514b36e
3 changed files with 4 additions and 0 deletions

View File

@@ -347,6 +347,7 @@
W.layer = initial(W.layer)
W.plane = initial(W.plane)
changeNext_move(0)
update_equipment_speed_mods() // In case cuffs ever change speed
/mob/living/carbon/proc/clear_cuffs(obj/item/I, cuff_break)
if(!I.loc || buckled)

View File

@@ -848,6 +848,8 @@
who.show_inv(src)
else
src << browse(null,"window=mob[REF(who)]")
who.update_equipment_speed_mods() // Updates speed in case stripped speed affecting item
// The src mob is trying to place an item on someone
// Override if a certain mob should be behave differently when placing items (can't, for example)

View File

@@ -21,6 +21,7 @@
C.emote("scream")
SEND_SIGNAL(C, COMSIG_ADD_MOOD_EVENT, "dismembered", /datum/mood_event/dismembered)
drop_limb()
C.update_equipment_speed_mods() // Update in case speed affecting item unequipped by dismemberment
if(dam_type == BURN)
burn()