Skip to content

Commit

Permalink
Merge pull request #35342 from arijust/json_info
Browse files Browse the repository at this point in the history
Add info to JSON_INFO.md
  • Loading branch information
ZhilkinSerg authored Nov 6, 2019
2 parents 0806df7 + 80570d0 commit fcbe9b8
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions doc/JSON_INFO.md
Original file line number Diff line number Diff line change
Expand Up @@ -514,21 +514,25 @@ The syntax listed here is still valid.

#### Group definition

| Identifier | Description
|--- |---
| `name` | Unique ID. Must be one continuous word, use underscores if necessary.
| `default` | Default monster, automatically fills in any remaining spawn chances.
| `monsters` | To choose a monster for spawning, the game creates 1000 entries and picks one. Each monster will have a number of entries equal to it's "freq" and the default monster will fill in the remaining. See the table below for how to build the single monster definitions.
| Identifier | Description
|--- |---
| `name` | Unique ID. Must be one continuous word, use underscores if necessary.
| `default` | Default monster, automatically fills in any remaining spawn chances.
| `monsters` | To choose a monster for spawning, the game creates 1000 entries and picks one. Each monster will have a number of entries equal to it's "freq" and the default monster will fill in the remaining. See the table below for how to build the single monster definitions.
| `is_safe` | (bool) Check to not trigger safe-mode warning.
| `is_animal` | (bool) Check if that group has only normal animals.

#### Monster definition

| Identifier | Description
|--- |---
| `monster` | The monster's id.
| `freq` | Chance of occurrence, out of a thousand.
| `multiplier` | How many monsters each monster in this definition should count as, if spawning a limited number of monsters.
| `pack_size` | (_optional_) The minimum and maximum number of monsters in this group that should spawn together. (default: `[1,1]`)
| `conditions` | Conditions limit when monsters spawn. Valid options: `SUMMER`, `WINTER`, `AUTUMN`, `SPRING`, `DAY`, `NIGHT`, `DUSK`, `DAWN`. Multiple Time-of-day conditions (`DAY`, `NIGHT`, `DUSK`, `DAWN`) will be combined together so that any of those conditions makes the spawn valid. Multiple Season conditions (`SUMMER`, `WINTER`, `AUTUMN`, `SPRING`) will be combined together so that any of those conditions makes the spawn valid.
| Identifier | Description
|--- |---
| `monster` | The monster's id.
| `freq` | Chance of occurrence, x/1000.
| `cost_multiplier` | How many monsters each monster in this definition should count as, if spawning a limited number of monsters.
| `pack_size` | (_optional_) The minimum and maximum number of monsters in this group that should spawn together. (default: `[1,1]`)
| `conditions` | Conditions limit when monsters spawn. Valid options: `SUMMER`, `WINTER`, `AUTUMN`, `SPRING`, `DAY`, `NIGHT`, `DUSK`, `DAWN`. Multiple Time-of-day conditions (`DAY`, `NIGHT`, `DUSK`, `DAWN`) will be combined together so that any of those conditions makes the spawn valid. Multiple Season conditions (`SUMMER`, `WINTER`, `AUTUMN`, `SPRING`) will be combined together so that any of those conditions makes the spawn valid.
| `starts` | (_optional_) This entry becomes active after this time. (Measured in hours)
| `ends` | (_optional_) This entry becomes inactive after this time. (Measured in hours)

```C++
{
Expand Down

0 comments on commit fcbe9b8

Please sign in to comment.