forked from Upstream/mmocore
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