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/JSON_FLAGS.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -71,7 +71,7 @@
71
71
72
72
## Notes
73
73
74
-
- Some flags (items, effects, vehicle parts) have to be defined in `flags.json` or `vp_flags.json` (with type: `json_flag`) to work correctly.
74
+
- Some flags (items, effects, vehicle parts, construction pre_flags) have to be defined in `flags.json` or `vp_flags.json` (with type: `json_flag`) to work correctly.
75
75
- Many of the flags intended for one category or item type can be used in other categories or item types. Experiment to see where else flags can be used.
76
76
- Offensive and defensive flags can be used on any item type that can be wielded.
77
77
@@ -600,6 +600,7 @@ These are checked by hardcode for monsters (introducing new flags will require C
600
600
## Furniture and Terrain
601
601
602
602
List of known flags, used in both `furniture` and `terrain`. Some work for both, others are limited to either.
603
+
Can also be used as `pre_flags` for `construction`.
603
604
604
605
-```ALARMED``` Sets off an alarm if smashed.
605
606
-```ALLOW_FIELD_EFFECT``` Apply field effects to items inside `SEALED` terrain/furniture.
Copy file name to clipboardExpand all lines: doc/JSON/JSON_INFO.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2075,7 +2075,7 @@ The array of hobbies (listed as professions) is whitelisted to all characters.
2075
2075
"components": [ [ [ "spear_wood", 4 ], [ "pointy_stick", 4 ] ] ], // Items used in construction
2076
2076
"pre_special": [ "check_empty", "check_up_OK" ], // Required something that isn't terrain. The syntax also allows for a square bracket enclosed list of specials which all have to be fulfilled
2077
2077
"pre_terrain":"t_pit", // Alternative to pre_special; Required terrain to build on
2078
-
"pre_flags": [ "WALL", { "flag":"DIGGABLE", "force_terrain":true } ], // Flags beginning furniture/terrain must have. force_ter forces the flag to apply to the underlying terrain
2078
+
"pre_flags": [ "WALL", { "flag":"DIGGABLE", "force_terrain":true } ], // Flags beginning furniture/terrain must have. force_ter forces the flag to apply to the underlying terrain. Must be defined in flags.json
2079
2079
"post_terrain":"t_pit_spiked", // Terrain type after construction is complete
2080
2080
"post_special":"done_mine_upstairs", // Required to do something beyond setting the post terrain. The syntax also allows for a square bracket enclosed list of specials which all have to be fulfilled
2081
2081
"pre_note":"Build a spikes on a diggable terrain", // Create an annotation to this recipe
0 commit comments