mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-29 06:57:42 +01:00
The AI fixer should now properly set an AI's stat to 0 once it has been repaired enough to not die.
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@143 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -157,6 +157,10 @@
|
||||
src.occupant.toxloss = max (src.occupant.toxloss-1, 0)
|
||||
src.occupant.bruteloss = max (src.occupant.bruteloss-1, 0)
|
||||
sleep(10)
|
||||
if (src.occupant.health <= 0 && src.occupant.stat == 2)
|
||||
src.occupant.stat = 0
|
||||
src.overlays -= image('AIcore.dmi', "ai-fixer-404")
|
||||
src.overlays += image('AIcore.dmi', "ai-fixer-full")
|
||||
src.active = 0
|
||||
src.overlays -= image('AIcore.dmi', "ai-fixer-on")
|
||||
|
||||
|
||||
@@ -26,10 +26,10 @@
|
||||
src.fire.icon_state = "fire0"
|
||||
*/ //TODO: DEFERRED
|
||||
|
||||
if (src.health <= -100.0 && !istype(src.loc, /obj/machinery/computer/aifixer))
|
||||
if (src.health <= -100.0)
|
||||
death()
|
||||
return
|
||||
else if (src.health < 0 && !istype(src.loc, /obj/machinery/computer/aifixer))
|
||||
else if (src.health < 0)
|
||||
src.oxyloss++
|
||||
|
||||
if (src.machine)
|
||||
|
||||
Reference in New Issue
Block a user