Changeset 72 for trunk/UCore.pas
- Timestamp:
- Sep 28, 2014, 9:21:26 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UCore.pas
r68 r72 81 81 procedure TCore.DoOnMove(CellFrom, CellTo: TCell; var CountOnce, 82 82 CountRepeat: Integer; Update: Boolean; var Confirm: Boolean); 83 var 84 I: Integer; 83 85 begin 84 86 if Update then FormMove.SpinEditOnce.MaxValue := CellFrom.GetAvialPower + CountOnce … … 92 94 FormMove.TrackBarRepeat.Position := FormMove.SpinEditRepeat.Value; 93 95 FormMove.DefendCount := CellTo.Power; 94 FormMove.AttackCount := CellTo.GetAttackPower; 96 // Attack count from other surrounding cells without current move if already exists 97 FormMove.AttackCount := 0; 98 for I := 0 to CellTo.MovesTo.Count - 1 do 99 if TUnitMove(CellTo.MovesTo[I]).CellFrom <> CellFrom then 100 FormMove.AttackCount := FormMove.AttackCount + TUnitMove(CellTo.MovesTo[I]).CountOnce; 95 101 FormMove.ShowWinProbability := CellTo.Player <> CellFrom.Player; 102 96 103 if FormMove.ShowModal = mrOk then begin 97 104 CountOnce := FormMove.SpinEditOnce.Value;
Note:
See TracChangeset
for help on using the changeset viewer.