Ports End of Round Credits (#30778)

* Proof of Concept

* Dead counter

* Finishing touches

* Lints

* Lint

* Hides sneaky admins

* I promise to englishes gooders

Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com>
Signed-off-by: PollardTheDragon <144391971+PollardTheDragon@users.noreply.github.com>

* Addresses code reviews

* No more lazy list

* Addresses code review

* Length

* Apply suggestions from code review

Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
Signed-off-by: PollardTheDragon <144391971+PollardTheDragon@users.noreply.github.com>

* Global List

* Address code review

* Apply suggestions from code review

Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
Signed-off-by: PollardTheDragon <144391971+PollardTheDragon@users.noreply.github.com>

---------

Signed-off-by: PollardTheDragon <144391971+PollardTheDragon@users.noreply.github.com>
Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com>
Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
This commit is contained in:
PollardTheDragon
2025-12-03 10:30:20 -05:00
committed by GitHub
parent 8398a58002
commit 17f8f0d5a0
7 changed files with 206 additions and 1 deletions
@@ -1068,6 +1068,9 @@
if("dark_flash")
toggles3 ^= PREFTOGGLE_3_DARK_FLASH
if("toggle_post_credits")
toggles3 ^= PREFTOGGLE_3_POSTCREDS
if("be_special")
var/r = href_list["role"]
if(r in GLOB.special_roles)
@@ -307,6 +307,16 @@
if(user.prefs.sound & ~SOUND_DISCO)
usr.stop_sound_channel(CHANNEL_JUKEBOX)
/datum/preference_toggle/toggle_post_credits
name = "Toggle Post-Round Credits"
description = "Toggle seeing the post-round credit popup."
preftoggle_bitflag = PREFTOGGLE_3_POSTCREDS
preftoggle_toggle = PREFTOGGLE_TOGGLE2
preftoggle_category = PREFTOGGLE_CATEGORY_GENERAL
enable_message = "You will now see post-round credits."
disable_message = "You will no longer see post-round credits."
blackbox_message = "Toggle Post-Round Credits"
/datum/preference_toggle/toggle_ghost_pda
name = "Toggle Ghost PDA messages"
description = "Toggle seeing PDA messages as an observer"