public static void CheckTakeScheduledDrugs(Caravan caravan)
 {
     if (caravan.IsHashIntervalTick(120))
     {
         CaravanDrugPolicyUtility.TryTakeScheduledDrugs(caravan);
     }
 }
Esempio n. 2
0
        public static void TryTakeScheduledDrugs(Caravan caravan)
        {
            List <Pawn> pawnsListForReading = caravan.PawnsListForReading;

            for (int i = 0; i < pawnsListForReading.Count; i++)
            {
                CaravanDrugPolicyUtility.TryTakeScheduledDrugs(pawnsListForReading[i], caravan);
            }
        }
Esempio n. 3
0
 public override void Tick()
 {
     base.Tick();
     CheckAnyNonWorldPawns();
     pather.PatherTick();
     tweener.TweenerTick();
     forage.ForageTrackerTick();
     carryTracker.CarryTrackerTick();
     beds.BedsTrackerTick();
     needs.NeedsTrackerTick();
     CaravanDrugPolicyUtility.CheckTakeScheduledDrugs(this);
     CaravanTendUtility.CheckTend(this);
 }
Esempio n. 4
0
 public override void Tick()
 {
     base.Tick();
     this.CheckAnyNonWorldPawns();
     this.pather.PatherTick();
     this.tweener.TweenerTick();
     CaravanPawnsNeedsUtility.TrySatisfyPawnsNeeds(this);
     if (this.IsHashIntervalTick(120))
     {
         CaravanDrugPolicyUtility.TryTakeScheduledDrugs(this);
     }
     if (this.IsHashIntervalTick(2000))
     {
         CaravanTendUtility.TryTendToRandomPawn(this);
     }
 }