Changeset 297 for trunk/UPlayer.pas


Ignore:
Timestamp:
Mar 29, 2019, 2:11:34 PM (6 years ago)
Author:
chronos
Message:
  • Added: Unit bonuses configurable for buildings.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UPlayer.pas

    r294 r297  
    13331333          if Addition = 0 then Addition := 1;
    13341334        end;
     1335        if Assigned(Building) and (Building.Kind.BonusGrow > 0) then
     1336          OneUnit.Power := OneUnit.Power + Trunc(OneUnit.Power * Building.Kind.BonusGrow / 100);
    13351337        OneUnit.Power := Min(OneUnit.Power + Addition, MaxPower);
    13361338      end else
Note: See TracChangeset for help on using the changeset viewer.