mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-09 16:14:13 +00:00
Merged listen_ooc, seeprayers, STFU_ghosts, STFU_radio, deadchat, sound_adminhelp, ghostears, ghostsight, canplaysound, midis, no_ambi and lobby_music into client.prefs.toggles as bitflags.
Toggling these preferences in-game will update your savefile. Meaning that your preferences will persist between rounds. Added some savefile_version updating stuff. It's pretty crude. If you're changing any of the savefile stuff just ask and I can change it/help. Removed some unused client vars Ghosts no longer hear ambience. Simplified ambience code. Simplified lobby music code. It will no longer cause a massive queue of events (which would eventually balloon in memory use) Moved ooccolor and sound_adminhelp back to prefs. It's easier and allowed me to remove the setupclient() stuff completely. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5143 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -685,24 +685,18 @@ var/global/floorIsLava = 0
|
||||
set category = "Admin"
|
||||
set desc="Toggles Deadchat Visibility"
|
||||
set name="Deadchat Visibility"
|
||||
if(deadchat == 0)
|
||||
deadchat = 1
|
||||
usr << "Deadchat turned on"
|
||||
else
|
||||
deadchat = 0
|
||||
usr << "Deadchat turned off"
|
||||
prefs.toggles ^= CHAT_DEAD
|
||||
prefs.save_preferences()
|
||||
src << "You will [(prefs.toggles & CHAT_DEAD) ? "now" : "no longer"] see deadchat."
|
||||
feedback_add_details("admin_verb","TDV") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
||||
|
||||
/client/proc/toggleprayers()
|
||||
set category = "Admin"
|
||||
set desc="Toggles Prayer Visibility"
|
||||
set name="Prayer Visibility"
|
||||
if(seeprayers == 0)
|
||||
seeprayers = 1
|
||||
usr << "Prayer visibility turned on"
|
||||
else
|
||||
seeprayers = 0
|
||||
usr << "Prayer visibility turned off"
|
||||
prefs.toggles ^= CHAT_PRAYER
|
||||
prefs.save_preferences()
|
||||
src << "You will [(prefs.toggles & CHAT_PRAYER) ? "now" : "no longer"] see prayerchat."
|
||||
feedback_add_details("admin_verb","TP") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
||||
|
||||
/datum/admins/proc/unprison(var/mob/M in mob_list)
|
||||
|
||||
Reference in New Issue
Block a user