Fixes #857, adds sanity check to dogborgs

Fixes #857
This commit is contained in:
Cameron653
2017-01-22 10:22:08 -05:00
committed by GitHub
parent edd6d713c9
commit 5d2fa0db2c

View File

@@ -192,13 +192,16 @@
if(!cleaning) if(!cleaning)
var/confirm = alert(usr, "You are about to engage self-cleaning mode. This will fill your [src] with caustic enzymes to remove any objects or biomatter, and convert them into energy. Are you sure?", "Confirmation", "Self-Clean", "Cancel") var/confirm = alert(usr, "You are about to engage self-cleaning mode. This will fill your [src] with caustic enzymes to remove any objects or biomatter, and convert them into energy. Are you sure?", "Confirmation", "Self-Clean", "Cancel")
if(confirm == "Self-Clean") if(confirm == "Self-Clean")
cleaning = 1 if(cleaning)
drain(500) return
processing_objects.Add(src) else
sleeperUI(usr) cleaning = 1
if(patient) drain(500)
patient << "<span class='danger'>[hound.name]'s [src.name] fills with caustic enzymes around you!</span>" processing_objects.Add(src)
return sleeperUI(usr)
if(patient)
patient << "<span class='danger'>[hound.name]'s [src.name] fills with caustic enzymes around you!</span>"
return
if(cleaning) if(cleaning)
sleeperUI(usr) sleeperUI(usr)
return return
@@ -431,4 +434,4 @@
icon_state = "sleeper" icon_state = "sleeper"
inject_amount = 10 inject_amount = 10
min_health = -100 min_health = -100
injection_chems = null //So they don't have all the same chems as the medihound! injection_chems = null //So they don't have all the same chems as the medihound!