first commit

This commit is contained in:
c0ffee 2021-04-12 00:48:48 -07:00
parent 1c82248286
commit 6d1a218b2e
23 changed files with 836 additions and 0 deletions

View 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();
}
}
}
}

View 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());
}
}
}