mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-20 03:25:49 +01:00
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:
@@ -118,6 +118,9 @@
|
||||
/// Is the client watchlisted
|
||||
var/watchlisted = FALSE
|
||||
|
||||
/// list of all credit object bound to this client
|
||||
var/list/credits = list()
|
||||
|
||||
/// Client's pAI save
|
||||
var/datum/pai_save/pai_save
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user