docs(map): make omitted move_cost explicitly mean impassable
This commit is contained in:
@@ -66,7 +66,12 @@ _NoDuplicateLoader.add_constructor(
|
||||
|
||||
|
||||
class TerrainType(BaseModel):
|
||||
"""What one square means for movement and sight lines."""
|
||||
"""What one square means for movement and sight lines.
|
||||
|
||||
``move_cost``: positive int = passable; ``None`` -- explicit or omitted
|
||||
(the field default) -- means IMPASSABLE. A passable terrain must always
|
||||
declare its cost; omitting the field is never a silent walkable default.
|
||||
"""
|
||||
|
||||
model_config = ConfigDict(frozen=True, extra="forbid")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user