I'm trying to modify the mod Dectorio to provide every decoration to be free. Only intended for personal use.
However - I have _zero_ knowledge about .lua or coding in general.
I've so far been able to make the tiles free - located in \prototypes\recipe
- All the recipes for the floorings, walls and decoratives are free by using
Code: Select all
ingredients = {},
The mod seems to gather the recipe ingredients based on the entity it wants to create a recipe for.
I've tried to both set this to zero by:
Code: Select all
table.insert(ingredients, {result.name, result.amount_max * 0})
When that didn't work I tried to remove the connection to the gatherer entity_ingredients by again setting ingredients = {},
I first ran the mod on my save WITHOUT any modifications done to the source code.
Is it maybe because this recipe generator runs once per tile, and then stores that recipe somewhere I am not aware? Perhaps it is set in the save file itself - and doesn't generate each boot of game/load of save?
I think I could 'get it to work' by disabling the mod all together and reloading and then enabling it again - which I will try now. But more to the point I want to know WHY it behaves like this. Is my hunch correct?