Difference between revisions of "List of bonus limiters"

From VCMI Project Wiki
Jump to: navigation, search
Line 4: Line 4:
 
* DRAGON_NATURE
 
* DRAGON_NATURE
 
* IS_UNDEAD
 
* IS_UNDEAD
 +
 +
Example:
 +
<syntaxhighlight lang="javascript">
 +
"limiters" : [ "SHOOTER_ONLY" ]
 +
</syntaxhighlight>
 
==Customizable Limiters==
 
==Customizable Limiters==
 
* HAS_ANOTHER_BONUS_LIMITER
 
* HAS_ANOTHER_BONUS_LIMITER
Line 13: Line 18:
 
** Creature id (string)
 
** Creature id (string)
 
** (optional) include upgrades - default is false
 
** (optional) include upgrades - default is false
 +
 +
Example:
 +
<syntaxhighlight lang="javascript">
 +
"limiters": [ {
 +
"type":"CREATURE_TYPE_LIMITER",
 +
"parameters": [ "angel", true ]
 +
} ],
 +
</syntaxhighlight>
 
{{Bonuses}}
 
{{Bonuses}}

Revision as of 19:29, 16 May 2014

Predefined Limiters

The limiters take no parameters:

  • SHOOTER_ONLY
  • DRAGON_NATURE
  • IS_UNDEAD

Example:

"limiters" : [ "SHOOTER_ONLY" ]

Customizable Limiters

  • HAS_ANOTHER_BONUS_LIMITER

Parameters:

    • Bonus type
    • (optional) bonus subtype
  • CREATURE_TYPE_LIMITER

Parameters:

    • Creature id (string)
    • (optional) include upgrades - default is false

Example:

"limiters": [ {
	"type":"CREATURE_TYPE_LIMITER",
	"parameters": [ "angel", true ]
} ],

Bonus string constants

Additional links