Skip to content
This repository has been archived by the owner on Sep 8, 2022. It is now read-only.

[MIRROR] [Testmerge] Revert "Brings our MC up to date with TG" #1013

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions code/__DEFINES/MC.dm
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,17 @@
}\
/datum/controller/subsystem/timer/##X

<<<<<<< HEAD
=======
#define MOVEMENT_SUBSYSTEM_DEF(X) GLOBAL_REAL(SS##X, /datum/controller/subsystem/movement/##X);\
/datum/controller/subsystem/movement/##X/New(){\
NEW_SS_GLOBAL(SS##X);\
PreInit();\
ss_id="movement_[#X]";\
}\
/datum/controller/subsystem/movement/##X

>>>>>>> bdeb199b49... Revert "Brings our MC up to date with TG (#7285)" (#7597)
#define PROCESSING_SUBSYSTEM_DEF(X) GLOBAL_REAL(SS##X, /datum/controller/subsystem/processing/##X);\
/datum/controller/subsystem/processing/##X/New(){\
NEW_SS_GLOBAL(SS##X);\
Expand Down
6 changes: 6 additions & 0 deletions code/controllers/globals.dm
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,14 @@ GLOBAL_REAL(GLOB, /datum/controller/global_vars)

Initialize()

<<<<<<< HEAD
/datum/controller/global_vars/Destroy()
//fuck off kevinz
=======
/datum/controller/global_vars/Destroy(force)
// This is done to prevent an exploit where admins can get around protected vars
SHOULD_CALL_PARENT(0)
>>>>>>> bdeb199b49... Revert "Brings our MC up to date with TG (#7285)" (#7597)
return QDEL_HINT_IWILLGC

/datum/controller/global_vars/stat_entry()
Expand Down
4 changes: 4 additions & 0 deletions code/game/objects/structures/traps.dm
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,11 @@
// Makes the trap visible, and starts the cooldown until it's
// able to be triggered again.
visible_message(flare_message)
<<<<<<< HEAD
if(sparks)
=======
if(sparks && Master.current_runlevel)
>>>>>>> bdeb199b49... Revert "Brings our MC up to date with TG (#7285)" (#7597)
spark_system.start()
alpha = 200
last_trigger = world.time
Expand Down
8 changes: 8 additions & 0 deletions code/modules/power/lighting.dm
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,11 @@
update()

/obj/machinery/light/proc/broken_sparks(start_only=FALSE)
<<<<<<< HEAD
if(!QDELETED(src) && status == LIGHT_BROKEN && has_power())
=======
if(!QDELETED(src) && status == LIGHT_BROKEN && has_power() && Master.current_runlevel)
>>>>>>> bdeb199b49... Revert "Brings our MC up to date with TG (#7285)" (#7597)
if(!start_only)
do_sparks(3, TRUE, src)
var/delay = rand(BROKEN_SPARKS_MIN, BROKEN_SPARKS_MAX)
Expand Down Expand Up @@ -755,7 +759,11 @@
if(status == LIGHT_EMPTY || status == LIGHT_BROKEN)
return

<<<<<<< HEAD
if(!skip_sound_and_sparks)
=======
if(!skip_sound_and_sparks && Master.current_runlevel) //not completly sure disabling this during initialize is needed but then again there are broken lights after initialize
>>>>>>> bdeb199b49... Revert "Brings our MC up to date with TG (#7285)" (#7597)
if(status == LIGHT_OK || status == LIGHT_BURNED)
playsound(src.loc, 'sound/effects/glasshit.ogg', 75, 1)
if(on)
Expand Down