Talk:Spell Format

From VCMI Project Wiki
Revision as of 14:48, 2 March 2013 by Ivan (talk | contribs) (Created page with "=Spell levels= I don't like how spell levels are described here. Perhaps instead of dozen of 4-element arrays use 4 sub-records? <syntaxhighlight lang="javascript"> "levels": ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Spell levels

I don't like how spell levels are described here. Perhaps instead of dozen of 4-element arrays use 4 sub-records? <syntaxhighlight lang="javascript"> "levels": [ { // no skill

   "cost" : 5,
   "target" : "CREATURE",
   ...

}, ... { // expert

   "cost" : 2,
   "target" : "NO_TARGET",
   ...

}, <syntaxhighlight>