Files
sor/Shared/context-files/affinity.md
T

98 lines
2.6 KiB
Markdown

# Affinity Rules (Current Understanding)
This file documents the current affinity system as a strict rules reference.
## 1) Slot Model
Each tile has two affinity slots:
- `Base1`: older slot (filled first)
- `Base2`: newer slot (filled second, most recent)
When pushing a new basic affinity `X` to a tile:
1. Current `Base2` shifts into `Base1`.
2. New affinity `X` becomes `Base2`.
Equivalent update:
- `Base1 = old(Base2)`
- `Base2 = X`
## 2) Basic Affinities
- `Void`
- `Aether`
- `Lake`
- `Hill`
- `Forest`
- `Field`
## 3) Derived Tile Affinity
The tile's active affinity is determined by the pair `(Base1, Base2)`.
## 4) Non-Basic Affinity Map
Combination key uses `Base1 + Base2`.
- `Ocean = Lake + Lake`
- `Island = Lake + Hill` or `Hill + Lake`
- `Marsh = Lake + Field` or `Field + Lake`
- `Swamp = Lake + Forest` or `Forest + Lake`
- `Mountain = Hill + Hill`
- `Steppe = Hill + Field` or `Field + Hill`
- `Fort = Hill + Forest` or `Forest + Hill`
- `Plains = Field + Field`
- `Grove = Field + Forest` or `Forest + Field`
- `Jungle = Forest + Forest`
- `GatewayLake = Lake + Void`
- `GatewayHill = Hill + Void`
- `GatewayField = Field + Void`
- `GatewayForest = Forest + Void`
- `UnstableAether = Aether + (Void or Hill or Forest or Field or Lake)`
- `UnstableAether = (Void or Hill or Forest or Field or Lake) + Aether`
- `PerfectAether = Aether + Aether`
- `PureVoid = Void + Void`
## 5) Notes on Order
Current interpretation:
- Most terrain combinations are order-insensitive (both orders listed).
- `Gateway*` is directional only and requires `Base2 = Void` (`X + Void` only).
- `UnstableAether` is explicitly both directions.
## 6) Example Slot Evolution
Starting tile slots:
- `Base1 = Lake`
- `Base2 = Hill`
Push `Forest`:
- New `Base1 = Hill`
- New `Base2 = Forest`
- Tile affinity resolves from `Hill + Forest` -> `Fort`
## 7) Resolution Completeness
Every `(Base1, Base2)` pair is valid and must resolve to a defined affinity result.
## 8) Basic Affinity on Tiles
Tiles can resolve to a basic affinity when:
- `Base1 = Void`
- `Base2 = <BasicAffinity>`
Examples:
- `Void + Lake` resolves as tile basic `Lake`
- `Void + Hill` resolves as tile basic `Hill`
- `Void + Forest` resolves as tile basic `Forest`
- `Void + Field` resolves as tile basic `Field`
- `Void + Aether` resolves to `UnstableAether` (special case, not basic)
## 9) Card Affinity vs Tile Affinity
Cards use almost the same affinity set as tiles, with exclusions:
- Cards do use basic and standard non-basic affinities.
- Cards do not use `Gateway*`.
- Cards do not use `UnstableAether`.
`PerfectAether` is valid via `Aether + Aether`.