Helpful, but not quite what I wanted. It does permanently increase max energy, but only by one per dose. Might be able to kit-bash together the trait I want if I can be bothered looking at the code for other traits that increase or decrease something over time, and that one that increases sluttiness by 10 up to 30. Also doesn't change the text of the trait, which would be useful as a reminder that I messed around with it, or if I wanted to change the name to 'Body sculpter' or something else.
try this for libido stimulants
## slutty_caffeine_trait functions ##
def slutty_caffeine_trait_on_apply(the_person, the_serum, add_to_log):
the_person.change_max_energy(1, add_to_log) # here change energy value to what you want
the_person.change_energy(1, add_to_log) # this value needs to be same as the one above
the_person.change_slut(5, add_to_log = add_to_log) #change the slut to what ever value you like
the_person.add_suggest_effect(90, add_to_log) #keep , change or remove this line for suggest value
def slutty_caffeine_trait_on_remove(the_person, the_serum, add_to_log):
the_person.change_max_energy(-0, add_to_log)
the_person.change_slut(-0, add_to_log = add_to_log)
the_person.remove_suggest_effect(90) #this is the removal of the suggest effect from above needs to #be the same value
then further down in same file look for slutty)caffeine_trait
slutty_caffeine_trait = SerumTrait(name = "Libido Stimulants",
desc = "Careful engineering allows for the traditional side effects of stimulants to be redirected to the parasympathetic nervous system, causing an immediate spike in arousal as well as general energy levels.",
positive_slug = " +1 Max Energy, +5 Sluttiness 90% suggestion",
negative_slug = "",
research_added = 4000,
base_side_effect_chance = 60,
on_apply = slutty_caffeine_trait_on_apply,
on_remove = slutty_caffeine_trait_on_remove,
requires = [refined_caffeine_trait, aphrodisiac],
tier = 2,
research_needed = 4000,
clarity_cost = 1200,
mental_aspect = 1, physical_aspect = 1, sexual_aspect = 1, medical_aspect = 1, flaws_aspect = 0, attention = 2)
in the description after the ="
you can type what ever you want to show, just do not press enter and make sure you have the closing ",
research = amount of research cost to research trait (should be simple enough)
base_side_effect_chance should be simple enough
on_apply =slutty_caffeine_trait_on_apply # this is the trait name that is applied to person when used
on_remove = #this is the removal effect
the rest should be self explanitory
but if you need a hand just ask
OsoSober out