mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2026-08-11 18:25:10 +09:00
.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -60,6 +60,7 @@ PHI-SA-SPOIL=変質
|
||||
PHI-SA-SPOIL-FREEZE=変質凍結
|
||||
PHI-SA-ROCKET-CAPACITY=ロケット容量
|
||||
PHI-SA-QUALITY=品質確率
|
||||
PHI-SA-QUALITY-TIER=品質レベルの減少
|
||||
|
||||
PHI-GM=ゲームモード
|
||||
|
||||
|
||||
@@ -60,6 +60,7 @@ PHI-SA-SPOIL=變質
|
||||
PHI-SA-SPOIL-FREEZE=變質凍結
|
||||
PHI-SA-ROCKET-CAPACITY=火箭容量
|
||||
PHI-SA-QUALITY=品質概率
|
||||
PHI-SA-QUALITY-TIER=品質等級減少
|
||||
|
||||
PHI-GM=遊戲模式
|
||||
|
||||
|
||||
@@ -60,6 +60,7 @@ PHI-SA-SPOIL=變質
|
||||
PHI-SA-SPOIL-FREEZE=變質凍結
|
||||
PHI-SA-ROCKET-CAPACITY=火箭容量
|
||||
PHI-SA-QUALITY=品質概率
|
||||
PHI-SA-QUALITY-TIER=品質等級減少
|
||||
|
||||
PHI-GM=遊戲模式
|
||||
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user