List of bonus limiters

From VCMI Project Wiki
Revision as of 00:27, 31 March 2018 by Hkoehler (talk | contribs)
Jump to: navigation, search

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 ]
} ],

Aggregate Limiters

The following limiters must be specified as the first element of a list, and operate on the remaining limiters in that list:

  • allOf (default when no aggregate limiter is specified)
  • anyOf
  • noneOf

Example:

"limiters" : [
    "noneOf",
    "IS_UNDEAD",
    {
        "type" : "HAS_ANOTHER_BONUS_LIMITER",
        "parameters" : [ "SIEGE_WEAPON" ]
    }
]

Bonus string constants

Additional links