mirror of
https://gitgud.io/AbstractConcept/privacy-please.git
synced 2024-08-15 00:03:18 +00:00
v 0.01
This commit is contained in:
parent
55402b9891
commit
03e634e56c
36 changed files with 866 additions and 491 deletions
Binary file not shown.
Binary file not shown.
|
@ -6,6 +6,7 @@
|
|||
<defName>Disquiet</defName>
|
||||
<label>disquiet</label>
|
||||
<description>This person saw something that upset them and it's weighting on their thoughts.</description>
|
||||
<isBad>false</isBad>
|
||||
<stages>
|
||||
<li>
|
||||
<label>present</label>
|
||||
|
@ -18,6 +19,7 @@
|
|||
<defName>Panicked</defName>
|
||||
<label>panicked</label>
|
||||
<description>This person saw something that has shaked them to their core. Will they run or fight?</description>
|
||||
<isBad>false</isBad>
|
||||
<stages>
|
||||
<li>
|
||||
<label>present</label>
|
||||
|
@ -30,6 +32,7 @@
|
|||
<defName>Nauseated</defName>
|
||||
<label>nauseated</label>
|
||||
<description>This poor soul saw something something so utterly foul that they just might be sick from the thought.</description>
|
||||
<isBad>false</isBad>
|
||||
<stages>
|
||||
<li>
|
||||
<label>present</label>
|
||||
|
@ -42,6 +45,7 @@
|
|||
<defName>Indignant</defName>
|
||||
<label>indignant</label>
|
||||
<description>This person witnessed something quite distasteful and is going to give the offender a piece of their mind.</description>
|
||||
<isBad>false</isBad>
|
||||
<stages>
|
||||
<li>
|
||||
<label>present</label>
|
||||
|
|
|
@ -8,24 +8,13 @@
|
|||
</IssueDef>
|
||||
|
||||
<!-- Precepts -->
|
||||
<PreceptDef>
|
||||
<defName>Exhibitionism_Forbidden</defName>
|
||||
<issue>Exhibitionism</issue>
|
||||
<label>forbidden</label>
|
||||
<description>Physical intimacy in the presence of others is a wicked thing.</description>
|
||||
<impact>High</impact>
|
||||
<displayOrderInIssue>50</displayOrderInIssue>
|
||||
<displayOrderInImpact>1000</displayOrderInImpact>
|
||||
<defaultSelectionWeight>100</defaultSelectionWeight>
|
||||
</PreceptDef>
|
||||
|
||||
<PreceptDef>
|
||||
<defName>Exhibitionism_Disapproved</defName>
|
||||
<issue>Exhibitionism</issue>
|
||||
<label>disapproved</label>
|
||||
<description>Performing sexual acts in front of others is shameful.</description>
|
||||
<description>Being seen having sex is shameful.</description>
|
||||
<impact>Low</impact>
|
||||
<displayOrderInIssue>40</displayOrderInIssue>
|
||||
<displayOrderInIssue>30</displayOrderInIssue>
|
||||
<displayOrderInImpact>1000</displayOrderInImpact>
|
||||
<defaultSelectionWeight>100</defaultSelectionWeight>
|
||||
</PreceptDef>
|
||||
|
@ -34,9 +23,9 @@
|
|||
<defName>Exhibitionism_Acceptable</defName>
|
||||
<issue>Exhibitionism</issue>
|
||||
<label>acceptable</label>
|
||||
<description>Sex a normal and natural event and should attract no special attention from others.</description>
|
||||
<description>Sex infront of others is normal and deserves no special attention.</description>
|
||||
<impact>Low</impact>
|
||||
<displayOrderInIssue>30</displayOrderInIssue>
|
||||
<displayOrderInIssue>20</displayOrderInIssue>
|
||||
<displayOrderInImpact>1000</displayOrderInImpact>
|
||||
<defaultSelectionWeight>100</defaultSelectionWeight>
|
||||
</PreceptDef>
|
||||
|
@ -45,9 +34,9 @@
|
|||
<defName>Exhibitionism_Approved</defName>
|
||||
<issue>Exhibitionism</issue>
|
||||
<label>approved</label>
|
||||
<description>Sex is to be celebrated and people should be encouraged to witness it.</description>
|
||||
<description>Physical intimacy is to be celebrated.</description>
|
||||
<impact>Medium</impact>
|
||||
<displayOrderInIssue>20</displayOrderInIssue>
|
||||
<displayOrderInIssue>10</displayOrderInIssue>
|
||||
<displayOrderInImpact>1000</displayOrderInImpact>
|
||||
<defaultSelectionWeight>100</defaultSelectionWeight>
|
||||
</PreceptDef>
|
44
Defs/PreceptDefs/PreceptDef_Infidelity.xml
Normal file
44
Defs/PreceptDefs/PreceptDef_Infidelity.xml
Normal file
|
@ -0,0 +1,44 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<Defs>
|
||||
<!-- Issues -->
|
||||
<IssueDef>
|
||||
<defName>Infidelity</defName>
|
||||
<label>infidelity</label>
|
||||
<iconPath>UI/Issues/Exhibitionism</iconPath>
|
||||
</IssueDef>
|
||||
|
||||
<!-- Precepts -->
|
||||
<PreceptDef>
|
||||
<defName>Infidelity_Heartbreaking</defName>
|
||||
<issue>Infidelity</issue>
|
||||
<label>heartbreaking</label>
|
||||
<description>test</description>
|
||||
<impact>Low</impact>
|
||||
<displayOrderInIssue>30</displayOrderInIssue>
|
||||
<displayOrderInImpact>1000</displayOrderInImpact>
|
||||
<defaultSelectionWeight>100</defaultSelectionWeight>
|
||||
</PreceptDef>
|
||||
|
||||
<PreceptDef>
|
||||
<defName>Infidelity_Disapproved</defName>
|
||||
<issue>Infidelity</issue>
|
||||
<label>disapproved</label>
|
||||
<description>test</description>
|
||||
<impact>Low</impact>
|
||||
<displayOrderInIssue>20</displayOrderInIssue>
|
||||
<displayOrderInImpact>1000</displayOrderInImpact>
|
||||
<defaultSelectionWeight>100</defaultSelectionWeight>
|
||||
</PreceptDef>
|
||||
|
||||
<PreceptDef>
|
||||
<defName>Infidelity_Acceptable</defName>
|
||||
<issue>Infidelity</issue>
|
||||
<label>acceptable</label>
|
||||
<description>test</description>
|
||||
<impact>Low</impact>
|
||||
<displayOrderInIssue>10</displayOrderInIssue>
|
||||
<displayOrderInImpact>1000</displayOrderInImpact>
|
||||
<defaultSelectionWeight>100</defaultSelectionWeight>
|
||||
</PreceptDef>
|
||||
|
||||
</Defs>
|
166
Defs/SexActReactionDefs.xml
Normal file
166
Defs/SexActReactionDefs.xml
Normal file
|
@ -0,0 +1,166 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<Defs>
|
||||
|
||||
<Privacy_Please.SexActReactionDef>
|
||||
<defName>reactionToExhibitionism</defName>
|
||||
<issueDefName>Exhibitionism</issueDefName>
|
||||
<sexActCheck>SexActIsExhibitionism</sexActCheck>
|
||||
<witnessReaction>
|
||||
<defaultThoughtDef>SawExhibitionism_Disapproved</defaultThoughtDef>
|
||||
<associatedThoughtDefs>
|
||||
<li>SawExhibitionism_Disapproved</li>
|
||||
<li>SawExhibitionism_Acceptable</li>
|
||||
<li>SawExhibitionism_Approved</li>
|
||||
</associatedThoughtDefs>
|
||||
<replacementThoughts>
|
||||
<li>
|
||||
<requiredQuirk>Voyeur</requiredQuirk>
|
||||
<replacementThoughtDef>SawExhibitionism_Approved</replacementThoughtDef>
|
||||
</li>
|
||||
</replacementThoughts>
|
||||
</witnessReaction>
|
||||
</Privacy_Please.SexActReactionDef>
|
||||
|
||||
<Privacy_Please.SexActReactionDef>
|
||||
<defName>reactionToMasturbation</defName>
|
||||
<issueDefName>Masturbation</issueDefName>
|
||||
<sexActCheck>SexActIsMasturbation</sexActCheck>
|
||||
<witnessReaction>
|
||||
<defaultThoughtDef>SawMasturbation_Disapproved</defaultThoughtDef>
|
||||
<associatedThoughtDefs>
|
||||
<li>SawMasturbation_Abhorrent</li>
|
||||
<li>SawMasturbation_Disapproved</li>
|
||||
<li>SawMasturbation_Acceptable</li>
|
||||
</associatedThoughtDefs>
|
||||
<replacementThoughts>
|
||||
<li>
|
||||
<requiredQuirk>Voyeur</requiredQuirk>
|
||||
<replacementThoughtDef>SawMasturbation_Approved</replacementThoughtDef>
|
||||
</li>
|
||||
</replacementThoughts>
|
||||
</witnessReaction>
|
||||
</Privacy_Please.SexActReactionDef>
|
||||
|
||||
<Privacy_Please.SexActReactionDef>
|
||||
<defName>reactionToInfidelity</defName>
|
||||
<issueDefName>Infidelity</issueDefName>
|
||||
<sexActCheck>SexActIsInfidelity</sexActCheck>
|
||||
<witnessReaction>
|
||||
<defaultThoughtDef>SawInfidelity_Heartbreaking</defaultThoughtDef>
|
||||
<associatedThoughtDefs>
|
||||
<li>SawInfidelity_Heartbreaking</li>
|
||||
<li>SawInfidelity_Disapproved</li>
|
||||
<li>SawInfidelity_Acceptable</li>
|
||||
</associatedThoughtDefs>
|
||||
<replacementThoughts>
|
||||
<li>
|
||||
<requiredQuirk>Cuckold</requiredQuirk>
|
||||
<replacementThoughtDef>SawInfidelity_Approved</replacementThoughtDef>
|
||||
</li>
|
||||
</replacementThoughts>
|
||||
</witnessReaction>
|
||||
</Privacy_Please.SexActReactionDef>
|
||||
|
||||
<Privacy_Please.SexActReactionDef>
|
||||
<defName>reactionToXenophilia</defName>
|
||||
<issueDefName>HAR_AlienDating</issueDefName>
|
||||
<sexActCheck>SexActIsRape</sexActCheck>
|
||||
<witnessReaction>
|
||||
<defaultThoughtDef>SawHAR_AlienDating_Acceptable</defaultThoughtDef>
|
||||
<associatedThoughtDefs>
|
||||
<li>SawHAR_AlienDating_Prohibited</li>
|
||||
<li>SawHAR_AlienDating_Horrible</li>
|
||||
<li>SawHAR_AlienDating_Acceptable</li>
|
||||
<li>SawHAR_AlienDating_Preferred</li>
|
||||
<li>SawHAR_AlienDating_Know_Honorable</li>
|
||||
</associatedThoughtDefs>
|
||||
<replacementThoughts>
|
||||
<li>
|
||||
<requiredTraits>
|
||||
<Xenophobia>1</Xenophobia>
|
||||
</requiredTraits>
|
||||
<replacementThoughtDef>SawHAR_AlienDating_Prohibited</replacementThoughtDef>
|
||||
</li>
|
||||
<li>
|
||||
<requiredTraits>
|
||||
<Xenophobia>-1</Xenophobia>
|
||||
</requiredTraits>
|
||||
<replacementThoughtDef>SawHAR_AlienDating_Know_Honorable</replacementThoughtDef>
|
||||
</li>
|
||||
</replacementThoughts>
|
||||
</witnessReaction>
|
||||
</Privacy_Please.SexActReactionDef>
|
||||
|
||||
<Privacy_Please.SexActReactionDef>
|
||||
<defName>reactionToBestiality</defName>
|
||||
<issueDefName>Bestiality</issueDefName>
|
||||
<sexActCheck>SexActIsBestiality</sexActCheck>
|
||||
<witnessReaction>
|
||||
<defaultThoughtDef>SawBestiality_Abhorrent</defaultThoughtDef>
|
||||
<associatedThoughtDefs>
|
||||
<li>SawBestiality_Abhorrent</li>
|
||||
<li>SawBestiality_Horrible</li>
|
||||
<li>SawBestiality_Disapproved</li>
|
||||
<li>SawBestiality_Acceptable</li>
|
||||
<li>SawBestiality_Honorable</li>
|
||||
</associatedThoughtDefs>
|
||||
<replacementThoughts>
|
||||
<li>
|
||||
<requiredTraits>
|
||||
<li>Zoophile</li>
|
||||
</requiredTraits>
|
||||
<replacementThoughtDef>SawBestiality_Honorable</replacementThoughtDef>
|
||||
</li>
|
||||
</replacementThoughts>
|
||||
</witnessReaction>
|
||||
</Privacy_Please.SexActReactionDef>
|
||||
|
||||
<Privacy_Please.SexActReactionDef>
|
||||
<defName>reactionToNecrophilia</defName>
|
||||
<issueDefName>Necrophilia</issueDefName>
|
||||
<sexActCheck>SexActIsNecrophilia</sexActCheck>
|
||||
<witnessReaction>
|
||||
<defaultThoughtDef>SawNecrophilia_Abhorrent</defaultThoughtDef>
|
||||
<associatedThoughtDefs>
|
||||
<li>SawNecrophilia_Abhorrent</li>
|
||||
<li>SawNecrophilia_Horrible</li>
|
||||
<li>SawNecrophilia_Disapproved</li>
|
||||
<li>SawNecrophilia_Acceptable</li>
|
||||
<li>SawNecrophilia_Honorable</li>
|
||||
</associatedThoughtDefs>
|
||||
<replacementThoughts>
|
||||
<li>
|
||||
<requiredTraits>
|
||||
<li>Necrophiliac</li>
|
||||
</requiredTraits>
|
||||
<replacementThoughtDef>SawNecrophilia_Honorable</replacementThoughtDef>
|
||||
</li>
|
||||
</replacementThoughts>
|
||||
</witnessReaction>
|
||||
</Privacy_Please.SexActReactionDef>
|
||||
|
||||
<Privacy_Please.SexActReactionDef>
|
||||
<defName>reactionToRape</defName>
|
||||
<issueDefName>Rape</issueDefName>
|
||||
<sexActCheck>SexActIsRape</sexActCheck>
|
||||
<witnessReaction>
|
||||
<defaultThoughtDef>SawRape_Abhorrent</defaultThoughtDef>
|
||||
<associatedThoughtDefs>
|
||||
<li>SawRape_Abhorrent</li>
|
||||
<li>SawRape_Horrible</li>
|
||||
<li>SawRape_Disapproved</li>
|
||||
<li>SawRape_Acceptable</li>
|
||||
<li>SawRape_Honorable</li>
|
||||
</associatedThoughtDefs>
|
||||
<replacementThoughts>
|
||||
<li>
|
||||
<requiredTraits>
|
||||
<li>Rapist</li>
|
||||
</requiredTraits>
|
||||
<replacementThoughtDef>SawRape_Honorable</replacementThoughtDef>
|
||||
</li>
|
||||
</replacementThoughts>
|
||||
</witnessReaction>
|
||||
</Privacy_Please.SexActReactionDef>
|
||||
|
||||
</Defs>
|
|
@ -2,14 +2,10 @@
|
|||
|
||||
<Defs>
|
||||
|
||||
<ThoughtDef>
|
||||
<Privacy_Please.SexActThoughtDef>
|
||||
<defName>SawBestiality_Abhorrent</defName>
|
||||
<durationDays>3</durationDays>
|
||||
<stackLimit>3</stackLimit>
|
||||
<nullifyingTraits>
|
||||
<li>Zoophile</li>
|
||||
</nullifyingTraits>
|
||||
<hediff>Panicked</hediff>
|
||||
<stackLimitForSameOtherPawn>1</stackLimitForSameOtherPawn>
|
||||
<stages>
|
||||
<li>
|
||||
|
@ -18,16 +14,16 @@
|
|||
<baseMoodEffect>-20</baseMoodEffect>
|
||||
</li>
|
||||
</stages>
|
||||
</ThoughtDef>
|
||||
|
||||
<ThoughtDef>
|
||||
<defName>SawBestiality_Horrible</defName>
|
||||
<durationDays>3</durationDays>
|
||||
<stackLimit>3</stackLimit>
|
||||
<nullifyingTraits>
|
||||
<li>Zoophile</li>
|
||||
</nullifyingTraits>
|
||||
<hediff>Disquiet</hediff>
|
||||
<reactionToSexAct>Outrage</reactionToSexAct>
|
||||
</Privacy_Please.SexActThoughtDef>
|
||||
|
||||
<Privacy_Please.SexActThoughtDef>
|
||||
<defName>SawBestiality_Horrible</defName>
|
||||
<durationDays>3</durationDays>
|
||||
<stackLimit>3</stackLimit>
|
||||
<stackLimitForSameOtherPawn>1</stackLimitForSameOtherPawn>
|
||||
<stages>
|
||||
<li>
|
||||
|
@ -36,16 +32,16 @@
|
|||
<baseMoodEffect>-15</baseMoodEffect>
|
||||
</li>
|
||||
</stages>
|
||||
</ThoughtDef>
|
||||
|
||||
<ThoughtDef>
|
||||
<defName>SawBestiality_Disapproved</defName>
|
||||
<durationDays>3</durationDays>
|
||||
<stackLimit>3</stackLimit>
|
||||
<nullifyingTraits>
|
||||
<li>Zoophile</li>
|
||||
</nullifyingTraits>
|
||||
<hediff>Disquiet</hediff>
|
||||
<reactionToSexAct>Discomfort</reactionToSexAct>
|
||||
</Privacy_Please.SexActThoughtDef>
|
||||
|
||||
<Privacy_Please.SexActThoughtDef>
|
||||
<defName>SawBestiality_Disapproved</defName>
|
||||
<durationDays>3</durationDays>
|
||||
<stackLimit>3</stackLimit>
|
||||
<stackLimitForSameOtherPawn>1</stackLimitForSameOtherPawn>
|
||||
<stages>
|
||||
<li>
|
||||
|
@ -54,15 +50,16 @@
|
|||
<baseMoodEffect>-10</baseMoodEffect>
|
||||
</li>
|
||||
</stages>
|
||||
</ThoughtDef>
|
||||
|
||||
<ThoughtDef>
|
||||
<defName>SawBestiality_Acceptable</defName>
|
||||
<durationDays>3</durationDays>
|
||||
<stackLimit>3</stackLimit>
|
||||
<nullifyingTraits>
|
||||
<li>Zoophile</li>
|
||||
</nullifyingTraits>
|
||||
<reactionToSexAct>Discomfort</reactionToSexAct>
|
||||
</Privacy_Please.SexActThoughtDef>
|
||||
|
||||
<Privacy_Please.SexActThoughtDef>
|
||||
<defName>SawBestiality_Acceptable</defName>
|
||||
<durationDays>3</durationDays>
|
||||
<stackLimit>3</stackLimit>
|
||||
<stackLimitForSameOtherPawn>1</stackLimitForSameOtherPawn>
|
||||
<stages>
|
||||
<li>
|
||||
|
@ -71,13 +68,13 @@
|
|||
<baseMoodEffect>-4</baseMoodEffect>
|
||||
</li>
|
||||
</stages>
|
||||
<nullifyingPrecepts>
|
||||
<li>Exhibitionism_Acceptable</li>
|
||||
<li>Exhibitionism_Approved</li>
|
||||
</nullifyingPrecepts>
|
||||
</ThoughtDef>
|
||||
<nullifyingTraits>
|
||||
<li>Zoophile</li>
|
||||
</nullifyingTraits>
|
||||
<reactionToSexAct>Acceptance</reactionToSexAct>
|
||||
</Privacy_Please.SexActThoughtDef>
|
||||
|
||||
<ThoughtDef>
|
||||
<Privacy_Please.SexActThoughtDef>
|
||||
<defName>SawBestiality_Honorable</defName>
|
||||
<durationDays>3</durationDays>
|
||||
<stackLimit>3</stackLimit>
|
||||
|
@ -89,6 +86,7 @@
|
|||
<baseMoodEffect>+2</baseMoodEffect>
|
||||
</li>
|
||||
</stages>
|
||||
</ThoughtDef>
|
||||
<reactionToSexAct>Approval</reactionToSexAct>
|
||||
</Privacy_Please.SexActThoughtDef>
|
||||
|
||||
</Defs>
|
||||
|
|
53
Defs/ThoughtDefs/ThoughtDefsExhibitionism.xml
Normal file
53
Defs/ThoughtDefs/ThoughtDefsExhibitionism.xml
Normal file
|
@ -0,0 +1,53 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
|
||||
<Defs>
|
||||
|
||||
<Privacy_Please.SexActThoughtDef>
|
||||
<defName>SawExhibitionism_Disapproved</defName>
|
||||
<thoughtClass>Thought_Memory</thoughtClass>
|
||||
<durationDays>1.0</durationDays>
|
||||
<stackLimit>1</stackLimit>
|
||||
<stackedEffectMultiplier>0.5</stackedEffectMultiplier>
|
||||
<stages>
|
||||
<li>
|
||||
<label>walked in on some lovin'</label>
|
||||
<description>test</description>
|
||||
<baseMoodEffect>-4</baseMoodEffect>
|
||||
</li>
|
||||
</stages>
|
||||
<reactionToSexAct>Discomfort</reactionToSexAct>
|
||||
</Privacy_Please.SexActThoughtDef>
|
||||
|
||||
<Privacy_Please.SexActThoughtDef>
|
||||
<defName>SawExhibitionism_Acceptable</defName>
|
||||
<thoughtClass>Thought_Memory</thoughtClass>
|
||||
<durationDays>1.0</durationDays>
|
||||
<stackLimit>1</stackLimit>
|
||||
<stackedEffectMultiplier>0.5</stackedEffectMultiplier>
|
||||
<stages>
|
||||
<li>
|
||||
<label>passed by some lovin'</label>
|
||||
<description>test</description>
|
||||
<baseMoodEffect>0</baseMoodEffect>
|
||||
</li>
|
||||
</stages>
|
||||
<reactionToSexAct>Acceptance</reactionToSexAct>
|
||||
</Privacy_Please.SexActThoughtDef>
|
||||
|
||||
<Privacy_Please.SexActThoughtDef>
|
||||
<defName>SawExhibitionism_Approved</defName>
|
||||
<thoughtClass>Thought_Memory</thoughtClass>
|
||||
<durationDays>1.0</durationDays>
|
||||
<stackLimit>1</stackLimit>
|
||||
<stackedEffectMultiplier>0.5</stackedEffectMultiplier>
|
||||
<stages>
|
||||
<li>
|
||||
<label>observed some lovin'</label>
|
||||
<description>test</description>
|
||||
<baseMoodEffect>2</baseMoodEffect>
|
||||
</li>
|
||||
</stages>
|
||||
<reactionToSexAct>Approval</reactionToSexAct>
|
||||
</Privacy_Please.SexActThoughtDef>
|
||||
|
||||
</Defs>
|
|
@ -2,8 +2,8 @@
|
|||
|
||||
<Defs>
|
||||
|
||||
<!--<ThoughtDef>
|
||||
<defName>SawHAR_AlienDating_Prohibited</defName>
|
||||
<Privacy_Please.SexActThoughtDef>
|
||||
<defName>SawInfidelity_Heartbreaking</defName>
|
||||
<durationDays>3</durationDays>
|
||||
<stackLimit>3</stackLimit>
|
||||
<hediff>Indignant</hediff>
|
||||
|
@ -15,10 +15,14 @@
|
|||
<baseMoodEffect>-15</baseMoodEffect>
|
||||
</li>
|
||||
</stages>
|
||||
</ThoughtDef>
|
||||
<nullifyingTraitDegrees>
|
||||
<Xenophobia>-1</Xenophobia>
|
||||
</nullifyingTraitDegrees>
|
||||
<reactionToSexAct>Outrage</reactionToSexAct>
|
||||
</Privacy_Please.SexActThoughtDef>
|
||||
|
||||
<ThoughtDef>
|
||||
<defName>SawHAR_AlienDating_Horrible</defName>
|
||||
<Privacy_Please.SexActThoughtDef>
|
||||
<defName>SawInfidelity_Disapproved</defName>
|
||||
<durationDays>3</durationDays>
|
||||
<stackLimit>3</stackLimit>
|
||||
<hediff>Disquiet</hediff>
|
||||
|
@ -30,10 +34,14 @@
|
|||
<baseMoodEffect>-10</baseMoodEffect>
|
||||
</li>
|
||||
</stages>
|
||||
</ThoughtDef>
|
||||
<nullifyingTraitDegrees>
|
||||
<Xenophobia>-1</Xenophobia>
|
||||
</nullifyingTraitDegrees>
|
||||
<reactionToSexAct>Discomfort</reactionToSexAct>
|
||||
</Privacy_Please.SexActThoughtDef>
|
||||
|
||||
<ThoughtDef>
|
||||
<defName>SawHAR_AlienDating_Acceptable</defName>
|
||||
<Privacy_Please.SexActThoughtDef>
|
||||
<defName>SawInfidelity_Acceptable</defName>
|
||||
<durationDays>3</durationDays>
|
||||
<stackLimit>3</stackLimit>
|
||||
<stackLimitForSameOtherPawn>1</stackLimitForSameOtherPawn>
|
||||
|
@ -44,14 +52,14 @@
|
|||
<baseMoodEffect>-4</baseMoodEffect>
|
||||
</li>
|
||||
</stages>
|
||||
<nullifyingPrecepts>
|
||||
<li>Exhibitionism_Acceptable</li>
|
||||
<li>Exhibitionism_Approved</li>
|
||||
<nullifyingPrecepts>
|
||||
</ThoughtDef>
|
||||
<nullifyingTraitDegrees>
|
||||
<Xenophobia>1</Xenophobia>
|
||||
</nullifyingTraitDegrees>
|
||||
<reactionToSexAct>Acceptance</reactionToSexAct>
|
||||
</Privacy_Please.SexActThoughtDef>
|
||||
|
||||
<ThoughtDef>
|
||||
<defName>SawHAR_AlienDating_Preferred</defName>
|
||||
<Privacy_Please.SexActThoughtDef>
|
||||
<defName>SawInfidelity_Approved</defName>
|
||||
<durationDays>3</durationDays>
|
||||
<stackLimit>3</stackLimit>
|
||||
<stackLimitForSameOtherPawn>1</stackLimitForSameOtherPawn>
|
||||
|
@ -62,20 +70,10 @@
|
|||
<baseMoodEffect>+1</baseMoodEffect>
|
||||
</li>
|
||||
</stages>
|
||||
</ThoughtDef>
|
||||
|
||||
<ThoughtDef>
|
||||
<defName>SawHAR_AlienDating_Know_Honorable</defName>
|
||||
<durationDays>3</durationDays>
|
||||
<stackLimit>3</stackLimit>
|
||||
<stackLimitForSameOtherPawn>1</stackLimitForSameOtherPawn>
|
||||
<stages>
|
||||
<li>
|
||||
<label>observed xenophilia</label>
|
||||
<description>A blending of species will make us stronger.</description>
|
||||
<baseMoodEffect>+2</baseMoodEffect>
|
||||
</li>
|
||||
</stages>
|
||||
</ThoughtDef>-->
|
||||
<nullifyingTraitDegrees>
|
||||
<Xenophobia>1</Xenophobia>
|
||||
</nullifyingTraitDegrees>
|
||||
<reactionToSexAct>Approval</reactionToSexAct>
|
||||
</Privacy_Please.SexActThoughtDef>
|
||||
|
||||
</Defs>
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
<Defs>
|
||||
|
||||
<ThoughtDef>
|
||||
<Privacy_Please.SexActThoughtDef>
|
||||
<defName>SawMasturbation_Abhorrent</defName>
|
||||
<durationDays>3</durationDays>
|
||||
<stackLimit>3</stackLimit>
|
||||
|
@ -15,9 +15,10 @@
|
|||
<baseMoodEffect>-15</baseMoodEffect>
|
||||
</li>
|
||||
</stages>
|
||||
</ThoughtDef>
|
||||
<reactionToSexAct>Outrage</reactionToSexAct>
|
||||
</Privacy_Please.SexActThoughtDef>
|
||||
|
||||
<ThoughtDef>
|
||||
<Privacy_Please.SexActThoughtDef>
|
||||
<defName>SawMasturbation_Disapproved</defName>
|
||||
<thoughtClass>Thought_Memory</thoughtClass>
|
||||
<durationDays>1.0</durationDays>
|
||||
|
@ -30,10 +31,39 @@
|
|||
<baseMoodEffect>-5</baseMoodEffect>
|
||||
</li>
|
||||
</stages>
|
||||
<nullifyingPrecepts>
|
||||
<li>Exhibitionism_Acceptable</li>
|
||||
<li>Exhibitionism_Approved</li>
|
||||
</nullifyingPrecepts>
|
||||
</ThoughtDef>
|
||||
<reactionToSexAct>Discomfort</reactionToSexAct>
|
||||
</Privacy_Please.SexActThoughtDef>
|
||||
|
||||
<Privacy_Please.SexActThoughtDef>
|
||||
<defName>SawMasturbation_Acceptable</defName>
|
||||
<thoughtClass>Thought_Memory</thoughtClass>
|
||||
<durationDays>1.0</durationDays>
|
||||
<stackLimit>1</stackLimit>
|
||||
<stackedEffectMultiplier>0.5</stackedEffectMultiplier>
|
||||
<stages>
|
||||
<li>
|
||||
<label>saw someone masturbatin'</label>
|
||||
<description>Argh! I'm so sorry!</description>
|
||||
<baseMoodEffect>-5</baseMoodEffect>
|
||||
</li>
|
||||
</stages>
|
||||
<reactionToSexAct>Acceptance</reactionToSexAct>
|
||||
</Privacy_Please.SexActThoughtDef>
|
||||
|
||||
<Privacy_Please.SexActThoughtDef>
|
||||
<defName>SawMasturbation_Approved</defName>
|
||||
<thoughtClass>Thought_Memory</thoughtClass>
|
||||
<durationDays>1.0</durationDays>
|
||||
<stackLimit>1</stackLimit>
|
||||
<stackedEffectMultiplier>0.5</stackedEffectMultiplier>
|
||||
<stages>
|
||||
<li>
|
||||
<label>saw someone masturbatin'</label>
|
||||
<description>Argh! I'm so sorry!</description>
|
||||
<baseMoodEffect>-5</baseMoodEffect>
|
||||
</li>
|
||||
</stages>
|
||||
<reactionToSexAct>Approval</reactionToSexAct>
|
||||
</Privacy_Please.SexActThoughtDef>
|
||||
|
||||
</Defs>
|
||||
|
|
|
@ -2,14 +2,10 @@
|
|||
|
||||
<Defs>
|
||||
|
||||
<ThoughtDef>
|
||||
<Privacy_Please.SexActThoughtDef>
|
||||
<defName>SawNecrophilia_Abhorrent</defName>
|
||||
<durationDays>3</durationDays>
|
||||
<stackLimit>3</stackLimit>
|
||||
<nullifyingTraits>
|
||||
<li>Necrophiliac</li>
|
||||
</nullifyingTraits>
|
||||
<hediff>Nauseated</hediff>
|
||||
<stackLimitForSameOtherPawn>1</stackLimitForSameOtherPawn>
|
||||
<stages>
|
||||
<li>
|
||||
|
@ -18,16 +14,16 @@
|
|||
<baseMoodEffect>-20</baseMoodEffect>
|
||||
</li>
|
||||
</stages>
|
||||
</ThoughtDef>
|
||||
|
||||
<ThoughtDef>
|
||||
<defName>SawNecrophilia_Horrible</defName>
|
||||
<durationDays>3</durationDays>
|
||||
<stackLimit>3</stackLimit>
|
||||
<nullifyingTraits>
|
||||
<li>Necrophiliac</li>
|
||||
</nullifyingTraits>
|
||||
<hediff>Disquiet</hediff>
|
||||
<reactionToSexAct>Outrage</reactionToSexAct>
|
||||
</Privacy_Please.SexActThoughtDef>
|
||||
|
||||
<Privacy_Please.SexActThoughtDef>
|
||||
<defName>SawNecrophilia_Horrible</defName>
|
||||
<durationDays>3</durationDays>
|
||||
<stackLimit>3</stackLimit>
|
||||
<stackLimitForSameOtherPawn>1</stackLimitForSameOtherPawn>
|
||||
<stages>
|
||||
<li>
|
||||
|
@ -36,16 +32,16 @@
|
|||
<baseMoodEffect>-15</baseMoodEffect>
|
||||
</li>
|
||||
</stages>
|
||||
</ThoughtDef>
|
||||
|
||||
<ThoughtDef>
|
||||
<defName>SawNecrophilia_Disapproved</defName>
|
||||
<durationDays>3</durationDays>
|
||||
<stackLimit>3</stackLimit>
|
||||
<nullifyingTraits>
|
||||
<li>Necrophiliac</li>
|
||||
</nullifyingTraits>
|
||||
<hediff>Disquiet</hediff>
|
||||
<reactionToSexAct>Discomfort</reactionToSexAct>
|
||||
</Privacy_Please.SexActThoughtDef>
|
||||
|
||||
<Privacy_Please.SexActThoughtDef>
|
||||
<defName>SawNecrophilia_Disapproved</defName>
|
||||
<durationDays>3</durationDays>
|
||||
<stackLimit>3</stackLimit>
|
||||
<stackLimitForSameOtherPawn>1</stackLimitForSameOtherPawn>
|
||||
<stages>
|
||||
<li>
|
||||
|
@ -54,9 +50,13 @@
|
|||
<baseMoodEffect>-10</baseMoodEffect>
|
||||
</li>
|
||||
</stages>
|
||||
</ThoughtDef>
|
||||
<nullifyingTraits>
|
||||
<li>Necrophiliac</li>
|
||||
</nullifyingTraits>
|
||||
<reactionToSexAct>Discomfort</reactionToSexAct>
|
||||
</Privacy_Please.SexActThoughtDef>
|
||||
|
||||
<ThoughtDef>
|
||||
<Privacy_Please.SexActThoughtDef>
|
||||
<defName>SawNecrophilia_Acceptable</defName>
|
||||
<durationDays>3</durationDays>
|
||||
<stackLimit>3</stackLimit>
|
||||
|
@ -68,13 +68,13 @@
|
|||
<baseMoodEffect>-4</baseMoodEffect>
|
||||
</li>
|
||||
</stages>
|
||||
<nullifyingPrecepts>
|
||||
<li>Exhibitionism_Acceptable</li>
|
||||
<li>Exhibitionism_Approved</li>
|
||||
</nullifyingPrecepts>
|
||||
</ThoughtDef>
|
||||
<nullifyingTraits>
|
||||
<li>Necrophiliac</li>
|
||||
</nullifyingTraits>
|
||||
<reactionToSexAct>Acceptance</reactionToSexAct>
|
||||
</Privacy_Please.SexActThoughtDef>
|
||||
|
||||
<ThoughtDef>
|
||||
<Privacy_Please.SexActThoughtDef>
|
||||
<defName>SawNecrophilia_Honorable</defName>
|
||||
<durationDays>3</durationDays>
|
||||
<stackLimit>3</stackLimit>
|
||||
|
@ -86,6 +86,7 @@
|
|||
<baseMoodEffect>+2</baseMoodEffect>
|
||||
</li>
|
||||
</stages>
|
||||
</ThoughtDef>
|
||||
<reactionToSexAct>Approval</reactionToSexAct>
|
||||
</Privacy_Please.SexActThoughtDef>
|
||||
|
||||
</Defs>
|
||||
|
|
|
@ -2,14 +2,10 @@
|
|||
|
||||
<Defs>
|
||||
|
||||
<ThoughtDef>
|
||||
<Privacy_Please.SexActThoughtDef>
|
||||
<defName>SawRape_Abhorrent</defName>
|
||||
<durationDays>3</durationDays>
|
||||
<stackLimit>3</stackLimit>
|
||||
<nullifyingTraits>
|
||||
<li>Rapist</li>
|
||||
</nullifyingTraits>
|
||||
<hediff>Panicked</hediff>
|
||||
<stackLimitForSameOtherPawn>1</stackLimitForSameOtherPawn>
|
||||
<stages>
|
||||
<li>
|
||||
|
@ -18,16 +14,16 @@
|
|||
<baseMoodEffect>-20</baseMoodEffect>
|
||||
</li>
|
||||
</stages>
|
||||
</ThoughtDef>
|
||||
|
||||
<ThoughtDef>
|
||||
<defName>SawRape_Horrible</defName>
|
||||
<durationDays>3</durationDays>
|
||||
<stackLimit>3</stackLimit>
|
||||
<nullifyingTraits>
|
||||
<li>Rapist</li>
|
||||
</nullifyingTraits>
|
||||
<hediff>Disquiet</hediff>
|
||||
<reactionToSexAct>Outrage</reactionToSexAct>
|
||||
</Privacy_Please.SexActThoughtDef>
|
||||
|
||||
<Privacy_Please.SexActThoughtDef>
|
||||
<defName>SawRape_Horrible</defName>
|
||||
<durationDays>3</durationDays>
|
||||
<stackLimit>3</stackLimit>
|
||||
<stackLimitForSameOtherPawn>1</stackLimitForSameOtherPawn>
|
||||
<stages>
|
||||
<li>
|
||||
|
@ -36,27 +32,31 @@
|
|||
<baseMoodEffect>-15</baseMoodEffect>
|
||||
</li>
|
||||
</stages>
|
||||
</ThoughtDef>
|
||||
|
||||
<ThoughtDef>
|
||||
<defName>SawRape_Disapproved</defName>
|
||||
<durationDays>3</durationDays>
|
||||
<stackLimit>3</stackLimit>
|
||||
<nullifyingTraits>
|
||||
<li>Rapist</li>
|
||||
</nullifyingTraits>
|
||||
<hediff>Disquiet</hediff>
|
||||
<reactionToSexAct>Discomfort</reactionToSexAct>
|
||||
</Privacy_Please.SexActThoughtDef>
|
||||
|
||||
<Privacy_Please.SexActThoughtDef>
|
||||
<defName>SawRape_Disapproved</defName>
|
||||
<durationDays>3</durationDays>
|
||||
<stackLimit>3</stackLimit>
|
||||
<stackLimitForSameOtherPawn>1</stackLimitForSameOtherPawn>
|
||||
<stages>
|
||||
<li>
|
||||
<label>witnessed rape</label>
|
||||
<description>Is this what life is going to be here?</description>
|
||||
<description>Is this what life is going to be like here?</description>
|
||||
<baseMoodEffect>-10</baseMoodEffect>
|
||||
</li>
|
||||
</stages>
|
||||
</ThoughtDef>
|
||||
<nullifyingTraits>
|
||||
<li>Rapist</li>
|
||||
</nullifyingTraits>
|
||||
<reactionToSexAct>Discomfort</reactionToSexAct>
|
||||
</Privacy_Please.SexActThoughtDef>
|
||||
|
||||
<ThoughtDef>
|
||||
<Privacy_Please.SexActThoughtDef>
|
||||
<defName>SawRape_Acceptable</defName>
|
||||
<durationDays>3</durationDays>
|
||||
<stackLimit>3</stackLimit>
|
||||
|
@ -68,13 +68,13 @@
|
|||
<baseMoodEffect>-4</baseMoodEffect>
|
||||
</li>
|
||||
</stages>
|
||||
<nullifyingPrecepts>
|
||||
<li>Exhibitionism_Acceptable</li>
|
||||
<li>Exhibitionism_Approved</li>
|
||||
</nullifyingPrecepts>
|
||||
</ThoughtDef>
|
||||
<nullifyingTraits>
|
||||
<li>Rapist</li>
|
||||
</nullifyingTraits>
|
||||
<reactionToSexAct>Acceptance</reactionToSexAct>
|
||||
</Privacy_Please.SexActThoughtDef>
|
||||
|
||||
<ThoughtDef>
|
||||
<Privacy_Please.SexActThoughtDef>
|
||||
<defName>SawRape_Honorable</defName>
|
||||
<durationDays>3</durationDays>
|
||||
<stackLimit>3</stackLimit>
|
||||
|
@ -86,6 +86,7 @@
|
|||
<baseMoodEffect>+2</baseMoodEffect>
|
||||
</li>
|
||||
</stages>
|
||||
</ThoughtDef>
|
||||
<reactionToSexAct>Approval</reactionToSexAct>
|
||||
</Privacy_Please.SexActThoughtDef>
|
||||
|
||||
</Defs>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
<Defs>
|
||||
|
||||
<ThoughtDef>
|
||||
<Privacy_Please.SexActThoughtDef>
|
||||
<defName>SawHAR_AlienDating_Prohibited</defName>
|
||||
<durationDays>3</durationDays>
|
||||
<stackLimit>3</stackLimit>
|
||||
|
@ -15,9 +15,13 @@
|
|||
<baseMoodEffect>-15</baseMoodEffect>
|
||||
</li>
|
||||
</stages>
|
||||
</ThoughtDef>
|
||||
<nullifyingTraitDegrees>
|
||||
<Xenophobia>-1</Xenophobia>
|
||||
</nullifyingTraitDegrees>
|
||||
<reactionToSexAct>Outrage</reactionToSexAct>
|
||||
</Privacy_Please.SexActThoughtDef>
|
||||
|
||||
<ThoughtDef>
|
||||
<Privacy_Please.SexActThoughtDef>
|
||||
<defName>SawHAR_AlienDating_Horrible</defName>
|
||||
<durationDays>3</durationDays>
|
||||
<stackLimit>3</stackLimit>
|
||||
|
@ -30,9 +34,13 @@
|
|||
<baseMoodEffect>-10</baseMoodEffect>
|
||||
</li>
|
||||
</stages>
|
||||
</ThoughtDef>
|
||||
<nullifyingTraitDegrees>
|
||||
<Xenophobia>-1</Xenophobia>
|
||||
</nullifyingTraitDegrees>
|
||||
<reactionToSexAct>Discomfort</reactionToSexAct>
|
||||
</Privacy_Please.SexActThoughtDef>
|
||||
|
||||
<ThoughtDef>
|
||||
<Privacy_Please.SexActThoughtDef>
|
||||
<defName>SawHAR_AlienDating_Acceptable</defName>
|
||||
<durationDays>3</durationDays>
|
||||
<stackLimit>3</stackLimit>
|
||||
|
@ -44,13 +52,13 @@
|
|||
<baseMoodEffect>-4</baseMoodEffect>
|
||||
</li>
|
||||
</stages>
|
||||
<nullifyingPrecepts>
|
||||
<li>Exhibitionism_Acceptable</li>
|
||||
<li>Exhibitionism_Approved</li>
|
||||
</nullifyingPrecepts>
|
||||
</ThoughtDef>
|
||||
<nullifyingTraitDegrees>
|
||||
<Xenophobia>1</Xenophobia>
|
||||
</nullifyingTraitDegrees>
|
||||
<reactionToSexAct>Acceptance</reactionToSexAct>
|
||||
</Privacy_Please.SexActThoughtDef>
|
||||
|
||||
<ThoughtDef>
|
||||
<Privacy_Please.SexActThoughtDef>
|
||||
<defName>SawHAR_AlienDating_Preferred</defName>
|
||||
<durationDays>3</durationDays>
|
||||
<stackLimit>3</stackLimit>
|
||||
|
@ -62,9 +70,13 @@
|
|||
<baseMoodEffect>+1</baseMoodEffect>
|
||||
</li>
|
||||
</stages>
|
||||
</ThoughtDef>
|
||||
<nullifyingTraitDegrees>
|
||||
<Xenophobia>1</Xenophobia>
|
||||
</nullifyingTraitDegrees>
|
||||
<reactionToSexAct>Approval</reactionToSexAct>
|
||||
</Privacy_Please.SexActThoughtDef>
|
||||
|
||||
<ThoughtDef>
|
||||
<Privacy_Please.SexActThoughtDef>
|
||||
<defName>SawHAR_AlienDating_Know_Honorable</defName>
|
||||
<durationDays>3</durationDays>
|
||||
<stackLimit>3</stackLimit>
|
||||
|
@ -76,6 +88,10 @@
|
|||
<baseMoodEffect>+2</baseMoodEffect>
|
||||
</li>
|
||||
</stages>
|
||||
</ThoughtDef>
|
||||
<nullifyingTraitDegrees>
|
||||
<Xenophobia>1</Xenophobia>
|
||||
</nullifyingTraitDegrees>
|
||||
<reactionToSexAct>Approval</reactionToSexAct>
|
||||
</Privacy_Please.SexActThoughtDef>
|
||||
|
||||
</Defs>
|
||||
|
|
59
Defs/junk.txt
Normal file
59
Defs/junk.txt
Normal file
|
@ -0,0 +1,59 @@
|
|||
bool isXenophobe = pawn.HasTrait("Xenophobia") && pawn.story.traits.DegreeOfTrait(DefDatabase<TraitDef>.GetNamedSilentFail("Xenophobia")) > 0;
|
||||
bool isXenophile = pawn.HasTrait("Xenophobia") && pawn.story.traits.DegreeOfTrait(DefDatabase<TraitDef>.GetNamedSilentFail("Xenophobia")) < 0;
|
||||
|
||||
public static ThoughtDef GetThoughtsAboutSexAct(Pawn pawn, JobDriver_Sex jobDriver, out Precept precept)
|
||||
{
|
||||
ThoughtDef thoughtDef = null;
|
||||
precept = null;
|
||||
|
||||
if (pawn == null || jobDriver == null) return null;
|
||||
if (BasicSettings.slavesIgnoreSex && (pawn.IsPrisoner || pawn.IsSlave)) return null;
|
||||
if (BasicSettings.otherFactionsIgnoreSex && pawn.Faction.IsPlayer == false) return null;
|
||||
|
||||
|
||||
if (BasicSettings.worryAboutNecro && sexIsNecro && xxx.is_necrophiliac(pawn) == false)
|
||||
{
|
||||
thoughtDef = xxx.is_necrophiliac(pawn) ? DefDatabase<ThoughtDef>.GetNamedSilentFail("SawNecrophilia_Honorable") :
|
||||
pawn.HasPreceptForIssue("Necrophilia", out precept) ? DefDatabase<ThoughtDef>.GetNamedSilentFail("Saw" + precept.def.defName) :
|
||||
DefDatabase<ThoughtDef>.GetNamedSilentFail("SawNecrophilia_Abhorrent");
|
||||
}
|
||||
|
||||
else if (BasicSettings.worryAboutBeastiality && sexIsBeastial)
|
||||
{
|
||||
thoughtDef = xxx.is_zoophile(pawn) ? DefDatabase<ThoughtDef>.GetNamedSilentFail("SawBeastility_Honorable") :
|
||||
pawn.HasPreceptForIssue("Beastility", out precept) ? DefDatabase<ThoughtDef>.GetNamedSilentFail("Saw" + precept.def.defName) :
|
||||
DefDatabase<ThoughtDef>.GetNamedSilentFail("SawBeastility_Abhorrent");
|
||||
}
|
||||
|
||||
else if (BasicSettings.worryAboutRape && BasicSettings.ignoreSlaveRape == false && sexIsSlaveRape)
|
||||
{
|
||||
thoughtDef = xxx.is_rapist(pawn) ? DefDatabase<ThoughtDef>.GetNamedSilentFail("SawRape_Honorable") :
|
||||
pawn.HasPreceptForIssue("Rape", out precept) ? DefDatabase<ThoughtDef>.GetNamedSilentFail("Saw" + precept.def.defName) :
|
||||
DefDatabase<ThoughtDef>.GetNamedSilentFail("SawRape_Abhorrent");
|
||||
}
|
||||
|
||||
else if (BasicSettings.worryAboutRape && sexIsRape)
|
||||
{
|
||||
thoughtDef = xxx.is_rapist(pawn) ? DefDatabase<ThoughtDef>.GetNamedSilentFail("SawRape_Honorable") :
|
||||
pawn.HasPreceptForIssue("Rape", out precept) ? DefDatabase<ThoughtDef>.GetNamedSilentFail("Saw" + precept.def.defName) :
|
||||
DefDatabase<ThoughtDef>.GetNamedSilentFail("SawRape_Abhorrent");
|
||||
}
|
||||
|
||||
else if (BasicSettings.worryAboutXeno && sexIsXeno)
|
||||
{
|
||||
thoughtDef = isXenophobe ? DefDatabase<ThoughtDef>.GetNamedSilentFail("SawHAR_AlienDating_Prohibited") :
|
||||
isXenophile ? DefDatabase<ThoughtDef>.GetNamedSilentFail("SawHAR_AlienDating_Honorable") :
|
||||
pawn.HasPreceptForIssue("HAR_AlienDating", out precept) ? DefDatabase<ThoughtDef>.GetNamedSilentFail("Saw" + precept.def.defName) :
|
||||
DefDatabase<ThoughtDef>.GetNamedSilentFail("SawHAR_AlienDating_Acceptable");
|
||||
}
|
||||
|
||||
else if (BasicSettings.worryAboutMasturbation && sexIsSolo)
|
||||
{
|
||||
thoughtDef = pawn.HasPreceptForIssue("Masturbation", out precept) ? DefDatabase<ThoughtDef>.GetNamedSilentFail("Saw" + precept.def.defName) :
|
||||
DefDatabase<ThoughtDef>.GetNamedSilentFail("SawMasturbation_Disapproved");
|
||||
}
|
||||
|
||||
DebugMode.Message("Sex job is: " + jobDriver + " Issue is: " + (precept?.def?.issue?.defName).ToStringSafe() + " Opinion is: " + (precept?.def?.defName).ToStringSafe() + " Thought is: " + (thoughtDef?.defName).ToStringSafe());
|
||||
|
||||
return thoughtDef;
|
||||
}
|
Binary file not shown.
BIN
Source/.vs/SourceCode/v16/.suo
Normal file
BIN
Source/.vs/SourceCode/v16/.suo
Normal file
Binary file not shown.
105
Source/Scripts/Defs/SexActReactionDef.cs
Normal file
105
Source/Scripts/Defs/SexActReactionDef.cs
Normal file
|
@ -0,0 +1,105 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Verse;
|
||||
using RimWorld;
|
||||
using rjw;
|
||||
|
||||
namespace Privacy_Please
|
||||
{
|
||||
public class SexActReactionDef : Def
|
||||
{
|
||||
public string issueDefName;
|
||||
public string sexActCheck;
|
||||
public SubSexActReactionDef pawnReaction;
|
||||
public SubSexActReactionDef witnessReaction;
|
||||
|
||||
private IssueDef _issueDef;
|
||||
private bool _checkedForIssueDef;
|
||||
|
||||
public IssueDef issueDef
|
||||
{
|
||||
get
|
||||
{
|
||||
if (_checkedForIssueDef == false)
|
||||
{ _issueDef = DefDatabase<IssueDef>.GetNamedSilentFail(issueDefName); _checkedForIssueDef = true; }
|
||||
|
||||
return _issueDef;
|
||||
}
|
||||
}
|
||||
|
||||
public class SubSexActReactionDef
|
||||
{
|
||||
public SexActThoughtDef defaultThoughtDef;
|
||||
public List<SexActThoughtDef> associatedThoughtDefs;
|
||||
public List<ReplacementThought> replacementThoughts;
|
||||
}
|
||||
|
||||
public class ReplacementThought
|
||||
{
|
||||
public List<TraitRequirement> requiredTraits;
|
||||
public string requiredQuirk;
|
||||
public SexActThoughtDef replacementThoughtDef;
|
||||
}
|
||||
|
||||
public ReactionToSexAct DetermineReactionOfPawns(Pawn pawn, Pawn witness, bool applyThoughtDefs)
|
||||
{
|
||||
DetermineReactionOfPawn(pawn, witness, pawnReaction, applyThoughtDefs);
|
||||
ReactionToSexAct reactionToSexAct = DetermineReactionOfPawn(witness, pawn, witnessReaction, applyThoughtDefs);
|
||||
|
||||
return reactionToSexAct;
|
||||
}
|
||||
|
||||
public ReactionToSexAct DetermineReactionOfPawn(Pawn reactor, Pawn otherPawn, SubSexActReactionDef reaction, bool applyThoughtDef)
|
||||
{
|
||||
SexActThoughtDef thoughtDef = GetThoughtDefForReactor(reactor, reaction, out Precept precept);
|
||||
ReactionToSexAct reactionToSexAct = thoughtDef.reactionToSexAct;
|
||||
|
||||
if (applyThoughtDef)
|
||||
{ reactor.needs.mood.thoughts.memories.TryGainMemory(thoughtDef, otherPawn, precept); }
|
||||
|
||||
var nullifyingTraits = ThoughtUtility.GetNullifyingTraits(thoughtDef)?.ToList();
|
||||
|
||||
if (thoughtDef.stages[0].baseMoodEffect < 0 && nullifyingTraits?.Any(x => x.HasTrait(reactor)) != true)
|
||||
{ reactor.TryGetComp<CompPawnThoughtData>()?.TryToExclaim(); }
|
||||
|
||||
return reactionToSexAct;
|
||||
}
|
||||
|
||||
private SexActThoughtDef GetThoughtDefForReactor(Pawn reactor, SubSexActReactionDef reaction, out Precept precept)
|
||||
{
|
||||
precept = null;
|
||||
|
||||
if (reactor == null || reaction == null) return null;
|
||||
|
||||
if (reaction.replacementThoughts.NullOrEmpty() == false)
|
||||
{
|
||||
foreach (ReplacementThought replacementThought in reaction.replacementThoughts)
|
||||
{
|
||||
if (replacementThought?.requiredTraits.Any(x => x.HasTrait(reactor)) == true)
|
||||
{ return replacementThought.replacementThoughtDef; }
|
||||
|
||||
if (replacementThought.requiredQuirk != null && xxx.has_quirk(reactor, replacementThought.requiredQuirk))
|
||||
{ return replacementThought.replacementThoughtDef; }
|
||||
}
|
||||
}
|
||||
|
||||
precept = reactor.GetPreceptForIssue(issueDef);
|
||||
|
||||
if (precept != null && reaction.associatedThoughtDefs.NullOrEmpty() == false)
|
||||
{
|
||||
string thoughtDefName = precept.def.defName;
|
||||
|
||||
foreach (SexActThoughtDef associatedThoughtDef in reaction.associatedThoughtDefs)
|
||||
{
|
||||
if (associatedThoughtDef.defName.Contains(thoughtDefName))
|
||||
{ return associatedThoughtDef; }
|
||||
}
|
||||
}
|
||||
|
||||
return reaction.defaultThoughtDef;
|
||||
}
|
||||
}
|
||||
}
|
14
Source/Scripts/Defs/SexActThoughtDef.cs
Normal file
14
Source/Scripts/Defs/SexActThoughtDef.cs
Normal file
|
@ -0,0 +1,14 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using RimWorld;
|
||||
|
||||
namespace Privacy_Please
|
||||
{
|
||||
public class SexActThoughtDef : ThoughtDef
|
||||
{
|
||||
public ReactionToSexAct reactionToSexAct = ReactionToSexAct.Acceptance;
|
||||
}
|
||||
}
|
|
@ -11,19 +11,19 @@ using HarmonyLib;
|
|||
|
||||
namespace Privacy_Please
|
||||
{
|
||||
public static class PawnExtension
|
||||
{
|
||||
public static bool IsInBed(this Pawn pawn, out Building bed)
|
||||
{
|
||||
public static class PawnExtension
|
||||
{
|
||||
public static bool IsInBed(this Pawn pawn, out Building bed)
|
||||
{
|
||||
bed = pawn.Position.GetThingList(pawn.Map).FirstOrDefault(x => x is Building_Bed) as Building;
|
||||
return bed != null;
|
||||
}
|
||||
|
||||
public static bool IsSeated(this Pawn pawn, out Building seat)
|
||||
{
|
||||
public static bool IsSeated(this Pawn pawn, out Building seat)
|
||||
{
|
||||
seat = pawn.Position.GetThingList(pawn.Map).FirstOrDefault(x => x is Building && x.def.building.isSittable) as Building;
|
||||
return seat != null;
|
||||
}
|
||||
}
|
||||
|
||||
public static bool IsHavingSex(this Pawn pawn)
|
||||
{
|
||||
|
@ -119,121 +119,23 @@ namespace Privacy_Please
|
|||
return lovers.Any(x => x.otherPawn == other);
|
||||
}
|
||||
|
||||
public static bool HasPrivacy(this Pawn pawn, float radius)
|
||||
//public static bool GetThoughtOnIssue(this Pawn pawn, string issueDefName, out Precept precept)
|
||||
//{
|
||||
|
||||
//}
|
||||
|
||||
public static Precept GetPreceptForIssue(this Pawn pawn, IssueDef issueDef)
|
||||
{
|
||||
if (pawn.UnworriedAboutHumanSex() == false)
|
||||
{ return true; }
|
||||
if (issueDef == null || pawn?.Ideo == null)
|
||||
{ return null; }
|
||||
|
||||
if (pawn.IsHavingSex() == false && pawn.IsMasturbating() == false)
|
||||
{ return true; }
|
||||
|
||||
if (pawn.GetLord() != null && (pawn.GetLord().LordJob is LordJob_Ritual || pawn.GetLord().LordJob is LordJob_Joinable_Party) && BasicSettings.ignoreRitualAndPartySex)
|
||||
{ return true; }
|
||||
|
||||
bool hasPrivacy = true;
|
||||
pawn.IsInBed(out Building bed);
|
||||
|
||||
foreach (Thing thing in GenRadial.RadialDistinctThingsAround(pawn.Position, pawn.Map, radius, true))
|
||||
foreach (Precept precept in pawn.Ideo.PreceptsListForReading)
|
||||
{
|
||||
Pawn witness = thing as Pawn;
|
||||
if (witness == null) continue;
|
||||
|
||||
// Caught having sex
|
||||
if (SexInteractionUtility.PawnCaughtLovinByWitness(pawn, witness))
|
||||
{
|
||||
// Try to invite intruder to join in
|
||||
if (SexInteractionUtility.InvitePasserbyForSex(pawn, witness, out bool brokeTaboo))
|
||||
{
|
||||
if (pawn.IsMasturbating())
|
||||
{
|
||||
if (bed == null)
|
||||
{
|
||||
Job job = new Job(xxx.quick_sex, pawn);
|
||||
witness.jobs.TryTakeOrderedJob(job);
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
Job job = new Job(xxx.casual_sex, pawn, bed);
|
||||
witness.jobs.TryTakeOrderedJob(job);
|
||||
}
|
||||
}
|
||||
|
||||
else if (pawn.GetSexReceiver() != null)
|
||||
{
|
||||
Job job = new Job(DefDatabase<JobDef>.GetNamed("JoinInSex", false), pawn.GetSexReceiver(), bed);
|
||||
witness.jobs.TryTakeOrderedJob(job);
|
||||
}
|
||||
}
|
||||
|
||||
// Voyeurs and cuckolds like to watch
|
||||
else if (CasualSex_Helper.CanHaveSex(witness) && xxx.IsTargetPawnOkay(witness) &&
|
||||
(xxx.has_quirk(witness, "Voyeur") || (xxx.has_quirk(witness, "Cuckold") && SexInteractionUtility.SexParticipantsIncludesACheatingPartner(witness, pawn.GetAllSexParticipants()))))
|
||||
{
|
||||
Job job = new Job(DefDatabase<JobDef>.GetNamed("WatchSex", false), pawn.GetSexReceiver(), bed);
|
||||
witness.jobs.TryTakeOrderedJob(job);
|
||||
}
|
||||
|
||||
// Do nothing if witness is a lover and no taboo was not broken
|
||||
else if (brokeTaboo == false && witness.IsLoverOfOther(pawn))
|
||||
{ }
|
||||
|
||||
// Privacy was breached
|
||||
else
|
||||
{ hasPrivacy = false; }
|
||||
}
|
||||
if (precept.def.issue == issueDef)
|
||||
{ return precept; }
|
||||
}
|
||||
|
||||
return BasicSettings.needPrivacy == false ||
|
||||
hasPrivacy ||
|
||||
xxx.has_quirk(pawn, "Exhibitionist") ||
|
||||
pawn?.ideo?.Ideo.HasPrecept(ModPreceptDefOf.Exhibitionism_Acceptable) == true ||
|
||||
pawn?.ideo?.Ideo.HasPrecept(ModPreceptDefOf.Exhibitionism_Approved) == true;
|
||||
}
|
||||
|
||||
public static bool HasPreceptForIssue(this Pawn pawn, string issueDefName, out Precept precept)
|
||||
{
|
||||
precept = null;
|
||||
|
||||
if (pawn?.Ideo == null)
|
||||
{ return false; }
|
||||
|
||||
foreach (Precept _precept in pawn.Ideo.PreceptsListForReading)
|
||||
{
|
||||
if (_precept.def.issue.defName == issueDefName)
|
||||
{
|
||||
precept = _precept;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
public static bool EnjoysViolence(this Pawn pawn)
|
||||
{
|
||||
if (pawn.IsAnimal() || pawn.RaceProps.IsMechanoid)
|
||||
{ return true; }
|
||||
|
||||
if (pawn?.story?.traits?.allTraits == null || pawn?.story?.traits?.allTraits.NullOrEmpty() == true)
|
||||
{ return false; }
|
||||
|
||||
List<string> traits = new List<string>() { "Brawler", "Psychopath", "Bloodlust" };
|
||||
|
||||
return pawn.story.traits.allTraits.Any(x => traits.Contains(x.def.defName));
|
||||
}
|
||||
|
||||
public static bool DislikesViolence(this Pawn pawn)
|
||||
{
|
||||
if (pawn.IsAnimal() || pawn.RaceProps.IsMechanoid)
|
||||
{ return false; }
|
||||
|
||||
if (pawn?.story?.traits?.allTraits == null || pawn?.story?.traits?.allTraits.NullOrEmpty() == true)
|
||||
{ return false; }
|
||||
|
||||
List<string> traits = new List<string>() { "Kind", "Wimp" };
|
||||
|
||||
return pawn.WorkTagIsDisabled(WorkTags.Violent) || pawn.story.traits.allTraits.Any(x => traits.Contains(x.def.defName));
|
||||
return null;
|
||||
}
|
||||
|
||||
public static bool HasTrait(this Pawn pawn, string trait)
|
||||
|
@ -260,14 +162,45 @@ namespace Privacy_Please
|
|||
return pawn.story.traits.HasTrait(traitDef);
|
||||
}
|
||||
|
||||
public static bool UnworriedAboutHumanSex(this Pawn pawn)
|
||||
public static bool IsUnfazedBySex(this Pawn pawn)
|
||||
{
|
||||
return (pawn.Dead ||
|
||||
if (pawn.Dead ||
|
||||
pawn.AnimalOrWildMan() ||
|
||||
pawn.RaceProps.IsMechanoid ||
|
||||
pawn.Awake() == false ||
|
||||
pawn.Suspended == false ||
|
||||
(pawn.Faction != null && pawn.Faction.HostileTo(Faction.OfPlayer))) == false;
|
||||
pawn.Suspended)
|
||||
{ return true; }
|
||||
|
||||
if (BasicSettings.slavesIgnoreSex && (pawn.IsPrisoner || pawn.IsSlave)) return true;
|
||||
if (BasicSettings.otherFactionsIgnoreSex && pawn.Faction.IsPlayer == false) return true;
|
||||
if (pawn.Faction.HostileTo(Faction.OfPlayer)) return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
public static bool IsPartOfRitualOrGathering(this Pawn pawn)
|
||||
{
|
||||
return pawn.GetLord() != null && (pawn.GetLord().LordJob is LordJob_Ritual || pawn.GetLord().LordJob is LordJob_Joinable_Party);
|
||||
}
|
||||
|
||||
public static bool IsVictim(this Pawn pawn)
|
||||
{
|
||||
return pawn.CurJob.def == xxx.gettin_raped || pawn.Dead;
|
||||
}
|
||||
|
||||
public static bool IsExhibitionist(this Pawn pawn)
|
||||
{
|
||||
return xxx.has_quirk(pawn, "Exhibitionist") || pawn?.ideo?.Ideo.HasPrecept(ModPreceptDefOf.Exhibitionism_Approved) == true;
|
||||
}
|
||||
|
||||
public static bool IsVoyeur(this Pawn pawn)
|
||||
{
|
||||
return xxx.has_quirk(pawn, "Voyeur");
|
||||
}
|
||||
|
||||
public static bool IsCuckold(this Pawn pawn)
|
||||
{
|
||||
return xxx.has_quirk(pawn, "Cuckold");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -15,7 +15,7 @@ namespace Privacy_Please
|
|||
{
|
||||
static Harmony_PatchAll()
|
||||
{
|
||||
Harmony harmony = new Harmony("Rimworld_Animations_Patch");
|
||||
Harmony harmony = new Harmony("Privacy_Please");
|
||||
harmony.PatchAll(Assembly.GetExecutingAssembly());
|
||||
|
||||
// Add quirks to game
|
||||
|
@ -24,6 +24,8 @@ namespace Privacy_Please
|
|||
|
||||
Quirk cuckold = new Quirk("Cuckold", "CuckoldQuirk");
|
||||
Quirk.All.AddDistinct(cuckold);
|
||||
|
||||
DebugMode.Message("Added RJW quirks");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -31,7 +31,7 @@ namespace Privacy_Please
|
|||
foreach (Thing thing in GenRadial.RadialDistinctThingsAround(pawn.Position, pawn.Map, radius, true))
|
||||
{
|
||||
Pawn other = thing as Pawn;
|
||||
ThoughtDef thoughtDef = SexInteractionUtility.GetThoughtsAboutSexAct(other, __instance, out Precept precept);
|
||||
ThoughtDef thoughtDef = null; // SexInteractionUtility.GetThoughtsAboutSexAct(other, __instance, out Precept precept);
|
||||
|
||||
// Find candidates to invite
|
||||
if (other != null && thoughtDef?.hediff == null && SexInteractionUtility.CouldInvitePasserbyForSex(other, pawn.GetAllSexParticipants()))
|
||||
|
@ -64,7 +64,7 @@ namespace Privacy_Please
|
|||
{
|
||||
if (pawn.IsHashIntervalTick(90))
|
||||
{
|
||||
if (pawn.IsMasturbating() && pawn.HasPrivacy(8f) == false)
|
||||
if (pawn.IsMasturbating() && PrivacyUtility.PawnHasPrivacy(pawn, 8f) == false)
|
||||
{ pawn.jobs.EndCurrentJob(JobCondition.InterruptForced, false, false); }
|
||||
|
||||
else if (pawn.IsHavingSex())
|
||||
|
@ -74,7 +74,7 @@ namespace Privacy_Please
|
|||
|
||||
foreach (Pawn participant in participants)
|
||||
{
|
||||
if (participant.HasPrivacy(8f) == false)
|
||||
if (PrivacyUtility.PawnHasPrivacy(participant, 8f) == false)
|
||||
{ havePrivacy = false; }
|
||||
}
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ namespace Privacy_Please
|
|||
public static void Message(string text)
|
||||
{
|
||||
if (BasicSettings.debugMode)
|
||||
{ Log.Message("[DEBUG] " + text); }
|
||||
{ Log.Message("[Privacy, Please!] " + text); }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
10
Source/Scripts/Utilities/Enums.cs
Normal file
10
Source/Scripts/Utilities/Enums.cs
Normal file
|
@ -0,0 +1,10 @@
|
|||
namespace Privacy_Please
|
||||
{
|
||||
public enum ReactionToSexAct
|
||||
{
|
||||
Approval = 1,
|
||||
Acceptance = 0,
|
||||
Discomfort = -1,
|
||||
Outrage = -2,
|
||||
}
|
||||
}
|
84
Source/Scripts/Utilities/PrivacyUtility.cs
Normal file
84
Source/Scripts/Utilities/PrivacyUtility.cs
Normal file
|
@ -0,0 +1,84 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using RimWorld;
|
||||
using Verse;
|
||||
using Verse.AI;
|
||||
using Verse.AI.Group;
|
||||
using rjw;
|
||||
|
||||
namespace Privacy_Please
|
||||
{
|
||||
public static class PrivacyUtility
|
||||
{
|
||||
public static bool PawnHasPrivacy(Pawn pawn, float radius)
|
||||
{
|
||||
//if (pawn.IsUnfazedBySex())
|
||||
//{ return true; }
|
||||
|
||||
if (pawn.IsHavingSex() == false && pawn.IsMasturbating() == false)
|
||||
{ return true; }
|
||||
|
||||
//if (pawn.GetLord() != null && (pawn.GetLord().LordJob is LordJob_Ritual || pawn.GetLord().LordJob is LordJob_Joinable_Party) && BasicSettings.ignoreRitualAndPartySex)
|
||||
//{ return true; }
|
||||
|
||||
bool hasPrivacy = true;
|
||||
pawn.IsInBed(out Building bed);
|
||||
|
||||
foreach (Thing thing in GenRadial.RadialDistinctThingsAround(pawn.Position, pawn.Map, radius, true))
|
||||
{
|
||||
Pawn witness = thing as Pawn;
|
||||
if (witness == null) continue;
|
||||
|
||||
// Caught having sex
|
||||
if (SexInteractionUtility.PawnCaughtLovinByWitness(pawn, witness))
|
||||
{
|
||||
// Try to invite intruder to join in
|
||||
if (SexInteractionUtility.GetReactionToSexAct(witness, pawn.jobs.curDriver as JobDriver_Sex) >= (int)ReactionToSexAct.Acceptance)
|
||||
{
|
||||
// TODO roll for sex
|
||||
|
||||
if (CasualSex_Helper.CanHaveSex(witness) && xxx.IsTargetPawnOkay(witness) &&
|
||||
(xxx.has_quirk(witness, "Voyeur") || (xxx.has_quirk(witness, "Cuckold") && SexInteractionUtility.SexParticipantsIncludesACheatingPartner(witness, pawn.GetAllSexParticipants()))))
|
||||
{
|
||||
Job job = new Job(DefDatabase<JobDef>.GetNamed("WatchSex", false), pawn.GetSexReceiver(), bed);
|
||||
witness.jobs.TryTakeOrderedJob(job);
|
||||
}
|
||||
|
||||
else if (pawn.IsMasturbating())
|
||||
{
|
||||
if (bed == null)
|
||||
{
|
||||
Job job = new Job(xxx.quick_sex, pawn);
|
||||
witness.jobs.TryTakeOrderedJob(job);
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
Job job = new Job(xxx.casual_sex, pawn, bed);
|
||||
witness.jobs.TryTakeOrderedJob(job);
|
||||
}
|
||||
}
|
||||
|
||||
else if (pawn.GetSexReceiver() != null)
|
||||
{
|
||||
Job job = new Job(DefDatabase<JobDef>.GetNamed("JoinInSex", false), pawn.GetSexReceiver(), bed);
|
||||
witness.jobs.TryTakeOrderedJob(job);
|
||||
}
|
||||
}
|
||||
|
||||
else
|
||||
{ hasPrivacy = false; }
|
||||
}
|
||||
}
|
||||
|
||||
return BasicSettings.needPrivacy == false ||
|
||||
hasPrivacy ||
|
||||
xxx.has_quirk(pawn, "Exhibitionist") ||
|
||||
pawn?.ideo?.Ideo.HasPrecept(ModPreceptDefOf.Exhibitionism_Acceptable) == true ||
|
||||
pawn?.ideo?.Ideo.HasPrecept(ModPreceptDefOf.Exhibitionism_Approved) == true;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -6,6 +6,7 @@ using Verse.AI.Group;
|
|||
using RimWorld;
|
||||
using rjw;
|
||||
using UnityEngine;
|
||||
using HarmonyLib;
|
||||
|
||||
namespace Privacy_Please
|
||||
{
|
||||
|
@ -13,10 +14,12 @@ namespace Privacy_Please
|
|||
{
|
||||
public static bool PawnCaughtLovinByWitness(Pawn pawn, Pawn witness)
|
||||
{
|
||||
return true;
|
||||
|
||||
if (witness == null ||
|
||||
pawn == witness ||
|
||||
(pawn.IsMasturbating() == false && pawn.IsHavingSex() == false) ||
|
||||
witness.UnworriedAboutHumanSex() == false ||
|
||||
witness.IsUnfazedBySex() == false ||
|
||||
witness.CanSee(pawn) == false)
|
||||
{ return false; }
|
||||
|
||||
|
@ -63,7 +66,7 @@ namespace Privacy_Please
|
|||
{
|
||||
if (passerby == null ||
|
||||
participants.Contains(passerby) ||
|
||||
passerby.UnworriedAboutHumanSex() == false ||
|
||||
passerby.IsUnfazedBySex() == false ||
|
||||
participants.All(x => x.CanSee(passerby) == false))
|
||||
{ return false; }
|
||||
|
||||
|
@ -90,214 +93,62 @@ namespace Privacy_Please
|
|||
return false;
|
||||
}
|
||||
|
||||
public static ThoughtDef GetThoughtsAboutSexAct(Pawn pawn, JobDriver_Sex jobDriver, out Precept precept)
|
||||
public static ReactionToSexAct GetReactionToSexAct(Pawn witness, JobDriver_Sex jobDriver, bool applyThoughtDefs = false)
|
||||
{
|
||||
ThoughtDef thoughtDef = null;
|
||||
precept = null;
|
||||
|
||||
if (pawn == null || jobDriver == null) return null;
|
||||
if (BasicSettings.slavesIgnoreSex && (pawn.IsPrisoner || pawn.IsSlave)) return null;
|
||||
if (BasicSettings.otherFactionsIgnoreSex && pawn.Faction.IsPlayer == false) return null;
|
||||
|
||||
bool sexIsNecro = jobDriver.Partner != null && jobDriver.Partner.Dead;
|
||||
bool sexIsBeastial = jobDriver.Partner != null && jobDriver.Partner.RaceProps.Animal;
|
||||
bool sexIsRape = sexIsBeastial == false && sexIsNecro == false &&
|
||||
(jobDriver is JobDriver_Rape || jobDriver is JobDriver_RapeEnemy || jobDriver is JobDriver_SexBaseRecieverRaped);
|
||||
bool sexIsSlaveRape = sexIsRape && (jobDriver.Partner.IsPrisoner || jobDriver.Partner.IsSlave);
|
||||
bool sexIsXeno = jobDriver.Partner != null && jobDriver.Partner.def.defName != jobDriver.pawn.def.defName;
|
||||
bool isXenophobe = pawn.HasTrait("Xenophobia") && pawn.story.traits.DegreeOfTrait(DefDatabase<TraitDef>.GetNamedSilentFail("Xenophobia")) > 0;
|
||||
bool isXenophile = pawn.HasTrait("Xenophobia") && pawn.story.traits.DegreeOfTrait(DefDatabase<TraitDef>.GetNamedSilentFail("Xenophobia")) < 0;
|
||||
bool sexIsSolo = jobDriver.pawn.IsMasturbating();
|
||||
bool sexIsIncest = jobDriver.Partner != null && jobDriver.pawn.GetRelations(jobDriver.Partner).Any(x => x.familyByBloodRelation);
|
||||
|
||||
if (BasicSettings.worryAboutNecro && sexIsNecro && xxx.is_necrophiliac(pawn) == false)
|
||||
{
|
||||
thoughtDef = xxx.is_necrophiliac(pawn) ? DefDatabase<ThoughtDef>.GetNamedSilentFail("SawNecrophilia_Honorable") :
|
||||
pawn.HasPreceptForIssue("Necrophilia", out precept) ? DefDatabase<ThoughtDef>.GetNamedSilentFail("Saw" + precept.def.defName) :
|
||||
DefDatabase<ThoughtDef>.GetNamedSilentFail("SawNecrophilia_Abhorrent");
|
||||
}
|
||||
|
||||
else if (BasicSettings.worryAboutBeastiality && sexIsBeastial)
|
||||
{
|
||||
thoughtDef = xxx.is_zoophile(pawn) ? DefDatabase<ThoughtDef>.GetNamedSilentFail("SawBeastility_Honorable") :
|
||||
pawn.HasPreceptForIssue("Beastility", out precept) ? DefDatabase<ThoughtDef>.GetNamedSilentFail("Saw" + precept.def.defName) :
|
||||
DefDatabase<ThoughtDef>.GetNamedSilentFail("SawBeastility_Abhorrent");
|
||||
}
|
||||
|
||||
else if (BasicSettings.worryAboutRape && BasicSettings.ignoreSlaveRape == false && sexIsSlaveRape)
|
||||
{
|
||||
thoughtDef = xxx.is_rapist(pawn) ? DefDatabase<ThoughtDef>.GetNamedSilentFail("SawRape_Honorable") :
|
||||
pawn.HasPreceptForIssue("Rape", out precept) ? DefDatabase<ThoughtDef>.GetNamedSilentFail("Saw" + precept.def.defName) :
|
||||
DefDatabase<ThoughtDef>.GetNamedSilentFail("SawRape_Abhorrent");
|
||||
}
|
||||
|
||||
else if (BasicSettings.worryAboutRape && sexIsRape)
|
||||
{
|
||||
thoughtDef = xxx.is_rapist(pawn) ? DefDatabase<ThoughtDef>.GetNamedSilentFail("SawRape_Honorable") :
|
||||
pawn.HasPreceptForIssue("Rape", out precept) ? DefDatabase<ThoughtDef>.GetNamedSilentFail("Saw" + precept.def.defName) :
|
||||
DefDatabase<ThoughtDef>.GetNamedSilentFail("SawRape_Abhorrent");
|
||||
}
|
||||
|
||||
else if (BasicSettings.worryAboutXeno && sexIsXeno)
|
||||
{
|
||||
thoughtDef = isXenophobe ? DefDatabase<ThoughtDef>.GetNamedSilentFail("SawHAR_AlienDating_Prohibited") :
|
||||
isXenophile ? DefDatabase<ThoughtDef>.GetNamedSilentFail("SawHAR_AlienDating_Honorable") :
|
||||
pawn.HasPreceptForIssue("HAR_AlienDating", out precept) ? DefDatabase<ThoughtDef>.GetNamedSilentFail("Saw" + precept.def.defName) :
|
||||
DefDatabase<ThoughtDef>.GetNamedSilentFail("SawHAR_AlienDating_Acceptable");
|
||||
}
|
||||
|
||||
else if (BasicSettings.worryAboutMasturbation && sexIsSolo)
|
||||
{
|
||||
thoughtDef = pawn.HasPreceptForIssue("Masturbation", out precept) ? DefDatabase<ThoughtDef>.GetNamedSilentFail("Saw" + precept.def.defName) :
|
||||
DefDatabase<ThoughtDef>.GetNamedSilentFail("SawMasturbation_Disapproved");
|
||||
}
|
||||
|
||||
else if (BasicSettings.worryAboutIncest && sexIsIncest)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
DebugMode.Message("Sex job is: " + jobDriver + " Issue is: " + (precept?.def?.issue?.defName).ToStringSafe() + " Opinion is: " + (precept?.def?.defName).ToStringSafe() + " Thought is: " + (thoughtDef?.defName).ToStringSafe());
|
||||
|
||||
return thoughtDef;
|
||||
}
|
||||
|
||||
public static bool InvitePasserbyForSex(Pawn pawn, Pawn witness, out bool brokeTaboo)
|
||||
{
|
||||
brokeTaboo = false;
|
||||
bool witnessJoiningSex = Random.value < BasicSettings.chanceForOtherToJoinInSex && CouldInvitePasserbyForSex(witness, pawn.GetAllSexParticipants());
|
||||
|
||||
// Exit clauses
|
||||
if (witness.UnworriedAboutHumanSex() == true)
|
||||
{ return false; }
|
||||
|
||||
// Get basic thoughts
|
||||
ThoughtDef pawnThoughtDef = BasicSettings.needPrivacy ? ModThoughtDefOf.SeenHavingSex : null;
|
||||
ThoughtDef witnessThoughtDef = BasicSettings.needPrivacy ? ModThoughtDefOf.SawSex : null;
|
||||
|
||||
// Exhibitionist pawn (overrides needPrivacy)
|
||||
if (xxx.has_quirk(pawn, "Exhibitionist") || pawn?.ideo?.Ideo.HasPrecept(ModPreceptDefOf.Exhibitionism_Approved) == true)
|
||||
{ pawnThoughtDef = ModThoughtDefOf.SeenHavingSexExhibitionist; }
|
||||
|
||||
// Voyeuristic witness (overrides needPrivacy)
|
||||
if (xxx.has_quirk(witness, "Voyeur"))
|
||||
{ witnessThoughtDef = ModThoughtDefOf.SawSexVoyeur; }
|
||||
|
||||
// Mediating cirumstances
|
||||
bool sexIsRitual = pawn.GetLord() != null && pawn.GetLord().LordJob is LordJob_Ritual && witness?.Ideo == pawn?.Ideo;
|
||||
bool sexIsParty = pawn.GetLord() != null && pawn.GetLord().LordJob is LordJob_Joinable_Party;
|
||||
bool pawnIsVictim = pawn.CurJob.def == xxx.gettin_raped || pawn.Dead;
|
||||
bool mitigatingCirumstances = sexIsRitual || sexIsParty || pawnIsVictim;
|
||||
bool pawnIsCheating = mitigatingCirumstances == false && PawnIsCheatingOnPartner(pawn, witness);
|
||||
|
||||
// Override thoughts if pawn is a victim
|
||||
if (pawnIsVictim)
|
||||
{
|
||||
pawnThoughtDef = null;
|
||||
witnessThoughtDef = null;
|
||||
}
|
||||
|
||||
// Add thought if pawn is cheating
|
||||
else if (pawnIsCheating)
|
||||
{
|
||||
if (pawn.needs.mood.thoughts.memories.GetFirstMemoryOfDef(ModThoughtDefOf.CaughtCheating) == null)
|
||||
{ pawn.needs.mood.thoughts.memories.TryGainMemory(ModThoughtDefOf.CaughtCheating, witness); }
|
||||
|
||||
if (witness.needs.mood.thoughts.memories.GetFirstMemoryOfDef(ThoughtDefOf.CheatedOnMe) == null)
|
||||
{ witness.needs.mood.thoughts.memories.TryGainMemory(ThoughtDefOf.CheatedOnMe, pawn); }
|
||||
|
||||
witnessJoiningSex = false;
|
||||
}
|
||||
Pawn pawn = jobDriver.pawn;
|
||||
ReactionToSexAct reactionOfWitness = ReactionToSexAct.Acceptance;
|
||||
|
||||
// Determine if there are any issues with the sex event and the witness' morals
|
||||
ThoughtDef newWitnessThoughtDef = GetThoughtsAboutSexAct(witness, pawn.jobs.curDriver as JobDriver_Sex, out Precept precept);
|
||||
|
||||
// Update their thoughts if there are no migitating circumstances or the thought provides a positive morale boost larger than the original
|
||||
if (newWitnessThoughtDef != null && (mitigatingCirumstances == false || (newWitnessThoughtDef.stages[0].baseMoodEffect > 0 && newWitnessThoughtDef.stages[0].baseMoodEffect > witnessThoughtDef.stages[0].baseMoodEffect)))
|
||||
{ witnessThoughtDef = newWitnessThoughtDef; }
|
||||
|
||||
// Apply thoughts to witness
|
||||
if (witnessThoughtDef != null)
|
||||
foreach (SexActReactionDef sexActReactionDef in DefDatabase<SexActReactionDef>.AllDefs)
|
||||
{
|
||||
witness.needs.mood.thoughts.memories.TryGainMemory(witnessThoughtDef, pawn, precept);
|
||||
var methodInfo = AccessTools.Method(typeof(SexInteractionUtility), sexActReactionDef.sexActCheck, null, null);
|
||||
|
||||
if (witnessThoughtDef.stages[0].baseMoodEffect < 0)
|
||||
{ witness?.TryGetComp<CompPawnThoughtData>()?.TryToExclaim(); }
|
||||
if (methodInfo == null)
|
||||
{ DebugMode.Message("Method '" + sexActReactionDef.sexActCheck + "' was not found"); continue; }
|
||||
|
||||
witnessJoiningSex = witnessThoughtDef.hediff != null ? false : witnessJoiningSex;
|
||||
brokeTaboo = witnessThoughtDef.hediff != null;
|
||||
|
||||
// Trigger extreme reactions
|
||||
if (witnessThoughtDef?.hediff != null)
|
||||
{ TriggerReactionInWitness(witness, pawn, witnessThoughtDef.hediff.defName); }
|
||||
|
||||
else if (pawnIsCheating)
|
||||
{ TriggerReactionInWitness(witness, pawn, "Indignant"); }
|
||||
if ((bool)methodInfo.Invoke(null, new object[] { jobDriver }))
|
||||
{
|
||||
DebugMode.Message(sexActReactionDef.defName);
|
||||
reactionOfWitness = sexActReactionDef.DetermineReactionOfPawns(pawn, witness, applyThoughtDefs);
|
||||
}
|
||||
}
|
||||
|
||||
// Apply thoughts to pawn
|
||||
if (pawnThoughtDef != null)
|
||||
{
|
||||
pawn.needs.mood.thoughts.memories.TryGainMemory(pawnThoughtDef, witness, null);
|
||||
|
||||
if (pawnThoughtDef.stages[0].baseMoodEffect < 0)
|
||||
{ pawn?.TryGetComp<CompPawnThoughtData>()?.TryToExclaim(); }
|
||||
}
|
||||
|
||||
return witnessJoiningSex;
|
||||
return reactionOfWitness;
|
||||
}
|
||||
|
||||
public static void TriggerReactionInWitness(Pawn witness, Pawn otherPawn, string reaction)
|
||||
public static bool SexActIsNecrophilia(JobDriver_Sex jobDriver)
|
||||
{
|
||||
if (BasicSettings.majorTabooCanStartFights == false || reaction.NullOrEmpty())
|
||||
{ return; }
|
||||
return jobDriver.Partner != null && jobDriver.Partner.Dead;
|
||||
}
|
||||
|
||||
if (witness.MentalState != null ||
|
||||
witness.jobs.curDriver is JobDriver_Flee ||
|
||||
witness.jobs.curDriver is JobDriver_AttackMelee ||
|
||||
witness.jobs.curDriver is JobDriver_Vomit)
|
||||
{ return; }
|
||||
public static bool SexActIsBestiality(JobDriver_Sex jobDriver)
|
||||
{
|
||||
return jobDriver.Partner != null && jobDriver.Partner.RaceProps.Animal;
|
||||
}
|
||||
|
||||
// Panicked
|
||||
if (reaction == "Panicked" || (reaction == "Indignant" && Random.value <= 0.5f))
|
||||
{
|
||||
// Fight
|
||||
if (otherPawn.RaceProps.Humanlike && witness.RaceProps.Humanlike && witness.DislikesViolence() == false && (Random.value <= 0.2f || witness.EnjoysViolence()) && witness.HostileTo(otherPawn) == false && InteractionUtility.TryGetRandomVerbForSocialFight(witness, out Verb verbToUse))
|
||||
{ witness.interactions.StartSocialFight(otherPawn, "MessageSocialFight"); }
|
||||
public static bool SexActIsRape(JobDriver_Sex jobDriver)
|
||||
{
|
||||
return jobDriver is JobDriver_Rape || jobDriver is JobDriver_RapeEnemy || jobDriver is JobDriver_SexBaseRecieverRaped;
|
||||
}
|
||||
|
||||
// Flight
|
||||
else
|
||||
{
|
||||
Job job = JobMaker.MakeJob(JobDefOf.FleeAndCower, CellFinderLoose.GetFleeDest(witness, new List<Thing>() { otherPawn }, 24f), otherPawn);
|
||||
witness.jobs.EndCurrentJob(JobCondition.InterruptForced, false, false);
|
||||
witness.jobs.StartJob(job);
|
||||
}
|
||||
}
|
||||
public static bool SexActIsXenophilia(JobDriver_Sex jobDriver)
|
||||
{
|
||||
return jobDriver.Partner != null && jobDriver.Partner.def.defName != jobDriver.pawn.def.defName;
|
||||
}
|
||||
|
||||
// Vomit
|
||||
else if (reaction == "Nauseated")
|
||||
{
|
||||
Job jobVomit = JobMaker.MakeJob(JobDefOf.Vomit);
|
||||
Job jobFlee = JobMaker.MakeJob(JobDefOf.FleeAndCower, CellFinderLoose.GetFleeDest(witness, new List<Thing>() { otherPawn }, 24f), otherPawn);
|
||||
public static bool SexActIsMasturbation(JobDriver_Sex jobDriver)
|
||||
{
|
||||
return jobDriver.pawn.IsMasturbating();
|
||||
}
|
||||
|
||||
witness.jobs.EndCurrentJob(JobCondition.InterruptForced, false, false);
|
||||
public static bool SexActIsExhibitionism(JobDriver_Sex jobDriver)
|
||||
{
|
||||
return jobDriver.pawn.IsHavingSex();
|
||||
}
|
||||
|
||||
if (Random.value <= 0.2f)
|
||||
{
|
||||
witness.jobs.StartJob(jobVomit);
|
||||
witness.jobs.jobQueue.EnqueueFirst(jobFlee);
|
||||
}
|
||||
|
||||
else
|
||||
{ witness.jobs.StartJob(jobFlee); }
|
||||
}
|
||||
|
||||
// Indignant
|
||||
else if (reaction == "Indignant")
|
||||
{
|
||||
witness.mindState.mentalStateHandler.TryStartMentalState(DefDatabase<MentalStateDef>.GetNamedSilentFail("TargetedInsultingSpree"), null, true, false, null, true, false, false);
|
||||
(witness.mindState.mentalStateHandler.CurState as MentalState_TargetedInsultingSpree).target = otherPawn;
|
||||
}
|
||||
public static bool SexActIsInfidelity(JobDriver_Sex jobDriver)
|
||||
{
|
||||
return jobDriver.pawn.IsHavingSex();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -38,6 +38,8 @@
|
|||
<ItemGroup>
|
||||
<Compile Include="Scripts\Comps\CompPawnThoughtData.cs" />
|
||||
<Compile Include="Scripts\Comps\CompProperties_PawnThoughtData.cs" />
|
||||
<Compile Include="Scripts\Defs\SexActReactionDef.cs" />
|
||||
<Compile Include="Scripts\Defs\SexActThoughtDef.cs" />
|
||||
<Compile Include="Scripts\Extensions\PawnExtension.cs" />
|
||||
<Compile Include="Scripts\JobDrivers\JobDriver_WatchSex.cs" />
|
||||
<Compile Include="Scripts\JobDrivers\JobDriver_JoinInSex.cs" />
|
||||
|
@ -47,7 +49,9 @@
|
|||
<Compile Include="Scripts\Settings\BasicSettings.cs" />
|
||||
<Compile Include="Scripts\ThoughtWorkers\ThoughtWorker_ExposedUnderwear.cs" />
|
||||
<Compile Include="Scripts\Utilities\DebugMode.cs" />
|
||||
<Compile Include="Scripts\Utilities\Enums.cs" />
|
||||
<Compile Include="Scripts\Utilities\ModDefOf.cs" />
|
||||
<Compile Include="Scripts\Utilities\PrivacyUtility.cs" />
|
||||
<Compile Include="Scripts\Utilities\SexInteractionUtility.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
|
@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
|
|||
# Visual Studio Version 16
|
||||
VisualStudioVersion = 16.0.30011.22
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AbsCon_PrivacyPlease", "AbsCon_PrivacyPlease.csproj", "{AC00E678-E117-4BC2-8C3E-DA26509E2F6D}"
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SourceCode", "SourceCode.csproj", "{AC00E678-E117-4BC2-8C3E-DA26509E2F6D}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
|
@ -1 +1 @@
|
|||
8263062e6a99f43c12969425daafb3f9676b8c24
|
||||
6e370cfc279d578a4af85250025d7591e85c908b
|
||||
|
|
|
@ -4,3 +4,9 @@ C:\Program Files (x86)\Steam\SteamApps\common\RimWorld\Mods\privacy-please-absco
|
|||
C:\Program Files (x86)\Steam\SteamApps\common\RimWorld\Mods\privacy-please-abscon\Source\obj\Debug\AbsCon_PrivacyPlease.csproj.CoreCompileInputs.cache
|
||||
C:\Program Files (x86)\Steam\SteamApps\common\RimWorld\Mods\privacy-please-abscon\Source\obj\Debug\Privacy-Please.dll
|
||||
C:\Program Files (x86)\Steam\SteamApps\common\RimWorld\Mods\privacy-please-abscon\Source\obj\Debug\Privacy-Please.pdb
|
||||
C:\Program Files (x86)\Steam\SteamApps\common\RimWorld\Mods\privacy-please\Source\obj\Debug\AbsCon_PrivacyPlease.csprojAssemblyReference.cache
|
||||
C:\Program Files (x86)\Steam\SteamApps\common\RimWorld\Mods\privacy-please\Source\obj\Debug\AbsCon_PrivacyPlease.csproj.CoreCompileInputs.cache
|
||||
C:\Program Files (x86)\Steam\SteamApps\common\RimWorld\Mods\privacy-please\Source\obj\Debug\Privacy-Please.dll
|
||||
C:\Program Files (x86)\Steam\SteamApps\common\RimWorld\Mods\privacy-please\Source\obj\Debug\Privacy-Please.pdb
|
||||
C:\Program Files (x86)\Steam\SteamApps\common\RimWorld\Mods\privacy-please\1.4\Assemblies\Privacy-Please.dll
|
||||
C:\Program Files (x86)\Steam\SteamApps\common\RimWorld\Mods\privacy-please\1.4\Assemblies\Privacy-Please.pdb
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1 @@
|
|||
7168a589dcb8c6bc69e172d8ed7c3d5766de561d
|
6
Source/obj/Debug/SourceCode.csproj.FileListAbsolute.txt
Normal file
6
Source/obj/Debug/SourceCode.csproj.FileListAbsolute.txt
Normal file
|
@ -0,0 +1,6 @@
|
|||
C:\Program Files (x86)\Steam\SteamApps\common\RimWorld\Mods\privacy-please\1.4\Assemblies\Privacy-Please.dll
|
||||
C:\Program Files (x86)\Steam\SteamApps\common\RimWorld\Mods\privacy-please\1.4\Assemblies\Privacy-Please.pdb
|
||||
C:\Program Files (x86)\Steam\SteamApps\common\RimWorld\Mods\privacy-please\Source\obj\Debug\SourceCode.csproj.CoreCompileInputs.cache
|
||||
C:\Program Files (x86)\Steam\SteamApps\common\RimWorld\Mods\privacy-please\Source\obj\Debug\Privacy-Please.dll
|
||||
C:\Program Files (x86)\Steam\SteamApps\common\RimWorld\Mods\privacy-please\Source\obj\Debug\Privacy-Please.pdb
|
||||
C:\Program Files (x86)\Steam\SteamApps\common\RimWorld\Mods\privacy-please\Source\obj\Debug\SourceCode.csprojAssemblyReference.cache
|
BIN
Source/obj/Debug/SourceCode.csprojAssemblyReference.cache
Normal file
BIN
Source/obj/Debug/SourceCode.csprojAssemblyReference.cache
Normal file
Binary file not shown.
Loading…
Reference in a new issue