diff --git a/hot-metals/compatibility/space-age.lua b/hot-metals/compatibility/space-age.lua index aa31b26..43cdeee 100644 --- a/hot-metals/compatibility/space-age.lua +++ b/hot-metals/compatibility/space-age.lua @@ -16,4 +16,9 @@ table.insert(HotMetals.skipTechUnlocksFor, "iron-gear-wheel") table.insert(HotMetals.skipTechUnlocksFor, "copper-cable") table.insert(HotMetals.skipTechUnlocksFor, "iron-stick") table.insert(HotMetals.skipTechUnlocksFor, "pipe") -table.insert(HotMetals.skipTechUnlocksFor, "pipe-to-ground") \ No newline at end of file +table.insert(HotMetals.skipTechUnlocksFor, "pipe-to-ground") + +if settings.startup["hot-metals-plastic"].value then + table.insert(HotMetals.craftingCategories, "chemistry-or-cryogenics") + table.insert(HotMetals.craftingCategories, "organic") +end \ No newline at end of file diff --git a/hot-metals/data.lua b/hot-metals/data.lua index 8f35c42..0010956 100644 --- a/hot-metals/data.lua +++ b/hot-metals/data.lua @@ -10,4 +10,11 @@ HotMetals = { skipTechUnlocksFor = {} } +if settings.startup["hot-metals-plastic"].value then + table.insert(HotMetals.items, "plastic-bar") + if not mods["space-age"] then -- Space age uses other crafting categories + table.insert(HotMetals.craftingCategories, "chemistry") + end +end + require("compatibility.data") \ No newline at end of file diff --git a/hot-metals/graphics/icons/hot-plastic-bar.png b/hot-metals/graphics/icons/hot-plastic-bar.png new file mode 100644 index 0000000..bf0116e Binary files /dev/null and b/hot-metals/graphics/icons/hot-plastic-bar.png differ diff --git a/hot-metals/locale/en/strings.cfg b/hot-metals/locale/en/strings.cfg index 5e3dc9b..b258bb1 100644 --- a/hot-metals/locale/en/strings.cfg +++ b/hot-metals/locale/en/strings.cfg @@ -3,6 +3,8 @@ hot=Hot [mod-setting-name] hot-metals-time=Cooldown time +hot-metals-plastic=Add hot plastic [mod-setting-description] -hot-metals-time=The time in seconds for a hot item to cool down. \ No newline at end of file +hot-metals-time=The time in seconds for a hot item to cool down. +hot-metals-plastic=Although the temperature of hot plastic is way lower compared to metals, you might want to have a hot variant anyway. \ No newline at end of file diff --git a/hot-metals/settings.lua b/hot-metals/settings.lua index 9bd6d92..ea3e467 100644 --- a/hot-metals/settings.lua +++ b/hot-metals/settings.lua @@ -5,5 +5,12 @@ data:extend({ setting_type = "startup", default_value = 20, order = "a" + }, + { + type = "bool-setting", + name = "hot-metals-plastic", + setting_type = "startup", + default_value = false, + order = "b" } -}) \ No newline at end of file +}) diff --git a/sources/hot-plastic-bar.afphoto b/sources/hot-plastic-bar.afphoto new file mode 100644 index 0000000..d2a2e66 Binary files /dev/null and b/sources/hot-plastic-bar.afphoto differ