Browse Source

Code written to refactor db call out of effect costs.

combat-2
MagicBot 7 months ago
parent
commit
d590511035
  1. 6
      src/engine/db/handlers/dbEffectsResourceCostHandler.java

6
src/engine/db/handlers/dbEffectsResourceCostHandler.java

@ -30,6 +30,12 @@ public class dbEffectsResourceCostHandler extends dbHandlerBase {
} }
public void GENERATE_COST_DATA() { public void GENERATE_COST_DATA() {
ArrayList<String> effectList = GET_EFFECTS_WITH_COST();
for (String effectID : effectList) {
JSONObject costMap = GET_EFFECT_COSTMAP(effectID);
WRITE_COSTMAP(effectID, costMap);
}
} }

Loading…
Cancel
Save