Skip to content

Inheritance bug #54702

Closed
Closed
@GuardianDll

Description

Is your feature request related to a problem? Please describe.

i have a terrain, which has TRANSPARENT flag, but few another terrains, that copy-from the original one has lack of this flag

Solution you would like.

to inherit terrain flags from original node

Describe alternatives you have considered.

write about this inheritance thing on the github wiki

Additional context

the original terrain

{
    "type": "terrain",
    "id": "t_deck_coating_no_roof",
    "name": "deck coating",
    "description": "Thick metal covering of a hull, covered with a military grade epoxy mix.",
    "symbol": ".",
    "looks_like": "t_pavement",
    "color": "dark_gray",
    "connects_to": "METALFLOOR",
    "move_cost": 2,
    "flags": [ "FLAT", "ROAD", "TRANSPARENT" ],
    "bash": {
      "sound": "thump",
      "ter_set": "t_null",
      "str_min": 500,
      "str_max": 1000,
      "str_min_supported": 200,
      "items": [
        { "item": "steel_lump", "count": [ 1, 4 ] },
        { "item": "steel_chunk", "count": [ 3, 12 ] },
        { "item": "scrap", "count": [ 9, 36 ] }
      ]
    }
  },

example of copy-from terrain

{
    "type": "terrain",
    "id": "t_deck_coating_no_roof_r",
    "name": "red deck coating",
    "description": "Thick metal covering of a hull, covered with a military grade epoxy mix, and painted in red color.",
    "copy-from": "t_deck_coating_no_roof",
    "looks_like": " ",
    "move_cost": 2,
    "symbol": ".",
    "color": "red"
  },

expectation
image
reality
image

Activity

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

Metadata

Assignees

No one assigned

    Labels

    Fields / Furniture / Terrain / TrapsObjects that are part of the map or its features.Map / MapgenOvermap, Mapgen, Map extras, Map displaystaleClosed for lack of activity, but still valid.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions