Various suicide_act() things (#63808)

This commit is contained in:
DragonTrance
2022-01-09 15:48:47 -08:00
committed by GitHub
parent 6681c3b347
commit 5cbd2deb51
15 changed files with 164 additions and 9 deletions
+4 -2
View File
@@ -35,8 +35,10 @@
return
set_suicide(TRUE) //need to be called before calling suicide_act as fuck knows what suicide_act will do with your suicider
var/obj/item/held_item = get_active_held_item()
if(held_item)
var/damagetype = held_item.suicide_act(src)
var/damagetype = SEND_SIGNAL(src, COMSIG_HUMAN_SUICIDE_ACT)
if(held_item || damagetype)
if(!damagetype && held_item)
damagetype = held_item.suicide_act(src)
if(damagetype)
if(damagetype & SHAME)
adjustStaminaLoss(200)