Made Animal Hybrid Names Translatable and Changeable, closes #76

This commit is contained in:
Vegapnk 2024-06-06 09:45:53 +02:00
parent 5a4c90a42b
commit 93b9feb2a9
2 changed files with 8 additions and 1 deletions

View file

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<LanguageData>
<rjw_genes_bestiality_hybrid_name>animal-hybrid</rjw_genes_bestiality_hybrid_name>
</LanguageData>

View file

@ -7,6 +7,7 @@ using HarmonyLib;
using RimWorld;
using Verse;
using rjw;
using static RimWorld.PsychicRitualRoleDef;
namespace RJW_BGS
{
@ -43,7 +44,9 @@ namespace RJW_BGS
// The mix-breed babies should be labelled hybrids
baby.genes.hybrid = true;
baby.genes.xenotypeName = "Hybrid";
//reason = "AbilityDisabledNoFertilinGene".Translate(this.parent.pawn);
baby.genes.xenotypeName = "rjw_genes_bestiality_hybrid".Translate();
}
}
}