From 0526fdef2f6c6c7145b692f8bdc989eff8edc35a Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Tue, 23 Jul 2024 21:07:29 -0500 Subject: [PATCH] Effects.cfg parser --- src/engine/ConfigParsing/EffectsParser.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/engine/ConfigParsing/EffectsParser.java b/src/engine/ConfigParsing/EffectsParser.java index e056eb7f..0ccbb42f 100644 --- a/src/engine/ConfigParsing/EffectsParser.java +++ b/src/engine/ConfigParsing/EffectsParser.java @@ -17,10 +17,12 @@ import java.io.File; import java.io.FileReader; import java.io.IOException; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; public class EffectsParser { public static String EffectsPath = ConfigManager.DEFAULT_DATA_DIR + "wpak/Effects.cfg"; + public static HashMap effect_data = new HashMap<>(); public static void init() throws IOException { ArrayList> compiledData = new ArrayList<>(); String[] lines = readLines(EffectsPath); @@ -130,6 +132,7 @@ public class EffectsParser { } index++; } + effect_data.put(data.id,data); } } public static void GenerateModValues(Mod inMod, String[] data)