Feature #614
closedTile relationship requirement
0%
Description
Add new requirement type "TileRel" that checks relative placement of target tile and other tile (initially mostly for action enablers and #588). Initial simple values should be "Same Region" at tile/c/adjacent range (the other tile's continent/ocean is the same as that of some tile in the range), and "Only Other Region" at c/adjacent range (the other tile's continent/ocean is the only one in the range other than that of the target tile).
Files
Updated by Alina Lenk 6 months ago
- Blocked by Feature #613: requirements: Make other_player an entire req_context added
Updated by Marko Lindqvist 6 months ago
I see use-cases for generic "max distance between tiles" requirement type (e.g. trade route length). Unfortunately it couldn't distinguish between adjacent and cadjacent (both are distance 1), nor could it tell if the tiles are on the same continent.
Updated by Alina Lenk 6 months ago
Marko Lindqvist wrote in #note-2:
Unfortunately it couldn't distinguish between adjacent and cadjacent (both are distance 1)
Could do that with a "max squared distance" requirement; 0-1-2 would be tile-cadjacent-adjacent. That would leave just continent-related requirements (the simple "same continent" as well as the extra stuff required for border claiming logic) for a more specialized type. Yeah, that is a lot more versatile than what I was gonna do here.
Updated by Alina Lenk 6 months ago
Split max (squared) distance ~> Feature #616: MaxDistanceSq requirement
Updated by Alina Lenk 6 months ago
- Blocks Feature #588: Unhardcode tile claimability rules added
Updated by Alina Lenk 6 months ago
- Blocks Feature #654: TileRel requirement "Region Surrounded" added
Updated by Alina Lenk 6 months ago
- File 0006-Add-TileRel-requirement-type.patch 0006-Add-TileRel-requirement-type.patch added
- Status changed from New to In Review
Patch depends on #602.
Updated by Alina Lenk 6 months ago
Updated by Alina Lenk 6 months ago
Updated patch: Minor fixes (indentation, strings that weren't marked for translation).
Updated by Alina Lenk 6 months ago
Updated patch: Added are_requirements_contradictions() code.
Updated by Alina Lenk 6 months ago
- Blocks Feature #678: TileRel requirement "Same Terrain Class" added
Updated by Alina Lenk 6 months ago
Rebased patch on top of #696. Also sorted the tile rel types.