This commit is contained in:
2025-03-20 20:31:53 +09:00
parent 97f6aaba7f
commit 02e1538266
6 changed files with 362 additions and 402 deletions

View File

@@ -1277,7 +1277,23 @@ if settings.startup['PHI-VP'].value then
end end
if settings.startup['PHI-CT'].value then if settings.startup['PHI-CT'].value then
if settings.startup['PHI-CT-TOOL'].value then local vir_sig = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ'
local s = {}
for i = 1, #vir_sig do
local char = vir_sig:sub(i, i)
table.insert(s, {
type = 'virtual-signal',
name = char .. 'A',
icon = items['general']['graphics_location'] .. 'signal/signal_' .. char .. '.png',
subgroup = string.match(char, '%d') and 'virtual-signal-number' or 'virtual-signal-letter',
order = (string.match(char, '%d') and 'b[numbers]2-[' or 'c[letters]2-[') .. char .. ']',
localised_name = {'phi-cl.combine', {'virtual-signal-name.signal-' .. char}, '(II)'}
})
end
data:extend(s)
local item = table.deepcopy(data.raw['item']['radar']) local item = table.deepcopy(data.raw['item']['radar'])
item.name = 'super-radar' item.name = 'super-radar'
item.place_result = item.name item.place_result = item.name
@@ -1295,6 +1311,7 @@ if settings.startup['PHI-CT'].value then
item.icon = nil item.icon = nil
item.icon_size = nil item.icon_size = nil
item.icon_mipmaps = nil item.icon_mipmaps = nil
item.hidden = true
item.localised_name = {'name.super-radar'} item.localised_name = {'name.super-radar'}
data:extend({item}) data:extend({item})
@@ -1321,6 +1338,7 @@ if settings.startup['PHI-CT'].value then
item = table.deepcopy(data.raw['item']['electric-energy-interface']) item = table.deepcopy(data.raw['item']['electric-energy-interface'])
item.name = 'passive-energy-void' item.name = 'passive-energy-void'
item.place_result = item.name item.place_result = item.name
item.hidden = true
item.localised_name = {'name.passive-energy-void'} item.localised_name = {'name.passive-energy-void'}
data:extend({item}) data:extend({item})
@@ -1351,99 +1369,7 @@ if settings.startup['PHI-CT'].value then
table.insert(data.raw.technology['electric-energy-accumulators'].effects, {type = 'unlock-recipe', recipe = item.name}) table.insert(data.raw.technology['electric-energy-accumulators'].effects, {type = 'unlock-recipe', recipe = item.name})
for _, v in pairs(data.raw.fluid) do item = table.deepcopy(data.raw['item']['steel-chest'])
if v.subgroup == 'fluid' and (not data.raw[v.name]) then
data:extend({{
type = 'recipe',
name = 'pump-' .. v.name,
category = 'fluid',
energy_required = 1,
enabled = true,
ingredients = {},
results = {{type = 'fluid', name = v.name, amount = 16000, temperature=v.max_temperature or v.default_temperature}},
main_product = v.name,
hide_from_player_crafting = true,
allow_productivity = false,
crafting_machine_tint = {primary=v.flow_color},
localised_name = {'fluid-name.' .. v.name}
}})
end
end
end
if settings.startup['PHI-CT-UTILITY'].value then
local vir_sig = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ'
local s = {}
for i = 1, #vir_sig do
local char = vir_sig:sub(i, i)
table.insert(s, {
type = 'virtual-signal',
name = char .. 'A',
icon = items['general']['graphics_location'] .. 'signal/signal_' .. char .. '.png',
subgroup = string.match(char, '%d') and 'virtual-signal-number' or 'virtual-signal-letter',
order = (string.match(char, '%d') and 'b[numbers]2-[' or 'c[letters]2-[') .. char .. ']',
localised_name = {'phi-cl.combine', {'virtual-signal-name.signal-' .. char}, '(II)'}
})
end
data:extend(s)
for _, v in pairs({'underground-belt', 'fast-underground-belt', 'express-underground-belt', 'turbo-underground-belt'}) do
local item = table.deepcopy(data.raw.item[v])
item.name = v .. '-A'
item.place_result = item.name
item.localised_name = {'phi-cl.combine', {'entity-name.' .. v}, '(II)'}
item.localised_description = {'entity-description.' .. v}
data:extend({item})
local entity = table.deepcopy(data.raw['underground-belt'][v])
entity.name = item.name
entity.minable.result = item.name
entity.next_upgrade = nil
entity.surface_conditions = nil
entity.localised_name = {'phi-cl.combine', {'entity-name.' .. v}, '(II)'}
entity.localised_description = {'entity-description.' .. v}
for _, st in pairs({'direction_in', 'direction_out', 'direction_in_side_loading', 'direction_out_side_loading'}) do
entity.structure[st].sheet.filename = items['general']['graphics_location'] .. v .. '.png'
entity.structure[st].sheet.width = 106
entity.structure[st].sheet.height = 85
entity.structure[st].sheetshift = {0.15625, 0.0703125}
end
entity.structure.direction_in.sheet.y = 85
entity.structure.direction_out.sheet.y = nil
entity.structure.direction_in_side_loading.sheet.y = 85
entity.structure.direction_out_side_loading.sheet.y = nil
data:extend({entity})
data:extend({{
type = 'recipe',
name = item.name,
energy_required = 2,
enabled = false,
ingredients = {{type = 'item', name = v, amount = 2}},
results = {{type = 'item', name = item.name, amount = 2}},
main_product = item.name,
localised_name = {'phi-cl.combine', {'entity-name.' .. v}, '(II)'}
}})
end
data.raw['underground-belt']['underground-belt-A'].next_upgrade = 'fast-underground-belt-A'
data.raw['underground-belt']['fast-underground-belt-A'].next_upgrade = 'express-underground-belt-A'
data.raw['underground-belt']['express-underground-belt-A'].next_upgrade = 'turbo-underground-belt-A'
table.insert(data.raw.technology['logistics'].effects, {type = 'unlock-recipe', recipe = 'underground-belt-A'})
table.insert(data.raw.technology['logistics-2'].effects, {type = 'unlock-recipe', recipe = 'fast-underground-belt-A'})
table.insert(data.raw.technology['logistics-3'].effects, {type = 'unlock-recipe', recipe = 'express-underground-belt-A'})
table.insert(data.raw.technology['turbo-transport-belt'].effects, {type = 'unlock-recipe', recipe = 'turbo-underground-belt-A'})
for _, t in pairs({'arithmetic-combinator', 'decider-combinator', 'programmable-speaker', 'selector-combinator'}) do
data.raw[t][t].energy_source.usage_priority = 'primary-input'
end
local item = table.deepcopy(data.raw['item']['steel-chest'])
item.name = 'trash-chest' item.name = 'trash-chest'
item.place_result = item.name item.place_result = item.name
item.order = 'b[storage]-h[trash-chest]' item.order = 'b[storage]-h[trash-chest]'
@@ -1463,7 +1389,7 @@ if settings.startup['PHI-CT'].value then
item.localised_name = {'name.trash-chest'} item.localised_name = {'name.trash-chest'}
data:extend({item}) data:extend({item})
local entity = table.deepcopy(data.raw['container']['steel-chest']) entity = table.deepcopy(data.raw['container']['steel-chest'])
entity.name = item.name entity.name = item.name
entity.minable.result = item.name entity.minable.result = item.name
entity.inventory_type = 'with_filters_and_bar' entity.inventory_type = 'with_filters_and_bar'
@@ -1616,7 +1542,6 @@ if settings.startup['PHI-CT'].value then
entity.quality_affects_inventory_size = false entity.quality_affects_inventory_size = false
entity.max_logistic_slots = (c == 'steel-chest' and nil) or 1 entity.max_logistic_slots = (c == 'steel-chest' and nil) or 1
entity.trash_inventory_size = (c == 'steel-chest' and nil) or 1 entity.trash_inventory_size = (c == 'steel-chest' and nil) or 1
entity.localised_name = {'name.basic-' .. c} entity.localised_name = {'name.basic-' .. c}
data:extend({entity}) data:extend({entity})
@@ -1643,15 +1568,13 @@ if settings.startup['PHI-CT'].value then
for _, r in pairs({'active-provider', 'buffer', 'requester'}) do for _, r in pairs({'active-provider', 'buffer', 'requester'}) do
table.insert(data.raw.technology['logistic-system'].effects, {type = 'unlock-recipe', recipe = 'basic-' .. r .. '-chest'}) table.insert(data.raw.technology['logistic-system'].effects, {type = 'unlock-recipe', recipe = 'basic-' .. r .. '-chest'})
end end
end
if settings.startup['PHI-CT-HIDDEN'].value then item = table.deepcopy(data.raw['item']['linked-chest'])
local item = table.deepcopy(data.raw['item']['linked-chest'])
item.supgroup = 'storage' item.supgroup = 'storage'
item.order = 'a[items]-d[linked-chest]' item.order = 'a[items]-d[linked-chest]'
data:extend({item}) data:extend({item})
local entity = table.deepcopy(data.raw['linked-container']['linked-chest']) entity = table.deepcopy(data.raw['linked-container']['linked-chest'])
entity.circuit_connector = table.deepcopy(data.raw['container']['steel-chest'].circuit_connector) entity.circuit_connector = table.deepcopy(data.raw['container']['steel-chest'].circuit_connector)
entity.circuit_wire_max_distance = data.raw['container']['steel-chest'].circuit_wire_max_distance entity.circuit_wire_max_distance = data.raw['container']['steel-chest'].circuit_wire_max_distance
entity.quality_affects_inventory_size = false entity.quality_affects_inventory_size = false
@@ -1673,7 +1596,7 @@ if settings.startup['PHI-CT'].value then
table.insert(data.raw.technology['steel-processing'].effects, {type = 'unlock-recipe', recipe = item.name}) table.insert(data.raw.technology['steel-processing'].effects, {type = 'unlock-recipe', recipe = item.name})
local s = data.raw['inserter']['stack-inserter'].max_belt_stack_size local ss = data.raw['inserter']['stack-inserter'].max_belt_stack_size
for _, l in pairs({'loader', 'fast-loader', 'express-loader', 'turbo-loader'}) do for _, l in pairs({'loader', 'fast-loader', 'express-loader', 'turbo-loader'}) do
if data.raw.recipe[l] then if data.raw.recipe[l] then
@@ -1684,7 +1607,7 @@ if settings.startup['PHI-CT'].value then
data.raw['loader'][l].filter_count = 2 data.raw['loader'][l].filter_count = 2
data.raw['loader'][l].per_lane_filters = true data.raw['loader'][l].per_lane_filters = true
data.raw['loader'][l].adjustable_belt_stack_size = true data.raw['loader'][l].adjustable_belt_stack_size = true
data.raw['loader'][l].max_belt_stack_size = s data.raw['loader'][l].max_belt_stack_size = ss
end end
end end
@@ -1695,6 +1618,79 @@ if settings.startup['PHI-CT'].value then
if mods['space-age'] then if mods['space-age'] then
table.insert(data.raw.technology['turbo-transport-belt'].effects, {type = 'unlock-recipe', recipe = 'turbo-loader'}) table.insert(data.raw.technology['turbo-transport-belt'].effects, {type = 'unlock-recipe', recipe = 'turbo-loader'})
end end
for _, v in pairs({'underground-belt', 'fast-underground-belt', 'express-underground-belt', 'turbo-underground-belt'}) do
item = table.deepcopy(data.raw.item[v])
item.name = v .. '-A'
item.place_result = item.name
item.localised_name = {'phi-cl.combine', {'entity-name.' .. v}, '(II)'}
item.localised_description = {'entity-description.' .. v}
data:extend({item})
entity = table.deepcopy(data.raw['underground-belt'][v])
entity.name = item.name
entity.minable.result = item.name
entity.next_upgrade = nil
entity.surface_conditions = nil
entity.localised_name = {'phi-cl.combine', {'entity-name.' .. v}, '(II)'}
entity.localised_description = {'entity-description.' .. v}
for _, st in pairs({'direction_in', 'direction_out', 'direction_in_side_loading', 'direction_out_side_loading'}) do
entity.structure[st].sheet.filename = items['general']['graphics_location'] .. v .. '.png'
entity.structure[st].sheet.width = 106
entity.structure[st].sheet.height = 85
entity.structure[st].sheetshift = {0.15625, 0.0703125}
end
entity.structure.direction_in.sheet.y = 85
entity.structure.direction_out.sheet.y = nil
entity.structure.direction_in_side_loading.sheet.y = 85
entity.structure.direction_out_side_loading.sheet.y = nil
data:extend({entity})
data:extend({{
type = 'recipe',
name = item.name,
energy_required = 2,
enabled = false,
ingredients = {{type = 'item', name = v, amount = 2}},
results = {{type = 'item', name = item.name, amount = 2}},
main_product = item.name,
localised_name = {'phi-cl.combine', {'entity-name.' .. v}, '(II)'}
}})
end
data.raw['underground-belt']['underground-belt-A'].next_upgrade = 'fast-underground-belt-A'
data.raw['underground-belt']['fast-underground-belt-A'].next_upgrade = 'express-underground-belt-A'
data.raw['underground-belt']['express-underground-belt-A'].next_upgrade = 'turbo-underground-belt-A'
table.insert(data.raw.technology['logistics'].effects, {type = 'unlock-recipe', recipe = 'underground-belt-A'})
table.insert(data.raw.technology['logistics-2'].effects, {type = 'unlock-recipe', recipe = 'fast-underground-belt-A'})
table.insert(data.raw.technology['logistics-3'].effects, {type = 'unlock-recipe', recipe = 'express-underground-belt-A'})
table.insert(data.raw.technology['turbo-transport-belt'].effects, {type = 'unlock-recipe', recipe = 'turbo-underground-belt-A'})
for _, t in pairs({'arithmetic-combinator', 'decider-combinator', 'programmable-speaker', 'selector-combinator'}) do
data.raw[t][t].energy_source.usage_priority = 'primary-input'
end
for _, v in pairs(data.raw.fluid) do
if v.subgroup == 'fluid' and (not data.raw[v.name]) then
data:extend({{
type = 'recipe',
name = 'pump-' .. v.name,
category = 'fluid',
energy_required = 1,
hidden = true,
enabled = true,
ingredients = {},
results = {{type = 'fluid', name = v.name, amount = 16000, temperature=v.max_temperature or v.default_temperature}},
main_product = v.name,
hide_from_player_crafting = true,
allow_productivity = false,
crafting_machine_tint = {primary=v.flow_color},
localised_name = {'fluid-name.' .. v.name}
}})
end
end end
if settings.startup['PHI-CT-TILE'].value then if settings.startup['PHI-CT-TILE'].value then

