mirror of
https://github.com/amevarashi/RJW-Sexperience.git
synced 2024-08-14 23:54:08 +00:00
Don't generate blood stain for corpses
This commit is contained in:
parent
c696488f87
commit
48869b4578
1 changed files with 10 additions and 11 deletions
|
@ -13,25 +13,24 @@ namespace RJWSexperience
|
||||||
{
|
{
|
||||||
public static bool RemoveVirginTrait(Pawn pawn, Pawn partner, SexProps props)
|
public static bool RemoveVirginTrait(Pawn pawn, Pawn partner, SexProps props)
|
||||||
{
|
{
|
||||||
int degree;
|
|
||||||
Trait virgin = pawn.story?.traits?.GetTrait(VariousDefOf.Virgin);
|
Trait virgin = pawn.story?.traits?.GetTrait(VariousDefOf.Virgin);
|
||||||
if (virgin != null)
|
if (virgin == null)
|
||||||
|
return false;
|
||||||
|
|
||||||
|
int degree = virgin.Degree;
|
||||||
|
if (pawn.gender == Gender.Female && degree > 0 && !pawn.Dead)
|
||||||
{
|
{
|
||||||
degree = virgin.Degree;
|
FilthMaker.TryMakeFilth(pawn.Position, pawn.Map, ThingDefOf.Filth_Blood, pawn.LabelShort, 1, FilthSourceFlags.Pawn);
|
||||||
if (pawn.gender == Gender.Female && degree > 0)
|
|
||||||
{
|
|
||||||
FilthMaker.TryMakeFilth(pawn.Position, pawn.Map, ThingDefOf.Filth_Blood, pawn.LabelShort, 1, FilthSourceFlags.Pawn);
|
|
||||||
}
|
|
||||||
ThrowVirginHIstoryEvent(pawn, partner, props, degree);
|
|
||||||
pawn.story.traits.RemoveTrait(virgin);
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
return false;
|
ThrowVirginHIstoryEvent(pawn, partner, props, degree);
|
||||||
|
pawn.story.traits.RemoveTrait(virgin);
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// For ideo patch
|
/// For ideo patch
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[System.Diagnostics.CodeAnalysis.SuppressMessage("Redundancy", "RCS1163:Unused parameter.", Justification = "All parameters are needed for the ideology patch")]
|
||||||
public static void ThrowVirginHIstoryEvent(Pawn pawn, Pawn partner, SexProps props, int degree)
|
public static void ThrowVirginHIstoryEvent(Pawn pawn, Pawn partner, SexProps props, int degree)
|
||||||
{
|
{
|
||||||
//for non-ideo
|
//for non-ideo
|
||||||
|
|
Loading…
Reference in a new issue