Variables
read onlybuildingId:Null<BuildingKind>
The kind of building affected by this bonus, if applicable. Example : Free upgrade for the Training Camp.
read onlyresId:Null<BuildingKind>
The kind of resource affected by this bonus, if applicable. Example : +2 Wood.
Methods
getDesc(?player:Player):String
Get the formatted description of the bonus, with the right value and relative unit, building or resource when its the case.
Parameters:
player |
---|
Returns:
String
getVal(?id:BonusValId):Float
Return the value of the current bonus, depending on whether it's an advanced one
Parameters:
id |
---|
Returns:
Float