Mod API Reference:IncomeMod

From Warzone Wiki
Revision as of 23:53, 11 January 2022 by Fizzer (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

IncomeMod: Used to modify a player's income. Added in 5.17.0. 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.

Functions