Area tweaks (#20391)

Reworked area changes and power define channels

No player visible changes (hopefully)
This commit is contained in:
Fluffy
2025-02-16 18:53:46 +00:00
committed by GitHub
parent 186f94ff58
commit f3dab68568
49 changed files with 184 additions and 123 deletions
@@ -67,7 +67,7 @@
var/area/A = finalize_area(area_name)
for(var/turf/T in selected_turfs)
ChangeArea(T, A)
T.change_area(T.loc, A)
remove_selection() // Reset the selection for clarity.
/mob/abstract/eye/blueprints/proc/finalize_area(var/area_name)
@@ -99,7 +99,7 @@
if(SSodyssey.scenario && (GET_Z(owner) in SSodyssey.scenario_zlevels))
background_area = SSodyssey.scenario.base_area
for(var/turf/T in A.contents)
ChangeArea(T, background_area)
T.change_area(T.loc, background_area)
if(!locate(/turf) in A)
qdel(A)
@@ -319,7 +319,7 @@
if(SSodyssey.scenario && (GET_Z(owner) in SSodyssey.scenario_zlevels))
background_area = SSodyssey.scenario.base_area
for(var/turf/T in A.contents)
ChangeArea(T, background_area)
T.change_area(T.loc, background_area)
if(!(locate(/turf) in A))
qdel(A) // uh oh, is this safe?
+1 -1
View File
@@ -318,7 +318,7 @@ var/list/ai_verbs_default = list(
name = "power supply"
active_power_usage = 50000 // Station AIs use significant amounts of power. This, when combined with charged SMES should mean AI lasts for 1hr without external power.
use_power = POWER_USE_ACTIVE
power_channel = EQUIP
power_channel = AREA_USAGE_EQUIP
var/mob/living/silicon/ai/powered_ai
invisibility = 100