mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-12 03:02:54 +00:00
Removes a very large amount of world loops. Adds a macro to painlessly generate a global list, and the needed code to modify the list when an object is made or deleted automatically. Cleans up some commented out code.
11 lines
242 B
Plaintext
11 lines
242 B
Plaintext
/datum/admin_secret_item/fun_secret/fix_all_lights
|
|
name = "Fix All Lights"
|
|
|
|
/datum/admin_secret_item/fun_secret/fix_all_lights/execute(var/mob/user)
|
|
. = ..()
|
|
if(!.)
|
|
return
|
|
|
|
for(var/obj/machinery/light/L in machines)
|
|
L.fix()
|