Nerfs KA screenshake, moves cit_screenshake.dm to modular_citadel/, and adds a screenshake pref.

This commit is contained in:
deathride58
2017-09-03 05:24:14 -04:00
parent 10d7b0cf56
commit feeb76e472
6 changed files with 76 additions and 45 deletions
+7
View File
@@ -46,6 +46,8 @@ GLOBAL_LIST_EMPTY(preferences_datums)
var/preferred_map = null
var/uses_glasses_colour = 0
var/screenshake = TRUE
//character preferences
var/real_name //our character's name
@@ -361,8 +363,11 @@ GLOBAL_LIST_EMPTY(preferences_datums)
dat += "Disabled"
else
dat += "High"
dat += "</a><br>"
dat += "<b>Screen shake:</b> <a href='?_src_=prefs;preference=screenshake'>[(screenshake) ? "Full" : "None"]</a><br>"
dat += "</td><td width='300px' height='300px' valign='top'>"
dat += "<h2>Special Role Settings</h2>"
@@ -1486,6 +1491,8 @@ GLOBAL_LIST_EMPTY(preferences_datums)
features["exhibitionist"] = TRUE
else
features["exhibitionist"] = FALSE
if("screenshake")
screenshake = !screenshake
if("publicity")
if(unlock_content)
@@ -190,6 +190,7 @@ SAVEFILE UPDATING/VERSIONING - 'Simplified', or rather, more coder-friendly ~Car
S["menuoptions"] >> menuoptions
//citadel code
S["arousable"] >> arousable
S["screenshake"] >> screenshake
//try to fix any outdated data if necessary
if(needs_update >= 0)
@@ -214,6 +215,7 @@ SAVEFILE UPDATING/VERSIONING - 'Simplified', or rather, more coder-friendly ~Car
ghost_others = sanitize_inlist(ghost_others, GLOB.ghost_others_options, GHOST_OTHERS_DEFAULT_OPTION)
menuoptions = SANITIZE_LIST(menuoptions)
be_special = SANITIZE_LIST(be_special)
screenshake = sanitize_integer(screenshake, 0, 1, initial(screenshake))
return 1
@@ -256,6 +258,7 @@ SAVEFILE UPDATING/VERSIONING - 'Simplified', or rather, more coder-friendly ~Car
WRITE_FILE(S["tip_delay"], tip_delay)
//citadel code
S["arousable"] << arousable
WRITE_FILE(S["screenshake"], screenshake)
return 1