mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-30 11:32:20 +00:00
Fixes issue with area power alerts, related to many space ruins using the same area and thus having multiple apcs in the same area with some wanting the area to be powered and some unpowered, leading to the area's power state constantly switching (area/procpoweralert() becoming the second most costly proc on the profile). I fixed it by giving to many space ruins their own area (mostly those who have an APC). Making a global list var "teleportbeacons" so we don't have to use "in world" to fing all tracking beacons used by teleporters.
21 lines
419 B
Plaintext
21 lines
419 B
Plaintext
|
|
/obj/machinery/power/emitter/energycannon
|
|
name = "Energy Cannon"
|
|
desc = "A heavy duty industrial laser"
|
|
icon = 'icons/obj/singularity.dmi'
|
|
icon_state = "emitter"
|
|
anchored = 1
|
|
density = 1
|
|
resistance_flags = INDESTRUCTIBLE | FIRE_PROOF | ACID_PROOF
|
|
|
|
use_power = 0
|
|
idle_power_usage = 0
|
|
active_power_usage = 0
|
|
|
|
active = 1
|
|
locked = 1
|
|
state = 2
|
|
|
|
/obj/machinery/power/emitter/energycannon/RefreshParts()
|
|
return
|