needed changes

This commit is contained in:
Pin-alternative
2022-06-25 20:43:09 +10:00
parent 96e42080e0
commit 7f4f83e082
12 changed files with 103 additions and 51 deletions
+6
View File
@@ -366,6 +366,8 @@ GLOBAL_LIST_EMPTY(preferences_datums)
var/oviposition = FALSE
/// Does john spaceman look like a gluttonous slob if he pregent?
var/pregnancy_inflation = FALSE
/// Does john spaceman like being stuffed
var/egg_stuffing = FALSE
//SPLURT END
/datum/preferences/New(client/C)
@@ -847,6 +849,7 @@ GLOBAL_LIST_EMPTY(preferences_datums)
dat += "<h3>Pregnancy preferences</h3>"
dat += "<b>Can impregnate:</b><a style='display:block;width:100px' href ='?_src_=prefs;preference=virility;task=input'>[virility ? "Enabled" : "Disabled"]</a>"
dat += "<b>Can get pregnant:</b><a style='display:block;width:100px' href ='?_src_=prefs;preference=fertility;task=input'>[fertility ? "Enabled" : "Disabled"]</a>"
dat += "<b>Can be stuffed with eggs:</b><a style='display:block;width:100px' href ='?_src_=prefs;preference=egg_stuffing;task=input'>[egg_stuffing ? "Enabled" : "Disabled"]</a>"
if(fertility)
dat += "<b>Pregnancy type:</b><a style='display:block;width:100px' href ='?_src_=prefs;preference=oviposition;task=input'>[oviposition ? "Oviposition" : "Live Birth"]</a>"
dat += "<b>Pregnancy inflation:</b><a style='display:block;width:100px' href ='?_src_=prefs;preference=pregnancy_inflation;task=input'>[pregnancy_inflation ? "Enabled" : "Disabled"]</a>"
@@ -2061,6 +2064,9 @@ GLOBAL_LIST_EMPTY(preferences_datums)
if("pregnancy_inflation")
pregnancy_inflation = !pregnancy_inflation
if("egg_stuffing")
egg_stuffing = !egg_stuffing
//SPLURT EDIT END
if("hair")
@@ -1192,6 +1192,7 @@ SAVEFILE UPDATING/VERSIONING - 'Simplified', or rather, more coder-friendly ~Car
S["fertile"] >> fertility
S["oviposition"] >> oviposition
S["pregnancy_inflation"] >> pregnancy_inflation
S["egg_stuffing"] >> egg_stuffing
//SPLURT EDIT END
cit_character_pref_load(S)
@@ -1390,6 +1391,7 @@ SAVEFILE UPDATING/VERSIONING - 'Simplified', or rather, more coder-friendly ~Car
WRITE_FILE(S["fertile"], fertility)
WRITE_FILE(S["oviposition"], oviposition)
WRITE_FILE(S["pregnancy_inflation"], pregnancy_inflation)
WRITE_FILE(S["egg_stuffing"], egg_stuffing)
WRITE_FILE(S["headshot"], features["headshot_link"])
//SPLURT EDIT END