public override void UpdateAllDuties()
        {
            LordToilData_DefendPoint data = this.Data;

            for (int i = 0; i < base.lord.ownedPawns.Count; i++)
            {
                base.lord.ownedPawns[i].mindState.duty             = new PawnDuty(DutyDefOf.Defend, data.defendPoint, -1f);
                base.lord.ownedPawns[i].mindState.duty.focusSecond = data.defendPoint;
                base.lord.ownedPawns[i].mindState.duty.radius      = data.defendRadius;
            }
        }
Exemplo n.º 2
0
        public override void UpdateAllDuties()
        {
            LordToilData_DefendPoint data = Data;

            for (int i = 0; i < lord.ownedPawns.Count; i++)
            {
                Pawn pawn = lord.ownedPawns[i];
                pawn.mindState.duty             = new PawnDuty(DutyDefOf.Defend, data.defendPoint);
                pawn.mindState.duty.focusSecond = data.defendPoint;
                pawn.mindState.duty.radius      = ((pawn.kindDef.defendPointRadius >= 0f) ? pawn.kindDef.defendPointRadius : data.defendRadius);
            }
        }
Exemplo n.º 3
0
 public LordToil_DefendPoint(bool canSatisfyLongNeeds = true)
 {
     allowSatisfyLongNeeds = canSatisfyLongNeeds;
     data = new LordToilData_DefendPoint();
 }