Checks for passive skill condition scope.
This commit is contained in:
parent
94872de9fc
commit
fd4848b02a
@ -405,6 +405,18 @@ public class SkillData implements IXmlReader
|
||||
final Function<StatSet, ISkillCondition> conditionFunction = SkillConditionHandler.getInstance().getHandlerFactory(conditionName);
|
||||
if (conditionFunction != null)
|
||||
{
|
||||
if (skill.isPassive())
|
||||
{
|
||||
if (skillConditionScope != SkillConditionScope.PASSIVE)
|
||||
{
|
||||
LOGGER.warning(getClass().getSimpleName() + ": Non passive condition for passive Skill Id[" + statSet.getInt(".id") + "] Level[" + level + "] SubLevel[" + subLevel + "]");
|
||||
}
|
||||
}
|
||||
else if (skillConditionScope == SkillConditionScope.PASSIVE)
|
||||
{
|
||||
LOGGER.warning(getClass().getSimpleName() + ": Passive condition for non passive Skill Id[" + statSet.getInt(".id") + "] Level[" + level + "] SubLevel[" + subLevel + "]");
|
||||
}
|
||||
|
||||
skill.addCondition(skillConditionScope, conditionFunction.apply(params));
|
||||
}
|
||||
else
|
||||
|
@ -405,6 +405,18 @@ public class SkillData implements IXmlReader
|
||||
final Function<StatSet, ISkillCondition> conditionFunction = SkillConditionHandler.getInstance().getHandlerFactory(conditionName);
|
||||
if (conditionFunction != null)
|
||||
{
|
||||
if (skill.isPassive())
|
||||
{
|
||||
if (skillConditionScope != SkillConditionScope.PASSIVE)
|
||||
{
|
||||
LOGGER.warning(getClass().getSimpleName() + ": Non passive condition for passive Skill Id[" + statSet.getInt(".id") + "] Level[" + level + "] SubLevel[" + subLevel + "]");
|
||||
}
|
||||
}
|
||||
else if (skillConditionScope == SkillConditionScope.PASSIVE)
|
||||
{
|
||||
LOGGER.warning(getClass().getSimpleName() + ": Passive condition for non passive Skill Id[" + statSet.getInt(".id") + "] Level[" + level + "] SubLevel[" + subLevel + "]");
|
||||
}
|
||||
|
||||
skill.addCondition(skillConditionScope, conditionFunction.apply(params));
|
||||
}
|
||||
else
|
||||
|
@ -405,6 +405,18 @@ public class SkillData implements IXmlReader
|
||||
final Function<StatSet, ISkillCondition> conditionFunction = SkillConditionHandler.getInstance().getHandlerFactory(conditionName);
|
||||
if (conditionFunction != null)
|
||||
{
|
||||
if (skill.isPassive())
|
||||
{
|
||||
if (skillConditionScope != SkillConditionScope.PASSIVE)
|
||||
{
|
||||
LOGGER.warning(getClass().getSimpleName() + ": Non passive condition for passive Skill Id[" + statSet.getInt(".id") + "] Level[" + level + "] SubLevel[" + subLevel + "]");
|
||||
}
|
||||
}
|
||||
else if (skillConditionScope == SkillConditionScope.PASSIVE)
|
||||
{
|
||||
LOGGER.warning(getClass().getSimpleName() + ": Passive condition for non passive Skill Id[" + statSet.getInt(".id") + "] Level[" + level + "] SubLevel[" + subLevel + "]");
|
||||
}
|
||||
|
||||
skill.addCondition(skillConditionScope, conditionFunction.apply(params));
|
||||
}
|
||||
else
|
||||
|
@ -405,6 +405,18 @@ public class SkillData implements IXmlReader
|
||||
final Function<StatSet, ISkillCondition> conditionFunction = SkillConditionHandler.getInstance().getHandlerFactory(conditionName);
|
||||
if (conditionFunction != null)
|
||||
{
|
||||
if (skill.isPassive())
|
||||
{
|
||||
if (skillConditionScope != SkillConditionScope.PASSIVE)
|
||||
{
|
||||
LOGGER.warning(getClass().getSimpleName() + ": Non passive condition for passive Skill Id[" + statSet.getInt(".id") + "] Level[" + level + "] SubLevel[" + subLevel + "]");
|
||||
}
|
||||
}
|
||||
else if (skillConditionScope == SkillConditionScope.PASSIVE)
|
||||
{
|
||||
LOGGER.warning(getClass().getSimpleName() + ": Passive condition for non passive Skill Id[" + statSet.getInt(".id") + "] Level[" + level + "] SubLevel[" + subLevel + "]");
|
||||
}
|
||||
|
||||
skill.addCondition(skillConditionScope, conditionFunction.apply(params));
|
||||
}
|
||||
else
|
||||
|
@ -405,6 +405,18 @@ public class SkillData implements IXmlReader
|
||||
final Function<StatSet, ISkillCondition> conditionFunction = SkillConditionHandler.getInstance().getHandlerFactory(conditionName);
|
||||
if (conditionFunction != null)
|
||||
{
|
||||
if (skill.isPassive())
|
||||
{
|
||||
if (skillConditionScope != SkillConditionScope.PASSIVE)
|
||||
{
|
||||
LOGGER.warning(getClass().getSimpleName() + ": Non passive condition for passive Skill Id[" + statSet.getInt(".id") + "] Level[" + level + "] SubLevel[" + subLevel + "]");
|
||||
}
|
||||
}
|
||||
else if (skillConditionScope == SkillConditionScope.PASSIVE)
|
||||
{
|
||||
LOGGER.warning(getClass().getSimpleName() + ": Passive condition for non passive Skill Id[" + statSet.getInt(".id") + "] Level[" + level + "] SubLevel[" + subLevel + "]");
|
||||
}
|
||||
|
||||
skill.addCondition(skillConditionScope, conditionFunction.apply(params));
|
||||
}
|
||||
else
|
||||
|
@ -405,6 +405,18 @@ public class SkillData implements IXmlReader
|
||||
final Function<StatSet, ISkillCondition> conditionFunction = SkillConditionHandler.getInstance().getHandlerFactory(conditionName);
|
||||
if (conditionFunction != null)
|
||||
{
|
||||
if (skill.isPassive())
|
||||
{
|
||||
if (skillConditionScope != SkillConditionScope.PASSIVE)
|
||||
{
|
||||
LOGGER.warning(getClass().getSimpleName() + ": Non passive condition for passive Skill Id[" + statSet.getInt(".id") + "] Level[" + level + "] SubLevel[" + subLevel + "]");
|
||||
}
|
||||
}
|
||||
else if (skillConditionScope == SkillConditionScope.PASSIVE)
|
||||
{
|
||||
LOGGER.warning(getClass().getSimpleName() + ": Passive condition for non passive Skill Id[" + statSet.getInt(".id") + "] Level[" + level + "] SubLevel[" + subLevel + "]");
|
||||
}
|
||||
|
||||
skill.addCondition(skillConditionScope, conditionFunction.apply(params));
|
||||
}
|
||||
else
|
||||
|
@ -405,6 +405,18 @@ public class SkillData implements IXmlReader
|
||||
final Function<StatSet, ISkillCondition> conditionFunction = SkillConditionHandler.getInstance().getHandlerFactory(conditionName);
|
||||
if (conditionFunction != null)
|
||||
{
|
||||
if (skill.isPassive())
|
||||
{
|
||||
if (skillConditionScope != SkillConditionScope.PASSIVE)
|
||||
{
|
||||
LOGGER.warning(getClass().getSimpleName() + ": Non passive condition for passive Skill Id[" + statSet.getInt(".id") + "] Level[" + level + "] SubLevel[" + subLevel + "]");
|
||||
}
|
||||
}
|
||||
else if (skillConditionScope == SkillConditionScope.PASSIVE)
|
||||
{
|
||||
LOGGER.warning(getClass().getSimpleName() + ": Passive condition for non passive Skill Id[" + statSet.getInt(".id") + "] Level[" + level + "] SubLevel[" + subLevel + "]");
|
||||
}
|
||||
|
||||
skill.addCondition(skillConditionScope, conditionFunction.apply(params));
|
||||
}
|
||||
else
|
||||
|
@ -405,6 +405,18 @@ public class SkillData implements IXmlReader
|
||||
final Function<StatSet, ISkillCondition> conditionFunction = SkillConditionHandler.getInstance().getHandlerFactory(conditionName);
|
||||
if (conditionFunction != null)
|
||||
{
|
||||
if (skill.isPassive())
|
||||
{
|
||||
if (skillConditionScope != SkillConditionScope.PASSIVE)
|
||||
{
|
||||
LOGGER.warning(getClass().getSimpleName() + ": Non passive condition for passive Skill Id[" + statSet.getInt(".id") + "] Level[" + level + "] SubLevel[" + subLevel + "]");
|
||||
}
|
||||
}
|
||||
else if (skillConditionScope == SkillConditionScope.PASSIVE)
|
||||
{
|
||||
LOGGER.warning(getClass().getSimpleName() + ": Passive condition for non passive Skill Id[" + statSet.getInt(".id") + "] Level[" + level + "] SubLevel[" + subLevel + "]");
|
||||
}
|
||||
|
||||
skill.addCondition(skillConditionScope, conditionFunction.apply(params));
|
||||
}
|
||||
else
|
||||
|
@ -405,6 +405,18 @@ public class SkillData implements IXmlReader
|
||||
final Function<StatSet, ISkillCondition> conditionFunction = SkillConditionHandler.getInstance().getHandlerFactory(conditionName);
|
||||
if (conditionFunction != null)
|
||||
{
|
||||
if (skill.isPassive())
|
||||
{
|
||||
if (skillConditionScope != SkillConditionScope.PASSIVE)
|
||||
{
|
||||
LOGGER.warning(getClass().getSimpleName() + ": Non passive condition for passive Skill Id[" + statSet.getInt(".id") + "] Level[" + level + "] SubLevel[" + subLevel + "]");
|
||||
}
|
||||
}
|
||||
else if (skillConditionScope == SkillConditionScope.PASSIVE)
|
||||
{
|
||||
LOGGER.warning(getClass().getSimpleName() + ": Passive condition for non passive Skill Id[" + statSet.getInt(".id") + "] Level[" + level + "] SubLevel[" + subLevel + "]");
|
||||
}
|
||||
|
||||
skill.addCondition(skillConditionScope, conditionFunction.apply(params));
|
||||
}
|
||||
else
|
||||
|
@ -405,6 +405,18 @@ public class SkillData implements IXmlReader
|
||||
final Function<StatSet, ISkillCondition> conditionFunction = SkillConditionHandler.getInstance().getHandlerFactory(conditionName);
|
||||
if (conditionFunction != null)
|
||||
{
|
||||
if (skill.isPassive())
|
||||
{
|
||||
if (skillConditionScope != SkillConditionScope.PASSIVE)
|
||||
{
|
||||
LOGGER.warning(getClass().getSimpleName() + ": Non passive condition for passive Skill Id[" + statSet.getInt(".id") + "] Level[" + level + "] SubLevel[" + subLevel + "]");
|
||||
}
|
||||
}
|
||||
else if (skillConditionScope == SkillConditionScope.PASSIVE)
|
||||
{
|
||||
LOGGER.warning(getClass().getSimpleName() + ": Passive condition for non passive Skill Id[" + statSet.getInt(".id") + "] Level[" + level + "] SubLevel[" + subLevel + "]");
|
||||
}
|
||||
|
||||
skill.addCondition(skillConditionScope, conditionFunction.apply(params));
|
||||
}
|
||||
else
|
||||
|
@ -405,6 +405,18 @@ public class SkillData implements IXmlReader
|
||||
final Function<StatSet, ISkillCondition> conditionFunction = SkillConditionHandler.getInstance().getHandlerFactory(conditionName);
|
||||
if (conditionFunction != null)
|
||||
{
|
||||
if (skill.isPassive())
|
||||
{
|
||||
if (skillConditionScope != SkillConditionScope.PASSIVE)
|
||||
{
|
||||
LOGGER.warning(getClass().getSimpleName() + ": Non passive condition for passive Skill Id[" + statSet.getInt(".id") + "] Level[" + level + "] SubLevel[" + subLevel + "]");
|
||||
}
|
||||
}
|
||||
else if (skillConditionScope == SkillConditionScope.PASSIVE)
|
||||
{
|
||||
LOGGER.warning(getClass().getSimpleName() + ": Passive condition for non passive Skill Id[" + statSet.getInt(".id") + "] Level[" + level + "] SubLevel[" + subLevel + "]");
|
||||
}
|
||||
|
||||
skill.addCondition(skillConditionScope, conditionFunction.apply(params));
|
||||
}
|
||||
else
|
||||
|
@ -347,8 +347,8 @@
|
||||
</xs:element>
|
||||
<xs:element minOccurs="0" name="teleportBookmarkSlots" type="xs:unsignedByte" />
|
||||
<xs:element minOccurs="0" name="minLevel">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:complexType mixed="true">
|
||||
<xs:sequence minOccurs="0">
|
||||
<xs:element maxOccurs="unbounded" name="value">
|
||||
<xs:complexType>
|
||||
<xs:simpleContent>
|
||||
|
@ -408,6 +408,18 @@ public class SkillData implements IXmlReader
|
||||
final Function<StatSet, ISkillCondition> conditionFunction = SkillConditionHandler.getInstance().getHandlerFactory(conditionName);
|
||||
if (conditionFunction != null)
|
||||
{
|
||||
if (skill.isPassive())
|
||||
{
|
||||
if (skillConditionScope != SkillConditionScope.PASSIVE)
|
||||
{
|
||||
LOGGER.warning(getClass().getSimpleName() + ": Non passive condition for passive Skill Id[" + statSet.getInt(".id") + "] Level[" + level + "] SubLevel[" + subLevel + "]");
|
||||
}
|
||||
}
|
||||
else if (skillConditionScope == SkillConditionScope.PASSIVE)
|
||||
{
|
||||
LOGGER.warning(getClass().getSimpleName() + ": Passive condition for non passive Skill Id[" + statSet.getInt(".id") + "] Level[" + level + "] SubLevel[" + subLevel + "]");
|
||||
}
|
||||
|
||||
skill.addCondition(skillConditionScope, conditionFunction.apply(params));
|
||||
}
|
||||
else
|
||||
|
@ -347,8 +347,8 @@
|
||||
</xs:element>
|
||||
<xs:element minOccurs="0" name="teleportBookmarkSlots" type="xs:unsignedByte" />
|
||||
<xs:element minOccurs="0" name="minLevel">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:complexType mixed="true">
|
||||
<xs:sequence minOccurs="0">
|
||||
<xs:element maxOccurs="unbounded" name="value">
|
||||
<xs:complexType>
|
||||
<xs:simpleContent>
|
||||
|
@ -408,6 +408,18 @@ public class SkillData implements IXmlReader
|
||||
final Function<StatSet, ISkillCondition> conditionFunction = SkillConditionHandler.getInstance().getHandlerFactory(conditionName);
|
||||
if (conditionFunction != null)
|
||||
{
|
||||
if (skill.isPassive())
|
||||
{
|
||||
if (skillConditionScope != SkillConditionScope.PASSIVE)
|
||||
{
|
||||
LOGGER.warning(getClass().getSimpleName() + ": Non passive condition for passive Skill Id[" + statSet.getInt(".id") + "] Level[" + level + "] SubLevel[" + subLevel + "]");
|
||||
}
|
||||
}
|
||||
else if (skillConditionScope == SkillConditionScope.PASSIVE)
|
||||
{
|
||||
LOGGER.warning(getClass().getSimpleName() + ": Passive condition for non passive Skill Id[" + statSet.getInt(".id") + "] Level[" + level + "] SubLevel[" + subLevel + "]");
|
||||
}
|
||||
|
||||
skill.addCondition(skillConditionScope, conditionFunction.apply(params));
|
||||
}
|
||||
else
|
||||
|
@ -347,8 +347,8 @@
|
||||
</xs:element>
|
||||
<xs:element minOccurs="0" name="teleportBookmarkSlots" type="xs:unsignedByte" />
|
||||
<xs:element minOccurs="0" name="minLevel">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:complexType mixed="true">
|
||||
<xs:sequence minOccurs="0">
|
||||
<xs:element maxOccurs="unbounded" name="value">
|
||||
<xs:complexType>
|
||||
<xs:simpleContent>
|
||||
|
@ -408,6 +408,18 @@ public class SkillData implements IXmlReader
|
||||
final Function<StatSet, ISkillCondition> conditionFunction = SkillConditionHandler.getInstance().getHandlerFactory(conditionName);
|
||||
if (conditionFunction != null)
|
||||
{
|
||||
if (skill.isPassive())
|
||||
{
|
||||
if (skillConditionScope != SkillConditionScope.PASSIVE)
|
||||
{
|
||||
LOGGER.warning(getClass().getSimpleName() + ": Non passive condition for passive Skill Id[" + statSet.getInt(".id") + "] Level[" + level + "] SubLevel[" + subLevel + "]");
|
||||
}
|
||||
}
|
||||
else if (skillConditionScope == SkillConditionScope.PASSIVE)
|
||||
{
|
||||
LOGGER.warning(getClass().getSimpleName() + ": Passive condition for non passive Skill Id[" + statSet.getInt(".id") + "] Level[" + level + "] SubLevel[" + subLevel + "]");
|
||||
}
|
||||
|
||||
skill.addCondition(skillConditionScope, conditionFunction.apply(params));
|
||||
}
|
||||
else
|
||||
|
@ -364,8 +364,8 @@
|
||||
</xs:element>
|
||||
<xs:element minOccurs="0" name="teleportBookmarkSlots" type="xs:unsignedByte" />
|
||||
<xs:element minOccurs="0" name="minLevel">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:complexType mixed="true">
|
||||
<xs:sequence minOccurs="0">
|
||||
<xs:element maxOccurs="unbounded" name="value">
|
||||
<xs:complexType>
|
||||
<xs:simpleContent>
|
||||
|
@ -408,6 +408,18 @@ public class SkillData implements IXmlReader
|
||||
final Function<StatSet, ISkillCondition> conditionFunction = SkillConditionHandler.getInstance().getHandlerFactory(conditionName);
|
||||
if (conditionFunction != null)
|
||||
{
|
||||
if (skill.isPassive())
|
||||
{
|
||||
if (skillConditionScope != SkillConditionScope.PASSIVE)
|
||||
{
|
||||
LOGGER.warning(getClass().getSimpleName() + ": Non passive condition for passive Skill Id[" + statSet.getInt(".id") + "] Level[" + level + "] SubLevel[" + subLevel + "]");
|
||||
}
|
||||
}
|
||||
else if (skillConditionScope == SkillConditionScope.PASSIVE)
|
||||
{
|
||||
LOGGER.warning(getClass().getSimpleName() + ": Passive condition for non passive Skill Id[" + statSet.getInt(".id") + "] Level[" + level + "] SubLevel[" + subLevel + "]");
|
||||
}
|
||||
|
||||
skill.addCondition(skillConditionScope, conditionFunction.apply(params));
|
||||
}
|
||||
else
|
||||
|
@ -364,8 +364,8 @@
|
||||
</xs:element>
|
||||
<xs:element minOccurs="0" name="teleportBookmarkSlots" type="xs:unsignedByte" />
|
||||
<xs:element minOccurs="0" name="minLevel">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:complexType mixed="true">
|
||||
<xs:sequence minOccurs="0">
|
||||
<xs:element maxOccurs="unbounded" name="value">
|
||||
<xs:complexType>
|
||||
<xs:simpleContent>
|
||||
|
@ -408,6 +408,18 @@ public class SkillData implements IXmlReader
|
||||
final Function<StatSet, ISkillCondition> conditionFunction = SkillConditionHandler.getInstance().getHandlerFactory(conditionName);
|
||||
if (conditionFunction != null)
|
||||
{
|
||||
if (skill.isPassive())
|
||||
{
|
||||
if (skillConditionScope != SkillConditionScope.PASSIVE)
|
||||
{
|
||||
LOGGER.warning(getClass().getSimpleName() + ": Non passive condition for passive Skill Id[" + statSet.getInt(".id") + "] Level[" + level + "] SubLevel[" + subLevel + "]");
|
||||
}
|
||||
}
|
||||
else if (skillConditionScope == SkillConditionScope.PASSIVE)
|
||||
{
|
||||
LOGGER.warning(getClass().getSimpleName() + ": Passive condition for non passive Skill Id[" + statSet.getInt(".id") + "] Level[" + level + "] SubLevel[" + subLevel + "]");
|
||||
}
|
||||
|
||||
skill.addCondition(skillConditionScope, conditionFunction.apply(params));
|
||||
}
|
||||
else
|
||||
|
@ -364,8 +364,8 @@
|
||||
</xs:element>
|
||||
<xs:element minOccurs="0" name="teleportBookmarkSlots" type="xs:unsignedByte" />
|
||||
<xs:element minOccurs="0" name="minLevel">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:complexType mixed="true">
|
||||
<xs:sequence minOccurs="0">
|
||||
<xs:element maxOccurs="unbounded" name="value">
|
||||
<xs:complexType>
|
||||
<xs:simpleContent>
|
||||
|
@ -408,6 +408,18 @@ public class SkillData implements IXmlReader
|
||||
final Function<StatSet, ISkillCondition> conditionFunction = SkillConditionHandler.getInstance().getHandlerFactory(conditionName);
|
||||
if (conditionFunction != null)
|
||||
{
|
||||
if (skill.isPassive())
|
||||
{
|
||||
if (skillConditionScope != SkillConditionScope.PASSIVE)
|
||||
{
|
||||
LOGGER.warning(getClass().getSimpleName() + ": Non passive condition for passive Skill Id[" + statSet.getInt(".id") + "] Level[" + level + "] SubLevel[" + subLevel + "]");
|
||||
}
|
||||
}
|
||||
else if (skillConditionScope == SkillConditionScope.PASSIVE)
|
||||
{
|
||||
LOGGER.warning(getClass().getSimpleName() + ": Passive condition for non passive Skill Id[" + statSet.getInt(".id") + "] Level[" + level + "] SubLevel[" + subLevel + "]");
|
||||
}
|
||||
|
||||
skill.addCondition(skillConditionScope, conditionFunction.apply(params));
|
||||
}
|
||||
else
|
||||
|
@ -364,8 +364,8 @@
|
||||
</xs:element>
|
||||
<xs:element minOccurs="0" name="teleportBookmarkSlots" type="xs:unsignedByte" />
|
||||
<xs:element minOccurs="0" name="minLevel">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:complexType mixed="true">
|
||||
<xs:sequence minOccurs="0">
|
||||
<xs:element maxOccurs="unbounded" name="value">
|
||||
<xs:complexType>
|
||||
<xs:simpleContent>
|
||||
|
@ -408,6 +408,18 @@ public class SkillData implements IXmlReader
|
||||
final Function<StatSet, ISkillCondition> conditionFunction = SkillConditionHandler.getInstance().getHandlerFactory(conditionName);
|
||||
if (conditionFunction != null)
|
||||
{
|
||||
if (skill.isPassive())
|
||||
{
|
||||
if (skillConditionScope != SkillConditionScope.PASSIVE)
|
||||
{
|
||||
LOGGER.warning(getClass().getSimpleName() + ": Non passive condition for passive Skill Id[" + statSet.getInt(".id") + "] Level[" + level + "] SubLevel[" + subLevel + "]");
|
||||
}
|
||||
}
|
||||
else if (skillConditionScope == SkillConditionScope.PASSIVE)
|
||||
{
|
||||
LOGGER.warning(getClass().getSimpleName() + ": Passive condition for non passive Skill Id[" + statSet.getInt(".id") + "] Level[" + level + "] SubLevel[" + subLevel + "]");
|
||||
}
|
||||
|
||||
skill.addCondition(skillConditionScope, conditionFunction.apply(params));
|
||||
}
|
||||
else
|
||||
|
@ -364,8 +364,8 @@
|
||||
</xs:element>
|
||||
<xs:element minOccurs="0" name="teleportBookmarkSlots" type="xs:unsignedByte" />
|
||||
<xs:element minOccurs="0" name="minLevel">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:complexType mixed="true">
|
||||
<xs:sequence minOccurs="0">
|
||||
<xs:element maxOccurs="unbounded" name="value">
|
||||
<xs:complexType>
|
||||
<xs:simpleContent>
|
||||
|
@ -408,6 +408,18 @@ public class SkillData implements IXmlReader
|
||||
final Function<StatSet, ISkillCondition> conditionFunction = SkillConditionHandler.getInstance().getHandlerFactory(conditionName);
|
||||
if (conditionFunction != null)
|
||||
{
|
||||
if (skill.isPassive())
|
||||
{
|
||||
if (skillConditionScope != SkillConditionScope.PASSIVE)
|
||||
{
|
||||
LOGGER.warning(getClass().getSimpleName() + ": Non passive condition for passive Skill Id[" + statSet.getInt(".id") + "] Level[" + level + "] SubLevel[" + subLevel + "]");
|
||||
}
|
||||
}
|
||||
else if (skillConditionScope == SkillConditionScope.PASSIVE)
|
||||
{
|
||||
LOGGER.warning(getClass().getSimpleName() + ": Passive condition for non passive Skill Id[" + statSet.getInt(".id") + "] Level[" + level + "] SubLevel[" + subLevel + "]");
|
||||
}
|
||||
|
||||
skill.addCondition(skillConditionScope, conditionFunction.apply(params));
|
||||
}
|
||||
else
|
||||
|
@ -1669,8 +1669,8 @@
|
||||
<xs:element name="condition">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element minOccurs="0" name="maxLevel" type="xs:unsignedByte" />
|
||||
<xs:element minOccurs="0" name="alignment" type="xs:string" />
|
||||
<xs:element minOccurs="0" name="amount" type="xs:unsignedShort" />
|
||||
<xs:element minOccurs="0" name="classIds">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
@ -1688,6 +1688,7 @@
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element minOccurs="0" name="minLevel" type="xs:unsignedByte" />
|
||||
<xs:element minOccurs="0" name="maxLevel" type="xs:unsignedByte" />
|
||||
<xs:element minOccurs="0" name="includeMe" type="xs:boolean" />
|
||||
<xs:element minOccurs="0" name="weaponType">
|
||||
<xs:complexType>
|
||||
|
@ -407,6 +407,18 @@ public class SkillData implements IXmlReader
|
||||
final Function<StatSet, ISkillCondition> conditionFunction = SkillConditionHandler.getInstance().getHandlerFactory(conditionName);
|
||||
if (conditionFunction != null)
|
||||
{
|
||||
if (skill.isPassive())
|
||||
{
|
||||
if (skillConditionScope != SkillConditionScope.PASSIVE)
|
||||
{
|
||||
LOGGER.warning(getClass().getSimpleName() + ": Non passive condition for passive Skill Id[" + statSet.getInt(".id") + "] Level[" + level + "] SubLevel[" + subLevel + "]");
|
||||
}
|
||||
}
|
||||
else if (skillConditionScope == SkillConditionScope.PASSIVE)
|
||||
{
|
||||
LOGGER.warning(getClass().getSimpleName() + ": Passive condition for non passive Skill Id[" + statSet.getInt(".id") + "] Level[" + level + "] SubLevel[" + subLevel + "]");
|
||||
}
|
||||
|
||||
skill.addCondition(skillConditionScope, conditionFunction.apply(params));
|
||||
}
|
||||
else
|
||||
|
@ -408,6 +408,18 @@ public class SkillData implements IXmlReader
|
||||
final Function<StatSet, ISkillCondition> conditionFunction = SkillConditionHandler.getInstance().getHandlerFactory(conditionName);
|
||||
if (conditionFunction != null)
|
||||
{
|
||||
if (skill.isPassive())
|
||||
{
|
||||
if (skillConditionScope != SkillConditionScope.PASSIVE)
|
||||
{
|
||||
LOGGER.warning(getClass().getSimpleName() + ": Non passive condition for passive Skill Id[" + statSet.getInt(".id") + "] Level[" + level + "] SubLevel[" + subLevel + "]");
|
||||
}
|
||||
}
|
||||
else if (skillConditionScope == SkillConditionScope.PASSIVE)
|
||||
{
|
||||
LOGGER.warning(getClass().getSimpleName() + ": Passive condition for non passive Skill Id[" + statSet.getInt(".id") + "] Level[" + level + "] SubLevel[" + subLevel + "]");
|
||||
}
|
||||
|
||||
skill.addCondition(skillConditionScope, conditionFunction.apply(params));
|
||||
}
|
||||
else
|
||||
|
@ -1947,8 +1947,8 @@
|
||||
<xs:element name="condition">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element minOccurs="0" name="maxLevel" type="xs:unsignedByte" />
|
||||
<xs:element minOccurs="0" name="alignment" type="xs:string" />
|
||||
<xs:element minOccurs="0" name="amount" type="xs:unsignedShort" />
|
||||
<xs:element minOccurs="0" name="classIds">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
@ -1966,6 +1966,7 @@
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element minOccurs="0" name="minLevel" type="xs:unsignedByte" />
|
||||
<xs:element minOccurs="0" name="maxLevel" type="xs:unsignedByte" />
|
||||
<xs:element minOccurs="0" name="includeMe" type="xs:boolean" />
|
||||
<xs:element minOccurs="0" name="weaponType">
|
||||
<xs:complexType>
|
||||
|
@ -407,6 +407,18 @@ public class SkillData implements IXmlReader
|
||||
final Function<StatSet, ISkillCondition> conditionFunction = SkillConditionHandler.getInstance().getHandlerFactory(conditionName);
|
||||
if (conditionFunction != null)
|
||||
{
|
||||
if (skill.isPassive())
|
||||
{
|
||||
if (skillConditionScope != SkillConditionScope.PASSIVE)
|
||||
{
|
||||
LOGGER.warning(getClass().getSimpleName() + ": Non passive condition for passive Skill Id[" + statSet.getInt(".id") + "] Level[" + level + "] SubLevel[" + subLevel + "]");
|
||||
}
|
||||
}
|
||||
else if (skillConditionScope == SkillConditionScope.PASSIVE)
|
||||
{
|
||||
LOGGER.warning(getClass().getSimpleName() + ": Passive condition for non passive Skill Id[" + statSet.getInt(".id") + "] Level[" + level + "] SubLevel[" + subLevel + "]");
|
||||
}
|
||||
|
||||
skill.addCondition(skillConditionScope, conditionFunction.apply(params));
|
||||
}
|
||||
else
|
||||
|
@ -2022,8 +2022,8 @@
|
||||
<xs:element name="condition">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element minOccurs="0" name="maxLevel" type="xs:unsignedByte" />
|
||||
<xs:element minOccurs="0" name="alignment" type="xs:string" />
|
||||
<xs:element minOccurs="0" name="amount" type="xs:unsignedShort" />
|
||||
<xs:element minOccurs="0" name="classIds">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
@ -2041,6 +2041,7 @@
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element minOccurs="0" name="minLevel" type="xs:unsignedByte" />
|
||||
<xs:element minOccurs="0" name="maxLevel" type="xs:unsignedByte" />
|
||||
<xs:element minOccurs="0" name="includeMe" type="xs:boolean" />
|
||||
<xs:element minOccurs="0" name="weaponType">
|
||||
<xs:complexType>
|
||||
|
@ -407,6 +407,18 @@ public class SkillData implements IXmlReader
|
||||
final Function<StatSet, ISkillCondition> conditionFunction = SkillConditionHandler.getInstance().getHandlerFactory(conditionName);
|
||||
if (conditionFunction != null)
|
||||
{
|
||||
if (skill.isPassive())
|
||||
{
|
||||
if (skillConditionScope != SkillConditionScope.PASSIVE)
|
||||
{
|
||||
LOGGER.warning(getClass().getSimpleName() + ": Non passive condition for passive Skill Id[" + statSet.getInt(".id") + "] Level[" + level + "] SubLevel[" + subLevel + "]");
|
||||
}
|
||||
}
|
||||
else if (skillConditionScope == SkillConditionScope.PASSIVE)
|
||||
{
|
||||
LOGGER.warning(getClass().getSimpleName() + ": Passive condition for non passive Skill Id[" + statSet.getInt(".id") + "] Level[" + level + "] SubLevel[" + subLevel + "]");
|
||||
}
|
||||
|
||||
skill.addCondition(skillConditionScope, conditionFunction.apply(params));
|
||||
}
|
||||
else
|
||||
|
@ -2070,8 +2070,8 @@
|
||||
<xs:element name="condition">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element minOccurs="0" name="maxLevel" type="xs:unsignedByte" />
|
||||
<xs:element minOccurs="0" name="alignment" type="xs:string" />
|
||||
<xs:element minOccurs="0" name="amount" type="xs:unsignedShort" />
|
||||
<xs:element minOccurs="0" name="classIds">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
@ -2089,6 +2089,7 @@
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element minOccurs="0" name="minLevel" type="xs:unsignedByte" />
|
||||
<xs:element minOccurs="0" name="maxLevel" type="xs:unsignedByte" />
|
||||
<xs:element minOccurs="0" name="includeMe" type="xs:boolean" />
|
||||
<xs:element minOccurs="0" name="weaponType">
|
||||
<xs:complexType>
|
||||
|
@ -407,6 +407,18 @@ public class SkillData implements IXmlReader
|
||||
final Function<StatSet, ISkillCondition> conditionFunction = SkillConditionHandler.getInstance().getHandlerFactory(conditionName);
|
||||
if (conditionFunction != null)
|
||||
{
|
||||
if (skill.isPassive())
|
||||
{
|
||||
if (skillConditionScope != SkillConditionScope.PASSIVE)
|
||||
{
|
||||
LOGGER.warning(getClass().getSimpleName() + ": Non passive condition for passive Skill Id[" + statSet.getInt(".id") + "] Level[" + level + "] SubLevel[" + subLevel + "]");
|
||||
}
|
||||
}
|
||||
else if (skillConditionScope == SkillConditionScope.PASSIVE)
|
||||
{
|
||||
LOGGER.warning(getClass().getSimpleName() + ": Passive condition for non passive Skill Id[" + statSet.getInt(".id") + "] Level[" + level + "] SubLevel[" + subLevel + "]");
|
||||
}
|
||||
|
||||
skill.addCondition(skillConditionScope, conditionFunction.apply(params));
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user