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,12 +13,12 @@ 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;
|
||||||
degree = virgin.Degree;
|
|
||||||
if (pawn.gender == Gender.Female && degree > 0)
|
int degree = virgin.Degree;
|
||||||
|
if (pawn.gender == Gender.Female && degree > 0 && !pawn.Dead)
|
||||||
{
|
{
|
||||||
FilthMaker.TryMakeFilth(pawn.Position, pawn.Map, ThingDefOf.Filth_Blood, pawn.LabelShort, 1, FilthSourceFlags.Pawn);
|
FilthMaker.TryMakeFilth(pawn.Position, pawn.Map, ThingDefOf.Filth_Blood, pawn.LabelShort, 1, FilthSourceFlags.Pawn);
|
||||||
}
|
}
|
||||||
|
@ -26,12 +26,11 @@ namespace RJWSexperience
|
||||||
pawn.story.traits.RemoveTrait(virgin);
|
pawn.story.traits.RemoveTrait(virgin);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <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