No virgin? trait for tribal pawns

This commit is contained in:
amevarashi 2023-12-10 11:34:40 +05:00
parent 0743575d56
commit 3c4060f8bd
2 changed files with 14 additions and 3 deletions

View file

@ -14,7 +14,9 @@ namespace RJWSexperience.Virginity
if (pawn.gender == Gender.Female && !pawn.IsVirgin())
{
if (Rand.Chance(hymenSurgeryChance))
TechLevel techLevel = pawn.Faction?.def.techLevel ?? TechLevel.Industrial;
if (techLevel >= TechLevel.Industrial && Rand.Chance(hymenSurgeryChance))
{
Trait virgin = new Trait(RsDefOf.Trait.Virgin, TraitDegree.FemaleAfterSurgery, true);
pawn.story.traits.GainTrait(virgin);