Default item skill type_chance should be 100.
This commit is contained in:
parent
4f84c32eff
commit
131190d3a5
@ -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));
|
||||
}
|
||||
|
@ -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));
|
||||
}
|
||||
|
@ -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));
|
||||
}
|
||||
|
@ -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));
|
||||
}
|
||||
|
@ -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));
|
||||
}
|
||||
|
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user