Create data-updates.lua

This commit is contained in:
PHIDIAS
2022-12-01 00:54:52 +09:00
parent 772132562b
commit 1da3515485

47
PHI-EN/data-updates.lua Normal file
View File

@@ -0,0 +1,47 @@
-- accumulator
if not data.raw["accumulator"]["accumulator"].fast_replaceable_group then
data.raw["accumulator"]["accumulator"].fast_replaceable_group = "accumulator"
data.raw["accumulator"]["accumulator-mk2"].fast_replaceable_group = "accumulator"
data.raw["accumulator"]["accumulator-mk3"].fast_replaceable_group = "accumulator"
data.raw["accumulator"]["accumulator-mk4"].fast_replaceable_group = "accumulator"
data.raw["accumulator"]["accumulator-mk5"].fast_replaceable_group = "accumulator"
data.raw["accumulator"]["accumulator-mk6"].fast_replaceable_group = "accumulator"
data.raw["accumulator"]["accumulator-mk7"].fast_replaceable_group = "accumulator"
data.raw["accumulator"]["accumulator-mk8"].fast_replaceable_group = "accumulator"
else
data.raw["accumulator"]["accumulator-mk2"].fast_replaceable_group = data.raw["accumulator"]["accumulator"].fast_replaceable_group
data.raw["accumulator"]["accumulator-mk3"].fast_replaceable_group = data.raw["accumulator"]["accumulator"].fast_replaceable_group
data.raw["accumulator"]["accumulator-mk4"].fast_replaceable_group = data.raw["accumulator"]["accumulator"].fast_replaceable_group
data.raw["accumulator"]["accumulator-mk5"].fast_replaceable_group = data.raw["accumulator"]["accumulator"].fast_replaceable_group
data.raw["accumulator"]["accumulator-mk6"].fast_replaceable_group = data.raw["accumulator"]["accumulator"].fast_replaceable_group
data.raw["accumulator"]["accumulator-mk7"].fast_replaceable_group = data.raw["accumulator"]["accumulator"].fast_replaceable_group
data.raw["accumulator"]["accumulator-mk8"].fast_replaceable_group = data.raw["accumulator"]["accumulator"].fast_replaceable_group
end
if not data.raw["accumulator"]["accumulator"].next_upgrade then
data.raw["accumulator"]["accumulator"].next_upgrade = "accumulator-mk2"
end
-- solar-panel
if not data.raw["solar-panel"]["solar-panel"].fast_replaceable_group then
data.raw["solar-panel"]["solar-panel"].fast_replaceable_group = "solar-panel"
data.raw["solar-panel"]["solar-panel-mk2"].fast_replaceable_group = "solar-panel"
data.raw["solar-panel"]["solar-panel-mk3"].fast_replaceable_group = "solar-panel"
data.raw["solar-panel"]["solar-panel-mk4"].fast_replaceable_group = "solar-panel"
data.raw["solar-panel"]["solar-panel-mk5"].fast_replaceable_group = "solar-panel"
data.raw["solar-panel"]["solar-panel-mk6"].fast_replaceable_group = "solar-panel"
data.raw["solar-panel"]["solar-panel-mk7"].fast_replaceable_group = "solar-panel"
data.raw["solar-panel"]["solar-panel-mk8"].fast_replaceable_group = "solar-panel"
else
data.raw["solar-panel"]["solar-panel-mk2"].fast_replaceable_group = data.raw["solar-panel"]["solar-panel"].fast_replaceable_group
data.raw["solar-panel"]["solar-panel-mk3"].fast_replaceable_group = data.raw["solar-panel"]["solar-panel"].fast_replaceable_group
data.raw["solar-panel"]["solar-panel-mk4"].fast_replaceable_group = data.raw["solar-panel"]["solar-panel"].fast_replaceable_group
data.raw["solar-panel"]["solar-panel-mk5"].fast_replaceable_group = data.raw["solar-panel"]["solar-panel"].fast_replaceable_group
data.raw["solar-panel"]["solar-panel-mk6"].fast_replaceable_group = data.raw["solar-panel"]["solar-panel"].fast_replaceable_group
data.raw["solar-panel"]["solar-panel-mk7"].fast_replaceable_group = data.raw["solar-panel"]["solar-panel"].fast_replaceable_group
data.raw["solar-panel"]["solar-panel-mk8"].fast_replaceable_group = data.raw["solar-panel"]["solar-panel"].fast_replaceable_group
end
if not data.raw["solar-panel"]["solar-panel"].next_upgrade then
data.raw["solar-panel"]["solar-panel"].next_upgrade = "solar-panel-mk2"
end