public override void MapComponentTick() { base.MapComponentTick(); if (incidentQueue == null) { incidentQueue = new IncidentQueue(); } if (incidentQueue.Count <= 1) { GenericUtility.FillIncidentQueue(map); } incidentQueue.IncidentQueueTick(); if (GenTicks.TicksGame > nextQueueInspection) { nextQueueInspection = GenTicks.TicksGame + GenDate.TicksPerDay; GenericUtility.CheckTooManyIncidentsAtOnce(incidentQueue); } if (GenTicks.TicksGame > nextRogueGuestCheck) { nextRogueGuestCheck = GenTicks.TicksGame + GenDate.TicksPerHour; GuestUtility.CheckForRogueGuests(map); } if (GenTicks.TicksGame > nextGuestListCheck) { nextGuestListCheck = GenTicks.TicksGame + GenDate.TicksPerDay / 4; PresentLords.Clear(); RefreshGuestListTotal(); } }
public void RefreshGuestListTotal() { PresentLords.Clear(); PresentLords.AddRange(map.lordManager.lords.Where(l => l.CurLordToil?.GetType() == typeof(LordToil_VisitPoint))); }