View File

@@ -138,11 +138,8 @@ PHI-VP=[color=255,254,42]VP[/color]
PHI-VP-MAIN=[color=54,228,255]VP1[/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-TOOL=[color=54,228,255]CT1[/color] PHI-CT-TILE=[color=54,228,255]CT1[/color]
PHI-CT-UTILITY=[color=54,228,255]CT2[/color] PHI-CT-TILE-CHOICE=[color=54,228,255]CT2[/color]
PHI-CT-HIDDEN=[color=54,228,255]CT3[/color]
PHI-CT-TILE=[color=54,228,255]CT4[/color]
PHI-CT-TILE-CHOICE=[color=54,228,255]CT5[/color]
[mod-setting-name] [mod-setting-name]
PHI-MB=[color=255,254,42]Enable better entity[/color] PHI-MB=[color=255,254,42]Enable better entity[/color]
@@ -190,9 +187,6 @@ PHI-VP=[color=255,254,42]Vanilla Plus[/color]
PHI-VP-MAIN=Main changes 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-TOOL=Tool
PHI-CT-UTILITY=Utility
PHI-CT-HIDDEN=Hidden
PHI-CT-TILE=Enable map generation world tile PHI-CT-TILE=Enable map generation world tile
PHI-CT-TILE-CHOICE=Map generation tile choice PHI-CT-TILE-CHOICE=Map generation tile choice

View File

@@ -138,8 +138,5 @@ PHI-VP=[color=255,254,42]バニラプラス[/color]
PHI-VP-MAIN=主な変更点 PHI-VP-MAIN=主な変更点
PHI-CT=[color=255,254,42]クリエイティブテストツール[/color] PHI-CT=[color=255,254,42]クリエイティブテストツール[/color]
PHI-CT-TOOL=ツール
PHI-CT-UTILITY=ユーティリティ
PHI-CT-HIDDEN=非表示
PHI-CT-TILE=マップ生成ワールドタイルを有効にする PHI-CT-TILE=マップ生成ワールドタイルを有効にする
PHI-CT-TILE-CHOICE=マップ生成ドタイル選択 PHI-CT-TILE-CHOICE=マップ生成ドタイル選択

View File

@@ -138,8 +138,5 @@ PHI-VP=[color=255,254,42]原版加[/color]
PHI-VP-MAIN=主要更改 PHI-VP-MAIN=主要更改
PHI-CT=[color=255,254,42]創意測試工具[/color] PHI-CT=[color=255,254,42]創意測試工具[/color]
PHI-CT-TOOL=工具
PHI-CT-UTILITY=雜項
PHI-CT-HIDDEN=隱藏
PHI-CT-TILE=啟用地圖生成世界地磚 PHI-CT-TILE=啟用地圖生成世界地磚
PHI-CT-TILE-CHOICE=地圖生成世界地磚選擇 PHI-CT-TILE-CHOICE=地圖生成世界地磚選擇

View File

@@ -138,8 +138,5 @@ PHI-VP=[color=255,254,42]原版加[/color]
PHI-VP-MAIN=主要更改 PHI-VP-MAIN=主要更改
PHI-CT=[color=255,254,42]創意測試工具[/color] PHI-CT=[color=255,254,42]創意測試工具[/color]
PHI-CT-TOOL=工具
PHI-CT-UTILITY=雜項
PHI-CT-HIDDEN=隱藏
PHI-CT-TILE=啟用地圖生成世界地磚 PHI-CT-TILE=啟用地圖生成世界地磚
PHI-CT-TILE-CHOICE=地圖生成世界地磚選擇 PHI-CT-TILE-CHOICE=地圖生成世界地磚選擇

View File

@@ -307,34 +307,13 @@ data:extend({
default_value = false, default_value = false,
localised_name = {'phi-cl.combine', {'mod-setting-name-prefix.PHI-CT'}, {'mod-setting-name.PHI-CT'}}, localised_name = {'phi-cl.combine', {'mod-setting-name-prefix.PHI-CT'}, {'mod-setting-name.PHI-CT'}},
order = 'F00' order = 'F00'
}, {
type = 'bool-setting',
name = 'PHI-CT-TOOL',
setting_type = 'startup',
default_value = true,
localised_name = {'phi-cl.combine', {'mod-setting-name-prefix.PHI-CT-TOOL'}, {'mod-setting-name.PHI-CT-TOOL'}},
order = 'F01'
}, {
type = 'bool-setting',
name = 'PHI-CT-UTILITY',
setting_type = 'startup',
default_value = true,
localised_name = {'phi-cl.combine', {'mod-setting-name-prefix.PHI-CT-UTILITY'}, {'mod-setting-name.PHI-CT-UTILITY'}},
order = 'F02'
}, {
type = 'bool-setting',
name = 'PHI-CT-HIDDEN',
setting_type = 'startup',
default_value = true,
localised_name = {'phi-cl.combine', {'mod-setting-name-prefix.PHI-CT-HIDDEN'}, {'mod-setting-name.PHI-CT-HIDDEN'}},
order = 'F03'
}, { }, {
type = 'bool-setting', type = 'bool-setting',
name = 'PHI-CT-TILE', name = 'PHI-CT-TILE',
setting_type = 'startup', setting_type = 'startup',
default_value = false, default_value = false,
localised_name = {'phi-cl.combine', {'mod-setting-name-prefix.PHI-CT-TILE'}, {'mod-setting-name.PHI-CT-TILE'}}, localised_name = {'phi-cl.combine', {'mod-setting-name-prefix.PHI-CT-TILE'}, {'mod-setting-name.PHI-CT-TILE'}},
order = 'F04' order = 'F01'
}, { }, {
type = 'string-setting', type = 'string-setting',
name = 'PHI-CT-TILE-CHOICE', name = 'PHI-CT-TILE-CHOICE',
@@ -342,6 +321,6 @@ data:extend({
default_value = 'grass-1', default_value = 'grass-1',
allowed_values = {'concrete', 'deepwater', 'deepwater-green', 'dirt-1', 'dirt-2', 'dirt-3', 'dirt-4', 'dirt-5', 'dirt-6', 'dirt-7', 'dry-dirt', 'grass-1', 'grass-2', 'grass-3', 'grass-4', 'hazard-concrete-left', 'hazard-concrete-right', 'lab-dark-1', 'lab-dark-2', 'lab-white', 'landfill', 'out-of-map', 'red-desert-0', 'red-desert-1', 'red-desert-2', 'red-desert-3', 'refined-concrete', 'refined-hazard-concrete-left', 'refined-hazard-concrete-right', 'sand-1', 'sand-2', 'sand-3', 'stone-path', 'tutorial-grid', 'water', 'water-green', 'water-mud', 'water-shallow'}, allowed_values = {'concrete', 'deepwater', 'deepwater-green', 'dirt-1', 'dirt-2', 'dirt-3', 'dirt-4', 'dirt-5', 'dirt-6', 'dirt-7', 'dry-dirt', 'grass-1', 'grass-2', 'grass-3', 'grass-4', 'hazard-concrete-left', 'hazard-concrete-right', 'lab-dark-1', 'lab-dark-2', 'lab-white', 'landfill', 'out-of-map', 'red-desert-0', 'red-desert-1', 'red-desert-2', 'red-desert-3', 'refined-concrete', 'refined-hazard-concrete-left', 'refined-hazard-concrete-right', 'sand-1', 'sand-2', 'sand-3', 'stone-path', 'tutorial-grid', 'water', 'water-green', 'water-mud', 'water-shallow'},
localised_name = {'phi-cl.combine', {'mod-setting-name-prefix.PHI-CT-TILE-CHOICE'}, {'mod-setting-name.PHI-CT-TILE-CHOICE'}}, localised_name = {'phi-cl.combine', {'mod-setting-name-prefix.PHI-CT-TILE-CHOICE'}, {'mod-setting-name.PHI-CT-TILE-CHOICE'}},
order = 'F05' order = 'F02'
} }
}) })