Difference between revisions of "List of bonus limiters"
From VCMI Project Wiki
(→Customizable Limiters) |
|||
Line 10: | Line 10: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==Customizable Limiters== | ==Customizable Limiters== | ||
− | + | ===HAS_ANOTHER_BONUS_LIMITER=== | |
Parameters: | Parameters: | ||
− | + | * Bonus type | |
− | + | * (optional) bonus subtype | |
− | + | ===CREATURE_TYPE_LIMITER=== | |
Parameters: | Parameters: | ||
− | + | * Creature id (string) | |
− | + | * (optional) include upgrades - default is false | |
+ | ===CREATURE_ALIGNMENT_LIMITER=== | ||
+ | Parameters: | ||
+ | * Alignment identifier | ||
+ | ===CREATURE_FACTION_LIMITER=== | ||
+ | Parameters: | ||
+ | * Faction identifier | ||
+ | ===CREATURE_TERRAIN_LIMITER=== | ||
+ | Parameters: | ||
+ | * Terrain identifier | ||
Example: | Example: | ||
Line 25: | Line 34: | ||
"parameters": [ "angel", true ] | "parameters": [ "angel", true ] | ||
} ], | } ], | ||
− | </syntaxhighlight> | + | </syntaxhighlight> |
+ | <syntaxhighlight lang="javascript"> | ||
+ | "limiters" : [ { | ||
+ | "type" : "CREATURE_TERRAIN_LIMITER", | ||
+ | "parameters" : ["sand"] | ||
+ | } ] | ||
+ | </syntaxhighlight> | ||
+ | |||
==Aggregate Limiters== | ==Aggregate Limiters== | ||
The following limiters must be specified as the first element of a list, and operate on the remaining limiters in that list: | The following limiters must be specified as the first element of a list, and operate on the remaining limiters in that list: |
Revision as of 15:54, 17 April 2018
Contents
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
CREATURE_ALIGNMENT_LIMITER
Parameters:
- Alignment identifier
CREATURE_FACTION_LIMITER
Parameters:
- Faction identifier
CREATURE_TERRAIN_LIMITER
Parameters:
- Terrain identifier
Example:
"limiters": [ {
"type":"CREATURE_TYPE_LIMITER",
"parameters": [ "angel", true ]
} ],
"limiters" : [ {
"type" : "CREATURE_TERRAIN_LIMITER",
"parameters" : ["sand"]
} ]
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
- 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