mirror of
https://gitgud.io/c0ffeeeeeeee/coffees-rjw-ideology-addons.git
synced 2024-08-14 23:57:38 +00:00
Compare commits
3 commits
5b4b203d13
...
711a61a31a
Author | SHA1 | Date | |
---|---|---|---|
|
711a61a31a | ||
|
6cdd801207 | ||
|
cd8fe17713 |
18 changed files with 83 additions and 27 deletions
BIN
1.4/Assemblies/C0ffee's RJW Ideology Addons.dll
Normal file
BIN
1.4/Assemblies/C0ffee's RJW Ideology Addons.dll
Normal file
Binary file not shown.
|
@ -6,6 +6,7 @@
|
|||
<url>https://gitgud.io/c0ffeeeeeeee/rimworld-animations</url>
|
||||
<supportedVersions>
|
||||
<li>1.3</li>
|
||||
<li>1.4</li>
|
||||
</supportedVersions>
|
||||
<packageId>c0ffee.rjw.IdeologyAddons</packageId>
|
||||
<modDependencies>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<Manifest>
|
||||
<identifier>C0ffeeRIA</identifier>
|
||||
<version>0.0.5</version>
|
||||
<version>0.0.6</version>
|
||||
</Manifest>
|
||||
|
|
|
@ -9,15 +9,16 @@
|
|||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>C0ffee_s_RJW_Ideology_Addons</RootNamespace>
|
||||
<AssemblyName>C0ffee%27s RJW Ideology Addons</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
|
||||
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<Deterministic>true</Deterministic>
|
||||
<TargetFrameworkProfile />
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>false</DebugSymbols>
|
||||
<DebugType>none</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>1.3\Assemblies\</OutputPath>
|
||||
<OutputPath>1.4\Assemblies\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
|
@ -33,7 +34,7 @@
|
|||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="0Harmony">
|
||||
<HintPath>..\..\..\..\workshop\content\294100\2009463077\Current\Assemblies\0Harmony.dll</HintPath>
|
||||
<HintPath>..\..\..\..\workshop\content\294100\839005762\1.4\Assemblies\0Harmony.dll</HintPath>
|
||||
<Private>False</Private>
|
||||
</Reference>
|
||||
<Reference Include="Assembly-CSharp">
|
||||
|
@ -45,7 +46,7 @@
|
|||
<Private>False</Private>
|
||||
</Reference>
|
||||
<Reference Include="RJW">
|
||||
<HintPath>..\rjw\1.3\Assemblies\RJW.dll</HintPath>
|
||||
<HintPath>..\rjw\1.4\Assemblies\RJW.dll</HintPath>
|
||||
<Private>False</Private>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
|
|
Binary file not shown.
BIN
CRIALactation/1.4/Assemblies/CRIALactation.dll
Normal file
BIN
CRIALactation/1.4/Assemblies/CRIALactation.dll
Normal file
Binary file not shown.
|
@ -9,15 +9,16 @@
|
|||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>CRIALactation</RootNamespace>
|
||||
<AssemblyName>CRIALactation</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
|
||||
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<Deterministic>true</Deterministic>
|
||||
<TargetFrameworkProfile />
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>false</DebugSymbols>
|
||||
<DebugType>none</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>1.3\Assemblies\</OutputPath>
|
||||
<OutputPath>1.4\Assemblies\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
|
@ -32,7 +33,7 @@
|
|||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="0Harmony">
|
||||
<HintPath>..\..\..\..\..\workshop\content\294100\2009463077\Current\Assemblies\0Harmony.dll</HintPath>
|
||||
<HintPath>..\..\..\..\..\workshop\content\294100\839005762\1.4\Assemblies\0Harmony.dll</HintPath>
|
||||
<Private>False</Private>
|
||||
</Reference>
|
||||
<Reference Include="Assembly-CSharp">
|
||||
|
@ -40,7 +41,7 @@
|
|||
<Private>False</Private>
|
||||
</Reference>
|
||||
<Reference Include="HugsLib">
|
||||
<HintPath>..\..\..\..\..\workshop\content\294100\818773962\v1.3\Assemblies\HugsLib.dll</HintPath>
|
||||
<HintPath>..\..\..\..\..\workshop\content\294100\818773962\v1.4\Assemblies\HugsLib.dll</HintPath>
|
||||
<Private>False</Private>
|
||||
</Reference>
|
||||
<Reference Include="Milk">
|
||||
|
@ -48,7 +49,7 @@
|
|||
<Private>False</Private>
|
||||
</Reference>
|
||||
<Reference Include="RJW">
|
||||
<HintPath>..\..\rjw\1.3\Assemblies\RJW.dll</HintPath>
|
||||
<HintPath>..\..\rjw\1.4\Assemblies\RJW.dll</HintPath>
|
||||
<Private>False</Private>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
|
@ -70,8 +71,10 @@
|
|||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="Source\CompProperties\CompAbilityEffects\CompProperties_AbilityBeginInducingLactation.cs" />
|
||||
<Compile Include="Source\CompProperties\CompAbilityEffects\CompProperties_AbilityConvertHucow.cs" />
|
||||
<Compile Include="Source\CompProperties\CompProperties_Lactation.cs" />
|
||||
<Compile Include="Source\Comps\CompAbilityEffects\CompAbilityEffect_BeginInducingLactation.cs" />
|
||||
<Compile Include="Source\Comps\CompAbilityEffects\CompAbilityEffect_ConvertHucow.cs" />
|
||||
<Compile Include="Source\Comps\CompLactation.cs" />
|
||||
<Compile Include="Source\HarmonyPatches\HarmonyPatch_FoodUtility.cs" />
|
||||
|
|
|
@ -81,10 +81,10 @@
|
|||
<comps>
|
||||
<li Class="CompProperties_AbilityGiveHediff">
|
||||
<compClass>CompAbilityEffect_GiveHediff</compClass>
|
||||
<hediffDef>Hucow</hediffDef>
|
||||
<hediffDef>InducingLactation</hediffDef>
|
||||
<applicableToMechs>False</applicableToMechs>
|
||||
</li>
|
||||
<li Class="CRIALactation.CompProperties_AbilityConvertHucow" />
|
||||
<li Class="CRIALactation.CompProperties_AbilityBeginInducingLactation" />
|
||||
</comps>
|
||||
</AbilityDef>
|
||||
</Defs>
|
|
@ -37,7 +37,7 @@
|
|||
<iconPath>UI/Issues/Lactating</iconPath>
|
||||
</IssueDef>
|
||||
|
||||
<PreceptDef ParentName="PreceptRoleSingleBase">
|
||||
<PreceptDef ParentName="PreceptRoleMultiBase">
|
||||
<defName>IdeoRole_HucowHandler</defName>
|
||||
<issue>HucowHandling</issue>
|
||||
<!--this is needed to override old issue in issuedef to have hucow handler role-->
|
||||
|
@ -147,6 +147,7 @@
|
|||
</requiredMemes>
|
||||
<grantedAbilities>
|
||||
<li>ConvertToHucow</li>
|
||||
<li>BeginInducingLactation</li>
|
||||
</grantedAbilities>
|
||||
</PreceptDef>
|
||||
|
||||
|
|
|
@ -0,0 +1,23 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Verse;
|
||||
using RimWorld;
|
||||
using rjw;
|
||||
using Milk;
|
||||
using UnityEngine;
|
||||
|
||||
|
||||
namespace CRIALactation
|
||||
{
|
||||
public class CompProperties_AbilityBeginInducingLactation : CompProperties_AbilityEffect
|
||||
{
|
||||
|
||||
public CompProperties_AbilityBeginInducingLactation()
|
||||
{
|
||||
this.compClass = typeof(CompAbilityEffect_BeginInducingLactation);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -1,5 +1,6 @@
|
|||
using RimWorld;
|
||||
using RimWorld.Planet;
|
||||
using rjw;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
@ -16,8 +17,10 @@ namespace CRIALactation
|
|||
{
|
||||
Pawn pawn = target.Pawn;
|
||||
|
||||
|
||||
if (pawn == null) return false;
|
||||
if (!pawn.IsColonistPlayerControlled || !pawn.IsSlaveOfColony || !pawn.IsPrisonerOfColony) return false;
|
||||
if (!(pawn.IsColonistPlayerControlled || pawn.IsSlaveOfColony || pawn.IsPrisonerOfColony)) return false;
|
||||
if (!Genital_Helper.has_breasts(pawn) || Genital_Helper.has_male_breasts(pawn)) return false;
|
||||
if (LactationUtility.IsLactating(pawn)) return false;
|
||||
|
||||
return true;
|
||||
|
|
|
@ -16,9 +16,9 @@ namespace CRIALactation
|
|||
public override bool Valid(LocalTargetInfo target, bool throwMessages = false)
|
||||
{
|
||||
Pawn pawn = target.Pawn;
|
||||
return pawn != null && AbilityUtility.ValidateMustBeHuman(pawn, throwMessages) &&
|
||||
AbilityUtility.ValidateNoMentalState(pawn, throwMessages) &&
|
||||
AbilityUtility.ValidateSameIdeo(this.parent.pawn, pawn, throwMessages) &&
|
||||
return pawn != null && AbilityUtility.ValidateMustBeHuman(pawn, throwMessages, this.parent) &&
|
||||
AbilityUtility.ValidateNoMentalState(pawn, throwMessages, this.parent) &&
|
||||
AbilityUtility.ValidateSameIdeo(this.parent.pawn, pawn, throwMessages, this.parent) &&
|
||||
LactationUtility.IsLactating(pawn) &&
|
||||
!LactationUtility.IsHucow(pawn);
|
||||
|
||||
|
|
|
@ -19,6 +19,20 @@ namespace CRIALactation
|
|||
Scribe_Values.Look<int>(ref this.lastHumanLactationIngestedTick, "lastHumanLactationIngestedTick", 0);
|
||||
|
||||
}
|
||||
|
||||
public override string CompInspectStringExtra()
|
||||
{
|
||||
if((parent as Pawn).health?.hediffSet?.GetFirstHediffOfDef(HediffDefOf_Milk.InducingLactation) != null
|
||||
&& (parent as Pawn).health.hediffSet.GetFirstHediffOfDef(HediffDefOf_Milk.InducingLactation).TryGetComp<HediffComp_LactationInduction>().canMassage())
|
||||
{
|
||||
return "Ready to stimulate breasts for lactation.";
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
return "";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -13,9 +13,11 @@ namespace CRIALactation
|
|||
public class PreceptComp_Lactation : PreceptComp
|
||||
{
|
||||
|
||||
public override void Notify_MemberGenerated(Pawn pawn, Precept precept)
|
||||
public override void Notify_MemberGenerated(Pawn pawn, Precept precept, bool newborn)
|
||||
{
|
||||
|
||||
if (newborn) return;
|
||||
|
||||
if((precept.def == PreceptDefOf_Lactation.Lactating_Essential
|
||||
|| precept.def == PreceptDefOf_Lactation.Lactating_MandatoryHucow)
|
||||
&& LactationUtility.HasMilkableBreasts(pawn))
|
||||
|
|
BIN
CRIAOrgy/1.4/Assemblies/CRIAOrgy.dll
Normal file
BIN
CRIAOrgy/1.4/Assemblies/CRIAOrgy.dll
Normal file
Binary file not shown.
|
@ -9,15 +9,16 @@
|
|||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>CRIAOrgy</RootNamespace>
|
||||
<AssemblyName>CRIAOrgy</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
|
||||
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<Deterministic>true</Deterministic>
|
||||
<TargetFrameworkProfile />
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>false</DebugSymbols>
|
||||
<DebugType>none</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>Assemblies\</OutputPath>
|
||||
<OutputPath>1.4\Assemblies\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
|
@ -33,19 +34,19 @@
|
|||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="0Harmony">
|
||||
<HintPath>..\..\..\..\..\workshop\content\294100\2009463077\Current\Assemblies\0Harmony.dll</HintPath>
|
||||
<HintPath>..\..\..\..\..\workshop\content\294100\839005762\1.4\Assemblies\0Harmony.dll</HintPath>
|
||||
<Private>False</Private>
|
||||
</Reference>
|
||||
<Reference Include="Assembly-CSharp">
|
||||
<HintPath>..\..\..\RimWorldWin64_Data\Managed\Assembly-CSharp.dll</HintPath>
|
||||
<Private>False</Private>
|
||||
</Reference>
|
||||
<Reference Include="HugsLib">
|
||||
<HintPath>..\..\..\..\..\workshop\content\294100\818773962\v1.3\Assemblies\HugsLib.dll</HintPath>
|
||||
<Reference Include="Milk">
|
||||
<HintPath>..\..\rjw-mc\1.3\Assemblies\Milk.dll</HintPath>
|
||||
<Private>False</Private>
|
||||
</Reference>
|
||||
<Reference Include="RJW">
|
||||
<HintPath>..\..\rjw\1.3\Assemblies\RJW.dll</HintPath>
|
||||
<HintPath>..\..\rjw\1.4\Assemblies\RJW.dll</HintPath>
|
||||
<Private>False</Private>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
|
@ -73,8 +74,6 @@
|
|||
<Content Include="Defs\PreceptDefs\Precepts_PublicSex.xml" />
|
||||
<Content Include="Defs\ThoughtDefs\Thoughts_Ritual_Orgy.xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Folder Include="Assemblies\" />
|
||||
</ItemGroup>
|
||||
<ItemGroup />
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
|
@ -9,4 +9,13 @@
|
|||
<li IfModActive="c0ffee.rjw.events">CRIAOrgy</li>
|
||||
<li IfModActive="c0ffee.rjw.events">CRIAOrgy/1.3</li>
|
||||
</v1.3>
|
||||
<v1.4>
|
||||
<li>/</li>
|
||||
<li>1.4</li>
|
||||
<li IfModActive="rjw.milk.humanoid">CRIALactation</li>
|
||||
<li IfModActive="rjw.milk.humanoid">CRIALactation/1.4</li>
|
||||
|
||||
<li IfModActive="c0ffee.rjw.events">CRIAOrgy</li>
|
||||
<li IfModActive="c0ffee.rjw.events">CRIAOrgy/1.4</li>
|
||||
</v1.4>
|
||||
</loadFolders>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue