Support for extractable item long quantity.

This commit is contained in:
MobiusDevelopment
2021-11-04 02:19:11 +00:00
parent e9430b97dd
commit 35db563e3c
74 changed files with 317 additions and 297 deletions

View File

@ -22,8 +22,8 @@ package org.l2jmobius.gameserver.model;
public class ExtractableProduct
{
private final int _id;
private final int _min;
private final int _max;
private final long _min;
private final long _max;
private final int _chance;
private final int _minEnchant;
private final int _maxEnchant;
@ -37,7 +37,7 @@ public class ExtractableProduct
* @param minEnchant item min enchant
* @param maxEnchant item max enchant
*/
public ExtractableProduct(int id, int min, int max, double chance, int minEnchant, int maxEnchant)
public ExtractableProduct(int id, long min, long max, double chance, int minEnchant, int maxEnchant)
{
_id = id;
_min = min;
@ -52,12 +52,12 @@ public class ExtractableProduct
return _id;
}
public int getMin()
public long getMin()
{
return _min;
}
public int getMax()
public long getMax()
{
return _max;
}

View File

@ -181,8 +181,8 @@ public class DocumentItem extends DocumentBase implements IXmlReader
if ("item".equals(b.getNodeName()))
{
final int id = parseInteger(b.getAttributes(), "id");
final int min = parseInteger(b.getAttributes(), "min");
final int max = parseInteger(b.getAttributes(), "max");
final long min = parseInteger(b.getAttributes(), "min");
final long max = parseInteger(b.getAttributes(), "max");
final double chance = parseDouble(b.getAttributes(), "chance");
final int minEnchant = parseInteger(b.getAttributes(), "minEnchant", 0);
final int maxEnchant = parseInteger(b.getAttributes(), "maxEnchant", 0);