mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2025-12-27 11:05:22 +09:00
Create data-updates.lua
This commit is contained in:
47
PHI-EN/data-updates.lua
Normal file
47
PHI-EN/data-updates.lua
Normal 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
|
||||||
Reference in New Issue
Block a user