This commit is contained in:
2025-04-18 19:06:45 +09:00
parent 95edf8face
commit f8394e3008
8 changed files with 5 additions and 16 deletions

View File

@@ -5,6 +5,7 @@ Date: 2025-04-20
Changes: Changes:
- [CT] Changed the hidden status of some creative items. - [CT] Changed the hidden status of some creative items.
- [CL] Changed the some locale logic. - [CL] Changed the some locale logic.
- [CL] Moved some grouping of the settings.
- [MI] Fixed heating tower also applied the nuclear reactor scale energy usage flag. - [MI] Fixed heating tower also applied the nuclear reactor scale energy usage flag.
--------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------

View File

@@ -68,7 +68,7 @@ if settings.startup['PHI-CT'].value then
script.on_event(defines.events.on_player_cheat_mode_disabled, hidden_recipe_enable) script.on_event(defines.events.on_player_cheat_mode_disabled, hidden_recipe_enable)
end end
if settings.startup['PHI-CT'].value or settings.startup['PHI-MI'].value or (settings.startup['PHI-SA'].value and settings.startup['PHI-SA-RESTRICTION'].value) or (settings.startup['PHI-VP'].value and settings.startup['PHI-VP-MAIN'].value) then if settings.startup['PHI-CT'].value or settings.startup['PHI-MI'].value or (settings.startup['PHI-SA'].value and settings.startup['PHI-SA-RESTRICTION'].value) or settings.startup['PHI-VP'].value then
function gui_create(player) function gui_create(player)
if player.gui.relative.inserter_config then if player.gui.relative.inserter_config then
player.gui.relative.inserter_config.destroy() player.gui.relative.inserter_config.destroy()

View File

@@ -2,15 +2,15 @@
-- local main = require 'main' -- local main = require 'main'
do do
local vp = settings.startup['PHI-VP'].value and settings.startup['PHI-VP-MAIN'].value
local sa = settings.startup['PHI-SA'].value and settings.startup['PHI-SA-GENERIC'].value local sa = settings.startup['PHI-SA'].value and settings.startup['PHI-SA-GENERIC'].value
local p = settings.startup['PHI-VP'].value or sa
for k, v in pairs(data.raw.recipe) do for k, v in pairs(data.raw.recipe) do
if vp and v.category == 'recycling' then if settings.startup['PHI-VP'].value and v.category == 'recycling' then
data.raw.recipe[k] = nil data.raw.recipe[k] = nil
end end
if (vp or sa) and v.maximum_productivity then if p and v.maximum_productivity then
v.maximum_productivity = 999 v.maximum_productivity = 999
end end
end end

View File

@@ -134,7 +134,6 @@ PHI-SA-RESTRICTION=[color=54,228,255]SA7[/color]
PHI-SA-GENERIC=[color=54,228,255]SA8[/color] PHI-SA-GENERIC=[color=54,228,255]SA8[/color]
PHI-VP=[color=255,254,42]VP[/color] PHI-VP=[color=255,254,42]VP[/color]
PHI-VP-MAIN=[color=54,228,255]VP1[/color]
PHI-CT=[color=255,254,42]CT[/color] PHI-CT=[color=255,254,42]CT[/color]
PHI-CT-TILE=[color=54,228,255]CT1[/color] PHI-CT-TILE=[color=54,228,255]CT1[/color]
@@ -182,7 +181,6 @@ PHI-SA-QUALITY=Quality chance multiplier
PHI-SA-MAX-QUALITY=Max quality PHI-SA-MAX-QUALITY=Max quality
PHI-VP=[color=255,254,42]Vanilla Plus[/color] PHI-VP=[color=255,254,42]Vanilla Plus[/color]
PHI-VP-MAIN=Main changes
PHI-CT=[color=255,254,42]Creative testing tools[/color] PHI-CT=[color=255,254,42]Creative testing tools[/color]
PHI-CT-TILE=Enable map generation world tile PHI-CT-TILE=Enable map generation world tile

View File

@@ -134,7 +134,6 @@ PHI-SA-QUALITY=品質確率マルチプライヤ
PHI-SA-MAX-QUALITY=最大品質 PHI-SA-MAX-QUALITY=最大品質
PHI-VP=[color=255,254,42]バニラプラス[/color] PHI-VP=[color=255,254,42]バニラプラス[/color]
PHI-VP-MAIN=主な変更点
PHI-CT=[color=255,254,42]クリエイティブテストツール[/color] PHI-CT=[color=255,254,42]クリエイティブテストツール[/color]
PHI-CT-TILE=マップ生成ワールドタイルを有効にする PHI-CT-TILE=マップ生成ワールドタイルを有効にする

View File

@@ -134,7 +134,6 @@ PHI-SA-QUALITY=品質概率倍數
PHI-SA-MAX-QUALITY=最大品質 PHI-SA-MAX-QUALITY=最大品質
PHI-VP=[color=255,254,42]原版加[/color] PHI-VP=[color=255,254,42]原版加[/color]
PHI-VP-MAIN=主要更改
PHI-CT=[color=255,254,42]創意測試工具[/color] PHI-CT=[color=255,254,42]創意測試工具[/color]
PHI-CT-TILE=啟用地圖生成世界地磚 PHI-CT-TILE=啟用地圖生成世界地磚

View File

@@ -134,7 +134,6 @@ PHI-SA-QUALITY=品質概率倍數
PHI-SA-MAX-QUALITY=最大品質 PHI-SA-MAX-QUALITY=最大品質
PHI-VP=[color=255,254,42]原版加[/color] PHI-VP=[color=255,254,42]原版加[/color]
PHI-VP-MAIN=主要更改
PHI-CT=[color=255,254,42]創意測試工具[/color] PHI-CT=[color=255,254,42]創意測試工具[/color]
PHI-CT-TILE=啟用地圖生成世界地磚 PHI-CT-TILE=啟用地圖生成世界地磚

View File

@@ -286,13 +286,6 @@ data:extend({
localised_name = {'phi-cl.combine', {'mod-setting-name-prefix.PHI-VP'}, {'mod-setting-name.PHI-VP'}}, localised_name = {'phi-cl.combine', {'mod-setting-name-prefix.PHI-VP'}, {'mod-setting-name.PHI-VP'}},
order = 'E00' order = 'E00'
}, { }, {
type = 'bool-setting',
name = 'PHI-VP-MAIN',
setting_type = 'startup',
default_value = false,
localised_name = {'phi-cl.combine', {'mod-setting-name-prefix.PHI-VP-MAIN'}, {'mod-setting-name.PHI-VP-MAIN'}},
order = 'E01'
}, {
type = 'bool-setting', type = 'bool-setting',
name = 'PHI-CT', name = 'PHI-CT',
setting_type = 'startup', setting_type = 'startup',