Extractable item handler rework.

This commit is contained in:
MobiusDev
2016-07-30 11:27:46 +00:00
parent 976a62f137
commit 10fad36e7c
7 changed files with 210 additions and 29 deletions

View File

@@ -174,7 +174,9 @@ public final class DocumentItem extends DocumentBase implements IGameXmlReader
final int min = parseInteger(b.getAttributes(), "min");
final int max = parseInteger(b.getAttributes(), "max");
final double chance = parseDouble(b.getAttributes(), "chance");
_currentItem.item.addCapsuledItem(new L2ExtractableProduct(id, min, max, chance));
final int minEnchant = parseInteger(b.getAttributes(), "minEnchant", 0);
final int maxEnchant = parseInteger(b.getAttributes(), "maxEnchant", 0);
_currentItem.item.addCapsuledItem(new L2ExtractableProduct(id, min, max, chance, minEnchant, maxEnchant));
}
}
}