Difference between revisions of "Bonus Format"
From VCMI Project Wiki
(Created page with "Enumertaed parameters are described in HeroBonus.h file. ===Short format=== <pre> { ["BONUS_TYPE", val, subtype, additionalInfo] } </pre> ===Full format=== <pre> { "type": "BONUS...") |
(→Full format) |
||
| Line 7: | Line 7: | ||
</pre> | </pre> | ||
===Full format=== | ===Full format=== | ||
| + | ALl parameters but type are optional. | ||
<pre> | <pre> | ||
{ | { | ||
Revision as of 16:06, 23 August 2012
Enumertaed parameters are described in HeroBonus.h file.
Short format
{
["BONUS_TYPE", val, subtype, additionalInfo]
}
Full format
ALl parameters but type are optional.
{
"type": "BONUS_TYPE",
"subtype: 0,
"val" : 0,
"valueType", "VALUE_TYPE",
"addInfo" : 0,
"duration" : "BONUS_DURATION",
"turns" : 0,
"sourceType" : "SOURCE_TYPE",
"sourceID" : 0,
"effectRange" : "EFFECT_RANGE",
"limiter" : ["LIMITER_TYPE", optional_parameters (...)]
"propagator" : ["PROPAGATOR_TYPE", optional_parameters (...)]
"description" : ""
}
