spoil API extend
Posted: Tue Jun 30, 2026 10:01 pm
TL;DR
reshape https://lua-api.factorio.com/stable/cla ... oil_result into Array of items.
(https://lua-api.factorio.com/stable/pro ... oil_result also?)
What?
make https://lua-api.factorio.com/stable/cla ... oil_result to be an array of items, which will spoiled item convert into after spoil time ends.
Why?
it will add tons of possibilities for moders. especially in dealing with spoilage mechanic.
for example, use canister to pack\unpack spoiling items to prolongate spoilage time. but if it spoil - you will not lost the canister itself, as it will be for now. you will get original empty canister and some spoilage, of course.
or can be used for any other ideas to make this mechanic even harder:)
reshape https://lua-api.factorio.com/stable/cla ... oil_result into Array of items.
(https://lua-api.factorio.com/stable/pro ... oil_result also?)
What?
make https://lua-api.factorio.com/stable/cla ... oil_result to be an array of items, which will spoiled item convert into after spoil time ends.
Why?
it will add tons of possibilities for moders. especially in dealing with spoilage mechanic.
for example, use canister to pack\unpack spoiling items to prolongate spoilage time. but if it spoil - you will not lost the canister itself, as it will be for now. you will get original empty canister and some spoilage, of course.
or can be used for any other ideas to make this mechanic even harder:)