using System.Collections.Generic; using Verse; using RimWorld; using rjw; using Verse.AI; namespace RJWSexperience.Ideology { public class JobDriver_LewdTrainReciever : JobDriver_SexBaseReciever { protected override IEnumerable MakeNewToils() { DoSetup(); var get_loved = new Toil { defaultCompleteMode = ToilCompleteMode.Never, handlingFacing = true, socialMode = RandomSocialMode.Off, initAction = () => { pawn.pather.StopDead(); pawn.jobs.curDriver.asleep = false; }, tickAction = () => { if (pawn.IsHashIntervalTick(ticks_between_hearts)) ThrowMetaIconF(pawn.Position, pawn.Map, FleckDefOf.Heart); } }; get_loved.AddFinishAction(() => { if (xxx.is_human(pawn)) { var comp = pawn.GetCompRJW(); if (comp != null) { comp.drawNude = false; pawn.Drawer.renderer.SetAllGraphicsDirty(); } } GlobalTextureAtlasManager.TryMarkPawnFrameSetDirty(pawn); }); yield return get_loved; } } }