ModbaseOffsetsRequirements: Difference between revisions

From The Colonists
Jump to navigation Jump to search
→Example Entries: Update requirements
Line 48: Line 48:
| <s>grass/meadow
| <s>grass/meadow
|-
|-
| 8
| <s>8
| 0
|<s> 0
| 0
|<s> 0
| [1,3]
|<s> [1,3]
| 0
|<s> 0
| SheepFarm
|<s> SheepFarm
| grass/meadow
| <s>grass/meadow
|-
|-
| 8
| <s>8
| 0
| <s>0
| 0
| <s>0
| [1,3]
| <s>[1,3]
| 2
| <s>2
| TreeField Structure
| <s>TreeField Structure
| grass/meadow 2 tiles
| <s>grass/meadow 2 tiles
|-
|-
| 8
| <s>8
| 0
| <s>0
| 0
| <s>0
| [1,3]
| <s>[1,3]
| 2
| <s>2
| AnimalField Structure
| <s>AnimalField Structure
| grass/meadow 2 tiles
| <s>grass/meadow 2 tiles
|-
|-
| 2
| 2
Line 111: Line 111:
| ShaftMine
| ShaftMine
| ShaftResource
| ShaftResource
|-
| 24
| 0
| 0
| null
| 0
| SheepPasture
| Sheep Field Slope
|-
| 26
| 0
| 0
| null
| 0
| Orchard, CocoaFarm
| Orchard_Field_Slope
|-
|-
| 30
| 30
| 0
| 0
| 0
| 0
| 2
| Orchard, CocoaFarm
| Fertile
|-
| 30
| 0
| 0
| 0
| 0
| 0
| 0
| Well
| 0
| Well, SheepFarm
| Fertile
|-
| 30
| 0
| 0
| 0
| 2
| SheepPasture
| Fertile
| Fertile
|-
|-
|}
|}

Revision as of 19:51, 29 March 2023

`requirements` used in `baseOffsets` of buildings, structures, and flora.


JSON

Value Type Description Example/Link
type integer type of baseOffsets ["requirements"] baseOffsetsRequirmentsType
compareType integer type to ??? 0
targetId integer target terrain type? 255
matchIdHash boolean tile ID types to match? null, [1, 3, 8] TerrainModIds
amount integer number of tiles used? 0, 1


Example Entries

Type CompareType TargetId MatchIdHash Amount Example Result
8 0 0 [1,3] 0 Well grass/meadow
8 0 0 [1,3] 0 SheepFarm grass/meadow
8 0 0 [1,3] 2 TreeField Structure grass/meadow 2 tiles
8 0 0 [1,3] 2 AnimalField Structure grass/meadow 2 tiles
2 0 0 null 1 FishHut, Harbour Land
2 0 2 null 1 FishHut, Harbour Land OR Water
2 0 1 null 0 FishHut, Harbour Water
19 0 0 null 0 FishHut FishTile
18 0 255 null 0 ShaftMine ShaftResource
24 0 0 null 0 SheepPasture Sheep Field Slope
26 0 0 null 0 Orchard, CocoaFarm Orchard_Field_Slope
30 0 0 0 2 Orchard, CocoaFarm Fertile
30 0 0 0 0 Well, SheepFarm Fertile
30 0 0 0 2 SheepPasture Fertile