mirror of
https://github.com/amevarashi/RJW-Sexperience.git
synced 2024-08-14 23:54:08 +00:00
No virgin? trait for tribal pawns
This commit is contained in:
parent
0743575d56
commit
3c4060f8bd
2 changed files with 14 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue