Added passive & active categories by default

This commit is contained in:
Ka0rX 2023-03-19 20:42:43 +01:00
parent 5edc6ac999
commit b05ced2660

View File

@ -32,6 +32,10 @@ public class RegisteredSkill implements Unlockable {
categories = config.getStringList("categories");
// Trigger type
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
for (String mod : handler.getModifiers())