new collection populated

This commit is contained in:
2025-02-16 16:44:20 -05:00
parent 7c3a3fb84c
commit 0727175cb2
+11 -1
View File
@@ -29,6 +29,7 @@ import org.pmw.tinylog.Logger;
import java.util.HashMap;
import java.util.HashSet;
import java.util.concurrent.ConcurrentHashMap;
import static engine.math.FastMath.sqr;
@@ -332,8 +333,17 @@ public class WpakPowerManager {
if (effect == null)
continue;
//TODO add in effect application
// New entry for this power effect?
if (target._effects.containsKey(effect) == false)
target._effects.put(effect, new ConcurrentHashMap<>());
// Write modifier values
for (ModifierEntry modifierEntry : effect.mods)
target._effects.get(effect).put(modifierEntry, rank);
}
}
public static void sendPowerMsg(PlayerCharacter playerCharacter, int type, PerformActionMsg msg) {