예제 #1
0
 public override void EngageNearbyCaravan(Caravan car)
 {
     if (car.Faction != null && car.Faction == Faction.OfPlayer && this.Faction.HostileTo(car.Faction))
     {
         if (ShouldInteractWith(car, this) || (car.PlayerWealthForStoryteller / 105) <= (int)(this.RimWarPoints))
         {
             this.interactable = false;
             IncidentUtility.DoCaravanAttackWithPoints(this, car, this.rimwarData, IncidentUtility.PawnsArrivalModeOrRandom(PawnsArrivalModeDefOf.EdgeWalkIn));
         }
     }
     else
     {
         if (ShouldInteractWith(car, this))
         {
             this.interactable = false;
             IncidentUtility.DoCaravanAttackWithPoints(this, car, this.rimwarData, IncidentUtility.PawnsArrivalModeOrRandom(PawnsArrivalModeDefOf.EdgeWalkIn));
         }
     }
 }
예제 #2
0
 public override void EngageNearbyWarObject(WarObject rwo)
 {
     IncidentUtility.ResolveRimWarBattle(this, rwo);
     ImmediateAction(rwo);
 }