mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2025-12-27 11:05:22 +09:00
.
This commit is contained in:
@@ -4,6 +4,7 @@ Date: 2024-11-30
|
||||
|
||||
Changes:
|
||||
- [CL] Changed some existing code structure and logic.
|
||||
- [CL] Changed the artillery shell max stack size.
|
||||
- [SA] Changed the minimum damage for the asteroid.
|
||||
- [SA] Changed the artillery related content in generic settings.
|
||||
|
||||
|
||||
@@ -834,15 +834,8 @@ if settings.startup['PHI-SA'].value then
|
||||
{'utility-science-pack', 1}
|
||||
}
|
||||
|
||||
data.raw.technology['artillery-shell-range-1'].unit.ingredients = {
|
||||
{'automation-science-pack', 1},
|
||||
{'logistic-science-pack', 1},
|
||||
{'chemical-science-pack', 1},
|
||||
{'military-science-pack', 1},
|
||||
{'utility-science-pack', 1},
|
||||
{'space-science-pack', 1}
|
||||
}
|
||||
|
||||
data.raw.technology['artillery-shell-range-1'].unit.ingredients = data.raw.technology['artillery'].unit.ingredients
|
||||
table.insert(data.raw.technology['artillery-shell-range-1'].unit.ingredients, {'space-science-pack', 1})
|
||||
data.raw.technology['artillery-shell-speed-1'].unit.ingredients = data.raw.technology['artillery-shell-range-1'].unit.ingredients
|
||||
data.raw.technology['artillery-shell-damage-1'].unit.ingredients = data.raw.technology['artillery-shell-range-1'].unit.ingredients
|
||||
|
||||
@@ -944,7 +937,7 @@ if settings.startup['PHI-SA'].value then
|
||||
data.raw['ammo-turret']['railgun-turret'].starting_attack_speed_secondary = 1
|
||||
data.raw['ammo-turret']['railgun-turret'].starting_attack_speed_when_killed = 1
|
||||
|
||||
for _, v in pairs({'carbonic-asteroid-chunk', 'metallic-asteroid-chunk', 'promethium-asteroid-chunk', 'oxide-asteroid-chunk'}) do
|
||||
for _, v in pairs({'carbonic-asteroid-chunk', 'metallic-asteroid-chunk', 'promethium-asteroid-chunk', 'oxide-asteroid-chunk', 'artillery-shell'}) do
|
||||
if data.raw.item[v] then
|
||||
data.raw.item[v].stack_size = data.raw['inserter']['stack-inserter'].max_belt_stack_size
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user