Made Evergrowing Genitalia use TickExtension

This commit is contained in:
Vegapnk 2024-06-06 10:15:31 +02:00
parent abe5fb7d39
commit a0ca9e1da4
2 changed files with 4 additions and 1 deletions

View file

@ -31,6 +31,9 @@
- Minified some Race-Patches, thanks to @Flock-of-birds (#83)
- XML-Genitalia-Genes can now also provide Breasts. Thanks to @Jaaldabaoth (#84 / #88)
- Many patches and files went into a `Mods`Folder and use an `LoadFolders.xml`. Thanks to @Jaaldabaoth (#84 / #88)
- Translate-Keys for Settings
- Translate-Key for Animal Hybrid Race-Names
- "Tick-Speed" for Evergrowth moved from Mod-Settings to XML
# 2.0.0

View file

@ -15,7 +15,7 @@ namespace RJW_Genes
{
base.Tick();
int interval = ModExtensionHelper.GetTickIntervalFromModExtension(GeneDefOf.rjw_genes_evergrowth, BASE_TICKS);
int interval = ModExtensionHelper.GetTickIntervalFromModExtension(GeneDefOf.rjw_genes_evergrowth, ModExtensionHelper.GetTickIntervalFromModExtension(this.def, BASE_TICKS));
if (pawn.IsHashIntervalTick(interval)
&& this.pawn.Map != null
&& pawn.ageTracker.AgeBiologicalYears >= RJW_Genes_Settings.rjw_genes_resizing_age)