forked from MagicBane/Server
new collection populated
This commit is contained in:
@@ -29,6 +29,7 @@ import org.pmw.tinylog.Logger;
|
|||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
||||||
|
import java.util.concurrent.ConcurrentHashMap;
|
||||||
|
|
||||||
import static engine.math.FastMath.sqr;
|
import static engine.math.FastMath.sqr;
|
||||||
|
|
||||||
@@ -332,8 +333,17 @@ public class WpakPowerManager {
|
|||||||
if (effect == null)
|
if (effect == null)
|
||||||
continue;
|
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) {
|
public static void sendPowerMsg(PlayerCharacter playerCharacter, int type, PerformActionMsg msg) {
|
||||||
|
|||||||
Reference in New Issue
Block a user