-
Notifications
You must be signed in to change notification settings - Fork 566
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lights turn on at roundstart #4129
Changes from all commits
c4caddf
19060a1
8d5e539
2f04a5f
16fd442
c438267
6818bf0
7d6ec07
4ec92b2
68d49d6
bc953f5
4226380
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -264,6 +264,10 @@ SUBSYSTEM_DEF(ticker) | |
INVOKE_ASYNC(C, TYPE_PROC_REF(/obj/structure/closet, select_gamemode_equipment), mode.type) | ||
for(var/obj/structure/machinery/vending/V in machines) | ||
INVOKE_ASYNC(V, TYPE_PROC_REF(/obj/structure/machinery/vending, select_gamemode_equipment), mode.type) | ||
for(var/obj/structure/machinery/power/apc/apc in machines) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this should be an SSticker.OnRoundstart() |
||
if(!is_mainship_level(apc.z)) | ||
continue | ||
addtimer(CALLBACK(apc, TYPE_PROC_REF(/obj/structure/machinery/power/apc, late_activation)), rand(4 SECONDS, 15 SECONDS)) | ||
|
||
SEND_GLOBAL_SIGNAL(COMSIG_GLOB_POST_SETUP) | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -156,11 +156,18 @@ GLOBAL_LIST_INIT(apc_wire_descriptions, list( | |
update_icon() | ||
addtimer(CALLBACK(src, PROC_REF(update)), 5) | ||
|
||
if(is_mainship_level(z) && !(SSticker.current_state == GAME_STATE_PLAYING || SSticker.current_state == GAME_STATE_FINISHED)) | ||
operating = 0 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. these should be FALSE/TRUE defines |
||
|
||
start_processing() | ||
|
||
if(!start_charge && is_ground_level(z) && prob(10)) | ||
set_broken() | ||
|
||
/obj/structure/machinery/power/apc/proc/late_activation() | ||
operating = 1 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. as above |
||
update() | ||
|
||
/obj/structure/machinery/power/apc/set_pixel_location() | ||
tdir = dir //To fix Vars bug | ||
setDir(SOUTH) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I hope this is the right place to put this