auto hide belly option at round start.

auto hide belly option at round start.
This commit is contained in:
QuoteFox
2021-01-28 20:56:32 +00:00
parent de88764136
commit 6c32fd97b7
6 changed files with 18 additions and 6 deletions
+8 -2
View File
@@ -96,7 +96,8 @@ GLOBAL_LIST_EMPTY(preferences_datums)
//H13
var/body_size = 100 //Body Size in percent
var/can_get_preg = 0 //Body Size in percent
var/can_get_preg = 0 //if they can get preggers
var/datum/species/pref_species = new /datum/species/human() //Mutant race
var/list/features = list("mcolor" = "FFF",
@@ -135,6 +136,7 @@ GLOBAL_LIST_EMPTY(preferences_datums)
"has_sheath" = FALSE,
"sheath_color" = "fff",
"has_belly" = FALSE,
"hide_belly" = FALSE,
"belly_color" = "fff",
"has_balls" = FALSE,
"balls_internal" = FALSE,
@@ -903,7 +905,7 @@ GLOBAL_LIST_EMPTY(preferences_datums)
else
dat += "<b>Color:</b></a><BR>"
dat += "<span style='border: 1px solid #161616; background-color: #[features["belly_color"]];'>&nbsp;&nbsp;&nbsp;</span> <a href='?_src_=prefs;preference=belly_color;task=input'>Change</a><br>"
dat += "<b>Hide on Round-Start:</b><a style='display:block;width:50px' href='?_src_=prefs;preference=hide_belly'>[features["hide_belly"] == 1 ? "Yes" : "No"]</a>"
dat += "</td>"
dat += "</td>"
@@ -2401,6 +2403,10 @@ GLOBAL_LIST_EMPTY(preferences_datums)
features["has_balls"] = FALSE
if("has_belly")
features["has_belly"] = !features["has_belly"]
if(features["has_belly"] == FALSE)
features["hide_belly"] = FALSE
if("hide_belly")
features["hide_belly"] = !features["hide_belly"]
if("has_balls")
features["has_balls"] = !features["has_balls"]
if("has_ovi")