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:
parent
7b682f9010
commit
5e57582c47
@ -186,7 +186,7 @@
|
||||
// FIXME: enable and consider fixing
|
||||
//{
|
||||
//// List of languages
|
||||
// "allowed_languages": [ "cpp", "json", "jsonc", "json5", "sh" ],
|
||||
// "allowed_languages": [ "cpp", "json5", "sh" ],
|
||||
//// Require language only
|
||||
// "language_only": true
|
||||
//},
|
||||
|
@ -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
|
||||
|
||||
```js
|
||||
```json5
|
||||
{
|
||||
"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
|
||||
|
||||
```js
|
||||
```json5
|
||||
...
|
||||
"regions": {...},
|
||||
"name": "Campaign name",
|
||||
@ -63,7 +63,7 @@ In header are parameters describing campaign properties
|
||||
|
||||
Scenario description looks like follow:
|
||||
|
||||
```js
|
||||
```json5
|
||||
{
|
||||
"map": "maps/SomeMap",
|
||||
"preconditions": [],
|
||||
@ -100,7 +100,7 @@ Scenario description looks like follow:
|
||||
|
||||
Prolog and epilog properties are optional
|
||||
|
||||
```js
|
||||
```json5
|
||||
{
|
||||
"video": "NEUTRALA.smk", //video to show
|
||||
"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.
|
||||
|
||||
```js
|
||||
```json5
|
||||
{
|
||||
"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
|
||||
|
||||
```js
|
||||
```json5
|
||||
{
|
||||
"playerColor": 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
|
||||
|
||||
```js
|
||||
```json5
|
||||
{
|
||||
"playerColor": 0,
|
||||
"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`
|
||||
|
||||
```js
|
||||
```json5
|
||||
{
|
||||
"background": "ownRegionBackground.png",
|
||||
"suffix": ["Enabled", "Selected", "Conquered"],
|
||||
|
@ -50,7 +50,7 @@ For both types of bonuses, `source` should be specified as `OTHER`.
|
||||
|
||||
## Example
|
||||
|
||||
```js
|
||||
```json5
|
||||
{ //will give 150% extra health to all players' creatures if specified in "battleBonuses" array
|
||||
"type" : "STACK_HEALTH",
|
||||
"val" : 150,
|
||||
|
@ -7,7 +7,7 @@ Markets can be added as any other object with special handler called "market".
|
||||
|
||||
Here is schema describing such object
|
||||
|
||||
```js
|
||||
```json5
|
||||
"seafaringAcademy" : //object name
|
||||
{
|
||||
"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)
|
||||
|
||||
```js
|
||||
```json5
|
||||
"modes" : ["resource-skill"],
|
||||
"offer" : ["airMagic", "waterMagic", "earthMagic", "fireMagic"]
|
||||
```
|
||||
|
||||
### Example for regular University
|
||||
|
||||
```js
|
||||
```json5
|
||||
"modes" : ["resource-skill"],
|
||||
"offer" : [ //4 random skills except necromancy
|
||||
{ "noneOf" : ["necromancy"] },
|
||||
|
Loading…
Reference in New Issue
Block a user