mirror of
https://gitgud.io/c0ffeeeeeeee/rjw-events.git
synced 2024-08-14 23:57:42 +00:00
Various fixes
This commit is contained in:
parent
6d1a218b2e
commit
1cfbc2c83e
7 changed files with 57 additions and 5 deletions
23
Source/Patches/HarmonyPatch_ReclotheOnRemovePawn.cs
Normal file
23
Source/Patches/HarmonyPatch_ReclotheOnRemovePawn.cs
Normal file
|
@ -0,0 +1,23 @@
|
|||
using HarmonyLib;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Verse;
|
||||
using Verse.AI.Group;
|
||||
|
||||
namespace RJW_Events
|
||||
{
|
||||
[HarmonyPatch(typeof(Lord), "RemovePawn")]
|
||||
public static class HarmonyPatch_ReclotheOnRemovePawn
|
||||
{
|
||||
public static void Postfix(Lord __instance, Pawn p)
|
||||
{
|
||||
if(__instance?.LordJob != null && __instance.LordJob is LordJob_Joinable_Orgy)
|
||||
{
|
||||
p.Drawer.renderer.graphics.ResolveApparelGraphics();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
24
Source/Patches/HarmonyPatch_StayNudeForOrgy.cs
Normal file
24
Source/Patches/HarmonyPatch_StayNudeForOrgy.cs
Normal file
|
@ -0,0 +1,24 @@
|
|||
using HarmonyLib;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Verse;
|
||||
using Verse.AI.Group;
|
||||
|
||||
namespace RJW_Events
|
||||
{
|
||||
[HarmonyPatch(typeof(PawnGraphicSet), "ResolveApparelGraphics")]
|
||||
public static class HarmonyPatch_StayNudeForOrgy
|
||||
{
|
||||
public static bool Prefix(PawnGraphicSet __instance)
|
||||
{
|
||||
if(LordUtility.GetLord(__instance.pawn)?.LordJob != null && LordUtility.GetLord(__instance.pawn).LordJob is LordJob_Joinable_Orgy)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue