doone, opt-out pref

This commit is contained in:
WoolyAypa
2023-01-19 00:43:16 -03:00
parent aa0e5d0e02
commit f04f9ce559
7 changed files with 30 additions and 3 deletions
+5
View File
@@ -1433,6 +1433,7 @@ GLOBAL_LIST_EMPTY(preferences_datums)
dat += "<b>Aphrodisiacs:</b> <a href='?_src_=prefs;preference=aphro'>[(cit_toggles & NO_APHRO) ? "Disallowed" : "Allowed"]</a><br>"
dat += "<b>Ass Slapping:</b> <a href='?_src_=prefs;preference=ass_slap'>[(cit_toggles & NO_ASS_SLAP) ? "Disallowed" : "Allowed"]</a><br>"
//SPLURT EDIT
dat += "<b>Chastity Interactions :</b> <a href='?_src_=prefs;preference=chastitypref'>[chastitypref ? "Allowed" : "Disallowed"]</a><br>"
dat += "<span style='border-radius: 2px;border:1px dotted white;cursor:help;' title='Enables verbs involving farts, shit and piss.'>?</span> "
dat += "<b>Unholy ERP verbs :</b> <a href='?_src_=prefs;preference=unholypref'>[unholypref]</a><br>" //https://www.youtube.com/watch?v=OHKARc-GObU
//END OF SPLURT EDIT
@@ -3732,6 +3733,10 @@ GLOBAL_LIST_EMPTY(preferences_datums)
to_chat(usr, span_notice("Keep in mind that the photo will be downsized to 250x250 pixels, so the more square the photo, the better it will look."))
features["headshot_link"] = usr_input
if("chastitypref")
chastitypref = !chastitypref
//
if(href_list["preference"] == "gear")
if(href_list["clear_loadout"])
loadout_data["SAVE_[loadout_slot]"] = list()
@@ -19,6 +19,7 @@
S["personal_chat_color"] >> personal_chat_color
S["lust_tolerance"] >> lust_tolerance
S["sexual_potency"] >> sexual_potency
S["chastity_pref"] >> chastitypref // SPLURT edit
S["alt_titles_preferences"] >> alt_titles_preferences
alt_titles_preferences = SANITIZE_LIST(alt_titles_preferences)
@@ -68,6 +69,7 @@
WRITE_FILE(S["erp_pref"], erppref)
WRITE_FILE(S["noncon_pref"], nonconpref)
WRITE_FILE(S["vore_pref"], vorepref)
WRITE_FILE(S["chastity_pref"], chastitypref) // SPLURT edit
WRITE_FILE(S["unholypref"], unholypref)
WRITE_FILE(S["extreme_pref"], extremepref)
WRITE_FILE(S["extreme_harm"], extremeharm)
@@ -217,6 +217,7 @@
.["no_aphro"] = !CHECK_BITFIELD(prefs.cit_toggles, NO_APHRO)
.["no_ass_slap"] = !CHECK_BITFIELD(prefs.cit_toggles, NO_ASS_SLAP)
.["no_auto_wag"] = !CHECK_BITFIELD(prefs.cit_toggles, NO_AUTO_WAG)
.["chastity_pref"] = prefs.chastitypref
/proc/num_to_pref(num)
switch(num)
@@ -400,6 +401,10 @@
TOGGLE_BITFIELD(prefs.cit_toggles, NO_ASS_SLAP)
if("no_auto_wag")
TOGGLE_BITFIELD(prefs.cit_toggles, NO_AUTO_WAG)
// SPLURT edit
if("chastity_pref")
prefs.chastitypref = !prefs.chastitypref
//
else
return FALSE
prefs.save_preferences()
@@ -18,10 +18,10 @@
if(!CHECK_BITFIELD(slot, ITEM_SLOT_UNDERWEAR) || !ishuman(user) || !ishuman(usr))
return
if(!(user.client?.prefs?.erppref == "Yes"))
if(!user.client?.prefs?.chastitypref)
to_chat(user, span_warning("They don't want you to do that!"))
return
var/mob/holder = usr
owner = user
@@ -51,7 +51,7 @@
if(!istype(target_organ, /obj/item/organ/genital/penis))
return ..()
if(!(target.client?.prefs?.erppref == "Yes"))
if(!target.client?.prefs?.chastitypref)
to_chat(user, span_warning("They don't want you to do that!"))
return
@@ -1,5 +1,6 @@
/datum/preferences
var/unholypref = "No" //Goin 2 hell fo dis one
var/chastitypref = FALSE
var/list/gfluid_blacklist = list() //Stuff you don't want people to cum into you
@@ -89,6 +89,7 @@ type ContentPrefsInfo = {
no_aphro: boolean,
no_ass_slap: boolean,
no_auto_wag: boolean,
chastity_pref: boolean,
}
export const MobInteraction = (props, context) => {
@@ -574,6 +575,7 @@ const ContentPreferencesTab = (props, context) => {
no_aphro,
no_ass_slap,
no_auto_wag,
chastity_pref
} = data;
return (
<Table>
@@ -829,6 +831,18 @@ const ContentPreferencesTab = (props, context) => {
})}
/>
</Table.Row>
<Table.Row>
<Button
fluid
mb={0.3}
content="Chastity Interactions"
icon={chastity_pref ? "toggle-on" : "toggle-off"}
selected={chastity_pref}
onClick={() => act('pref', {
pref: 'chastity_pref',
})}
/>
</Table.Row>
</Table>
);
};