AI in mech now uses mech cell instead of area power (#22241)

* AI in mech now uses mech cell instead of area power

* Update code/modules/mob/living/silicon/ai/ai_life.dm

Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com>

* Update code/modules/mob/living/silicon/ai/ai_life.dm

Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com>

* Update code/modules/mob/living/silicon/ai/ai_life.dm

Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>

---------

Co-authored-by: Adrer <adrermail@gmail.com>
Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com>
Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>
This commit is contained in:
Adrer
2023-09-07 12:15:54 +02:00
committed by GitHub
parent 2f97b83ff4
commit 35505b9e45
@@ -141,6 +141,8 @@
/mob/living/silicon/ai/proc/lacks_power()
var/turf/T = get_turf(src)
var/area/A = get_area(src)
if(controlled_mech)
return controlled_mech.get_charge() <= 0
return (!A.powernet.equipment_powered && A.requires_power || isspaceturf(T)) && !isitem(loc)
/mob/living/silicon/ai/rejuvenate()