Difference between revisions of "List of bonus range types"
From VCMI Project Wiki
Line 5: | Line 5: | ||
* ONLY_ENEMY_ARMY (before 1.2) | * ONLY_ENEMY_ARMY (before 1.2) | ||
TODO: in 0.91 ONLY_MELEE_FIGHT / ONLY_DISTANCE_FIGHT range types work ONLY with creature attack, should be extended to all battle abilities. | TODO: in 0.91 ONLY_MELEE_FIGHT / ONLY_DISTANCE_FIGHT range types work ONLY with creature attack, should be extended to all battle abilities. | ||
+ | |||
+ | (1.2+) | ||
+ | For replacing ONLY_ENEMY_ARMY alias, you should use the following parameters of bonus: | ||
+ | <syntaxhighlight> | ||
+ | "propagator": "BATTLE_WIDE", | ||
+ | "propagationUpdater" : "BONUS_OWNER_UPDATER", | ||
+ | "limiters" : [ "OPPOSITE_SIDE" ] | ||
+ | </syntaxhighlight> | ||
+ | |||
+ | If some updaters or limiters was set before, it was actually ignored and should be replaced to code above. | ||
+ | |||
{{Bonuses}} | {{Bonuses}} |
Revision as of 08:34, 23 March 2023
List of all Bonus range types
- NO_LIMIT
- ONLY_DISTANCE_FIGHT
- ONLY_MELEE_FIGHT
- ONLY_ENEMY_ARMY (before 1.2)
TODO: in 0.91 ONLY_MELEE_FIGHT / ONLY_DISTANCE_FIGHT range types work ONLY with creature attack, should be extended to all battle abilities.
(1.2+) For replacing ONLY_ENEMY_ARMY alias, you should use the following parameters of bonus:
"propagator": "BATTLE_WIDE",
"propagationUpdater" : "BONUS_OWNER_UPDATER",
"limiters" : [ "OPPOSITE_SIDE" ]
If some updaters or limiters was set before, it was actually ignored and should be replaced to code above.
Bonus string constants
- List of all bonus types
- List of bonus value types
- List of bonus range types
- List of bonus duration types
- List of bonus sources
- List of bonus limiters
- List of bonus propagators
- List of bonus updaters