Default item skill type_chance should be 100.

This commit is contained in:
MobiusDev 2018-04-17 10:13:06 +00:00
parent 4f84c32eff
commit 131190d3a5
6 changed files with 6 additions and 6 deletions

View File

@ -159,7 +159,7 @@ public final class DocumentItem extends DocumentBase implements IGameXmlReader
final int id = parseInteger(b.getAttributes(), "id");
final int level = parseInteger(b.getAttributes(), "level");
final ItemSkillType type = parseEnum(b.getAttributes(), ItemSkillType.class, "type", ItemSkillType.NORMAL);
final int chance = parseInteger(b.getAttributes(), "type_chance", 0);
final int chance = parseInteger(b.getAttributes(), "type_chance", 100);
final int value = parseInteger(b.getAttributes(), "type_value", 0);
_currentItem.item.addSkill(new ItemSkillHolder(id, level, type, chance, value));
}

View File

@ -159,7 +159,7 @@ public final class DocumentItem extends DocumentBase implements IGameXmlReader
final int id = parseInteger(b.getAttributes(), "id");
final int level = parseInteger(b.getAttributes(), "level");
final ItemSkillType type = parseEnum(b.getAttributes(), ItemSkillType.class, "type", ItemSkillType.NORMAL);
final int chance = parseInteger(b.getAttributes(), "type_chance", 0);
final int chance = parseInteger(b.getAttributes(), "type_chance", 100);
final int value = parseInteger(b.getAttributes(), "type_value", 0);
_currentItem.item.addSkill(new ItemSkillHolder(id, level, type, chance, value));
}

View File

@ -159,7 +159,7 @@ public final class DocumentItem extends DocumentBase implements IGameXmlReader
final int id = parseInteger(b.getAttributes(), "id");
final int level = parseInteger(b.getAttributes(), "level");
final ItemSkillType type = parseEnum(b.getAttributes(), ItemSkillType.class, "type", ItemSkillType.NORMAL);
final int chance = parseInteger(b.getAttributes(), "type_chance", 0);
final int chance = parseInteger(b.getAttributes(), "type_chance", 100);
final int value = parseInteger(b.getAttributes(), "type_value", 0);
_currentItem.item.addSkill(new ItemSkillHolder(id, level, type, chance, value));
}

View File

@ -159,7 +159,7 @@ public final class DocumentItem extends DocumentBase implements IGameXmlReader
final int id = parseInteger(b.getAttributes(), "id");
final int level = parseInteger(b.getAttributes(), "level");
final ItemSkillType type = parseEnum(b.getAttributes(), ItemSkillType.class, "type", ItemSkillType.NORMAL);
final int chance = parseInteger(b.getAttributes(), "type_chance", 0);
final int chance = parseInteger(b.getAttributes(), "type_chance", 100);
final int value = parseInteger(b.getAttributes(), "type_value", 0);
_currentItem.item.addSkill(new ItemSkillHolder(id, level, type, chance, value));
}

View File

@ -159,7 +159,7 @@ public final class DocumentItem extends DocumentBase implements IGameXmlReader
final int id = parseInteger(b.getAttributes(), "id");
final int level = parseInteger(b.getAttributes(), "level");
final ItemSkillType type = parseEnum(b.getAttributes(), ItemSkillType.class, "type", ItemSkillType.NORMAL);
final int chance = parseInteger(b.getAttributes(), "type_chance", 0);
final int chance = parseInteger(b.getAttributes(), "type_chance", 100);
final int value = parseInteger(b.getAttributes(), "type_value", 0);
_currentItem.item.addSkill(new ItemSkillHolder(id, level, type, chance, value));
}

View File

@ -159,7 +159,7 @@ public final class DocumentItem extends DocumentBase implements IGameXmlReader
final int id = parseInteger(b.getAttributes(), "id");
final int level = parseInteger(b.getAttributes(), "level");
final ItemSkillType type = parseEnum(b.getAttributes(), ItemSkillType.class, "type", ItemSkillType.NORMAL);
final int chance = parseInteger(b.getAttributes(), "type_chance", 0);
final int chance = parseInteger(b.getAttributes(), "type_chance", 100);
final int value = parseInteger(b.getAttributes(), "type_value", 0);
_currentItem.item.addSkill(new ItemSkillHolder(id, level, type, chance, value));
}