All items with an expensive recipe variant ignore crafting time changes:
example data-updates.lua:
data.raw["recipe"]["fast-transport-belt"].energy_required = 11
data.raw["recipe"]["express-transport-belt"].energy_required = 11
Result in game fast belts take 11 seconds while blue belts remain .5 seconds.
Expected both to be 11 seconds.
Looks like it is only items with expensive variants.
[0.15.7] Cannot Override crafting time on expensive
[0.15.7] Cannot Override crafting time on expensive
Last edited by Peppe on Fri May 05, 2017 4:56 pm, edited 2 times in total.
Re: [0.15.7] Cannot Override crafting time on expensive
That's because recipes with the "normal" and "expensive" definitions don't use the standard properties but have those in a sub-table:
data.raw["recipe]"["recipe-name"]["normal"].energy_required and ["expensive"]
data.raw["recipe]"["recipe-name"]["normal"].energy_required and ["expensive"]
If you want to get ahold of me I'm almost always on Discord.
Re: [0.15.7] Cannot Override crafting time on expensive
Just thought of that after i posted, thanks!