From 131190d3a58ae099fdd5866abd09e91f5788afa5 Mon Sep 17 00:00:00 2001 From: MobiusDev <8391001+MobiusDevelopment@users.noreply.github.com> Date: Tue, 17 Apr 2018 10:13:06 +0000 Subject: [PATCH] Default item skill type_chance should be 100. --- .../com/l2jmobius/gameserver/engines/items/DocumentItem.java | 2 +- .../com/l2jmobius/gameserver/engines/items/DocumentItem.java | 2 +- .../com/l2jmobius/gameserver/engines/items/DocumentItem.java | 2 +- .../com/l2jmobius/gameserver/engines/items/DocumentItem.java | 2 +- .../com/l2jmobius/gameserver/engines/items/DocumentItem.java | 2 +- .../com/l2jmobius/gameserver/engines/items/DocumentItem.java | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/L2J_Mobius_1.0_Ertheia/java/com/l2jmobius/gameserver/engines/items/DocumentItem.java b/L2J_Mobius_1.0_Ertheia/java/com/l2jmobius/gameserver/engines/items/DocumentItem.java index c425e3360c..a12bad8802 100644 --- a/L2J_Mobius_1.0_Ertheia/java/com/l2jmobius/gameserver/engines/items/DocumentItem.java +++ b/L2J_Mobius_1.0_Ertheia/java/com/l2jmobius/gameserver/engines/items/DocumentItem.java @@ -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)); } diff --git a/L2J_Mobius_2.5_Underground/java/com/l2jmobius/gameserver/engines/items/DocumentItem.java b/L2J_Mobius_2.5_Underground/java/com/l2jmobius/gameserver/engines/items/DocumentItem.java index c425e3360c..a12bad8802 100644 --- a/L2J_Mobius_2.5_Underground/java/com/l2jmobius/gameserver/engines/items/DocumentItem.java +++ b/L2J_Mobius_2.5_Underground/java/com/l2jmobius/gameserver/engines/items/DocumentItem.java @@ -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)); } diff --git a/L2J_Mobius_3.0_Helios/java/com/l2jmobius/gameserver/engines/items/DocumentItem.java b/L2J_Mobius_3.0_Helios/java/com/l2jmobius/gameserver/engines/items/DocumentItem.java index c425e3360c..a12bad8802 100644 --- a/L2J_Mobius_3.0_Helios/java/com/l2jmobius/gameserver/engines/items/DocumentItem.java +++ b/L2J_Mobius_3.0_Helios/java/com/l2jmobius/gameserver/engines/items/DocumentItem.java @@ -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)); } diff --git a/L2J_Mobius_4.0_GrandCrusade/java/com/l2jmobius/gameserver/engines/items/DocumentItem.java b/L2J_Mobius_4.0_GrandCrusade/java/com/l2jmobius/gameserver/engines/items/DocumentItem.java index c425e3360c..a12bad8802 100644 --- a/L2J_Mobius_4.0_GrandCrusade/java/com/l2jmobius/gameserver/engines/items/DocumentItem.java +++ b/L2J_Mobius_4.0_GrandCrusade/java/com/l2jmobius/gameserver/engines/items/DocumentItem.java @@ -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)); } diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/com/l2jmobius/gameserver/engines/items/DocumentItem.java b/L2J_Mobius_Classic_2.0_Saviors/java/com/l2jmobius/gameserver/engines/items/DocumentItem.java index c425e3360c..a12bad8802 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/com/l2jmobius/gameserver/engines/items/DocumentItem.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/com/l2jmobius/gameserver/engines/items/DocumentItem.java @@ -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)); } diff --git a/L2J_Mobius_Classic_2.0_Zaken/java/com/l2jmobius/gameserver/engines/items/DocumentItem.java b/L2J_Mobius_Classic_2.0_Zaken/java/com/l2jmobius/gameserver/engines/items/DocumentItem.java index c425e3360c..a12bad8802 100644 --- a/L2J_Mobius_Classic_2.0_Zaken/java/com/l2jmobius/gameserver/engines/items/DocumentItem.java +++ b/L2J_Mobius_Classic_2.0_Zaken/java/com/l2jmobius/gameserver/engines/items/DocumentItem.java @@ -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)); }