Decoy AIs should no longer explode constantly when interacted with.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@151 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
n3ophyt3@gmail.com
2010-09-23 00:52:12 +00:00
parent 5c73944130
commit 02984e2269
2 changed files with 3 additions and 1 deletions

View File

@@ -1,4 +1,5 @@
/mob/living/silicon/decoy/death(gibbed)
src.stat = 2
src.icon_state = "ai-crash"
spawn(rand(10, 30))
explosion(src.loc, 3, 6, 12, 15)

View File

@@ -2,10 +2,11 @@
if (src.stat == 2)
return
else
if (src.health <= -100.0)
if (src.health <= -100.0 && src.stat != 2)
death()
return
/mob/living/silicon/decoy/updatehealth()
if (src.nodamage == 0)
src.health = 100 - src.oxyloss - src.toxloss - src.fireloss - src.bruteloss