Compare commits

..

3 commits

Author SHA1 Message Date
lutepickle
7eee57709d Re-enable Animal Genetics support 2022-11-17 09:19:46 -08:00
lutepickle
889e8f90f2 Remove obsolete melanin references 2022-11-16 19:19:18 -08:00
lutepickle
21144b0005 Rename gizmo patch file to match the others 2022-11-16 08:19:04 -08:00
8 changed files with 18 additions and 34 deletions

Binary file not shown.

View file

@ -1,5 +1,4 @@
#if false
using AnimalGenetics;
using AnimalGenetics;
using RimWorld;
using System.Collections.Generic;
using Verse;
@ -39,4 +38,3 @@ namespace RJW_Menstruation
}
}
}
#endif

View file

@ -378,31 +378,10 @@ namespace RJW_Menstruation
public bool AddNewBaby(Pawn mother, Pawn father)
{
//float melanin;
string lastname;
if (xxx.is_human(mother))
{
if (xxx.is_human(father))
{
//melanin = ChildRelationUtility.GetRandomChildSkinColor(father.story?.melanin ?? 0f, mother.story?.melanin ?? 0f);
//melanin = (mother.story?.melanin ?? 0f + father.story?.melanin ?? 0f) / 2;
}
else
{
//melanin = mother.story?.melanin ?? 0f;
}
lastname = NameTriple.FromString(mother.Name.ToStringFull).Last;
}
else if (xxx.is_human(father))
{
//melanin = father.story?.melanin ?? 0f;
lastname = NameTriple.FromString(father.Name.ToStringFull).Last;
}
else
{
//melanin = Rand.Range(0, 1.0f);
lastname = "";
}
if (xxx.is_human(mother)) lastname = NameTriple.FromString(mother.Name.ToStringFull).Last;
else if (xxx.is_human(father)) lastname = NameTriple.FromString(father.Name.ToStringFull).Last;
else lastname = "";
PawnGenerationRequest request = new PawnGenerationRequest(
developmentalStages: DevelopmentalStage.Newborn,
@ -424,7 +403,6 @@ namespace RJW_Menstruation
int division = 1;
Pawn firstbaby = null;
//string firstheadpath = null;
int traitSeed = Rand.Int;
List<Trait> parentTraits = GetInheritableTraits(mother, father);
while (Rand.Chance(Configurations.EnzygoticTwinsChance) && division < Configurations.MaxEnzygoticTwins) division++;
@ -476,8 +454,8 @@ namespace RJW_Menstruation
if (baby.IsHAR())
HARCompatibility.CopyHARProperties(baby, firstbaby);
//if (Configurations.AnimalGeneticsActivated)
//AnimalGeneticsCompatibility.CopyGenes(baby, firstbaby);
if (Configurations.AnimalGeneticsActivated)
AnimalGeneticsCompatibility.CopyGenes(baby, firstbaby);
}
}
babies.Add(baby);
@ -489,9 +467,9 @@ namespace RJW_Menstruation
public Pawn GenerateBaby(PawnGenerationRequest request, Pawn mother, Pawn father, List<Trait> parentTraits, int traitSeed)
{
//if (Configurations.AnimalGeneticsActivated) AnimalGeneticsCompatibility.PreConception(mother, father);
if (Configurations.AnimalGeneticsActivated) AnimalGeneticsCompatibility.PreConception(mother, father);
Pawn baby = PawnGenerator.GeneratePawn(request);
//if (Configurations.AnimalGeneticsActivated) AnimalGeneticsCompatibility.PostConception();
if (Configurations.AnimalGeneticsActivated) AnimalGeneticsCompatibility.PostConception();
if (baby == null)
{
Log.Error("Baby not generated. Request: " + request.ToString());

View file

@ -72,6 +72,7 @@
<Compile Include="IngestionOutcomeDoers.cs" />
<Compile Include="Patch\Biotech_Patch.cs" />
<Compile Include="Patch\GC_Patch.cs" />
<Compile Include="Patch\Gizmo_Patch.cs" />
<Compile Include="Recipe_Surgery.cs" />
<Compile Include="StatParts.cs" />
<Compile Include="UI\Dialog_HybridCustom.cs" />
@ -80,7 +81,6 @@
<Compile Include="HediffComps\HediffComp_Breast.cs" />
<Compile Include="Hediff_MultiplePregnancy.cs" />
<Compile Include="JobDrivers.cs" />
<Compile Include="Patch\GetGizmos.cs" />
<Compile Include="UI\Gizmo_Womb.cs" />
<Compile Include="Patch\Harmony.cs" />
<Compile Include="HediffComps\HediffComp_Menstruation.cs" />
@ -98,6 +98,10 @@
<HintPath>..\..\..\..\..\..\..\..\workshop\content\294100\839005762\1.4\Assemblies\AlienRace.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="AnimalGenetics">
<HintPath>..\..\..\..\..\..\..\..\workshop\content\294100\2830943477\1.4\Assemblies\AnimalGenetics.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="Assembly-CSharp">
<HintPath>..\..\..\..\..\..\RimWorldWin64_Data\Managed\Assembly-CSharp.dll</HintPath>
<Private>False</Private>

View file

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Manifest>
<identifier>RJW Menstruation</identifier>
<version>1.0.8.2</version>
<version>1.0.8.3</version>
<dependencies>
</dependencies>
<incompatibleWith />
@ -11,6 +11,7 @@
<li>rim.job.world</li>
<li>Abraxas.RJW.RaceSupport</li>
<li>rjw.milk.humanoid</li>
<li>Mlie.AnimalGenetics</li>
</loadAfter>
<suggests>
</suggests>

View file

@ -1,3 +1,6 @@
Version 1.0.8.3
- Re-added support for Animal Genetics (Continued).
Version 1.0.8.2
- Compatibility update for RJW 5.3.0.7
- Requires RJW 5.3.0.7