mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-21 03:55:05 +01:00
Carded AIs no longer lose power when brought into powerless areas.
AIs no longer get bugged to being fully healthy but dead if a living carded AI is stuck into a dead empty core. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@826 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -35,6 +35,8 @@
|
||||
M.fireloss = A.fireloss
|
||||
M.bruteloss = A.bruteloss
|
||||
M.toxloss = A.toxloss
|
||||
if (!A.stat)
|
||||
M.stat = A.stat
|
||||
M.updatehealth()
|
||||
M << "You have been uploaded to a stationary terminal. Remote device connection restored."
|
||||
user << "<b>Transfer succesful</b>: [M.name] ([rand(1000,9999)].exe) installed and executed succesfully. Local copy has been removed."
|
||||
|
||||
@@ -56,7 +56,7 @@
|
||||
loc = T.loc
|
||||
if (istype(loc, /area))
|
||||
//stage = 4
|
||||
if (!loc.master.power_equip)
|
||||
if (!loc.master.power_equip && isturf(src.loc))
|
||||
//stage = 5
|
||||
blind = 1
|
||||
|
||||
@@ -100,7 +100,7 @@
|
||||
src.see_in_dark = 0
|
||||
src.see_invisible = 0
|
||||
|
||||
if ((!loc.master.power_equip) || istype(T, /turf/space))
|
||||
if (((!loc.master.power_equip) || istype(T, /turf/space)) && isturf(src.loc))
|
||||
if (src:aiRestorePowerRoutine==0)
|
||||
src:aiRestorePowerRoutine = 1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user