You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/JSON/ITEM_SPAWN.md
+11-2Lines changed: 11 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -97,6 +97,7 @@ Each entry can have more values (shown above as `...`). They allow further prop
97
97
"artifact": <object>
98
98
"event": <string>
99
99
"snippets": <string>
100
+
"faults": <object>
100
101
```
101
102
102
103
`contents` is added as contents of the created item. It is not checked if they can be put into the item. This allows water, that contains a book, that contains a steel frame, that contains a corpse.
@@ -117,8 +118,6 @@ Each entry can have more values (shown above as `...`). They allow further prop
117
118
118
119
`event`: A reference to a holiday in the `holiday` enum. If specified, the entry only spawns during the specified real holiday. This works the same way as the seasonal title screens, where the holiday is checked against the current system's time. If the holiday matches, the item's spawn probability is taken from the `prob` field. Otherwise, the spawn probability becomes 0.
119
120
120
-
`snippets`: If item uses `snippet_category` instead of description, and snippets contain ids, allow to pick a specific description of an item to spawn; see [JSON_INFO.md#snippets](JSON_INFO.md#snippets)
121
-
122
121
Current possible values are:
123
122
- "none" (Not event-based. Same as omitting the "event" field.)
124
123
- "new_year"
@@ -128,6 +127,16 @@ Current possible values are:
128
127
- "thanksgiving"
129
128
- "christmas"
130
129
130
+
`snippets`: If item uses `snippet_category` instead of description, and snippets contain ids, allow to pick a specific description of an item to spawn; see [JSON_INFO.md#snippets](JSON_INFO.md#snippets)
131
+
132
+
`faults`: If item can have this fault or faults, it would be spawned with it applied. Possible values are:
133
+
`id`: array of fault id that should be applied, if possible
134
+
`chance`: chance to apply any of the faults. Default is 100, always apply
0 commit comments