initial 1.5

This commit is contained in:
amevarashi 2024-04-29 21:02:37 +05:00
parent e19b6d8ff3
commit 2f7a1c0883
48 changed files with 6295 additions and 18 deletions

View file

@ -2,6 +2,7 @@
using rjw;
using System;
using System.Collections.Generic;
using System.Linq;
using Verse;
using Verse.AI;
@ -35,7 +36,7 @@ namespace RJWSexperience.Ideology
{
if (duty != null)
{
List<Pawn> pawns = pawn.Map.mapPawns.AllPawnsSpawned.FindAll(x => x.mindState?.duty?.def == duty.def);
IEnumerable<Pawn> pawns = pawn.Map.mapPawns.AllPawnsSpawned.Where(x => x.mindState?.duty?.def == duty.def);
return pawns.RandomElementByWeightWithDefault(x => SexAppraiser.would_fuck(pawn, x), 0.1f);
}
@ -190,7 +191,14 @@ namespace RJWSexperience.Ideology
get_loved.AddFinishAction(delegate
{
if (xxx.is_human(pawn))
pawn.Drawer.renderer.graphics.ResolveApparelGraphics();
{
CompRJW comp = CompRJW.Comp(pawn);
if (comp != null)
{
comp.drawNude = false;
pawn.Drawer.renderer.SetAllGraphicsDirty();
}
}
});
get_loved.socialMode = RandomSocialMode.Off;
return get_loved;