Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions lib/data-stage.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ py.empty_image = function()
}
end

---Returns if the feature flag spoilage and the mod setting for decay are enabled
py.spoilage_enabled = function()
return feature_flags.spoiling and mods.pyalternativeenergy and settings.startup["py-enable-decay"].value or false
end

---Returns a localised name with the respective properties of this item/entity/recipe, generalized to make localisation easier
---@param base_name string
---@param tier string?
Expand Down