This commit is contained in:
2024-11-30 23:11:11 +09:00
parent bc42dafa2d
commit 758997c33e
2 changed files with 4 additions and 10 deletions

View File

@@ -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.

View File

@@ -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