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)); } } }
public override void EngageNearbyWarObject(WarObject rwo) { IncidentUtility.ResolveRimWarBattle(this, rwo); ImmediateAction(rwo); }