mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-19 03:55:11 +01:00
Removes area.master. Moves area/New to Initialize (#24134)
* Removes master areas * Ports area/New to Initialize
This commit is contained in:
@@ -39,11 +39,11 @@
|
||||
|
||||
else
|
||||
var/area/A = get_area(src)
|
||||
if(!A || !isarea(A) || !A.master)
|
||||
if(!istype(A))
|
||||
return 0
|
||||
|
||||
if(A.master.powered(EQUIP))
|
||||
A.master.use_power(amount, EQUIP)
|
||||
if(A.powered(EQUIP))
|
||||
A.use_power(amount, EQUIP)
|
||||
return 1
|
||||
return 0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user