mirror of
https://github.com/amevarashi/RJW-Sexperience.git
synced 2024-08-14 23:54:08 +00:00
Virgin trait degree enum
This commit is contained in:
parent
77ddd1da33
commit
518e683dd4
2 changed files with 23 additions and 13 deletions
|
@ -114,20 +114,20 @@ namespace RJWSexperience
|
||||||
|
|
||||||
public static void AddVirginTrait(this Pawn pawn)
|
public static void AddVirginTrait(this Pawn pawn)
|
||||||
{
|
{
|
||||||
if (pawn.story?.traits != null)
|
if (pawn.story?.traits == null)
|
||||||
|
return;
|
||||||
|
|
||||||
|
if (pawn.IsVirgin())
|
||||||
{
|
{
|
||||||
if (pawn.IsVirgin())
|
Virginity.TraitDegree degree = Virginity.TraitDegree.MaleVirgin;
|
||||||
{
|
if (pawn.gender == Gender.Female) degree = Virginity.TraitDegree.FemaleVirgin;
|
||||||
int degree = 0;
|
Trait virgin = new Trait(VariousDefOf.Virgin, (int)degree, true);
|
||||||
if (pawn.gender == Gender.Female) degree = 2;
|
pawn.story.traits.GainTrait(virgin);
|
||||||
Trait virgin = new Trait(VariousDefOf.Virgin, degree, true);
|
}
|
||||||
pawn.story.traits.GainTrait(virgin);
|
else if (pawn.gender == Gender.Female && Rand.Chance(0.05f))
|
||||||
}
|
{
|
||||||
else if (pawn.gender == Gender.Female && Rand.Chance(0.05f))
|
Trait virgin = new Trait(VariousDefOf.Virgin, (int)Virginity.TraitDegree.FemaleAfterSurgery, true);
|
||||||
{
|
pawn.story.traits.GainTrait(virgin);
|
||||||
Trait virgin = new Trait(VariousDefOf.Virgin, 1, true);
|
|
||||||
pawn.story.traits.GainTrait(virgin);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
10
RJWSexperience/RJWSexperience/Virginity/TraitDegree.cs
Normal file
10
RJWSexperience/RJWSexperience/Virginity/TraitDegree.cs
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
namespace RJWSexperience.Virginity
|
||||||
|
{
|
||||||
|
public enum TraitDegree
|
||||||
|
{
|
||||||
|
FemaleDamagedVirgin = -1,
|
||||||
|
MaleVirgin = 0,
|
||||||
|
FemaleAfterSurgery = 1,
|
||||||
|
FemaleVirgin = 2
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue