mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2025-12-27 11:05:22 +09:00
.
This commit is contained in:
126
PHI-CL/data.lua
126
PHI-CL/data.lua
@@ -27,12 +27,12 @@ if settings.startup['PHI-EN'].value then
|
|||||||
prerequisites = prereq,
|
prerequisites = prereq,
|
||||||
effects = {},
|
effects = {},
|
||||||
unit = {
|
unit = {
|
||||||
count = math.floor(100 * (i ^ 1.6)),
|
count = math.floor(75 * (i ^ 2)),
|
||||||
ingredients = {
|
ingredients = {
|
||||||
{'automation-science-pack', 1},
|
{'automation-science-pack', 1},
|
||||||
{'logistic-science-pack', 1}
|
{'logistic-science-pack', 1}
|
||||||
},
|
},
|
||||||
time = 60
|
time = 30
|
||||||
},
|
},
|
||||||
icons = {
|
icons = {
|
||||||
{
|
{
|
||||||
@@ -171,6 +171,16 @@ if settings.startup['PHI-EQ'].value and settings.startup['PHI-EQ-ARMOR'].value t
|
|||||||
end
|
end
|
||||||
|
|
||||||
if settings.startup['PHI-MI'].value then
|
if settings.startup['PHI-MI'].value then
|
||||||
|
for _, v in pairs(data.raw['active-defense-equipment']) do
|
||||||
|
v.automatic = true
|
||||||
|
end
|
||||||
|
|
||||||
|
data.raw['mining-drill']['electric-mining-drill'].filter_count = 5
|
||||||
|
|
||||||
|
if mods['space-age'] then
|
||||||
|
data.raw['mining-drill']['big-mining-drill'].filter_count = 5
|
||||||
|
end
|
||||||
|
|
||||||
if settings.startup['PHI-MI-EFFCY'].value then
|
if settings.startup['PHI-MI-EFFCY'].value then
|
||||||
data.raw['module']['efficiency-module'].effect = {consumption=-0.4, pollution=-0.4}
|
data.raw['module']['efficiency-module'].effect = {consumption=-0.4, pollution=-0.4}
|
||||||
data.raw['module']['efficiency-module-2'].effect = {consumption=-0.8, pollution=-0.8}
|
data.raw['module']['efficiency-module-2'].effect = {consumption=-0.8, pollution=-0.8}
|
||||||
@@ -706,7 +716,7 @@ if settings.startup['PHI-CT'].value then
|
|||||||
{'logistic-science-pack', 1}
|
{'logistic-science-pack', 1}
|
||||||
}
|
}
|
||||||
|
|
||||||
local recipe = table.deepcopy(data.raw['recipe']['cliff-explosives'])
|
local recipe = table.deepcopy(data.raw.recipe['cliff-explosives'])
|
||||||
recipe.name = 'cliff-explosives-o'
|
recipe.name = 'cliff-explosives-o'
|
||||||
recipe.ingredients = {
|
recipe.ingredients = {
|
||||||
{type='item', name='explosives', amount=10},
|
{type='item', name='explosives', amount=10},
|
||||||
@@ -717,6 +727,58 @@ if settings.startup['PHI-CT'].value then
|
|||||||
|
|
||||||
data:extend({recipe})
|
data:extend({recipe})
|
||||||
table.insert(data.raw.technology['cliff-explosives'].effects, {type='unlock-recipe', recipe=recipe.name})
|
table.insert(data.raw.technology['cliff-explosives'].effects, {type='unlock-recipe', recipe=recipe.name})
|
||||||
|
|
||||||
|
data.raw.technology['rail-support-foundations'].prerequisites = {'elevated-rail'}
|
||||||
|
data.raw.technology['rail-support-foundations'].unit.count = 600
|
||||||
|
data.raw.technology['rail-support-foundations'].unit.ingredients = {
|
||||||
|
{'automation-science-pack', 1},
|
||||||
|
{'logistic-science-pack', 1},
|
||||||
|
{'chemical-science-pack', 1},
|
||||||
|
{'production-science-pack', 1},
|
||||||
|
{'utility-science-pack', 1}
|
||||||
|
}
|
||||||
|
|
||||||
|
data.raw.technology['foundation'].prerequisites = {'elevated-rail', 'rail-support-foundations'}
|
||||||
|
data.raw.technology['foundation'].unit.count_formula = '1000'
|
||||||
|
data.raw.technology['foundation'].unit.ingredients = {
|
||||||
|
{'automation-science-pack', 1},
|
||||||
|
{'logistic-science-pack', 1},
|
||||||
|
{'chemical-science-pack', 1},
|
||||||
|
{'production-science-pack', 1},
|
||||||
|
{'utility-science-pack', 1}
|
||||||
|
}
|
||||||
|
|
||||||
|
recipe = table.deepcopy(data.raw.recipe['foundation'])
|
||||||
|
recipe.name = 'foundation-o'
|
||||||
|
recipe.ingredients = {
|
||||||
|
{type='item', name='stone', amount=40},
|
||||||
|
{type='item', name='refined-concrete', amount=20},
|
||||||
|
{type='item', name='steel-plate', amount=20}
|
||||||
|
}
|
||||||
|
recipe.results = {
|
||||||
|
{type='item', name='foundation', amount=10}
|
||||||
|
}
|
||||||
|
recipe.localised_name = {'phi-cl.combine', '', ''}
|
||||||
|
|
||||||
|
data:extend({recipe})
|
||||||
|
table.insert(data.raw.technology['foundation'].effects, {type='unlock-recipe', recipe=recipe.name})
|
||||||
|
|
||||||
|
data.raw['space-platform-hub']['space-platform-hub'].platform_repair_speed_modifier = 2
|
||||||
|
data.raw['space-platform-hub']['space-platform-hub'].inventory_size = 119
|
||||||
|
data.raw['cargo-bay']['cargo-bay'].inventory_size_bonus = 40
|
||||||
|
|
||||||
|
-- data.raw['rocket-silo']['rocket-silo'].logistic_trash_inventory_size = 20
|
||||||
|
data.raw['rocket-silo']['rocket-silo'].to_be_inserted_to_rocket_inventory_size = 60
|
||||||
|
data.raw['rocket-silo-rocket']['rocket-silo-rocket'].inventory_size = 60
|
||||||
|
|
||||||
|
for _, v in pairs(data.raw.recipe) do
|
||||||
|
if v.maximum_productivity then
|
||||||
|
v.maximum_productivity = nil
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
data.raw.roboport.roboport.charging_station_count_affected_by_quality = true
|
||||||
|
data.raw['roboport-equipment']['personal-roboport-equipment'].charging_station_count_affected_by_quality = true
|
||||||
end
|
end
|
||||||
|
|
||||||
if mods['elevated-rails'] then
|
if mods['elevated-rails'] then
|
||||||
@@ -727,29 +789,63 @@ if settings.startup['PHI-CT'].value then
|
|||||||
{'logistic-science-pack', 1}
|
{'logistic-science-pack', 1}
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
if settings.startup['PHI-CT-QUALITY'].value then
|
||||||
if mods['quality'] then
|
if mods['quality'] then
|
||||||
for _, v in pairs(data.raw['module']) do
|
for _, v in pairs(data.raw.module) do
|
||||||
if v.category and v.category == 'quality' then
|
if v.category and v.category == 'quality' then
|
||||||
v.effect.quality = v.effect.quality * settings.startup['PHI-CT-QUALITY'].value / 10
|
v.effect.quality = v.effect.quality * settings.startup['PHI-CT-QUALITY'].value / 10
|
||||||
|
|
||||||
|
elseif v.category and v.category == 'speed' then
|
||||||
|
v.effect.quality = nil
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if settings.startup['PHI-CT-NO-QUALITY'].value then
|
||||||
|
if mods['quality'] then
|
||||||
|
for _, v in pairs({'quality-module', 'quality-module-2', 'quality-module-3'}) do
|
||||||
|
data.raw.technology[v] = nil
|
||||||
|
data.raw.module[v] = nil
|
||||||
|
data.raw.recipe[v] = nil
|
||||||
|
data.raw.recipe[v .. '-recycling'] = nil
|
||||||
|
end
|
||||||
|
|
||||||
|
data.raw.technology['epic-quality'] = nil
|
||||||
|
data.raw.technology['legendary-quality'] = nil
|
||||||
|
|
||||||
|
data.raw.quality['uncommon'] = nil
|
||||||
|
data.raw.quality['rare'] = nil
|
||||||
|
data.raw.quality['epic'] = nil
|
||||||
|
data.raw.quality['legendary'] = nil
|
||||||
|
|
||||||
|
data.raw['tips-and-tricks-item']['quality'] = nil
|
||||||
|
data.raw['tips-and-tricks-item']['quality-modules'] = nil
|
||||||
|
data.raw['tips-and-tricks-item']['quality-factoriopedia'] = nil
|
||||||
|
data.raw['tips-and-tricks-item']['quality-probabilities'] = nil
|
||||||
|
|
||||||
|
data.raw['produce-achievement']['crafting-with-quality'] = nil
|
||||||
|
data.raw['module-transfer-achievement']['make-it-better'] = nil
|
||||||
|
data.raw['produce-achievement']['my-modules-are-legendary'] = nil
|
||||||
|
data.raw['equip-armor-achievement']['look-at-my-shiny-rare-armor'] = nil
|
||||||
|
data.raw['use-item-achievement']['todays-fish-is-trout-a-la-creme'] = nil
|
||||||
|
data.raw['place-equipment-achievement']['no-room-for-more'] = nil
|
||||||
|
|
||||||
|
data.raw.quality.normal.level = 5
|
||||||
|
data.raw.quality.normal.next = nil
|
||||||
|
data.raw.quality.normal.next_probability = nil
|
||||||
|
data.raw.quality.normal.hidden = true
|
||||||
|
data.raw.quality.normal.hidden_in_factoriopedia = true
|
||||||
|
data.raw.quality.normal.beacon_power_usage_multiplier = 1 / 6
|
||||||
|
data.raw.quality.normal.mining_drill_resource_drain_multiplier = 1 / 6
|
||||||
|
data.raw.quality.normal.science_pack_drain_multiplier = 19 / 20
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
data.raw['utility-constants'].default.rocket_lift_weight = settings.startup['PHI-CT-ROCKET-CAPACITY'].value * 100000
|
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['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
|
|
||||||
]]
|
|
||||||
end
|
|
||||||
|
|
||||||
for _, v in pairs(data.raw['active-defense-equipment']) do
|
|
||||||
v.automatic = true
|
|
||||||
end
|
end
|
||||||
|
|
||||||
for _, v in pairs(items['item']) do
|
for _, v in pairs(items['item']) do
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"name": "PHI-CL",
|
"name": "PHI-CL",
|
||||||
"version": "3.0.14",
|
"version": "3.0.20",
|
||||||
"factorio_version": "2.0",
|
"factorio_version": "2.0",
|
||||||
"date": "2024-11-03",
|
"date": "2024-11-09",
|
||||||
"title": "Phidias Collection",
|
"title": "Phidias Collection",
|
||||||
"author": "PHIDIAS0303",
|
"author": "PHIDIAS0303",
|
||||||
"contributers": "",
|
"contributers": "",
|
||||||
|
|||||||
@@ -130,8 +130,9 @@ PHI-CT-CARGO-WEIGHT=CT5 Rocket cargo weight
|
|||||||
PHI-CT-SPOIL=CT6 Spoil
|
PHI-CT-SPOIL=CT6 Spoil
|
||||||
PHI-CT-SA=CT7 Space Age
|
PHI-CT-SA=CT7 Space Age
|
||||||
PHI-CT-QUALITY=CT8 Quality
|
PHI-CT-QUALITY=CT8 Quality
|
||||||
PHI-CT-TILE=CT9 World tile
|
PHI-CT-NO-QUALITY=CT9 No quality
|
||||||
PHI-CT-TILE-CHOICE=CT10 Tile choice
|
PHI-CT-TILE=CT10 World tile
|
||||||
|
PHI-CT-TILE-CHOICE=CT11 Tile choice
|
||||||
|
|
||||||
[mod-setting-description]
|
[mod-setting-description]
|
||||||
PHI-EN-SOLAR-TIER=Default 8 ; Disable 1
|
PHI-EN-SOLAR-TIER=Default 8 ; Disable 1
|
||||||
@@ -155,3 +156,4 @@ PHI-MI-TRAIN=Default 1
|
|||||||
|
|
||||||
PHI-CT-ROCKET-CAPACITY='000 KG
|
PHI-CT-ROCKET-CAPACITY='000 KG
|
||||||
PHI-CT-CARGO-WEIGHT=KG
|
PHI-CT-CARGO-WEIGHT=KG
|
||||||
|
PHI-CT-QUALITY=Default 10
|
||||||
|
|||||||
@@ -129,8 +129,9 @@ PHI-CT-CARGO-WEIGHT=CT5 ロケット積載重量
|
|||||||
PHI-CT-SPOIL=CT6 変質
|
PHI-CT-SPOIL=CT6 変質
|
||||||
PHI-CT-SA=CT7 Space Age
|
PHI-CT-SA=CT7 Space Age
|
||||||
PHI-CT-QUALITY=CT8 品質
|
PHI-CT-QUALITY=CT8 品質
|
||||||
PHI-CT-TILE=CT9 ワールドタイル
|
PHI-CT-NO-QUALITY=CT9 品質なし
|
||||||
PHI-CT-TILE-CHOICE=CT10 ドタイル選択
|
PHI-CT-TILE=CT10 ワールドタイル
|
||||||
|
PHI-CT-TILE-CHOICE=CT11 ドタイル選択
|
||||||
|
|
||||||
[mod-setting-description]
|
[mod-setting-description]
|
||||||
PHI-EN-SOLAR-TIER=デフォルト 8 ; 止める 1
|
PHI-EN-SOLAR-TIER=デフォルト 8 ; 止める 1
|
||||||
@@ -153,4 +154,5 @@ PHI-MI-ROBOT=デフォルト 1
|
|||||||
PHI-MI-TRAIN=デフォルト 1
|
PHI-MI-TRAIN=デフォルト 1
|
||||||
|
|
||||||
PHI-CT-ROCKET-CAPACITY='000 KG
|
PHI-CT-ROCKET-CAPACITY='000 KG
|
||||||
PHI-CT-CARGO-WEIGHT=KG
|
PHI-CT-CARGO-WEIGHT=KG
|
||||||
|
PHI-CT-QUALITY=デフォルト 10
|
||||||
|
|||||||
@@ -129,8 +129,9 @@ PHI-CT-CARGO-WEIGHT=CT5 火箭貨物重量
|
|||||||
PHI-CT-SPOIL=CT6 變質
|
PHI-CT-SPOIL=CT6 變質
|
||||||
PHI-CT-SA=CT7 Space Age
|
PHI-CT-SA=CT7 Space Age
|
||||||
PHI-CT-QUALITY=CT8 品質
|
PHI-CT-QUALITY=CT8 品質
|
||||||
PHI-CT-TILE=CT9 世界地磚
|
PHI-CT-NO-QUALITY=CT9 沒有品質
|
||||||
PHI-CT-TILE-CHOICE=CT10 地磚選擇
|
PHI-CT-TILE=CT10 世界地磚
|
||||||
|
PHI-CT-TILE-CHOICE=CT11 地磚選擇
|
||||||
|
|
||||||
[mod-setting-description]
|
[mod-setting-description]
|
||||||
PHI-EN-SOLAR-TIER=預設 8 ; 停用 1
|
PHI-EN-SOLAR-TIER=預設 8 ; 停用 1
|
||||||
@@ -154,3 +155,4 @@ PHI-MI-TRAIN=預設 1
|
|||||||
|
|
||||||
PHI-CT-ROCKET-CAPACITY='000 KG
|
PHI-CT-ROCKET-CAPACITY='000 KG
|
||||||
PHI-CT-CARGO-WEIGHT=KG
|
PHI-CT-CARGO-WEIGHT=KG
|
||||||
|
PHI-CT-QUALITY=預設 10
|
||||||
|
|||||||
@@ -129,8 +129,9 @@ PHI-CT-CARGO-WEIGHT=CT5 火箭貨物重量
|
|||||||
PHI-CT-SPOIL=CT6 變質
|
PHI-CT-SPOIL=CT6 變質
|
||||||
PHI-CT-SA=CT7 Space Age
|
PHI-CT-SA=CT7 Space Age
|
||||||
PHI-CT-QUALITY=CT8 品質
|
PHI-CT-QUALITY=CT8 品質
|
||||||
PHI-CT-TILE=CT9 世界地磚
|
PHI-CT-NO-QUALITY=CT9 沒有品質
|
||||||
PHI-CT-TILE-CHOICE=CT10 地磚選擇
|
PHI-CT-TILE=CT10 世界地磚
|
||||||
|
PHI-CT-TILE-CHOICE=CT11 地磚選擇
|
||||||
|
|
||||||
[mod-setting-description]
|
[mod-setting-description]
|
||||||
PHI-EN-SOLAR-TIER=預設 8 ; 停用 1
|
PHI-EN-SOLAR-TIER=預設 8 ; 停用 1
|
||||||
@@ -154,3 +155,4 @@ PHI-MI-TRAIN=預設 1
|
|||||||
|
|
||||||
PHI-CT-ROCKET-CAPACITY='000 KG
|
PHI-CT-ROCKET-CAPACITY='000 KG
|
||||||
PHI-CT-CARGO-WEIGHT=KG
|
PHI-CT-CARGO-WEIGHT=KG
|
||||||
|
PHI-CT-QUALITY=預設 10
|
||||||
|
|||||||
@@ -209,7 +209,13 @@ data:extend({
|
|||||||
setting_type = 'startup',
|
setting_type = 'startup',
|
||||||
default_value = 10,
|
default_value = 10,
|
||||||
minimum_value = 1,
|
minimum_value = 1,
|
||||||
maximum_value = 50,
|
maximum_value = 100,
|
||||||
order = 'F08'
|
order = 'F08'
|
||||||
|
}, {
|
||||||
|
type = 'bool-setting',
|
||||||
|
name = 'PHI-CT-NO-QUALITY',
|
||||||
|
setting_type = 'startup',
|
||||||
|
default_value = false,
|
||||||
|
order = 'F09'
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user