From 3c0ebc98e2458164fd03d6392730a36ff3ee1275 Mon Sep 17 00:00:00 2001 From: Simon Brodtmann Date: Tue, 15 Apr 2025 18:04:59 +0200 Subject: [PATCH 1/3] Add polish translation --- hot-metals/locale/pl/strings.cfg | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 hot-metals/locale/pl/strings.cfg diff --git a/hot-metals/locale/pl/strings.cfg b/hot-metals/locale/pl/strings.cfg new file mode 100644 index 0000000..01c6fa9 --- /dev/null +++ b/hot-metals/locale/pl/strings.cfg @@ -0,0 +1,12 @@ +[item-name] +hot=Hot + +[mod-setting-name] +hot-metals-time=Czas stygnięcia +hot-metals-plastic=Dodaj gorący plastik +hot-metals-bricks=dodaj gorące kamienne cegły i beton + +[mod-setting-description] +hot-metals-time=Czas w sekundach, jaki jest potrzebny, aby gorący przedmiot ostygł. +hot-metals-plastic=Chociaż temperatura gorącego plastiku jest znacznie niższa w porównaniu do metali, możesz chcieć mieć jego gorącą wersję. +hot-metals-bricks=Kamienne cegły i beton nie są domyślnie uwzględnione. Jeśli lubisz grać z gorącymi wariantami, możesz włączyć tę opcję. \ No newline at end of file From 1adf84ef1a4fecce82d352272421b2d0adb95a7a Mon Sep 17 00:00:00 2001 From: Simon Brodtmann Date: Tue, 15 Apr 2025 18:08:54 +0200 Subject: [PATCH 2/3] Move technology changes to final fixes stage --- hot-metals/data-final-fixes.lua | 1 + hot-metals/prototypes/hot-metals-final.lua | 9 +++++++++ hot-metals/prototypes/hot-metals.lua | 9 ++------- 3 files changed, 12 insertions(+), 7 deletions(-) create mode 100644 hot-metals/data-final-fixes.lua create mode 100644 hot-metals/prototypes/hot-metals-final.lua diff --git a/hot-metals/data-final-fixes.lua b/hot-metals/data-final-fixes.lua new file mode 100644 index 0000000..5a61b06 --- /dev/null +++ b/hot-metals/data-final-fixes.lua @@ -0,0 +1 @@ +require("prototypes/hot-metals-final") \ No newline at end of file diff --git a/hot-metals/prototypes/hot-metals-final.lua b/hot-metals/prototypes/hot-metals-final.lua new file mode 100644 index 0000000..7b42417 --- /dev/null +++ b/hot-metals/prototypes/hot-metals-final.lua @@ -0,0 +1,9 @@ +-- Change technology triggers +for _, tech in pairs(data.raw.technology) do + if tech.research_trigger then + local item = data.raw.item[tech.research_trigger.item] + if item and item.hot_item and not contains(HotMetals.skipTechUnlocksFor, item.name) then + tech.research_trigger.item = item.hot_item + end + end +end \ No newline at end of file diff --git a/hot-metals/prototypes/hot-metals.lua b/hot-metals/prototypes/hot-metals.lua index d6ab1a1..03e55e3 100644 --- a/hot-metals/prototypes/hot-metals.lua +++ b/hot-metals/prototypes/hot-metals.lua @@ -76,6 +76,8 @@ function createHotVariant(config) hotItem.spoil_ticks = spoilTicks data:extend({ hotItem }) + item.hot_item = hotItem.name + -- Change recipes for _, recipe in pairs(data.raw.recipe) do if contains(HotMetals.craftingCategories, recipe.category) then @@ -101,13 +103,6 @@ function createHotVariant(config) end end end - - -- Change technology triggers - for _, tech in pairs(data.raw.technology) do - if tech.research_trigger and tech.research_trigger.item == itemName and not contains(HotMetals.skipTechUnlocksFor, itemName) then - tech.research_trigger.item = hotItem.name - end - end end -- Checks if a table contains a certain value From 215dd76d90a13f09781fbc410697bfe0167f85ce Mon Sep 17 00:00:00 2001 From: Simon Brodtmann Date: Fri, 18 Apr 2025 10:41:15 +0200 Subject: [PATCH 3/3] 1.2.6 --- hot-metals/changelog.txt | 6 ++++++ hot-metals/info.json | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/hot-metals/changelog.txt b/hot-metals/changelog.txt index 8816037..0812e56 100644 --- a/hot-metals/changelog.txt +++ b/hot-metals/changelog.txt @@ -1,4 +1,10 @@ --------------------------------------------------------------------------------------------------- +Version: 1.2.6 +Date: 18.04.2025 + Changes: + - Add polish translation (I forgot who did it :-( ) + - Move technology changes to final fixes stage +--------------------------------------------------------------------------------------------------- Version: 1.2.5 Date: 04.02.2025 Changes: diff --git a/hot-metals/info.json b/hot-metals/info.json index 1678653..3f19979 100644 --- a/hot-metals/info.json +++ b/hot-metals/info.json @@ -1,6 +1,6 @@ { "name": "hot-metals", - "version": "1.2.5", + "version": "1.2.6", "title": "Hot metals", "description": "A furnace doesn't just output cold usable results. You need to wait for them to cool down.", "author": "cackling fiend",