ModbaseOffsetsRequirements: Difference between revisions

From The Colonists
Jump to navigation Jump to search
No edit summary
No edit summary
Line 40: Line 40:
! Type  !! CompareType!! TargetId !! MatchIdHash !! Amount !! Example  !! Result
! Type  !! CompareType!! TargetId !! MatchIdHash !! Amount !! Example  !! Result
|-
|-
| 1
| 8
| 2
| 0
| 3
| 0
| 4
| [1,3]
| 5
| 0
| Well
| Well
| grass
| grass/meadow
|-
| 8
| 0
| 0
| [1,3]
| 0
| SheepFarm
| grass/meadow
|-
|-
| 8
| 8
Line 52: Line 60:
| 0
| 0
| [1,3]
| [1,3]
| 2
| TreeField Structure
| grass/meadow 2 tiles
|-
| 8
| 0
| 0
| Well
| 0
| grass
| [1,3]
| 2
| AnimalField Structure
| grass/meadow 2 tiles
|-
| 2
| 0
| 0
| null
| 1
| FishHut
| Land
|-
| 2
| 0
| 2
| null
| 1
| FishHut
| Land OR Water
|-
| 2
| 0
| 1
| null
| 0
| FishHut
| Water
|-
| 19
| 0
| 0
| null
| 0
| FishHut
| FishTile
|-
|-
|}
|}

Revision as of 17:51, 13 July 2022

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


JSON

Value Type Description Example/Link
type integer requirement type of baseOffsets ["requirements"] baseOffsetsRequirmentsType
compareType integer type to ??? 0
targetId integer target? 255
matchIdHash boolean tile ID types to match? null, [1, 3, 8]
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 Land
2 0 2 null 1 FishHut Land OR Water
2 0 1 null 0 FishHut Water
19 0 0 null 0 FishHut FishTile