Skip to content

Commit

Permalink
refactoring and linter fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Legendaxe committed Oct 14, 2023
1 parent 0f62391 commit 2cc7086
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
3 changes: 1 addition & 2 deletions code/controllers/subsystem/SSticker.dm
Original file line number Diff line number Diff line change
Expand Up @@ -529,8 +529,7 @@ SUBSYSTEM_DEF(ticker)
ending_station_state.count()
var/station_integrity = min(round( 100.0 * GLOB.start_state.score(ending_station_state), 0.1), 100.0)

for(var/client/client in GLOB.clients)
SScredits.roll_credits(client)
SScredits.roll_credits_for_all_clients()

to_chat(world, "<BR>[TAB]Shift Duration: <B>[round(ROUND_TIME / 36000)]:[add_zero("[ROUND_TIME / 600 % 60]", 2)]:[ROUND_TIME / 100 % 6][ROUND_TIME / 100 % 10]</B>")
to_chat(world, "<BR>[TAB]Station Integrity: <B>[mode.station_was_nuked ? "<font color='red'>Destroyed</font>" : "[station_integrity]%"]</B>")
Expand Down
2 changes: 2 additions & 0 deletions modular_ss220/credits/_credits.dme
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
#include "code\SScredits.dm"

#include "_credits.dm"
5 changes: 4 additions & 1 deletion modular_ss220/credits/code/SScredits.dm
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
SUBSYSTEM_DEF(credits)
name = "Credits"
init_order = INIT_ORDER_DEFAULT
runlevels = RUNLEVEL_POSTGAME
flags = SS_NO_FIRE
var/list/end_titles = list()
Expand All @@ -15,6 +14,10 @@ SUBSYSTEM_DEF(credits)
credit_animate_height = 14 * world.icon_size
title_music = pick(file2list("config/credits/sounds/title_music.txt"))

/datum/controller/subsystem/credits/proc/roll_credits_for_all_clients()
for(var/client/client in GLOB.clients)
SScredits.roll_credits(client)

/datum/controller/subsystem/credits/proc/roll_credits(client/client)
LAZYINITLIST(client.credits)

Expand Down

0 comments on commit 2cc7086

Please sign in to comment.