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)
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")
cleaning = 1
drain(500)
processing_objects.Add(src)
sleeperUI(usr)
if(patient)
patient << "<span class='danger'>[hound.name]'s [src.name] fills with caustic enzymes around you!</span>"
return
if(cleaning)
return
else
cleaning = 1
drain(500)
processing_objects.Add(src)
sleeperUI(usr)
if(patient)
patient << "<span class='danger'>[hound.name]'s [src.name] fills with caustic enzymes around you!</span>"
return
if(cleaning)
sleeperUI(usr)
return