Page 1 of 1

place_as_tile question

Posted: Thu Jun 30, 2016 7:13 pm
by TheSAguy
Is it possible to have conditions on "place_as_tile".
What I'm trying the do is something like:
result =
{
["water"] = "grass",
["deepwater"] = water",
["water-green"] = "grass",
["deepwater-green"] = ""water-green"
}

Code: Select all

  {
    type = "item",
    name = "landfill",
    icon = "__base__/graphics/icons/landfill.png",
    flags = {"goes-to-main-inventory"},
    subgroup = "terrain",
    order = "c[landfill]-a[dirt]",
    stack_size = 100,
    place_as_tile =
    {
      result =
              {
              ["water"] = "grass",
              ["deepwater"] = water",
              ["water-green"] = "grass",
              ["deepwater-green"] = ""water-green"
              },
      condition_size = 1,
      condition = { "ground-tile" }
    }
  }
Anyway to accomplish this without basically re-writing the landfill mod?

Re: place_as_tile question

Posted: Thu Jun 30, 2016 10:46 pm
by Rseding91
TheSAguy wrote:Anyway to accomplish this without basically re-writing the landfill mod?
No. The place as tile definition doesn't support that system.