mirror of
https://gitlab.com/phoenix-dvpmt/mmocore.git
synced 2024-11-27 00:45:40 +01:00
Added passive & active categories by default
This commit is contained in:
parent
5edc6ac999
commit
b05ced2660
@ -32,6 +32,10 @@ public class RegisteredSkill implements Unlockable {
|
|||||||
categories = config.getStringList("categories");
|
categories = config.getStringList("categories");
|
||||||
// Trigger type
|
// Trigger type
|
||||||
triggerType = getHandler().isTriggerable() ? (config.contains("passive-type") ? TriggerType.valueOf(UtilityMethods.enumName(config.getString("passive-type"))) : TriggerType.CAST) : TriggerType.API;
|
triggerType = getHandler().isTriggerable() ? (config.contains("passive-type") ? TriggerType.valueOf(UtilityMethods.enumName(config.getString("passive-type"))) : TriggerType.CAST) : TriggerType.API;
|
||||||
|
if(triggerType.isPassive())
|
||||||
|
categories.add("passive");
|
||||||
|
else
|
||||||
|
categories.add("active");
|
||||||
|
|
||||||
// Load default modifier formulas
|
// Load default modifier formulas
|
||||||
for (String mod : handler.getModifiers())
|
for (String mod : handler.getModifiers())
|
||||||
|
Loading…
Reference in New Issue
Block a user