From 7bd8e4a347d31263d2a0f2d5bc50d48bf57e3380 Mon Sep 17 00:00:00 2001 From: PHIDIAS <10016767+PHIDIAS0303@users.noreply.github.com> Date: Thu, 1 Dec 2022 19:56:51 +0900 Subject: [PATCH] Update data-updates.lua --- PHI-EN/data-updates.lua | 60 +++++++++++------------------------------ 1 file changed, 16 insertions(+), 44 deletions(-) diff --git a/PHI-EN/data-updates.lua b/PHI-EN/data-updates.lua index 6d1c0c2..50330cc 100644 --- a/PHI-EN/data-updates.lua +++ b/PHI-EN/data-updates.lua @@ -1,47 +1,19 @@ -- 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 +data.raw["accumulator"]["accumulator"].fast_replaceable_group = "accumulator" +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 -- 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 +data.raw["solar-panel"]["solar-panel"].fast_replaceable_group = "solar-panel" +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