Skip to content

Support "groundcover" mapgen terrain #22268

@Coolthulhu

Description

@Coolthulhu

Currently every mapgen specifies own ground cover terrain. Many entries have differing amounts of grass vs dirt, some swamp mapgens have incorrect furniture placement (cattails on dry ground). This can be pretty jarring due to square nature of mapgen.

I see two options:

A fake terrain type is supplied. During mapgen, it is replaced with biome's default ground cover.
Advantages:

  • Groundcover can be specified as fill_ter, mapping or placement, whichever is the most convenient
  • Simple
  • Probably faster than the alternative below

Each mapgen entry gains an optional (later possibly mandatory) field that describes what is it placed on. For example, most houses would be placed on a field, but swamp shack would be placed on swamp.
During mapgen, the types are processed sequentially: first a field is generated, then a house is generated on the field.
Advantages:

  • Support for partially-jsoned mapgen (hardcoded swamp, jsonized shack on it)
  • Support for furniture (cattails) due to the above
  • Depending on implementation, could allow more "natural" results, like small house bordering a forest having more trees in its square

Metadata

Metadata

Assignees

No one assigned

    Labels

    <Enhancement / Feature>New features, or enhancements on existingMap / MapgenOvermap, Mapgen, Map extras, Map display

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions