Use virginity trait label instead of a separate string

This commit is contained in:
amevarashi 2022-06-26 13:57:29 +05:00
parent b38a4b1ec3
commit 1b92640028
3 changed files with 2 additions and 4 deletions

View File

@ -137,7 +137,6 @@
<!-- Misc -->
<Lust>lust</Lust>
<Unknown>unknown</Unknown>
<Virgin>virgin</Virgin>
<Incest>incest</Incest>
<!-- Order mode -->

View File

@ -41,7 +41,6 @@ namespace RJWSexperience
public static readonly string RS_BeenRaped = "RS_BeenRaped".Translate();
public static readonly string RS_RapedSomeone = "RS_RapedSomeone".Translate();
public static readonly string RS_PreferRace = "RS_PreferRace".Translate();
public static readonly string Virgin = "Virgin".Translate();
public static readonly string Lust = "Lust".Translate();
public static readonly string Unknown = "Unknown".Translate();
public static readonly string Incest = "Incest".Translate();

View File

@ -370,13 +370,13 @@ namespace RJWSexperience.SexHistory.UI
listmain.Gap(20f);
float p;
if (pawn.IsVirgin())
if (pawn.story?.traits?.HasTrait(VariousDefOf.Virgin) == true)
{
tmp = listmain.GetRect(FONTHEIGHT);
GUI.color = Color.red;
GUI.Box(tmp, "", boxstyle);
GUI.color = Color.white;
GUI.Label(tmp, Keyed.Virgin, fontstylecenter);
GUI.Label(tmp, pawn.story.traits.GetTrait(VariousDefOf.Virgin).Label, fontstylecenter);
}
else
{