adds reduced option for screenshake

This commit is contained in:
deathride58
2017-09-03 13:22:50 -04:00
parent f2963840bc
commit 5a618ed548
2 changed files with 12 additions and 4 deletions
+11 -3
View File
@@ -47,7 +47,7 @@ GLOBAL_LIST_EMPTY(preferences_datums)
var/uses_glasses_colour = 0
var/screenshake = TRUE
var/screenshake = 1
//character preferences
var/real_name //our character's name
@@ -366,7 +366,7 @@ GLOBAL_LIST_EMPTY(preferences_datums)
dat += "</a><br>"
dat += "<b>Screen shake:</b> <a href='?_src_=prefs;preference=screenshake'>[(screenshake) ? "Full" : "None"]</a><br>"
dat += "<b>Screen shake:</b> <a href='?_src_=prefs;preference=screenshake'>[(screenshake) ? "Full" : [(!screenshake) ? "None" : "Reduced"]]</a><br>"
dat += "</td><td width='300px' height='300px' valign='top'>"
@@ -1492,7 +1492,15 @@ GLOBAL_LIST_EMPTY(preferences_datums)
else
features["exhibitionist"] = FALSE
if("screenshake")
screenshake = !screenshake
switch(screenshake)
if(0)
screenshake = 1
if(1)
screenshake = 2
if(2)
screenshake = 0
else
screenshake = 1
if("publicity")
if(unlock_content)
+1 -1
View File
@@ -215,7 +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))
screenshake = sanitize_integer(screenshake, 0, 2, initial(screenshake))
return 1