From 24f238a618678df1fd2e9e52c189df96376ee379 Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Mon, 10 Aug 2026 03:27:37 +0900 Subject: [PATCH] . --- PHI-CL/data/b/sa.lua | 35 ++++++++++++++++++++++++++++++++++ PHI-CL/locale/en/locale.cfg | 1 + PHI-CL/locale/ja/locale.cfg | 1 + PHI-CL/locale/zh-CN/locale.cfg | 1 + PHI-CL/locale/zh-TW/locale.cfg | 1 + PHI-CL/settings.lua | 8 ++++++++ 6 files changed, 47 insertions(+) diff --git a/PHI-CL/data/b/sa.lua b/PHI-CL/data/b/sa.lua index 9cacbe1..31b737d 100644 --- a/PHI-CL/data/b/sa.lua +++ b/PHI-CL/data/b/sa.lua @@ -128,3 +128,38 @@ if mods['quality'] and settings.startup['PHI-SA-QUALITY'].value then end end end + +if settings.startup['PHI-SA-QUALITY-TIER'].value then + -- SA C 3 QUALITY QUALITY + -- SA H 2 QUALITY QUALITY + if data.raw.quality['common'] and data.raw.quality['uncommon'] and data.raw.quality['rare'] and data.raw.quality['epic'] and data.raw.quality['legendary'] then + data.raw.quality['common'].next = 'rare' + data.raw.quality['rare'].next = 'legendary' + + data.raw.quality['uncommon'].next = nil + data.raw.quality['uncommon'].hidden = true + data.raw.quality['uncommon'].hidden_in_factoriopedia = true + + data.raw.quality['epic'].next = nil + data.raw.quality['epic'].hidden = true + data.raw.quality['epic'].hidden_in_factoriopedia = true + end + + -- SA C 1 QUALITY TECHNOLOGY + if data.raw.technology['quality-module'] then + data.raw.technology['quality-module'].effects = {{type = 'unlock-recipe', recipe = 'quality-module'}, {type = 'unlock-quality', recipe = 'rare'}} + end + + -- SA H 1 QUALITY TECHNOLOGY + if data.raw.technology['epic-quality'] then + data.raw.technology['epic-quality'].hidden = true + data.raw.technology['epic-quality'].hidden_in_factoriopedia = true + data.raw.technology['epic-quality'].effects = nil + data.raw.technology['epic-quality'].unit = {count = 1000, time = 30, ingredients = {{'automation-science-pack', 1}}} + end + + -- SA C 1 QUALITY TECHNOLOGY + if data.raw.technology['legendary-quality'] then + data.raw.technology['legendary-quality'].prerequisites = {'agricultural-science-pack', 'utility-science-pack', 'quality-module'} + end +end diff --git a/PHI-CL/locale/en/locale.cfg b/PHI-CL/locale/en/locale.cfg index 29e358a..1887bd1 100644 --- a/PHI-CL/locale/en/locale.cfg +++ b/PHI-CL/locale/en/locale.cfg @@ -65,6 +65,7 @@ PHI-SA-SPOIL=Spoilage PHI-SA-SPOIL-FREEZE=Freeze Spoilage PHI-SA-ROCKET-CAPACITY=Rocket Capacity PHI-SA-QUALITY=Quality Chance +PHI-SA-QUALITY-TIER=Quality Tier Reduction PHI-GM=Game Mode diff --git a/PHI-CL/locale/ja/locale.cfg b/PHI-CL/locale/ja/locale.cfg index 8da7ca1..c6536b2 100644 --- a/PHI-CL/locale/ja/locale.cfg +++ b/PHI-CL/locale/ja/locale.cfg @@ -60,6 +60,7 @@ PHI-SA-SPOIL=変質 PHI-SA-SPOIL-FREEZE=変質凍結 PHI-SA-ROCKET-CAPACITY=ロケット容量 PHI-SA-QUALITY=品質確率 +PHI-SA-QUALITY-TIER=品質レベルの減少 PHI-GM=ゲームモード diff --git a/PHI-CL/locale/zh-CN/locale.cfg b/PHI-CL/locale/zh-CN/locale.cfg index 40450a6..b22b3ba 100644 --- a/PHI-CL/locale/zh-CN/locale.cfg +++ b/PHI-CL/locale/zh-CN/locale.cfg @@ -60,6 +60,7 @@ PHI-SA-SPOIL=變質 PHI-SA-SPOIL-FREEZE=變質凍結 PHI-SA-ROCKET-CAPACITY=火箭容量 PHI-SA-QUALITY=品質概率 +PHI-SA-QUALITY-TIER=品質等級減少 PHI-GM=遊戲模式 diff --git a/PHI-CL/locale/zh-TW/locale.cfg b/PHI-CL/locale/zh-TW/locale.cfg index 40450a6..b22b3ba 100644 --- a/PHI-CL/locale/zh-TW/locale.cfg +++ b/PHI-CL/locale/zh-TW/locale.cfg @@ -60,6 +60,7 @@ PHI-SA-SPOIL=變質 PHI-SA-SPOIL-FREEZE=變質凍結 PHI-SA-ROCKET-CAPACITY=火箭容量 PHI-SA-QUALITY=品質概率 +PHI-SA-QUALITY-TIER=品質等級減少 PHI-GM=遊戲模式 diff --git a/PHI-CL/settings.lua b/PHI-CL/settings.lua index 4f1eb2a..8090479 100644 --- a/PHI-CL/settings.lua +++ b/PHI-CL/settings.lua @@ -147,6 +147,14 @@ data:extend({ localised_name = {'phi-cl.setting-class-color', 'SA4', {'phi-cl.ratio'}, {'mod-setting-name.PHI-SA-QUALITY'}}, localised_description = (mods['quality'] and {'', '[item=quality-module-3] x 0.1', {'phi-cl.setting-change-color', '\n[3] C3'}}) or nil, order = 'C04' +}, { + type = 'bool-setting', + name = 'PHI-SA-QUALITY-TIER', + setting_type = 'startup', + default_value = false, + localised_name = {'phi-cl.setting-class-color', 'SA5', {'phi-cl.enable'}, {'mod-setting-name.PHI-SA-QUALITY-TIER'}}, + localised_description = (mods['quality'] and {'', '[virtual-signal=signal-deny] [quality=uncommon][quality=epic]', {'phi-cl.setting-change-color', '\n[8] C5 H3'}}) or nil, + order = 'C05' }, { type = 'string-setting', name = 'PHI-GM',