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
@@ -95,7 +95,7 @@
if(istype(attacking_item, /obj/item/light))
var/obj/item/light/L = attacking_item
if(L.status == 0) // LIGHT OKAY
if(L.status == 0) // AREA_USAGE_LIGHT OKAY
if(uses < max_uses)
AddUses(1)
to_chat(user, SPAN_NOTICE("You insert \the [L] into \the [src]. You have [uses] light\s remaining."))
@@ -39,7 +39,7 @@
/obj/structure/bed/stool/chair/remote/user_buckle(mob/user)
..()
var/area/A = get_area(src)
if(!A.powered(EQUIP))
if(!A.powered(AREA_USAGE_EQUIP))
to_chat(user, SPAN_WARNING("\The [src] is not powered."))
return FALSE
if(ishuman(user))
@@ -55,7 +55,7 @@
..()
if(buckled)
var/area/A = get_area(src)
if(!A.powered(EQUIP))
if(!A.powered(AREA_USAGE_EQUIP))
user_unbuckle(buckled)
// Return to our body in the unfortunate event that we get unbuckled while plugged in