Drone suicide fix (#16128)

This commit is contained in:
SabreML
2021-06-04 19:23:32 +01:00
committed by GitHub
parent 0efa44aa2d
commit dfa17e9d07
2 changed files with 3 additions and 2 deletions
@@ -239,7 +239,7 @@
health = 35
stat = CONSCIOUS
return
health = 35 - (getBruteLoss() + getFireLoss())
health = 35 - (getBruteLoss() + getFireLoss() + getOxyLoss())
update_stat("updatehealth([reason])")
/mob/living/silicon/robot/drone/death(gibbed)
@@ -114,7 +114,8 @@
var/mob/living/silicon/robot/drone/D = locateUID(params["uid"])
if(D)
to_chat(usr, "<span class='warning'>You issue a kill command for the unfortunate drone.</span>")
message_admins("[key_name_admin(usr)] issued kill order for drone [key_name_admin(D)] from control console.")
if(D != usr) // Don't need to bug admins about a suicide
message_admins("[key_name_admin(usr)] issued kill order for drone [key_name_admin(D)] from control console.")
log_game("[key_name(usr)] issued kill order for [key_name(D)] from control console.")
D.shut_down()