diff --git a/core/src/mindustry/logic/LogicFx.java b/core/src/mindustry/logic/LogicFx.java index b26b54f6a2..6080c7fd12 100644 --- a/core/src/mindustry/logic/LogicFx.java +++ b/core/src/mindustry/logic/LogicFx.java @@ -57,6 +57,12 @@ public class LogicFx{ return map.get(name); } + /** Adds an effect entry to the map. */ + public static void add(String name, EffectEntry entry){ + entry.name = name; + map.put(name, entry); + } + public static String[] all(){ return map.orderedKeys().toArray(String.class); }