From 7f1fa01abde663e8ff266496de2eff94625dd906 Mon Sep 17 00:00:00 2001 From: Vegapnk Date: Tue, 16 Jul 2024 19:02:30 +0200 Subject: [PATCH] Improvements to Spawning --- .../Defs/HediffDefs/Sexperience_HediffDefs.xml | 15 +++++++++++++++ Source/Genes/Cum/JobDriver_ProcessingCumbucket.cs | 4 ++++ 2 files changed, 19 insertions(+) diff --git a/Mods/Sexperience/Defs/HediffDefs/Sexperience_HediffDefs.xml b/Mods/Sexperience/Defs/HediffDefs/Sexperience_HediffDefs.xml index f890bd9..42281b1 100644 --- a/Mods/Sexperience/Defs/HediffDefs/Sexperience_HediffDefs.xml +++ b/Mods/Sexperience/Defs/HediffDefs/Sexperience_HediffDefs.xml @@ -20,6 +20,7 @@
  • 0.5
  • 0.25
  • 0.1
  • +
  • 0.005
  • @@ -72,6 +73,20 @@ +
  • + + 10.1 + 0.1 + + -1.5 + + +
  • + Moving + -0.55 +
  • + + diff --git a/Source/Genes/Cum/JobDriver_ProcessingCumbucket.cs b/Source/Genes/Cum/JobDriver_ProcessingCumbucket.cs index 537e441..cb8ef6e 100644 --- a/Source/Genes/Cum/JobDriver_ProcessingCumbucket.cs +++ b/Source/Genes/Cum/JobDriver_ProcessingCumbucket.cs @@ -97,8 +97,12 @@ namespace RJW_Genes Thing cum = ThingMaker.MakeThing(cumDef); cum.Position = cell; int stacks = Math.Max(1, (int)(hediff.Severity * 3)); + stacks = Math.Min(stacks, 75); // 75 is the default max stacksize ... cum.stackCount = stacks; cum.SpawnSetup(map, false); + + //TODO: Reduce this ... better? + hediff.Severity -= stacks / 50; } private int ticksLeft;