Mod API Reference:IncomeMod: Difference between revisions
Jump to navigation
Jump to search
Created page with "'''IncomeMod''': Used to modify a player's income. Income is defined as the number of armies the player receives in a turn (or gold in a commerce game). * '''Message''' ..." |
No edit summary |
||
Line 1: | Line 1: | ||
'''IncomeMod''': Used to modify a player's income. Income is defined as the number of armies the player receives in a turn (or gold in a [[commerce]] game). | '''IncomeMod''': Used to modify a player's income. Income is defined as the number of armies the player receives in a turn (or gold in a [[commerce]] game). For these to have an effect, they should be passed to a [[Mod API Reference:GameOrderEvent|GameOrderEvent]]. | ||
* '''Message''' ''string'': The message displayed to the player whose income is modified. This will be displayed in the Income Breakdown Dialog. | * '''Message''' ''string'': The message displayed to the player whose income is modified. This will be displayed in the Income Breakdown Dialog. |
Revision as of 23:52, 11 January 2022
IncomeMod: Used to modify a player's income. Income is defined as the number of armies the player receives in a turn (or gold in a commerce game). For these to have an effect, they should be passed to a GameOrderEvent.
- Message string: The message displayed to the player whose income is modified. This will be displayed in the Income Breakdown Dialog.
- Mod integer: The number of armies (or gold) to add, or subtract if negative.
- PlayerID PlayerID: The ID of the player whose income is being modified. This must be an ID of a player in the current game.
- BonusID Nullable<BonusID>: Optionally, a bonus ID. If specified, these armies/gold can only be only deployed within a single bonus, like in a Local Deployment game. Or if Mod is negative, this will reduce armies that were required to be deployed to this bonus.