Inverts new karma reminder and scoreboard toggles

These can't default to 1, or they'll have the wrong default for every
existing player.
This commit is contained in:
Krausus
2015-07-06 23:07:04 -04:00
parent 0b4fcadd37
commit d694ad1d09
4 changed files with 9 additions and 9 deletions
+3 -3
View File
@@ -20,10 +20,10 @@
#define CHAT_LOOC 256
#define CHAT_GHOSTRADIO 512
#define SHOW_TYPING 1024
#define DISPLAY_SCOREBOARD 2048
#define KARMA_REMINDER 4096
#define DISABLE_SCOREBOARD 2048
#define DISABLE_KARMA_REMINDER 4096
#define TOGGLES_DEFAULT (CHAT_OOC|CHAT_DEAD|CHAT_GHOSTEARS|CHAT_GHOSTSIGHT|CHAT_PRAYER|CHAT_RADIO|CHAT_ATTACKLOGS|CHAT_LOOC|DISPLAY_SCOREBOARD|KARMA_REMINDER)
#define TOGGLES_DEFAULT (CHAT_OOC|CHAT_DEAD|CHAT_GHOSTEARS|CHAT_GHOSTSIGHT|CHAT_PRAYER|CHAT_RADIO|CHAT_ATTACKLOGS|CHAT_LOOC)
#define BE_TRAITOR 1
#define BE_OPERATIVE 2
+1 -1
View File
@@ -453,7 +453,7 @@ var/global/datum/controller/gameticker/ticker
if(player.client)
if(player.client.karma_spent == 0)
if(player.client.prefs && (player.client.prefs.toggles & KARMA_REMINDER))
if(player.client.prefs && !(player.client.prefs.toggles & DISABLE_KARMA_REMINDER))
var/dat
dat += {"<html><head><title>Karma Reminder</title></head><body><h1><B>Karma Reminder</B></h1><br>
You have not yet spent your karma for the round, surely there is a player who was worthy of receiving<br>
+1 -1
View File
@@ -212,7 +212,7 @@
world << "<b><font size='4'>[score_crewscore]</font></b>"
for(var/mob/E in player_list)
if(E.client)
if(E.client.prefs && (E.client.prefs.toggles & DISPLAY_SCOREBOARD))
if(E.client.prefs && !(E.client.prefs.toggles & DISABLE_SCOREBOARD))
E.scorestats()
return
+4 -4
View File
@@ -73,18 +73,18 @@
set name = "Hide/Display End Round Scoreboard"
set category = "Preferences"
set desc = "Toggles displaying end of round scoreboard"
prefs.toggles ^= DISPLAY_SCOREBOARD
prefs.toggles ^= DISABLE_SCOREBOARD
prefs.save_preferences(src)
src << "You will [(prefs.toggles & DISPLAY_SCOREBOARD) ? "now" : "no longer"] see the end of round scoreboard."
src << "You will [(prefs.toggles & DISABLE_SCOREBOARD) ? "no longer" : "now"] see the end of round scoreboard."
feedback_add_details("admin_verb","TScoreboard") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
/client/verb/togglekarmareminder()
set name = "Hide/Display End Round Karma Reminder"
set category = "Preferences"
set desc = "Toggles displaying end of round karma reminder"
prefs.toggles ^= KARMA_REMINDER
prefs.toggles ^= DISABLE_KARMA_REMINDER
prefs.save_preferences(src)
src << "You will [(prefs.toggles & KARMA_REMINDER) ? "now" : "no longer"] see the end of round karma reminder."
src << "You will [(prefs.toggles & DISABLE_KARMA_REMINDER) ? "no longer" : "now"] see the end of round karma reminder."
feedback_add_details("admin_verb","TKarmabugger") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
/client/verb/toggletitlemusic()