-
Notifications
You must be signed in to change notification settings - Fork 3
Description
Summary
Terrain pages render deconstruction item drops from deconstruct.items, but they do not render the terrain that the tile becomes after deconstruction. Bright Nights terrain data uses deconstruct.ter_set, and the guide currently omits that result from the UI.
Context
This affects terrain detail pages. The terrain view reads and flattens deconstruct.items, but unlike furniture it does not show a Becomes entry for the deconstruction target. The type model for map deconstruction data also only accounts for furn_set, which matches furniture but not BN terrain data.
Impact
Users can see what materials a terrain yields, but not what terrain remains after deconstruction. That makes terrain pages incomplete and can mislead players about whether a wall, door, dock, or bridge deconstructs into a frame, water tile, or some other terrain.
Severity
Medium
Steps to reproduce
- Open a terrain page with deconstruction data, for example terrain
t_door_c. - Check the Deconstruct section.
- Observe that item drops are listed.
- Compare the underlying terrain data in
_test/all.jsonfort_door_c. - Observe that
deconstruct.ter_setexists (t_door_frame), but no correspondingBecomesterrain is shown in the UI.
Tech details
The terrain rendering path handles deconstruct.items but does not expose deconstruct.ter_set in the page. The map deconstruction type also models furn_set but not the terrain-specific target field used by BN terrain definitions.
Examples
Examples from the current _test/all.json fixture:
terrain/t_door_c:deconstruct.ter_set = t_door_frameterrain/t_dock:deconstruct.ter_set = t_water_shterrain/t_dock_deep:deconstruct.ter_set = t_dock_deep_frame
In the current fixture, terrain deconstruction entries are common: 220 terrain objects have a deconstruct block, and all 220 include both items and ter_set.
Acceptance criteria
- Terrain pages show the deconstruction result terrain when
deconstruct.ter_setis present. - The rendering is consistent with furniture pages that already show a
Becomesdestination. - The map deconstruction type model accepts both furniture and terrain deconstruction result fields used by Bright Nights data.
- A regression test covers a terrain with both
deconstruct.itemsanddeconstruct.ter_set.