Changeset 60 for trunk/Forms


Ignore:
Timestamp:
Sep 26, 2014, 12:27:50 AM (10 years ago)
Author:
chronos
Message:
  • Fixed: Limited depth of win probability calculation.
  • Fixed: Show probability using sum of all attacking units from multiple cells.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormMove.pas

    r59 r60  
    4242  public
    4343    DefendCount: Integer;
     44    AttackCount: Integer;
    4445    procedure UpdateView;
    4546  end;
     
    7273begin
    7374  LabelWinProbability.Caption :=
    74     IntToStr(Round(Core.Game.AttackProbability(SpinEditOnce.Value,
    75     DefendCount) * 100)) + ' %';
     75    IntToStr(Round(Core.Game.AttackProbability(AttackCount + SpinEditOnce.Value,
     76    DefendCount, 1) * 100)) + ' %';
    7677end;
    7778
Note: See TracChangeset for help on using the changeset viewer.