Update NanoUI

* Update NanoUI to the latest version, ported from Baystation12
* Update the Air Alarm UI
* Make changes to subsystems and some machines to make the new NanoUI
work
This commit is contained in:
Bjorn Neergaard
2015-11-26 07:11:27 -05:00
parent e68a5b773a
commit 4e5edf396a
79 changed files with 5570 additions and 2783 deletions
+1
View File
@@ -795,6 +795,7 @@ var/list/ai_list = list()
if(stat == 2)
return //won't work if dead
src << "Accessing Subspace Transceiver control..."
if (radio)
radio.interact(src)
+7 -2
View File
@@ -49,7 +49,7 @@
loc = T.loc
if (istype(loc, /area))
//stage = 4
if (!loc.master.power_equip && !is_type_in_list(src.loc,list(/obj/item, /obj/mecha)))
if (lacks_power())
//stage = 5
blindness = 1
@@ -92,7 +92,7 @@
src.see_in_dark = 0
src.see_invisible = SEE_INVISIBLE_LIVING
if (((!loc.master.power_equip) || istype(T, /turf/space)) && !is_type_in_list(src.loc,list(/obj/item, /obj/mecha)))
if (lacks_power())
if (src:aiRestorePowerRoutine==0)
src:aiRestorePowerRoutine = 1
@@ -169,6 +169,11 @@
sleep(50)
theAPC = null
/mob/living/silicon/ai/proc/lacks_power()
var/turf/T = get_turf(src)
var/area/A = get_area(src)
return ((!A.power_equip) || istype(T, /turf/space)) && !is_type_in_list(src.loc, list(/obj/item, /obj/mecha))
/mob/living/silicon/ai/updatehealth()
if(status_flags & GODMODE)
health = maxHealth