This commit is contained in:
2024-11-01 15:30:03 +09:00
parent 93ea28b9e3
commit a5d286ea56
9 changed files with 146 additions and 92 deletions

View File

@@ -2,21 +2,6 @@ local items = require 'config'
local main = require 'main'
local file_stage = 3
for _, v in pairs(data.raw['active-defense-equipment']) do
v.automatic = true
end
if settings.startup['PHI-CT'].value then
data.raw['utility-constants'].default.rocket_lift_weight = settings.startup['PHI-CT-ROCKET-CAPACITY'].value * 100000
data.raw['utility-constants'].default.default_item_weight = settings.startup['PHI-CT-CARGO-WEIGHT'].value
if settings.startup['PHI-CT-UTILITY'].value then
for _, t in pairs({'arithmetic-combinator', 'decider-combinator', 'programmable-speaker', 'selector-combinator'}) do
data.raw[t][t].energy_source.usage_priority = 'primary-input'
end
end
end
for _, v in pairs(items['item']) do
if (v.stage <= file_stage) and v.enabled and (v.max >= v.min) then
v.category = 'item'

View File

@@ -86,12 +86,12 @@ if settings.startup['PHI-EQ'].value and settings.startup['PHI-EQ-ARMOR'].value t
data:extend({{
type = 'recipe',
name = 'power-armor-mk3',
name = armor.name,
energy_required = 2,
enabled = false,
ingredients = {{type='item', name='power-armor-mk2', amount=2}},
results = {{type='item', name='power-armor-mk3', amount=1}},
main_product = 'power-armor-mk3',
results = {{type='item', name=armor.name, amount=1}},
main_product = armor.name,
localised_name = {'phi-cl.combine-gen', {'name.power-armor-mk2'}, '3'}
}})
@@ -99,14 +99,14 @@ if settings.startup['PHI-EQ'].value and settings.startup['PHI-EQ-ARMOR'].value t
if an.armors then
for _, ar in ipairs(an.armors) do
if ar == 'power-armor-mk2' then
an.armors[#an.armors + 1] = 'power-armor-mk3'
an.armors[#an.armors + 1] = armor.name
break
end
end
end
end
table.insert(data.raw.technology['power-armor-mk2'].effects, {type='unlock-recipe', recipe='power-armor-mk3'})
table.insert(data.raw.technology['power-armor-mk2'].effects, {type='unlock-recipe', recipe=armor.name})
if mods['space-age'] then
grid = table.deepcopy(data.raw['equipment-grid']['large-equipment-grid'])
@@ -141,17 +141,17 @@ if settings.startup['PHI-EQ'].value and settings.startup['PHI-EQ-ARMOR'].value t
armor.order = armor.order .. '2'
armor.equipment_grid = grid.name
armor.inventory_size_bonus = armor.inventory_size_bonus + 10
armor.localised_name = {'phi-cl.combine-gen', {'name.power-armor-mk2'}, '3'}
armor.localised_name = {'phi-cl.combine-gen', {'name.mech-armor'}, '2'}
data:extend({armor})
data:extend({{
type = 'recipe',
name = 'mech-armor-mk2',
name = armor.name,
energy_required = 2,
enabled = false,
ingredients = {{type='item', name='mech-armor', amount=2}},
results = {{type='item', name='mech-armor-mk2', amount=1}},
main_product = 'mech-armor-mk2',
results = {{type='item', name=armor.name, amount=1}},
main_product = armor.name,
localised_name = {'phi-cl.combine-gen', {'name.mech-armor'}, '2'}
}})
@@ -159,14 +159,14 @@ if settings.startup['PHI-EQ'].value and settings.startup['PHI-EQ-ARMOR'].value t
if an.armors then
for _, ar in ipairs(an.armors) do
if ar == 'mech-armor' then
an.armors[#an.armors + 1] = 'mech-armor-mk2'
an.armors[#an.armors + 1] = armor.name
break
end
end
end
end
table.insert(data.raw.technology['mech-armor'].effects, {type='unlock-recipe', recipe='mech-armor-mk2'})
table.insert(data.raw.technology['mech-armor'].effects, {type='unlock-recipe', recipe=armor.name})
end
end
@@ -236,7 +236,6 @@ if settings.startup['PHI-CT'].value and settings.startup['PHI-CT-TOOL'].value th
item.icon_size = nil
item.icon_mipmaps = nil
item.localised_name = {'name.super-radar'}
item.localised_description = {'description.super-radar'}
data:extend({item})
local entity = table.deepcopy(data.raw['radar']['radar'])
@@ -245,7 +244,7 @@ if settings.startup['PHI-CT'].value and settings.startup['PHI-CT-TOOL'].value th
entity.max_distance_of_sector_revealed = 35
entity.max_distance_of_nearby_sector_revealed = 35
entity.pictures.layers[1].tint = items['tint'][8]
entity.localised_name = {'name.super-radar'}
entity.localised_name = item.localised_name
data:extend({entity})
data:extend({{
@@ -266,8 +265,8 @@ if settings.startup['PHI-CT'].value and settings.startup['PHI-CT-TOOL'].value th
data:extend({item})
entity = table.deepcopy(data.raw['electric-energy-interface']['electric-energy-interface'])
entity.name = 'passive-energy-void'
entity.minable.result = entity.name
entity.name = item.name
entity.minable.result = item.name
entity.energy_source.usage_priority = 'tertiary'
entity.energy_source.emissions_per_minute = {pollution = 0}
entity.energy_source.input_flow_limit = '1PW'
@@ -276,21 +275,21 @@ if settings.startup['PHI-CT'].value and settings.startup['PHI-CT-TOOL'].value th
entity.energy_production = '0W'
entity.energy_usage = '1PW'
entity.gui_mode = 'none'
entity.localised_name = {'name.passive-energy-void'}
entity.localised_name = item.localised_name
data:extend({entity})
data:extend({{
type = 'recipe',
name = 'passive-energy-void',
name = item.name,
energy_required = 2,
enabled = false,
ingredients = {{type='item', name='accumulator', amount=1}},
results = {{type='item', name='passive-energy-void', amount=1}},
main_product = 'passive-energy-void',
localised_name = {'name.passive-energy-void'}
results = {{type='item', name=item.name, amount=1}},
main_product = item.name,
localised_name = item.localised_name
}})
table.insert(data.raw.technology['electric-energy-accumulators'].effects, {type='unlock-recipe', recipe='passive-energy-void'})
table.insert(data.raw.technology['electric-energy-accumulators'].effects, {type='unlock-recipe', recipe=item.name})
data:extend({{type='recipe-category', name='fluid'}})
item = table.deepcopy(data.raw['item']['offshore-pump'])
@@ -314,8 +313,8 @@ if settings.startup['PHI-CT'].value and settings.startup['PHI-CT-TOOL'].value th
data:extend({item})
entity = table.deepcopy(data.raw['offshore-pump']['offshore-pump'])
entity.name = 'super-pump'
entity.minable.result = entity.name
entity.name = item.name
entity.minable.result = item.name
entity.type = 'assembling-machine'
entity.crafting_categories = {'fluid'}
entity.crafting_speed = 1
@@ -329,18 +328,18 @@ if settings.startup['PHI-CT'].value and settings.startup['PHI-CT-TOOL'].value th
entity.collision_mask = nil
entity.tile_buildability_rules = nil
entity.fluid_source_offset = nil
entity.localised_name = {'name.super-pump'}
entity.localised_name = item.localised_name
data:extend({entity})
data:extend({{
type = 'recipe',
name = 'super-pump',
name = item.name,
energy_required = 2,
enabled = true,
ingredients = {{type='item', name='electronic-circuit', amount=2}, {type='item', name='pipe', amount=1}, {type='item', name='iron-gear-wheel', amount=1}},
results = {{type='item', name='super-pump', amount=1}},
main_product = 'super-pump',
localised_name = {'name.super-pump'}
results = {{type='item', name=item.name, amount=1}},
main_product = item.name,
localised_name = item.localised_name
}})
for _, v in pairs(data.raw.fluid) do
@@ -394,8 +393,8 @@ if settings.startup['PHI-CT'].value and settings.startup['PHI-CT-UTILITY'].value
data:extend({item})
local entity = table.deepcopy(data.raw['container']['steel-chest'])
entity.name = 'trash-chest'
entity.minable.result = entity.name
entity.name = item.name
entity.minable.result = item.name
entity.inventory_type = 'with_filters_and_bar'
entity.inventory_size = 1
entity.type = 'infinity-container'
@@ -404,21 +403,21 @@ if settings.startup['PHI-CT'].value and settings.startup['PHI-CT-UTILITY'].value
entity.logistic_mode = nil
entity.next_upgrade = nil
entity.picture.layers[1].tint = items['tint'][8]
entity.localised_name = {'name.trash-chest'}
entity.localised_name = item.localised_name
data:extend({entity})
data:extend({{
type = 'recipe',
name = 'trash-chest',
name = item.name,
energy_required = 2,
enabled = false,
ingredients = {{type='item', name='steel-chest', amount=1}},
results = {{type='item', name='trash-chest', amount=1}},
main_product = 'trash-chest',
localised_name = {'name.trash-chest'}
results = {{type='item', name=item.name, amount=1}},
main_product = item.name,
localised_name = item.localised_name
}})
table.insert(data.raw.technology['steel-processing'].effects, {type='unlock-recipe', recipe='trash-chest'})
table.insert(data.raw.technology['steel-processing'].effects, {type='unlock-recipe', recipe=item.name})
item = table.deepcopy(data.raw['item']['pipe'])
item.name = 'trash-pipe'
@@ -441,8 +440,8 @@ if settings.startup['PHI-CT'].value and settings.startup['PHI-CT-UTILITY'].value
data:extend({item})
entity = table.deepcopy(data.raw['pipe']['pipe'])
entity.name = 'trash-pipe'
entity.minable.result = entity.name
entity.name = item.name
entity.minable.result = item.name
entity.inventory_size = 1
entity.type = 'infinity-pipe'
entity.gui_mode = 'none'
@@ -457,22 +456,21 @@ if settings.startup['PHI-CT'].value and settings.startup['PHI-CT-UTILITY'].value
end
end
entity.se_allow_in_space = true
entity.localised_name = {'name.trash-pipe'}
entity.localised_name = item.localised_name
data:extend({entity})
data:extend({{
type = 'recipe',
name = 'trash-pipe',
name = item.name,
energy_required = 2,
enabled = false,
ingredients = {{type='item', name='iron-plate', amount=1}},
results = {{type='item', name='trash-pipe', amount=1}},
main_product = 'trash-pipe',
localised_name = {'name.trash-pipe'}
results = {{type='item', name=item.name, amount=1}},
main_product = item.name,
localised_name = item.localised_name
}})
table.insert(data.raw.technology['automation'].effects, {type='unlock-recipe', recipe='trash-pipe'})
table.insert(data.raw.technology['automation'].effects, {type='unlock-recipe', recipe=item.name})
item = table.deepcopy(data.raw['item']['boiler'])
item.name = 'electric-boiler'
@@ -482,7 +480,7 @@ if settings.startup['PHI-CT'].value and settings.startup['PHI-CT-UTILITY'].value
data:extend({item})
entity = table.deepcopy(data.raw['boiler']['boiler'])
entity.name = 'electric-boiler'
entity.name = item.name
entity.energy_consumption = '7200kW'
entity.buffer_capacity = '14400kJ'
entity.target_temperature = 165
@@ -502,18 +500,18 @@ if settings.startup['PHI-CT'].value and settings.startup['PHI-CT-UTILITY'].value
entity.fire_flicker_enabled = false
entity.fire_glow_flicker_enabled = false
entity.fire = {}
entity.localised_name = {'name.electric-boiler'}
entity.localised_name = item.localised_name
data:extend({entity})
data:extend({{
type = 'recipe',
name = 'electric-boiler',
name = item.name,
energy_required = 2,
enabled = true,
ingredients = {{type='item', name='boiler', amount=1}, {type='item', name='electronic-circuit', amount=1}},
results = {{type='item', name='electric-boiler', amount=1}},
main_product = 'electric-boiler',
localised_name = {'name.electric-boiler'}
results = {{type='item', name=item.name, amount=1}},
main_product = item.name,
localised_name = item.localised_name
}})
-- electric boiler
@@ -545,23 +543,28 @@ if settings.startup['PHI-CT'].value and settings.startup['PHI-CT-UTILITY'].value
item.localised_name = {'name.basic-'.. c}
data:extend({item})
entity.name = 'basic-' .. c
entity.minable.result = entity.name
entity.name = item.name
entity.minable.result = item.name
entity.inventory_type = 'with_filters_and_bar'
entity.inventory_size = 1
if c ~= 'steel-chest' then
entity.max_logistic_slots = 1
entity.localised_name = {'name.basic-'.. c}
entity.trash_inventory_size = 1
end
entity.localised_name = item.localised_name
data:extend({entity})
data:extend({{
type = 'recipe',
name = 'basic-' .. c,
name = item.name,
energy_required = 2,
enabled = false,
ingredients = {{type='item', name=c, amount=1}},
results = {{type='item', name='basic-' .. c, amount=1}},
main_product = 'basic-' .. c,
localised_name = {'name.basic-' .. c}
results = {{type='item', name=item.name, amount=1}},
main_product = item.name,
localised_name = item.localised_name
}})
end
@@ -591,20 +594,19 @@ if settings.startup['PHI-CT'].value and settings.startup['PHI-CT-HIDDEN'].value
entity.inventory_type = 'with_filters_and_bar'
entity.inventory_size = 48
entity.gui_mode = 'all'
entity.se_allow_in_space = true
data:extend({entity})
data:extend({{
type = 'recipe',
name = 'linked-chest',
name = item.name,
energy_required = 2,
enabled = false,
ingredients = {{type='item', name='steel-chest', amount=1}},
results = {{type='item', name='linked-chest', amount=1}},
main_product = 'linked-chest'
results = {{type='item', name=item.name, amount=1}},
main_product = item.name
}})
table.insert(data.raw.technology['steel-processing'].effects, {type='unlock-recipe', recipe='linked-chest'})
table.insert(data.raw.technology['steel-processing'].effects, {type='unlock-recipe', recipe=item.name})
data.raw.recipe['loader'].hidden = false
data.raw.recipe['fast-loader'].hidden = false
@@ -620,6 +622,63 @@ if settings.startup['PHI-CT'].value and settings.startup['PHI-CT-HIDDEN'].value
end
end
if settings.startup['PHI-CT'].value then
data.raw['utility-constants'].default.rocket_lift_weight = settings.startup['PHI-CT-ROCKET-CAPACITY'].value * 100000
data.raw['utility-constants'].default.default_item_weight = settings.startup['PHI-CT-CARGO-WEIGHT'].value
--[[
data.raw['rocket-silo']['rocket-silo'].launch_to_space_platforms = true
data.raw['rocket-silo']['rocket-silo'].to_be_inserted_to_rocket_inventory_size = 20
data.raw['rocket-silo']['rocket-silo'].logistic_trash_inventory_size = 20
data.raw['rocket-silo-rocket']['rocket-silo-rocket'].inventory_size = 20
]]
if settings.startup['PHI-CT-UTILITY'].value then
for _, t in pairs({'arithmetic-combinator', 'decider-combinator', 'programmable-speaker', 'selector-combinator'}) do
data.raw[t][t].energy_source.usage_priority = 'primary-input'
end
end
end
if settings.startup['PHI-CT'].value and mods['space-age'] and (not settings.startup['PHI-CT-SPOIL'].value) then
local function spoil_handle(i)
i.spoil_ticks = nil
i.spoil_result = nil
i.spoil_to_trigger_result = nil
end
-- spoil_handle(data.raw['item']['iron-bacteria'])
-- spoil_handle(data.raw['item']['copper-bacteria'])
spoil_handle(data.raw['item']['nutrients'])
spoil_handle(data.raw['item']['captive-biter-spawner'])
spoil_handle(data.raw['item']['biter-egg'])
spoil_handle(data.raw['item']['pentapod-egg'])
spoil_handle(data.raw['capsule']['raw-fish'])
spoil_handle(data.raw['capsule']['yumako-mash'])
spoil_handle(data.raw['capsule']['yumako'])
spoil_handle(data.raw['capsule']['jelly'])
spoil_handle(data.raw['capsule']['jellynut'])
spoil_handle(data.raw['capsule']['bioflux'])
spoil_handle(data.raw['tool']['agricultural-science-pack'])
data:extend({{
type = 'recipe',
name = 'spoilage-from-nutrients',
energy_required = 1,
enabled = false,
ingredients = {{type='item', name='nutrients', amount=1}},
results = {{type='item', name='spoilage', amount=10}},
main_product = 'spoilage',
localised_name = data.raw['item']['spoilage'].localised_name
}})
table.insert(data.raw.technology['agriculture'].effects, {type='unlock-recipe', recipe='spoilage-from-nutrients'})
end
for _, v in pairs(data.raw['active-defense-equipment']) do
v.automatic = true
end
for _, v in pairs(items['item']) do
if (v.stage == file_stage) and v.enabled and (v.max >= v.min) then
v.category = 'item'

View File

@@ -1,8 +1,8 @@
{
"name": "PHI-CL",
"version": "3.0.8",
"version": "3.0.9",
"factorio_version": "2.0",
"date": "2024-10-31",
"date": "2024-11-01",
"title": "Phidias Collection",
"author": "PHIDIAS0303",
"contributers": "",

View File

@@ -127,8 +127,9 @@ PHI-CT-UTILITY=CT2 Utility
PHI-CT-HIDDEN=CT3 Hidden
PHI-CT-ROCKET-CAPACITY=CT4 Rocket capacity
PHI-CT-CARGO-WEIGHT=CT5 Rocket cargo weight
PHI-CT-TILE=CT6 World tile
PHI-CT-TILE-CHOICE=CT7 Tile choice
PHI-CT-SPOIL=CT6 Spoil
PHI-CT-TILE=CT7 World tile
PHI-CT-TILE-CHOICE=CT8 Tile choice
[mod-setting-description]
PHI-EN-SOLAR-TIER=Default 8 ; Disable 1

View File

@@ -126,8 +126,9 @@ PHI-CT-UTILITY=CT2 ユーティリティ
PHI-CT-HIDDEN=CT3 非表示
PHI-CT-ROCKET-CAPACITY=CT4 ロケット容量
PHI-CT-CARGO-WEIGHT=CT5 ロケット積載重量
PHI-CT-TILE=CT6 ワールドタイル
PHI-CT-TILE-CHOICE=CT7 ドタイル選択
PHI-CT-SPOIL=CT6 変質
PHI-CT-TILE=CT7 ワールドタイル
PHI-CT-TILE-CHOICE=CT8 ドタイル選択
[mod-setting-description]
PHI-EN-SOLAR-TIER=デフォルト 8 ; 止める 1

View File

@@ -126,8 +126,9 @@ PHI-CT-UTILITY=CT2 雜項
PHI-CT-HIDDEN=CT3 隱藏
PHI-CT-ROCKET-CAPACITY=CT4 火箭容量
PHI-CT-CARGO-WEIGHT=CT5 火箭貨物重量
PHI-CT-TILE=CT6 世界地磚
PHI-CT-TILE-CHOICE=CT7 地磚選擇
PHI-CT-SPOIL=CT6 變質
PHI-CT-TILE=CT7 世界地磚
PHI-CT-TILE-CHOICE=CT8 地磚選擇
[mod-setting-description]
PHI-EN-SOLAR-TIER=預設 8 ; 停用 1

View File

@@ -126,8 +126,9 @@ PHI-CT-UTILITY=CT2 雜項
PHI-CT-HIDDEN=CT3 隱藏
PHI-CT-ROCKET-CAPACITY=CT4 火箭容量
PHI-CT-CARGO-WEIGHT=CT5 火箭貨物重量
PHI-CT-TILE=CT6 世界地磚
PHI-CT-TILE-CHOICE=CT7 地磚選擇
PHI-CT-SPOIL=CT6 變質
PHI-CT-TILE=CT7 世界地磚
PHI-CT-TILE-CHOICE=CT8 地磚選擇
[mod-setting-description]
PHI-EN-SOLAR-TIER=預設 8 ; 停用 1

View File

@@ -862,14 +862,14 @@ end
name = 'PHI-CT-TILE',
setting_type = 'startup',
default_value = true,
order = 'F06'
order = 'F07'
}, {
type = 'string-setting',
name = 'PHI-CT-TILE-CHOICE',
setting_type = 'startup',
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'},
order = 'F07'
order = 'F08'
}
"? aai-industry >= 0.5.0",

View File

@@ -142,7 +142,7 @@ data:extend({
type = 'bool-setting',
name = 'PHI-MI-ROBOT-ENERGY',
setting_type = 'startup',
default_value = true,
default_value = false,
order = 'E05B'
}, {
type = 'int-setting',
@@ -191,5 +191,11 @@ data:extend({
minimum_value = 1,
maximum_value = 1000,
order = 'F05'
}, {
type = 'bool-setting',
name = 'PHI-CT-SPOIL',
setting_type = 'startup',
default_value = true,
order = 'F06'
}
})