Addition of default values for CheckLevel skill condition.

This commit is contained in:
MobiusDevelopment
2021-02-02 00:47:13 +00:00
parent 99141bc80a
commit 5c4787386a
256 changed files with 61 additions and 1707 deletions

View File

@@ -34,9 +34,9 @@ public class CheckLevelSkillCondition implements ISkillCondition
public CheckLevelSkillCondition(StatSet params)
{
_minLevel = params.getInt("minLevel");
_maxLevel = params.getInt("maxLevel");
_affectType = params.getEnum("affectType", SkillConditionAffectType.class);
_minLevel = params.getInt("minLevel", 1);
_maxLevel = params.getInt("maxLevel", Integer.MAX_VALUE);
_affectType = params.getEnum("affectType", SkillConditionAffectType.class, SkillConditionAffectType.CASTER);
}
@Override