Checks for passive skill condition scope.

This commit is contained in:
MobiusDevelopment 2022-09-10 21:12:01 +00:00
parent 94872de9fc
commit fd4848b02a
36 changed files with 312 additions and 20 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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>

View File

@ -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

View File

@ -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>

View File

@ -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

View File

@ -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>

View File

@ -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

View File

@ -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>

View File

@ -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

View File

@ -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>

View File

@ -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

View File

@ -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>

View File

@ -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

View File

@ -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>

View File

@ -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

View File

@ -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>

View File

@ -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

View File

@ -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>

View File

@ -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

View File

@ -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

View File

@ -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>

View File

@ -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

View File

@ -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>

View File

@ -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

View File

@ -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>

View File

@ -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