Skip to content
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

Closed

Conversation

BeagleGaming1
Copy link
Contributor

@BeagleGaming1 BeagleGaming1 commented Aug 7, 2023

About the pull request

Lights on the ship are off when the round starts then turn on after 4 to 15 seconds

Explain why it's good for the game

https://www.youtube.com/watch?v=WCtkibZqSpk

Changelog

🆑
add: Ship lights turn on when the round starts
/:cl:

@github-actions github-actions bot added the Feature Feature coder badge label Aug 7, 2023
@@ -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)
Copy link
Contributor Author

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

@morrowwolf
Copy link
Member

TM'ing so I can see how long 4-15 seconds really is with start up. I'll take a closer look at where in ticker you put this later

@@ -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)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be an SSticker.OnRoundstart()

@@ -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
Copy link
Member

Choose a reason for hiding this comment

The 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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as above

@harryob harryob marked this pull request as draft August 9, 2023 13:41
Copy link
Member

@morrowwolf morrowwolf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this would be cooler if it was by light rather than by area APC so as to have kind of a delayed flicker to the lighting of each area

@github-actions
Copy link
Contributor

This PR has been inactive for long enough to be automatically marked as stale. This means it is at risk of being auto closed in ~ 7 days, please address any outstanding review items and ensure your PR is finished, if these are all true and you are auto-staled anyway, you need to actively ask maintainers if your PR will be merged. Once you have done any of the previous actions then you should request a maintainer remove the stale label on your PR, to reset the stale timer. If you feel no maintainer will respond in that time, you may wish to close this PR youself, while you seek maintainer comment, as you will then be able to reopen the PR yourself

@github-actions github-actions bot added the Stale beg a maintainer to review your PR label Aug 18, 2023
@morrowwolf morrowwolf closed this Sep 9, 2023
@BeagleGaming1 BeagleGaming1 deleted the roundstart-lights branch September 22, 2023 23:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Feature coder badge Stale beg a maintainer to review your PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants