Skip to content

Map cave systems for underground resource/collectible location #247

Description

@StuartMeeks

Summary

Some resource nodes and collectibles live underground in caves, so they have no clean position on the surface biome overlay (#239). Example: the impure Uranium node in a water-covered cave beneath Titan Forest — on the top-down map it sits over water, ~53 m outside any surface biome.

Current handling (fine for now)

biomeAt(x,y) resolves these to the nearest surface biome via the fallback (e.g. that Uranium node → Titan Forest), which reads naturally ("the uranium's in the caves under Titan Forest"). The biome trace deliberately does not distort surface polygons out over water/caves to swallow them.

Future enhancement

A dedicated cave / underground layer so the foreman can:

  • distinguish "in the caves beneath X" from "on the surface in X",
  • describe cave systems / entrances and the resources within them.

Likely needs cave-volume geometry from the game assets (relates to the base-map renderer spike, #246) or hand-annotation.

Not blocking

Relates to #239 (biome overlay) and #64 (interactive map). The nearest-biome fallback is an acceptable default until this lands.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:sf-game-dataGame-data libs (sf-game-data / sf-game-data-graph)enhancementNew feature or request

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions