Difference between revisions of "List of bonus range types"

From VCMI Project Wiki
Jump to: navigation, search
(List of all Bonus range types)
 
(6 intermediate revisions by 2 users not shown)
Line 2: Line 2:
 
* NO_LIMIT
 
* NO_LIMIT
 
* ONLY_DISTANCE_FIGHT
 
* ONLY_DISTANCE_FIGHT
* ONLY_MELEE_FIGHT //used to mark bonuses for attack/defense primary skills from spells like Precision (distance only)
+
* ONLY_MELEE_FIGHT
* ONLY_ENEMY_ARMY
+
* ONLY_ENEMY_ARMY (before 1.2)
= Additional links =
+
TODO: in 0.91 ONLY_MELEE_FIGHT / ONLY_DISTANCE_FIGHT range types work ONLY with creature attack, should be extended to all battle abilities.
*[[Bonus system]]
+
 
*[[Bonus Format]]
+
(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 propagators was set before, it was actually ignored and should be replaced to code above. And OPPOSITE_SIDE limiter should be first, if any other limiters exists.
 +
 
 +
{{Bonuses}}

Latest revision as of 08:35, 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 propagators was set before, it was actually ignored and should be replaced to code above. And OPPOSITE_SIDE limiter should be first, if any other limiters exists.

Bonus string constants

Additional links