Fixes an issue where borgs who have their power cell removed or damaged are still able to see and move. The expected behaviour should be that they turn blind and are unable to move, which is what happens when a borg runs out of charge completely.

Per http://nanotrasen.se/phpBB3/viewtopic.php?f=13&t=2748
This commit is contained in:
Markolie
2014-11-02 22:58:19 +01:00
parent 4653d922af
commit c67ea2c1e4
2 changed files with 12 additions and 5 deletions
@@ -37,7 +37,8 @@
if (is_component_functioning("power cell") && cell)
if(src.cell.charge <= 0)
uneq_all()
src.stat = 1
src.stat = 1
Paralyse(3)
else
if(src.module_state_1)
src.cell.use(3)
@@ -56,7 +57,8 @@
src.stat = 0
else
uneq_all()
src.stat = 1
src.stat = 1
Paralyse(3)
/mob/living/silicon/robot/proc/handle_regular_status_updates()
@@ -129,12 +131,12 @@
if (src.stat != 0)
uneq_all()
if(!is_component_functioning("radio"))
if(!is_component_functioning("radio") || src.stat == 1)
radio.on = 0
else
radio.on = 1
if(is_component_functioning("camera"))
if(is_component_functioning("camera") && src.stat == 0)
src.blinded = 0
else
src.blinded = 1
@@ -23,4 +23,9 @@
return tally+config.robot_delay
/mob/living/silicon/robot/Move()
..()
if (!is_component_functioning("actuator") || !is_component_functioning("power cell") || !cell)
return
else
if (src.cell.charge > 0)
..()