Esempio n. 1
0
        public override void UpdateAllDuties()
        {
            LordToilData_DefendPawn data = Data;

            for (int i = 0; i < lord.ownedPawns.Count; i++)
            {
                lord.ownedPawns[i].mindState.duty        = new PawnDuty(DutyDefOfLocal.DefendPawn, data.defendPawn);
                lord.ownedPawns[i].mindState.duty.radius = data.defendRadius;
            }
        }
Esempio n. 2
0
 public LordToil_DefendPawn(bool canSatisfyLongNeeds = true)
 {
     allowSatisfyLongNeeds = canSatisfyLongNeeds;
     data = new LordToilData_DefendPawn();
 }