Nil purpose for recipe/technology difficulties?

Place to post guides, observations, things related to modding that are not mods themselves.
Post Reply
User avatar
Perlin
Burner Inserter
Burner Inserter
Posts: 7
Joined: Sun Jan 13, 2019 5:27 am
Contact:

Nil purpose for recipe/technology difficulties?

Post by Perlin »

Hello,

If I'm correct (from what i read on the Wiki), if I set "nil" on the normal difficulty, the recipe will use the properties of the expensive difficulty. What is the purpose of doing that? From what I understand, these two definitions are the same :

Code: Select all

  {
    type = "recipe",
    name = "iron-gear-wheel",
    normal = nil,
    expensive =
    {
      ingredients = {{"iron-plate", 4}},
      result = "iron-gear-wheel"
    }
  },
and

Code: Select all

  {
    type = "recipe",
    name = "iron-gear-wheel",
    ingredients = {{"iron-plate", 4}},
    result = "iron-gear-wheel"
  },
Thank you

Honktown
Smart Inserter
Smart Inserter
Posts: 1025
Joined: Thu Oct 03, 2019 7:10 am
Contact:

Re: Nil purpose for recipe/technology difficulties?

Post by Honktown »

I thought the reason was so the recipe is disabled on normal difficulty. If I'm wrong I'm wrong.

There may have been a niche reason, because I thought there were two ways to specify recipes? Like how result got expanded into results?
I have mods! I guess!
Link

Post Reply

Return to “Modding discussion”