From d59051103562585d2fc15ccc1857eaeaaa7dec14 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Tue, 23 Apr 2024 14:27:12 -0400 Subject: [PATCH] Code written to refactor db call out of effect costs. --- src/engine/db/handlers/dbEffectsResourceCostHandler.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/engine/db/handlers/dbEffectsResourceCostHandler.java b/src/engine/db/handlers/dbEffectsResourceCostHandler.java index 998cdc66..c06b686b 100644 --- a/src/engine/db/handlers/dbEffectsResourceCostHandler.java +++ b/src/engine/db/handlers/dbEffectsResourceCostHandler.java @@ -30,6 +30,12 @@ public class dbEffectsResourceCostHandler extends dbHandlerBase { } public void GENERATE_COST_DATA() { + ArrayList effectList = GET_EFFECTS_WITH_COST(); + + for (String effectID : effectList) { + JSONObject costMap = GET_EFFECT_COSTMAP(effectID); + WRITE_COSTMAP(effectID, costMap); + } }