Changeset 191 for trunk/UGame.pas
- Timestamp:
- May 1, 2018, 10:16:08 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UGame.pas
r185 r191 8 8 Classes, SysUtils, ExtCtrls, Graphics, XMLConf, XMLRead, XMLWrite, Forms, 9 9 DOM, Math, LazFileUtils, UXMLUtils, Dialogs, Types, LCLType, LCLIntf, fgl, 10 UGeometry , SpecializedList;10 UGeometry; 11 11 12 12 const … … 1467 1467 if Power < MaxPower then begin 1468 1468 // Increase units count 1469 if Game.GrowAmount = gaByOne then Addition := 1 1470 else if Game.GrowAmount = gaBySquareRoot then begin 1471 Addition := Trunc(Sqrt(Power)); 1472 if Addition = 0 then Addition := 1; 1473 end; 1469 Addition := 0; 1470 if Game.GrowAmount = gaByOne then begin 1471 Addition := 1; 1472 end else 1473 if Game.GrowAmount = gaBySquareRoot then begin 1474 Addition := Trunc(Sqrt(Power)); 1475 if Addition = 0 then Addition := 1; 1476 end; 1474 1477 Power := Min(Power + Addition, MaxPower); 1475 1478 end else
Note:
See TracChangeset
for help on using the changeset viewer.