mirror of
https://gitgud.io/c0ffeeeeeeee/coffees-rjw-ideology-addons.git
synced 2024-08-14 23:57:38 +00:00
fixed preg projs
This commit is contained in:
parent
406d336a25
commit
711be3c6bb
7 changed files with 201 additions and 1 deletions
|
@ -9,7 +9,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CRIALactation", "CRIALactat
|
||||||
EndProject
|
EndProject
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CRIAOrgy", "CRIAOrgy\CRIAOrgy.csproj", "{212ED289-C5A3-4807-B482-A53F36B31F23}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CRIAOrgy", "CRIAOrgy\CRIAOrgy.csproj", "{212ED289-C5A3-4807-B482-A53F36B31F23}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CRIAPregnancy", "..\CRIAPregnancy\CRIAPregnancy.csproj", "{7338B390-A5AC-4A08-9C7D-ACA72100309E}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CRIAPregnancy", "CRIAPregnancy\CRIAPregnancy.csproj", "{7338B390-A5AC-4A08-9C7D-ACA72100309E}"
|
||||||
EndProject
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
|
57
CRIAPregnancy/CRIAPregnancy.csproj
Normal file
57
CRIAPregnancy/CRIAPregnancy.csproj
Normal file
|
@ -0,0 +1,57 @@
|
||||||
|
<?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>{7338B390-A5AC-4A08-9C7D-ACA72100309E}</ProjectGuid>
|
||||||
|
<OutputType>Library</OutputType>
|
||||||
|
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||||
|
<RootNamespace>CRIAPregnancy</RootNamespace>
|
||||||
|
<AssemblyName>CRIAPregnancy</AssemblyName>
|
||||||
|
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
|
||||||
|
<FileAlignment>512</FileAlignment>
|
||||||
|
<Deterministic>true</Deterministic>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||||
|
<DebugSymbols>false</DebugSymbols>
|
||||||
|
<DebugType>none</DebugType>
|
||||||
|
<Optimize>false</Optimize>
|
||||||
|
<OutputPath>Assemblies\</OutputPath>
|
||||||
|
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<WarningLevel>4</WarningLevel>
|
||||||
|
<GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies>
|
||||||
|
</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" />
|
||||||
|
<Compile Include="Source\CompProperties\CompProperties_LastPregnancy.cs" />
|
||||||
|
<Compile Include="Source\Comps\Comp_LastPregnancy.cs" />
|
||||||
|
<Compile Include="Source\Thoughts\ThoughtWorker_Pregnancy.cs" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Content Include="Defs\PreceptDefs\Precepts_Pregnancy.xml" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Folder Include="Assemblies\" />
|
||||||
|
</ItemGroup>
|
||||||
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
|
</Project>
|
43
CRIAPregnancy/Defs/PreceptDefs/Precepts_Pregnancy.xml
Normal file
43
CRIAPregnancy/Defs/PreceptDefs/Precepts_Pregnancy.xml
Normal file
|
@ -0,0 +1,43 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
|
||||||
|
<Defs>
|
||||||
|
|
||||||
|
<IssueDef>
|
||||||
|
<defName>Pregnancy</defName>
|
||||||
|
<label>pregnancy</label>
|
||||||
|
</IssueDef>
|
||||||
|
|
||||||
|
<PreceptDef>
|
||||||
|
<defName>Preg_Virtue</defName>
|
||||||
|
<issue>Pregnancy</issue>
|
||||||
|
<label>idealized</label>
|
||||||
|
<description>Pregnancy is a virtue; a symbol of health and fertility.</description>
|
||||||
|
<impact>Medium</impact>
|
||||||
|
<displayOrderInImpact>100</displayOrderInImpact>
|
||||||
|
<comps>
|
||||||
|
<li Class="PreceptComp_SituationalThought">
|
||||||
|
<thought>Pregnancy_Virtue</thought>
|
||||||
|
<description>Pregnancy is a symbol of virtue and respect.</description>
|
||||||
|
<tooltipShowMoodRange>true</tooltipShowMoodRange>
|
||||||
|
</li>
|
||||||
|
</comps>
|
||||||
|
</PreceptDef>
|
||||||
|
|
||||||
|
<PreceptDef>
|
||||||
|
<defName>Preg_Duty</defName>
|
||||||
|
<issue>Pregnancy</issue>
|
||||||
|
<label>duty</label>
|
||||||
|
<description>Being pregnant and birthing offspring for the colony is expected from the fertile.</description>
|
||||||
|
<impact>High</impact>
|
||||||
|
<displayOrderInImpact>110</displayOrderInImpact>
|
||||||
|
|
||||||
|
<comps>
|
||||||
|
<li Class="PreceptComp_SituationalThought">
|
||||||
|
<description>Pain</description>
|
||||||
|
<thought>Pain_Idealized</thought>
|
||||||
|
<tooltipShowMoodRange>true</tooltipShowMoodRange>
|
||||||
|
</li>
|
||||||
|
</comps>
|
||||||
|
</PreceptDef>
|
||||||
|
</Defs>
|
||||||
|
|
36
CRIAPregnancy/Properties/AssemblyInfo.cs
Normal file
36
CRIAPregnancy/Properties/AssemblyInfo.cs
Normal 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("CRIAPregnancy")]
|
||||||
|
[assembly: AssemblyDescription("")]
|
||||||
|
[assembly: AssemblyConfiguration("")]
|
||||||
|
[assembly: AssemblyCompany("")]
|
||||||
|
[assembly: AssemblyProduct("CRIAPregnancy")]
|
||||||
|
[assembly: AssemblyCopyright("Copyright © 2022")]
|
||||||
|
[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("7338b390-a5ac-4a08-9c7d-aca72100309e")]
|
||||||
|
|
||||||
|
// 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")]
|
|
@ -0,0 +1,15 @@
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using Verse;
|
||||||
|
using RimWorld;
|
||||||
|
using rjw;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
namespace CRIAPregnancy
|
||||||
|
{
|
||||||
|
public class CompProperties_LastPregnancy : CompProperties
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
18
CRIAPregnancy/Source/Comps/Comp_LastPregnancy.cs
Normal file
18
CRIAPregnancy/Source/Comps/Comp_LastPregnancy.cs
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using Verse;
|
||||||
|
using RimWorld;
|
||||||
|
using rjw;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
namespace CRIAPregnancy
|
||||||
|
{
|
||||||
|
public class Comp_LastPregnancy : ThingComp
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
31
CRIAPregnancy/Source/Thoughts/ThoughtWorker_Pregnancy.cs
Normal file
31
CRIAPregnancy/Source/Thoughts/ThoughtWorker_Pregnancy.cs
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using Verse;
|
||||||
|
using RimWorld;
|
||||||
|
using rjw;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
namespace CRIAPregnancy
|
||||||
|
{
|
||||||
|
class ThoughtWorker_Pregnancy : ThoughtWorker_Precept
|
||||||
|
{
|
||||||
|
|
||||||
|
public static bool CanBePregnant(Pawn p)
|
||||||
|
{
|
||||||
|
if(p.RaceHasPregnancy()
|
||||||
|
&& Genital_Helper.has_vagina(p)
|
||||||
|
&& p.health.capacities.GetLevel(xxx.reproduction) > 0)
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override ThoughtState ShouldHaveThought(Pawn p)
|
||||||
|
{
|
||||||
|
if (p)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue