orgy ritual

This commit is contained in:
c0ffee12 2021-07-27 23:14:27 -07:00
parent edc619a950
commit 379c9a4d7d
13 changed files with 264 additions and 6 deletions

View file

@ -66,12 +66,12 @@
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="Source\CRIAUtility.cs" />
<Compile Include="Source\Patches\Harmony_PatchAll.cs" />
<Compile Include="Source\Base\CRIAUtility.cs" />
<Compile Include="Source\Base\Patches\Harmony_PatchAll.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Source\Patches\RJW\LovinEventDefs\HarmonyPatch_JobDriver_SexBaseInitiator.cs" />
<Compile Include="Source\Patches\RJW\LovinPrecepts\HarmonyPatch_CasualSex_Helper.cs" />
<Compile Include="Source\Patches\RJW\LovinPrecepts\HarmonyPatch_RMB_Menu.cs" />
<Compile Include="Source\Base\Patches\RJW\LovinEventDefs\HarmonyPatch_JobDriver_SexBaseInitiator.cs" />
<Compile Include="Source\Base\Patches\RJW\LovinPrecepts\HarmonyPatch_CasualSex_Helper.cs" />
<Compile Include="Source\Base\Patches\RJW\LovinPrecepts\HarmonyPatch_RMB_Menu.cs" />
</ItemGroup>
<ItemGroup>
<Folder Include="About\" />

View file

@ -7,6 +7,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "C0ffee's RJW Ideology Addon
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CRIALactation", "CRIALactation\CRIALactation.csproj", "{01BE0D84-9292-4F89-90FC-647B66771C61}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CRIAOrgy", "CRIAOrgy\CRIAOrgy.csproj", "{212ED289-C5A3-4807-B482-A53F36B31F23}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@ -21,6 +23,10 @@ Global
{01BE0D84-9292-4F89-90FC-647B66771C61}.Debug|Any CPU.Build.0 = Debug|Any CPU
{01BE0D84-9292-4F89-90FC-647B66771C61}.Release|Any CPU.ActiveCfg = Release|Any CPU
{01BE0D84-9292-4F89-90FC-647B66771C61}.Release|Any CPU.Build.0 = Release|Any CPU
{212ED289-C5A3-4807-B482-A53F36B31F23}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{212ED289-C5A3-4807-B482-A53F36B31F23}.Debug|Any CPU.Build.0 = Debug|Any CPU
{212ED289-C5A3-4807-B482-A53F36B31F23}.Release|Any CPU.ActiveCfg = Release|Any CPU
{212ED289-C5A3-4807-B482-A53F36B31F23}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE

View file

@ -15,7 +15,7 @@ namespace CRIALactation
protected override ThoughtState ShouldHaveThought(Pawn p, Pawn otherPawn)
{
if(LactationUtility.HasMilkableBreasts(otherPawn) && !LactationUtility.IsLactating(otherPawn))
if(LactationUtility.HasMilkableBreasts(p) && !LactationUtility.IsLactating(p))
{
return ThoughtState.ActiveAtStage(0);

51
CRIAOrgy/CRIAOrgy.csproj Normal file
View file

@ -0,0 +1,51 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{212ED289-C5A3-4807-B482-A53F36B31F23}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>CRIAOrgy</RootNamespace>
<AssemblyName>CRIAOrgy</AssemblyName>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<Deterministic>true</Deterministic>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<Content Include="Defs\PreceptDefs\Precepts_PublicSex.xml" />
<Content Include="Defs\ThoughtDefs\Thoughts_Ritual_Orgy.xml" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>

View file

@ -0,0 +1,104 @@
<?xml version="1.0" encoding="utf-8" ?>
<Defs>
<PreceptDef ParentName="FestivalBase">
<defName>OrgyCeremony</defName>
<label>fertility ritual</label>
<preceptClass>Precept_Ritual</preceptClass>
<iconPath>UI/Icons/Rituals/TreeCelebration</iconPath>
<ritualPatternBase>FertilityRitual</ritualPatternBase>
<canGenerateAsSpecialPrecept>false</canGenerateAsSpecialPrecept>
<receivesExpectationsQualityOffset>true</receivesExpectationsQualityOffset>
</PreceptDef>
<RitualPatternDef ParentName="CelebrationPartyChat">
<defName>FertilityRitual</defName>
<shortDescOverride>fertility ritual</shortDescOverride>
<descOverride>An orgy ritual.</descOverride>
<ritualBehavior>FertilityRitual</ritualBehavior>
<ritualTargetFilter>AltarOrRitualSpot</ritualTargetFilter>
<ritualObligationTargetFilter>AnyIdeoBuildingOrRitualSpot</ritualObligationTargetFilter>
<ritualOutcomeEffect>FertilityRitualOutcome</ritualOutcomeEffect>
<ritualExplanation>ritual orgy.</ritualExplanation>
<canStartAnytime>true</canStartAnytime>
</RitualPatternDef>
<RitualBehaviorDef>
<defName>FertilityRitual</defName>
<durationTicks>5000</durationTicks>
<roles />
<spectatorsLabel>Participants</spectatorsLabel>
<spectatorGerund>participate</spectatorGerund>
<stages>
<li>
<defaultDuty>Orgy</defaultDuty>
<endTriggers>
<li Class="StageEndTrigger_DurationPercentage">
<percentage>1</percentage>
</li>
</endTriggers>
</li>
</stages>
</RitualBehaviorDef>
<RitualOutcomeEffectDef>
<defName>FertilityRitualOutcome</defName>
<description>orgy ritual outcome</description>
<workerClass>RitualOutcomeEffectWorker_FromQuality</workerClass>
<comps>
<li Class="RitualOutcomeComp_ParticipantCount">
<label>participant count</label>
<curve>
<points>
<li>(1, 0.0)</li>
<li>(5, 0.6)</li>
<li>(10, 0.8)</li>
</points>
</curve>
</li>
<li Class="RitualOutcomeComp_RoomStat">
<label>room impressiveness</label>
<statDef>Impressiveness</statDef>
<curve>
<points>
<li>0, 0</li>
<li>50, 0.1</li>
<li>120, 0.2</li>
</points>
</curve>
</li>
</comps>
<outcomeChances>
<li>
<chance>0.05</chance>
<label>Terrible</label>
<memory>TerribleOrgy</memory>
<description>The {0} was terrible! Participants endured hours of jaw-clenching small talk while waiting for it to end.</description>
<positivityIndex>-2</positivityIndex>
</li>
<li>
<chance>0.15</chance>
<label>Boring</label>
<memory>BoringOrgy</memory>
<description>The {0} was boring. Everyone felt too awkward to open up and laugh.</description>
<positivityIndex>-1</positivityIndex>
</li>
<li>
<chance>0.6</chance>
<label>Fun</label>
<memory>FunOrgy</memory>
<description>The {0} was good. Everyone appreciated the chance to relax and have fun together.</description>
<potentialExtraOutcomeDesc>There's a 5% chance that a random participant gains an inspiration.</potentialExtraOutcomeDesc>
<positivityIndex>1</positivityIndex>
</li>
<li>
<chance>0.2</chance>
<label>Unforgettable</label>
<memory>UnforgettableOrgy</memory>
<description>The {0} was unforgettable! Everyone learned about each other and felt like a family.</description>
<potentialExtraOutcomeDesc>There's a 10% chance a random participant gains an inspiration.</potentialExtraOutcomeDesc>
<positivityIndex>2</positivityIndex>
</li>
</outcomeChances>
</RitualOutcomeEffectDef>
</Defs>

View file

@ -0,0 +1,58 @@
<?xml version="1.0" encoding="utf-8" ?>
<Defs>
<ThoughtDef>
<defName>TerribleOrgy</defName>
<thoughtClass>Thought_AttendedRitual</thoughtClass>
<durationDays>6</durationDays>
<stackLimit>3</stackLimit>
<stages>
<li>
<label>terrible festival</label>
<description>That festival was horrible. I'm still cringing from the awkwardness flashbacks.</description>
<baseMoodEffect>-3</baseMoodEffect>
</li>
</stages>
</ThoughtDef>
<ThoughtDef>
<defName>BoringOrgy</defName>
<thoughtClass>Thought_AttendedRitual</thoughtClass>
<durationDays>6</durationDays>
<stackLimit>3</stackLimit>
<stages>
<li>
<label>boring festival</label>
<description>That festival was awkward. I wish I could have left.</description>
<baseMoodEffect>-1</baseMoodEffect>
</li>
</stages>
</ThoughtDef>
<ThoughtDef>
<defName>FunOrgy</defName>
<thoughtClass>Thought_AttendedRitual</thoughtClass>
<durationDays>6</durationDays>
<stackLimit>3</stackLimit>
<stages>
<li>
<label>fun festival</label>
<description>I had fun! We got to hang out and relax.</description>
<baseMoodEffect>5</baseMoodEffect>
</li>
</stages>
</ThoughtDef>
<ThoughtDef>
<defName>UnforgettableOrgy</defName>
<thoughtClass>Thought_AttendedRitual</thoughtClass>
<durationDays>6</durationDays>
<stackLimit>3</stackLimit>
<stages>
<li>
<label>unforgettable festival</label>
<description>That festival was something I'll never forget.</description>
<baseMoodEffect>8</baseMoodEffect>
</li>
</stages>
</ThoughtDef>
</Defs>

View file

@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("CRIAOrgy")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("CRIAOrgy")]
[assembly: AssemblyCopyright("Copyright © 2021")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("212ed289-c5a3-4807-b482-a53f36b31f23")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

View file

@ -5,5 +5,8 @@
<li>1.3</li>
<li IfModActive="rjw.milk.humanoid">CRIALactation</li>
<li IfModActive="rjw.milk.humanoid">CRIALactation/1.3</li>
<li IfModActive="c0ffee.rjw.events">CRIAOrgy</li>
<li IfModActive="c0ffee.rjw.events">CRIAOrgy/1.3</li>
</v1.3>
</loadFolders>