mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-23 04:51:32 +01:00
Area tweaks (#20391)
Reworked area changes and power define channels No player visible changes (hopefully)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user