rjw-whoring/1.3/Source/Mod/WhoringTab/MainTabWindow_Brothel.cs
2022-07-16 22:50:21 +03:00

25 lines
689 B
C#

using System.Collections.Generic;
using System.Linq;
using System;
using Verse;
using RimWorld;
using RimWorld.Planet;
using rjw;
namespace rjwwhoring.MainTab
{
public class MainTabWindow_Brothel : MainTabWindow_PawnTable
{
private static PawnTableDef pawnTableDef;
protected override PawnTableDef PawnTableDef => pawnTableDef ?? (pawnTableDef = DefDatabase<PawnTableDef>.GetNamed("RJW_Brothel"));
protected override IEnumerable<Pawn> Pawns => Find.CurrentMap.mapPawns.AllPawns.Where(p => xxx.is_human(p) && (p.IsColonist || p.IsPrisonerOfColony));
public override void PostOpen()
{
base.PostOpen();
Find.World.renderer.wantedMode = WorldRenderMode.None;
}
}
}