mirror of
https://gitgud.io/amevarashi/rjw-sexperience-ideology.git
synced 2026-06-18 19:25:59 +00:00
48 lines
No EOL
1 KiB
C#
48 lines
No EOL
1 KiB
C#
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<Toil> 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;
|
|
}
|
|
}
|
|
} |