orgy tweaks

This commit is contained in:
c0ffee12 2021-07-27 23:37:21 -07:00
parent 379c9a4d7d
commit eb3cdf7758
5 changed files with 63 additions and 4 deletions

View file

@ -0,0 +1,30 @@
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Verse;
using RimWorld;
using rjw;
using UnityEngine;
namespace CRIAOrgy
{
public class RitualOutcomeEffectWorker_Orgy : RitualOutcomeEffectWorker_FromQuality
{
public override void Apply(float progress, Dictionary<Pawn, int> totalPresence, LordJob_Ritual jobRitual)
{
foreach (KeyValuePair<Pawn, int> keyValuePair in totalPresence)
{
Pawn participant = keyValuePair.Key;
participant.mindState.Notify_OutfitChanged();
GlobalTextureAtlasManager.TryMarkPawnFrameSetDirty(participant);
if (xxx.is_human(participant))
participant.Drawer.renderer.graphics.ResolveAllGraphics();
}
base.Apply(progress, totalPresence, jobRitual);
}
}
}