mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-01-04 14:33:10 +00:00
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:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user