mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-22 22:13:35 +02:00
879aaba980
Looks like website only recognizes javascript & json, and is not aware of jsonc or json5. Will result in small regression on Github web view - comments will show up as red (since comments are not part of json format), but syntax highlight would work both on website and on Github. Alternative is using javascript for syntax highlight, however syntax highlighter for json looks better on both website and Github (since it uses separate highlighting for json keys, separate from strings in values)
795 B
795 B
Battlefield Format
// Human-readable name of the battlefield
"name" : "",
// If set to true, obstacles will be taken from "specialBattlefields" property of an obstacle
// If set to false, obstacles will be taken from "allowedTerrains" instead
"isSpecial" : false,
// List of bonuses that will affect all battles on this battlefield
"bonuses" : { BONUS_FORMAT },
// Background image for this battlefield
"graphics" : "",
// Optional, filename for custom music to play during combat on this terrain
"music" : "",
// Optional, filename for custom sound to play during combat opening on this terrain
"openingSound" : "",
// List of battle hexes that will be always blocked on this battlefield (e.g. ship to ship battles)
"impassableHexes" : [ 10, 20, 50 ],