1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

Merge pull request #4275 from IvanSavenko/music_modding

Additional options for music modding
This commit is contained in:
Ivan Savenko
2024-07-18 21:28:04 +03:00
committed by GitHub
25 changed files with 120 additions and 43 deletions

View File

@@ -2,18 +2,24 @@
```jsonc
// Human-readable name of the battlefield
"name" : ""
"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
"isSpecial" : false,
// List of bonuses that will affect all battles on this battlefield
"bonuses" : { BONUS_FORMAT }
"bonuses" : { BONUS_FORMAT },
// Background image for this battlefield
"graphics" : ""
"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 ]
"impassableHexes" : [ 10, 20, 50 ],
```

View File

@@ -32,7 +32,7 @@ In order to make functional town you also need:
### Music
- Town theme music track (1 music file)
- Town theme music track (at least 1 music file)
### Buildings
@@ -152,8 +152,9 @@ Each town requires a set of buildings (Around 30-45 buildings)
}
}
},
// Path to town music theme, e.g. "music/castleTheme"
"musicTheme" : "",
// List of town music themes, e.g. [ "music/castleTheme" ]
// At least one music file is required
"musicTheme" : [ "" ],
// List of structures which represents visible graphical objects on town screen.
// See detailed description below

View File

@@ -50,8 +50,8 @@
// Color of terrain on minimap with unpassable objects. RGB triplet, 0-255 range
"minimapBlocked" : [ 150, 100, 50 ],
// Music filename to play on this terrain on adventure map
"music" : "",
// List of music files to play on this terrain on adventure map. At least one file is required
"music" : [ "" ],
"sounds" : {
// List of ambient sounds for this terrain