Skip to content

Commit

Permalink
implements sexual potency and lust tolerance
Browse files Browse the repository at this point in the history
  • Loading branch information
MosleyTheMalO committed Dec 26, 2024
1 parent 7b6e6ab commit 3505857
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,11 @@ GLOBAL_LIST_EMPTY_TYPED(interaction_instances, /datum/interaction)
SEND_SOUND(sound_cache, mob)

if(lewd)
user.adjust_pleasure(user_pleasure, target, src, CLIMAX_POSITION_USER) //SPLURT EDIT - Interactions
user.adjust_pleasure(user_pleasure * (target.dna.features["sexual_potency"] || 1), target, src, CLIMAX_POSITION_USER) //SPLURT EDIT - Interactions
user.adjust_arousal(user_arousal)
user.adjust_pain(user_pain, target, src, CLIMAX_POSITION_USER) //SPLURT EDIT - Interactions
if(usage == INTERACTION_OTHER) //SPLURT EDIT - Interactions
target.adjust_pleasure(target_pleasure, user, src, CLIMAX_POSITION_TARGET) //SPLURT EDIT - Interactions
target.adjust_pleasure(target_pleasure * (user.dna.features["sexual_potency"] || 1), user, src, CLIMAX_POSITION_TARGET) //SPLURT EDIT - Interactions
target.adjust_arousal(target_arousal)
target.adjust_pain(target_pain, user, src, CLIMAX_POSITION_TARGET) //SPLURT EDIT - Interactions

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@

pleasure = clamp(pleasure + pleas, AROUSAL_MINIMUM, AROUSAL_LIMIT)

if(pleasure >= AROUSAL_AUTO_CLIMAX_THRESHOLD) // lets cum
if(pleasure >= AROUSAL_AUTO_CLIMAX_THRESHOLD * (dna.features["lust_tolerance"] || 1)) // lets cum
climax(manual = FALSE, partner = partner, climax_interaction = interaction, interaction_position = position)
29 changes: 23 additions & 6 deletions modular_zzplurt/code/modules/client/preferences/erp_preferences.dm
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,15 @@
savefile_key = "erp_lust_tolerance_pref"
savefile_identifier = PREFERENCE_CHARACTER

minimum = 75
maximum = 200
minimum = 0.5
maximum = 2.0
step = 0.01

/datum/preference/numeric/erp_lust_tolerance/apply_to_human(mob/living/carbon/human/target, value)
target.age = value
target.dna.features["lust_tolerance"] = value

/datum/preference/numeric/erp_lust_tolerance/create_informed_default_value(datum/preferences/preferences)
return 100
return 1.0

/datum/preference/numeric/erp_lust_tolerance/is_accessible(datum/preferences/preferences)
if (!..(preferences))
Expand All @@ -116,8 +117,24 @@
savefile_key = "erp_sexual_potency_pref"
savefile_identifier = PREFERENCE_CHARACTER

minimum = 10
maximum = 25
minimum = 0.5
maximum = 2.0
step = 0.01

/datum/preference/numeric/erp_sexual_potency/apply_to_human(mob/living/carbon/human/target, value)
target.dna.features["sexual_potency"] = value

/datum/preference/numeric/erp_sexual_potency/create_informed_default_value(datum/preferences/preferences)
return 1.0

/datum/preference/numeric/erp_sexual_potency/is_accessible(datum/preferences/preferences)
if (!..(preferences))
return FALSE

if(CONFIG_GET(flag/disable_erp_preferences))
return FALSE

return preferences.read_preference(/datum/preference/toggle/master_erp_preferences)

/datum/preference/toggle/erp/butt_enlargement
savefile_key = "butt_enlargement_pref"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,14 +125,15 @@ export const erp_status_pref_unholy: FeatureChoiced = {
};

export const erp_lust_tolerance_pref: FeatureNumeric = {
name: 'Lust tolerance',
name: 'Lust tolerance multiplier',
description:
'Set how long you can last without climaxing. \n(75 = minimum, 200 = maximum.)',
'Set your lust tolerance multiplier. \n(0.5 = half tolerance, 2 = double tolerance)',
component: FeatureNumberInput,
};

export const erp_sexual_potency_pref: FeatureNumeric = {
name: 'Sexual potency',
description: 'Set your sexual potency. \n(10 = minimum, 25 = maximum.)',
name: 'Sexual potency multiplier',
description:
'Set your sexual potency multiplier. \n(0.5 = half potency, 2 = double potency)',
component: FeatureNumberInput,
};

0 comments on commit 3505857

Please sign in to comment.