Difference between revisions of "Bonus Format"

From VCMI Project Wiki
Jump to: navigation, search
(Full format)
(Replaced content with "{{Template:MovedToWebpage|https://vcmi.eu/modders/Bonus_Format/}}")
 
(37 intermediate revisions by 6 users not shown)
Line 1: Line 1:
Enumertaed parameters are described in HeroBonus.h file.
+
{{Template:MovedToWebpage|https://vcmi.eu/modders/Bonus_Format/}}
===Short format===
 
<pre>
 
{
 
["BONUS_TYPE", val, subtype, additionalInfo]
 
}
 
</pre>
 
===Full format===
 
ALl parameters but type are optional.
 
<pre>
 
{
 
"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" : ""
 
}
 
</pre>
 

Latest revision as of 16:18, 16 July 2024

Logo256.png    Page moved to VCMI-Homepage