Example #1
0
 public void Apply(Troop troop)
 {
     troop.DecreaseCombativity(this.Combativity);
     troop.StuntDayLeft = this.Period;
     foreach (Influence influence in this.Influences.Influences.Values)
     {
         influence.ApplyInfluence(troop.Leader, Applier.Stunt, 0, false);
     }
     troop.RefreshAllData();
 }
Example #2
0
 public override void PurifyInfluenceKind(Architecture architecture)
 {
     foreach (Microsoft.Xna.Framework.Point point in architecture.ViewArea.Area)
     {
         Troop troopByPosition = Session.Current.Scenario.GetTroopByPosition(point);
         if ((troopByPosition != null) && !architecture.IsFriendly(troopByPosition.BelongedFaction))
         {
             troopByPosition.DecreaseCombativity(this.decrement);
         }
     }
 }
Example #3
0
 public void Apply(Troop troop)
 {
     if ((troop.Combativity + troop.DecrementOfCombatMethodCombativityConsuming) >= this.Combativity)
     {
         troop.CombatMethodApplied = true;
         troop.DecreaseCombativity(this.Combativity - troop.DecrementOfCombatMethodCombativityConsuming);
         troop.ShowNumber = true;
         foreach (Influence influence in this.Influences.Influences.Values)
         {
             influence.ApplyInfluence(troop.Leader, Applier.CombatMethod, 0, false);
         }
     }
 }