mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-20 11:34:19 +01:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user