mirror of
https://gitgud.io/c0ffeeeeeeee/rjw-events.git
synced 2024-08-14 23:57:42 +00:00
first commit
This commit is contained in:
parent
1c82248286
commit
6d1a218b2e
23 changed files with 836 additions and 0 deletions
24
Source/Patches/HarmonyPatch_ReclotheOnEnd.cs
Normal file
24
Source/Patches/HarmonyPatch_ReclotheOnEnd.cs
Normal file
|
@ -0,0 +1,24 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using HarmonyLib;
|
||||
using RimWorld;
|
||||
using Verse;
|
||||
|
||||
namespace RJW_Events
|
||||
{
|
||||
[HarmonyPatch(typeof(LordJob_Joinable_Party), "ApplyOutcome")]
|
||||
public static class HarmonyPatch_ReclotheOnEnd
|
||||
{
|
||||
public static void Postfix(LordToil_Party toil)
|
||||
{
|
||||
List<Pawn> ownedPawns = toil.lord.ownedPawns;
|
||||
foreach(Pawn p in ownedPawns)
|
||||
{
|
||||
p.Drawer.renderer.graphics.ResolveApparelGraphics();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
21
Source/Patches/Harmony_PatchAll.cs
Normal file
21
Source/Patches/Harmony_PatchAll.cs
Normal file
|
@ -0,0 +1,21 @@
|
|||
using HarmonyLib;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Verse;
|
||||
|
||||
namespace RJW_Events
|
||||
{
|
||||
[StaticConstructorOnStartup]
|
||||
class Harmony_PatchAll
|
||||
{
|
||||
static Harmony_PatchAll()
|
||||
{
|
||||
Harmony harmony = new Harmony("rimworldevents");
|
||||
harmony.PatchAll(Assembly.GetExecutingAssembly());
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue