From e1a5484074be243bb4418f7f010b791c22678a98 Mon Sep 17 00:00:00 2001 From: MEEPofFaith <54301439+MEEPofFaith@users.noreply.github.com> Date: Thu, 1 Feb 2024 16:04:51 -0800 Subject: [PATCH] Allow mods to add to logic effect map (#9507) * Allow mods to add to logic effect map * Switch to being only a single add. --- core/src/mindustry/logic/LogicFx.java | 6 ++++++ 1 file changed, 6 insertions(+) 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); }