Skip to content

Terrain deconstruction hides resulting terrain (deconstruct.ter_set) #136

@ushkinaz

Description

@ushkinaz

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

  1. Open a terrain page with deconstruction data, for example terrain t_door_c.
  2. Check the Deconstruct section.
  3. Observe that item drops are listed.
  4. Compare the underlying terrain data in _test/all.json for t_door_c.
  5. Observe that deconstruct.ter_set exists (t_door_frame), but no corresponding Becomes terrain 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_frame
  • terrain/t_dock: deconstruct.ter_set = t_water_sh
  • terrain/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_set is present.
  • The rendering is consistent with furniture pages that already show a Becomes destination.
  • 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.items and deconstruct.ter_set.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions