mirror of
https://github.com/vegapnk/RJW-Genes.git
synced 2024-08-15 00:23:31 +00:00
Moved Insect Incubator and Breeder to Hive Genes
This commit is contained in:
parent
8605a09941
commit
765ef964c4
6 changed files with 36 additions and 28 deletions
10
CHANGELOG.md
10
CHANGELOG.md
|
@ -1,15 +1,17 @@
|
||||||
# 1.2
|
# 1.2
|
||||||
|
|
||||||
Changes:
|
**Changes:**
|
||||||
|
|
||||||
- Cocoon Weaver Gene
|
- Cocoon Weaver Gene
|
||||||
- Spawn Spelopede Gene (Can re changed to spawn Megascarabs or other insects)
|
- Spawn Spelopede Gene (Can re changed to spawn Megascarabs or other insects)
|
||||||
|
- Queens & Caste Logic (see below)
|
||||||
|
|
||||||
Internal:
|
**Internal:**
|
||||||
|
|
||||||
- Renamed Abilities to have _ability_ in their name, to not exactly match the gene-defnames.
|
- Renamed Abilities to have _ability_ in their name, to not exactly match the gene-defnames.
|
||||||
|
- Moved Insect-Incubator & Insect-Breeder to Hive Category and Folders
|
||||||
|
|
||||||
Fixes:
|
**Fixes:**
|
||||||
|
|
||||||
- Cockeater Ability has now Icon of Cockeater Gene
|
- Cockeater Ability has now Icon of Cockeater Gene
|
||||||
- Cockeater now leaves a bite wound!
|
- Cockeater now leaves a bite wound!
|
||||||
|
@ -31,7 +33,7 @@ In general, the logic is the following:
|
||||||
I am not sure if I want to have a specific mapping defining that Queen can only mate with certain Drones, let me know how you feel about it.
|
I am not sure if I want to have a specific mapping defining that Queen can only mate with certain Drones, let me know how you feel about it.
|
||||||
*Queens can be male*. I just used the female-term, but implementation is gender-neutral.
|
*Queens can be male*. I just used the female-term, but implementation is gender-neutral.
|
||||||
|
|
||||||
ToDo:
|
**ToDo:**
|
||||||
|
|
||||||
- Icons: Cocoon, Spelopede Spawn
|
- Icons: Cocoon, Spelopede Spawn
|
||||||
- Sound: Spelopede Spawn
|
- Sound: Spelopede Spawn
|
||||||
|
|
|
@ -13,27 +13,6 @@
|
||||||
<biostatMet>-1</biostatMet>
|
<biostatMet>-1</biostatMet>
|
||||||
</GeneDef>
|
</GeneDef>
|
||||||
|
|
||||||
<GeneDef>
|
|
||||||
<defName>rjw_genes_insectincubator</defName>
|
|
||||||
<label>InsectIncubator</label>
|
|
||||||
<description>Pawns with this gene are able to hold more insect eggs.</description>
|
|
||||||
<iconPath>Genes/Icons/More_Egg_Space</iconPath>
|
|
||||||
<displayOrderInCategory>52</displayOrderInCategory>
|
|
||||||
<displayCategory>rjw_genes_breeding</displayCategory>
|
|
||||||
<biostatCpx>1</biostatCpx>
|
|
||||||
<biostatMet>-1</biostatMet>
|
|
||||||
</GeneDef>
|
|
||||||
|
|
||||||
<GeneDef>
|
|
||||||
<defName>rjw_genes_insectbreeder</defName>
|
|
||||||
<label>InsectBreeder</label>
|
|
||||||
<description>Pawns with this gene are able to fertilize eggs with any fertile penis.</description>
|
|
||||||
<iconPath>World/WorldObjects/Expanding/Insects</iconPath>
|
|
||||||
<displayOrderInCategory>53</displayOrderInCategory>
|
|
||||||
<displayCategory>rjw_genes_breeding</displayCategory>
|
|
||||||
<biostatCpx>1</biostatCpx>
|
|
||||||
<biostatMet>-1</biostatMet>
|
|
||||||
</GeneDef>
|
|
||||||
|
|
||||||
<GeneDef>
|
<GeneDef>
|
||||||
<defName>rjw_genes_zoophile</defName>
|
<defName>rjw_genes_zoophile</defName>
|
||||||
|
|
|
@ -165,4 +165,28 @@
|
||||||
<biostatCpx>1</biostatCpx>
|
<biostatCpx>1</biostatCpx>
|
||||||
<biostatMet>-1</biostatMet>
|
<biostatMet>-1</biostatMet>
|
||||||
</GeneDef>
|
</GeneDef>
|
||||||
|
|
||||||
|
|
||||||
|
<GeneDef>
|
||||||
|
<defName>rjw_genes_insectincubator</defName>
|
||||||
|
<label>InsectIncubator</label>
|
||||||
|
<description>Pawns with this gene are able to host more insect eggs, hatch them faster and fertilize any inserted egg.</description>
|
||||||
|
<iconPath>Genes/Icons/More_Egg_Space</iconPath>
|
||||||
|
<displayOrderInCategory>52</displayOrderInCategory>
|
||||||
|
<displayCategory>rjw_genes_hive</displayCategory>
|
||||||
|
<biostatCpx>1</biostatCpx>
|
||||||
|
<biostatMet>-1</biostatMet>
|
||||||
|
</GeneDef>
|
||||||
|
|
||||||
|
<GeneDef>
|
||||||
|
<defName>rjw_genes_insectbreeder</defName>
|
||||||
|
<label>InsectBreeder</label>
|
||||||
|
<description>Pawns with this gene are able to fertilize eggs with any fertile penis.</description>
|
||||||
|
<iconPath>World/WorldObjects/Expanding/Insects</iconPath>
|
||||||
|
<displayOrderInCategory>53</displayOrderInCategory>
|
||||||
|
<displayCategory>rjw_genes_hive</displayCategory>
|
||||||
|
<biostatCpx>1</biostatCpx>
|
||||||
|
<biostatMet>-1</biostatMet>
|
||||||
|
</GeneDef>
|
||||||
|
|
||||||
</Defs>
|
</Defs>
|
|
@ -12,9 +12,10 @@ namespace RJW_Genes
|
||||||
/// Patched Class is https://gitgud.io/Ed86/rjw/-/blob/master/1.4/Source/Common/Helpers/SexUtility.cs
|
/// Patched Class is https://gitgud.io/Ed86/rjw/-/blob/master/1.4/Source/Common/Helpers/SexUtility.cs
|
||||||
///
|
///
|
||||||
/// Normal Egg-Pregnancy logic is in https://gitgud.io/Ed86/rjw/-/blob/master/1.4/Source/Modules/Pregnancy/Pregnancy_Helper.cs
|
/// Normal Egg-Pregnancy logic is in https://gitgud.io/Ed86/rjw/-/blob/master/1.4/Source/Modules/Pregnancy/Pregnancy_Helper.cs
|
||||||
|
/// Gene: rjw_genes_insectbreeder
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[HarmonyPatch(typeof(SexUtility), "Aftersex")]
|
[HarmonyPatch(typeof(SexUtility), "Aftersex")]
|
||||||
static class Patch_EggFertilization
|
static class Patch_InsectBreeder_EggFertilization
|
||||||
{
|
{
|
||||||
public static void Postfix(SexProps props)
|
public static void Postfix(SexProps props)
|
||||||
{
|
{
|
|
@ -15,9 +15,11 @@ namespace RJW_Genes
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// This Class patches the RJW-DoEgg to allow up to MaxEggSizeMul times the original amount of eggs.
|
/// This Class patches the RJW-DoEgg to allow up to MaxEggSizeMul times the original amount of eggs.
|
||||||
/// This harmony patch was kindly provided by 'shabalox' https://github.com/Shabalox/RJW_Genes_Addons/
|
/// This harmony patch was kindly provided by 'shabalox' https://github.com/Shabalox/RJW_Genes_Addons/
|
||||||
|
///
|
||||||
|
/// For Gene: rjw_genes_insectincubator
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[HarmonyPatch(typeof(PregnancyHelper), "DoEgg")]
|
[HarmonyPatch(typeof(PregnancyHelper), "DoEgg")]
|
||||||
static class PatchPregnancyHelper
|
static class Patch_InsectIncubator_PregnancyHelper
|
||||||
{
|
{
|
||||||
[HarmonyTranspiler]
|
[HarmonyTranspiler]
|
||||||
public static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstruction> instructions, ILGenerator il)
|
public static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstruction> instructions, ILGenerator il)
|
|
@ -43,7 +43,7 @@
|
||||||
<Compile Include="GeneDefOf.cs" />
|
<Compile Include="GeneDefOf.cs" />
|
||||||
<Compile Include="Genes\Breeding\Gene_MechBreeder.cs" />
|
<Compile Include="Genes\Breeding\Gene_MechBreeder.cs" />
|
||||||
<Compile Include="Genes\Breeding\PatchMechBirth.cs" />
|
<Compile Include="Genes\Breeding\PatchMechBirth.cs" />
|
||||||
<Compile Include="Genes\Breeding\Patch_EggFertilization.cs" />
|
<Compile Include="Genes\Hive\Patches\Patch_InsectBreeder_EggFertilization.cs" />
|
||||||
<Compile Include="Genes\Breeding\PatchPregnancyHelper.cs" />
|
<Compile Include="Genes\Breeding\PatchPregnancyHelper.cs" />
|
||||||
<Compile Include="Genes\Cum\CumUtility.cs" />
|
<Compile Include="Genes\Cum\CumUtility.cs" />
|
||||||
<Compile Include="Genes\Cum\Gene_VeryMuchCum.cs" />
|
<Compile Include="Genes\Cum\Gene_VeryMuchCum.cs" />
|
||||||
|
|
Loading…
Reference in a new issue