Adds a preference option

This commit is contained in:
Sam
2017-05-08 13:15:28 +01:00
parent 27f5455a32
commit fd850a6e1e
3 changed files with 12 additions and 2 deletions
@@ -87,6 +87,15 @@
to_chat(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/togglekarmatextreminder()
set name = "Hide/Display Shuttle Karma Reminder"
set category = "Preferences"
set desc = "Toggles displaying shuttle karma reminder"
prefs.toggles ^= DISABLE_KARMA_TEXT_REMINDER
prefs.save_preferences(src)
to_chat(src, "You will [(prefs.toggles & DISABLE_KARMA_TEXT_REMINDER) ? "no longer" : "now"] see the shuttle karma reminder.")
feedback_add_details("admin_verb","TShuttlekarma") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
/client/verb/toggletitlemusic()
set name = "Hear/Silence LobbyMusic"
set category = "Preferences"
+2 -2
View File
@@ -263,8 +263,8 @@
timer = world.time
priority_announcement.Announce("The Emergency Shuttle has left the station. Estimate [timeLeft(600)] minutes until the shuttle docks at Central Command.")
for(var/mob/M in player_list)
if(!isnewplayer(M) && !M.client.karma_spent)
to_chat(M, "<i>You have not yet spent your karma for the round, was there a player who was worthy of receiving your reward?<i>")
if(!isnewplayer(M) && !M.client.karma_spent && !M.get_preference(DISABLE_KARMA_TEXT_REMINDER))
to_chat(M, "<i>You have not yet spent your karma for the round; was there a player who was worthy of receiving your reward?<i>")
if(SHUTTLE_ESCAPE)
if(time_left <= 0)