Page 1 of 1

Disable creation of ghost after building is destroyed

Posted: Thu Aug 08, 2024 8:24 pm
by SimpleCat
I know nothing about programing, my knowledge is limited by wiki page about modding. I know you can remove extending ghost lifetime research from technologies, but i didn't to that in my current playthrough so i wonder if there is any other way.

Re: Disable creation of ghost after building is destroyed

Posted: Fri Aug 16, 2024 7:33 pm
by Stargateur

Code: Select all

data:extend({
  type = "technology",
  name = "disable-ghost",
  effects =
  {
    {
      type = "ghost-time-to-live",
      modifier = 0,
    }
  },
  unit =
  {
    count = 1,
    ingredients =
    {
      {"automation-science-pack", 1},
    },
    time = 1,
  },
})
Should work... maybe try `modifier = -60 * 60 * 60 * 24 * 7` if this doesn't work with `0`