1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-12 10:03:53 +02:00

Replace js -> json5 code blocks

This commit is contained in:
Ivan Savenko 2024-12-01 19:06:04 +00:00
parent 7b682f9010
commit 5e57582c47
4 changed files with 13 additions and 13 deletions

View File

@ -186,7 +186,7 @@
// FIXME: enable and consider fixing // FIXME: enable and consider fixing
//{ //{
//// List of languages //// List of languages
// "allowed_languages": [ "cpp", "json", "jsonc", "json5", "sh" ], // "allowed_languages": [ "cpp", "json5", "sh" ],
//// Require language only //// Require language only
// "language_only": true // "language_only": true
//}, //},

View File

@ -9,7 +9,7 @@ To start making campaign, create file named `header.json`. See also [Packing cam
Basic structure of this file is here, each section is described in details below Basic structure of this file is here, each section is described in details below
```js ```json5
{ {
"version" : 1, "version" : 1,
@ -34,7 +34,7 @@ Basic structure of this file is here, each section is described in details below
In header are parameters describing campaign properties In header are parameters describing campaign properties
```js ```json5
... ...
"regions": {...}, "regions": {...},
"name": "Campaign name", "name": "Campaign name",
@ -63,7 +63,7 @@ In header are parameters describing campaign properties
Scenario description looks like follow: Scenario description looks like follow:
```js ```json5
{ {
"map": "maps/SomeMap", "map": "maps/SomeMap",
"preconditions": [], "preconditions": [],
@ -100,7 +100,7 @@ Scenario description looks like follow:
Prolog and epilog properties are optional Prolog and epilog properties are optional
```js ```json5
{ {
"video": "NEUTRALA.smk", //video to show "video": "NEUTRALA.smk", //video to show
"music": "musicFile.ogg", //music to play, should be located in music directory "music": "musicFile.ogg", //music to play, should be located in music directory
@ -119,7 +119,7 @@ If `startOptions` is `none`, `bonuses` field will be ignored
If `startOptions` is `bonus`, bonus format may vary depending on its type. If `startOptions` is `bonus`, bonus format may vary depending on its type.
```js ```json5
{ {
"what": "", "what": "",
@ -162,7 +162,7 @@ If `startOptions` is `bonus`, bonus format may vary depending on its type.
If `startOptions` is `crossover`, heroes from specific scenario will be moved to this scenario. Bonus format is following If `startOptions` is `crossover`, heroes from specific scenario will be moved to this scenario. Bonus format is following
```js ```json5
{ {
"playerColor": 0, "playerColor": 0,
"scenario": 0 "scenario": 0
@ -176,7 +176,7 @@ If `startOptions` is `crossover`, heroes from specific scenario will be moved to
If `startOptions` is `hero`, hero can be chosen as a starting bonus. Bonus format is following If `startOptions` is `hero`, hero can be chosen as a starting bonus. Bonus format is following
```js ```json5
{ {
"playerColor": 0, "playerColor": 0,
"hero": "random" "hero": "random"
@ -190,7 +190,7 @@ If `startOptions` is `hero`, hero can be chosen as a starting bonus. Bonus forma
Predefined campaign regions are located in file `campaign_regions.json` Predefined campaign regions are located in file `campaign_regions.json`
```js ```json5
{ {
"background": "ownRegionBackground.png", "background": "ownRegionBackground.png",
"suffix": ["Enabled", "Selected", "Conquered"], "suffix": ["Enabled", "Selected", "Conquered"],

View File

@ -50,7 +50,7 @@ For both types of bonuses, `source` should be specified as `OTHER`.
## Example ## Example
```js ```json5
{ //will give 150% extra health to all players' creatures if specified in "battleBonuses" array { //will give 150% extra health to all players' creatures if specified in "battleBonuses" array
"type" : "STACK_HEALTH", "type" : "STACK_HEALTH",
"val" : 150, "val" : 150,

View File

@ -7,7 +7,7 @@ Markets can be added as any other object with special handler called "market".
Here is schema describing such object Here is schema describing such object
```js ```json5
"seafaringAcademy" : //object name "seafaringAcademy" : //object name
{ {
"handler" : "market", //market handler "handler" : "market", //market handler
@ -85,14 +85,14 @@ See [Secondary skills](Rewardable.md#secondary-skills) description for more deta
### Example for University of magic (e.g conflux building) ### Example for University of magic (e.g conflux building)
```js ```json5
"modes" : ["resource-skill"], "modes" : ["resource-skill"],
"offer" : ["airMagic", "waterMagic", "earthMagic", "fireMagic"] "offer" : ["airMagic", "waterMagic", "earthMagic", "fireMagic"]
``` ```
### Example for regular University ### Example for regular University
```js ```json5
"modes" : ["resource-skill"], "modes" : ["resource-skill"],
"offer" : [ //4 random skills except necromancy "offer" : [ //4 random skills except necromancy
{ "noneOf" : ["necromancy"] }, { "noneOf" : ["necromancy"] },