DocumentItem should parse long min and max values.
This commit is contained in:
parent
419edfd7f5
commit
f10e4495f9
@ -181,8 +181,8 @@ public class DocumentItem extends DocumentBase implements IXmlReader
|
|||||||
if ("item".equals(b.getNodeName()))
|
if ("item".equals(b.getNodeName()))
|
||||||
{
|
{
|
||||||
final int id = parseInteger(b.getAttributes(), "id");
|
final int id = parseInteger(b.getAttributes(), "id");
|
||||||
final long min = parseInteger(b.getAttributes(), "min");
|
final long min = parseLong(b.getAttributes(), "min");
|
||||||
final long max = parseInteger(b.getAttributes(), "max");
|
final long max = parseLong(b.getAttributes(), "max");
|
||||||
final double chance = parseDouble(b.getAttributes(), "chance");
|
final double chance = parseDouble(b.getAttributes(), "chance");
|
||||||
final int minEnchant = parseInteger(b.getAttributes(), "minEnchant", 0);
|
final int minEnchant = parseInteger(b.getAttributes(), "minEnchant", 0);
|
||||||
final int maxEnchant = parseInteger(b.getAttributes(), "maxEnchant", 0);
|
final int maxEnchant = parseInteger(b.getAttributes(), "maxEnchant", 0);
|
||||||
|
@ -181,8 +181,8 @@ public class DocumentItem extends DocumentBase implements IXmlReader
|
|||||||
if ("item".equals(b.getNodeName()))
|
if ("item".equals(b.getNodeName()))
|
||||||
{
|
{
|
||||||
final int id = parseInteger(b.getAttributes(), "id");
|
final int id = parseInteger(b.getAttributes(), "id");
|
||||||
final long min = parseInteger(b.getAttributes(), "min");
|
final long min = parseLong(b.getAttributes(), "min");
|
||||||
final long max = parseInteger(b.getAttributes(), "max");
|
final long max = parseLong(b.getAttributes(), "max");
|
||||||
final double chance = parseDouble(b.getAttributes(), "chance");
|
final double chance = parseDouble(b.getAttributes(), "chance");
|
||||||
final int minEnchant = parseInteger(b.getAttributes(), "minEnchant", 0);
|
final int minEnchant = parseInteger(b.getAttributes(), "minEnchant", 0);
|
||||||
final int maxEnchant = parseInteger(b.getAttributes(), "maxEnchant", 0);
|
final int maxEnchant = parseInteger(b.getAttributes(), "maxEnchant", 0);
|
||||||
|
@ -181,8 +181,8 @@ public class DocumentItem extends DocumentBase implements IXmlReader
|
|||||||
if ("item".equals(b.getNodeName()))
|
if ("item".equals(b.getNodeName()))
|
||||||
{
|
{
|
||||||
final int id = parseInteger(b.getAttributes(), "id");
|
final int id = parseInteger(b.getAttributes(), "id");
|
||||||
final long min = parseInteger(b.getAttributes(), "min");
|
final long min = parseLong(b.getAttributes(), "min");
|
||||||
final long max = parseInteger(b.getAttributes(), "max");
|
final long max = parseLong(b.getAttributes(), "max");
|
||||||
final double chance = parseDouble(b.getAttributes(), "chance");
|
final double chance = parseDouble(b.getAttributes(), "chance");
|
||||||
final int minEnchant = parseInteger(b.getAttributes(), "minEnchant", 0);
|
final int minEnchant = parseInteger(b.getAttributes(), "minEnchant", 0);
|
||||||
final int maxEnchant = parseInteger(b.getAttributes(), "maxEnchant", 0);
|
final int maxEnchant = parseInteger(b.getAttributes(), "maxEnchant", 0);
|
||||||
|
@ -181,8 +181,8 @@ public class DocumentItem extends DocumentBase implements IXmlReader
|
|||||||
if ("item".equals(b.getNodeName()))
|
if ("item".equals(b.getNodeName()))
|
||||||
{
|
{
|
||||||
final int id = parseInteger(b.getAttributes(), "id");
|
final int id = parseInteger(b.getAttributes(), "id");
|
||||||
final long min = parseInteger(b.getAttributes(), "min");
|
final long min = parseLong(b.getAttributes(), "min");
|
||||||
final long max = parseInteger(b.getAttributes(), "max");
|
final long max = parseLong(b.getAttributes(), "max");
|
||||||
final double chance = parseDouble(b.getAttributes(), "chance");
|
final double chance = parseDouble(b.getAttributes(), "chance");
|
||||||
final int minEnchant = parseInteger(b.getAttributes(), "minEnchant", 0);
|
final int minEnchant = parseInteger(b.getAttributes(), "minEnchant", 0);
|
||||||
final int maxEnchant = parseInteger(b.getAttributes(), "maxEnchant", 0);
|
final int maxEnchant = parseInteger(b.getAttributes(), "maxEnchant", 0);
|
||||||
|
@ -181,8 +181,8 @@ public class DocumentItem extends DocumentBase implements IXmlReader
|
|||||||
if ("item".equals(b.getNodeName()))
|
if ("item".equals(b.getNodeName()))
|
||||||
{
|
{
|
||||||
final int id = parseInteger(b.getAttributes(), "id");
|
final int id = parseInteger(b.getAttributes(), "id");
|
||||||
final long min = parseInteger(b.getAttributes(), "min");
|
final long min = parseLong(b.getAttributes(), "min");
|
||||||
final long max = parseInteger(b.getAttributes(), "max");
|
final long max = parseLong(b.getAttributes(), "max");
|
||||||
final double chance = parseDouble(b.getAttributes(), "chance");
|
final double chance = parseDouble(b.getAttributes(), "chance");
|
||||||
final int minEnchant = parseInteger(b.getAttributes(), "minEnchant", 0);
|
final int minEnchant = parseInteger(b.getAttributes(), "minEnchant", 0);
|
||||||
final int maxEnchant = parseInteger(b.getAttributes(), "maxEnchant", 0);
|
final int maxEnchant = parseInteger(b.getAttributes(), "maxEnchant", 0);
|
||||||
|
@ -181,8 +181,8 @@ public class DocumentItem extends DocumentBase implements IXmlReader
|
|||||||
if ("item".equals(b.getNodeName()))
|
if ("item".equals(b.getNodeName()))
|
||||||
{
|
{
|
||||||
final int id = parseInteger(b.getAttributes(), "id");
|
final int id = parseInteger(b.getAttributes(), "id");
|
||||||
final long min = parseInteger(b.getAttributes(), "min");
|
final long min = parseLong(b.getAttributes(), "min");
|
||||||
final long max = parseInteger(b.getAttributes(), "max");
|
final long max = parseLong(b.getAttributes(), "max");
|
||||||
final double chance = parseDouble(b.getAttributes(), "chance");
|
final double chance = parseDouble(b.getAttributes(), "chance");
|
||||||
final int minEnchant = parseInteger(b.getAttributes(), "minEnchant", 0);
|
final int minEnchant = parseInteger(b.getAttributes(), "minEnchant", 0);
|
||||||
final int maxEnchant = parseInteger(b.getAttributes(), "maxEnchant", 0);
|
final int maxEnchant = parseInteger(b.getAttributes(), "maxEnchant", 0);
|
||||||
|
@ -181,8 +181,8 @@ public class DocumentItem extends DocumentBase implements IXmlReader
|
|||||||
if ("item".equals(b.getNodeName()))
|
if ("item".equals(b.getNodeName()))
|
||||||
{
|
{
|
||||||
final int id = parseInteger(b.getAttributes(), "id");
|
final int id = parseInteger(b.getAttributes(), "id");
|
||||||
final long min = parseInteger(b.getAttributes(), "min");
|
final long min = parseLong(b.getAttributes(), "min");
|
||||||
final long max = parseInteger(b.getAttributes(), "max");
|
final long max = parseLong(b.getAttributes(), "max");
|
||||||
final double chance = parseDouble(b.getAttributes(), "chance");
|
final double chance = parseDouble(b.getAttributes(), "chance");
|
||||||
final int minEnchant = parseInteger(b.getAttributes(), "minEnchant", 0);
|
final int minEnchant = parseInteger(b.getAttributes(), "minEnchant", 0);
|
||||||
final int maxEnchant = parseInteger(b.getAttributes(), "maxEnchant", 0);
|
final int maxEnchant = parseInteger(b.getAttributes(), "maxEnchant", 0);
|
||||||
|
@ -181,8 +181,8 @@ public class DocumentItem extends DocumentBase implements IXmlReader
|
|||||||
if ("item".equals(b.getNodeName()))
|
if ("item".equals(b.getNodeName()))
|
||||||
{
|
{
|
||||||
final int id = parseInteger(b.getAttributes(), "id");
|
final int id = parseInteger(b.getAttributes(), "id");
|
||||||
final long min = parseInteger(b.getAttributes(), "min");
|
final long min = parseLong(b.getAttributes(), "min");
|
||||||
final long max = parseInteger(b.getAttributes(), "max");
|
final long max = parseLong(b.getAttributes(), "max");
|
||||||
final double chance = parseDouble(b.getAttributes(), "chance");
|
final double chance = parseDouble(b.getAttributes(), "chance");
|
||||||
final int minEnchant = parseInteger(b.getAttributes(), "minEnchant", 0);
|
final int minEnchant = parseInteger(b.getAttributes(), "minEnchant", 0);
|
||||||
final int maxEnchant = parseInteger(b.getAttributes(), "maxEnchant", 0);
|
final int maxEnchant = parseInteger(b.getAttributes(), "maxEnchant", 0);
|
||||||
|
@ -181,8 +181,8 @@ public class DocumentItem extends DocumentBase implements IXmlReader
|
|||||||
if ("item".equals(b.getNodeName()))
|
if ("item".equals(b.getNodeName()))
|
||||||
{
|
{
|
||||||
final int id = parseInteger(b.getAttributes(), "id");
|
final int id = parseInteger(b.getAttributes(), "id");
|
||||||
final long min = parseInteger(b.getAttributes(), "min");
|
final long min = parseLong(b.getAttributes(), "min");
|
||||||
final long max = parseInteger(b.getAttributes(), "max");
|
final long max = parseLong(b.getAttributes(), "max");
|
||||||
final double chance = parseDouble(b.getAttributes(), "chance");
|
final double chance = parseDouble(b.getAttributes(), "chance");
|
||||||
final int minEnchant = parseInteger(b.getAttributes(), "minEnchant", 0);
|
final int minEnchant = parseInteger(b.getAttributes(), "minEnchant", 0);
|
||||||
final int maxEnchant = parseInteger(b.getAttributes(), "maxEnchant", 0);
|
final int maxEnchant = parseInteger(b.getAttributes(), "maxEnchant", 0);
|
||||||
|
@ -181,8 +181,8 @@ public class DocumentItem extends DocumentBase implements IXmlReader
|
|||||||
if ("item".equals(b.getNodeName()))
|
if ("item".equals(b.getNodeName()))
|
||||||
{
|
{
|
||||||
final int id = parseInteger(b.getAttributes(), "id");
|
final int id = parseInteger(b.getAttributes(), "id");
|
||||||
final long min = parseInteger(b.getAttributes(), "min");
|
final long min = parseLong(b.getAttributes(), "min");
|
||||||
final long max = parseInteger(b.getAttributes(), "max");
|
final long max = parseLong(b.getAttributes(), "max");
|
||||||
final double chance = parseDouble(b.getAttributes(), "chance");
|
final double chance = parseDouble(b.getAttributes(), "chance");
|
||||||
final int minEnchant = parseInteger(b.getAttributes(), "minEnchant", 0);
|
final int minEnchant = parseInteger(b.getAttributes(), "minEnchant", 0);
|
||||||
final int maxEnchant = parseInteger(b.getAttributes(), "maxEnchant", 0);
|
final int maxEnchant = parseInteger(b.getAttributes(), "maxEnchant", 0);
|
||||||
|
@ -181,8 +181,8 @@ public class DocumentItem extends DocumentBase implements IXmlReader
|
|||||||
if ("item".equals(b.getNodeName()))
|
if ("item".equals(b.getNodeName()))
|
||||||
{
|
{
|
||||||
final int id = parseInteger(b.getAttributes(), "id");
|
final int id = parseInteger(b.getAttributes(), "id");
|
||||||
final long min = parseInteger(b.getAttributes(), "min");
|
final long min = parseLong(b.getAttributes(), "min");
|
||||||
final long max = parseInteger(b.getAttributes(), "max");
|
final long max = parseLong(b.getAttributes(), "max");
|
||||||
final double chance = parseDouble(b.getAttributes(), "chance");
|
final double chance = parseDouble(b.getAttributes(), "chance");
|
||||||
final int minEnchant = parseInteger(b.getAttributes(), "minEnchant", 0);
|
final int minEnchant = parseInteger(b.getAttributes(), "minEnchant", 0);
|
||||||
final int maxEnchant = parseInteger(b.getAttributes(), "maxEnchant", 0);
|
final int maxEnchant = parseInteger(b.getAttributes(), "maxEnchant", 0);
|
||||||
|
@ -181,8 +181,8 @@ public class DocumentItem extends DocumentBase implements IXmlReader
|
|||||||
if ("item".equals(b.getNodeName()))
|
if ("item".equals(b.getNodeName()))
|
||||||
{
|
{
|
||||||
final int id = parseInteger(b.getAttributes(), "id");
|
final int id = parseInteger(b.getAttributes(), "id");
|
||||||
final long min = parseInteger(b.getAttributes(), "min");
|
final long min = parseLong(b.getAttributes(), "min");
|
||||||
final long max = parseInteger(b.getAttributes(), "max");
|
final long max = parseLong(b.getAttributes(), "max");
|
||||||
final double chance = parseDouble(b.getAttributes(), "chance");
|
final double chance = parseDouble(b.getAttributes(), "chance");
|
||||||
final int minEnchant = parseInteger(b.getAttributes(), "minEnchant", 0);
|
final int minEnchant = parseInteger(b.getAttributes(), "minEnchant", 0);
|
||||||
final int maxEnchant = parseInteger(b.getAttributes(), "maxEnchant", 0);
|
final int maxEnchant = parseInteger(b.getAttributes(), "maxEnchant", 0);
|
||||||
|
@ -181,8 +181,8 @@ public class DocumentItem extends DocumentBase implements IXmlReader
|
|||||||
if ("item".equals(b.getNodeName()))
|
if ("item".equals(b.getNodeName()))
|
||||||
{
|
{
|
||||||
final int id = parseInteger(b.getAttributes(), "id");
|
final int id = parseInteger(b.getAttributes(), "id");
|
||||||
final long min = parseInteger(b.getAttributes(), "min");
|
final long min = parseLong(b.getAttributes(), "min");
|
||||||
final long max = parseInteger(b.getAttributes(), "max");
|
final long max = parseLong(b.getAttributes(), "max");
|
||||||
final double chance = parseDouble(b.getAttributes(), "chance");
|
final double chance = parseDouble(b.getAttributes(), "chance");
|
||||||
final int minEnchant = parseInteger(b.getAttributes(), "minEnchant", 0);
|
final int minEnchant = parseInteger(b.getAttributes(), "minEnchant", 0);
|
||||||
final int maxEnchant = parseInteger(b.getAttributes(), "maxEnchant", 0);
|
final int maxEnchant = parseInteger(b.getAttributes(), "maxEnchant", 0);
|
||||||
|
@ -181,8 +181,8 @@ public class DocumentItem extends DocumentBase implements IXmlReader
|
|||||||
if ("item".equals(b.getNodeName()))
|
if ("item".equals(b.getNodeName()))
|
||||||
{
|
{
|
||||||
final int id = parseInteger(b.getAttributes(), "id");
|
final int id = parseInteger(b.getAttributes(), "id");
|
||||||
final long min = parseInteger(b.getAttributes(), "min");
|
final long min = parseLong(b.getAttributes(), "min");
|
||||||
final long max = parseInteger(b.getAttributes(), "max");
|
final long max = parseLong(b.getAttributes(), "max");
|
||||||
final double chance = parseDouble(b.getAttributes(), "chance");
|
final double chance = parseDouble(b.getAttributes(), "chance");
|
||||||
final int minEnchant = parseInteger(b.getAttributes(), "minEnchant", 0);
|
final int minEnchant = parseInteger(b.getAttributes(), "minEnchant", 0);
|
||||||
final int maxEnchant = parseInteger(b.getAttributes(), "maxEnchant", 0);
|
final int maxEnchant = parseInteger(b.getAttributes(), "maxEnchant", 0);
|
||||||
|
@ -181,8 +181,8 @@ public class DocumentItem extends DocumentBase implements IXmlReader
|
|||||||
if ("item".equals(b.getNodeName()))
|
if ("item".equals(b.getNodeName()))
|
||||||
{
|
{
|
||||||
final int id = parseInteger(b.getAttributes(), "id");
|
final int id = parseInteger(b.getAttributes(), "id");
|
||||||
final long min = parseInteger(b.getAttributes(), "min");
|
final long min = parseLong(b.getAttributes(), "min");
|
||||||
final long max = parseInteger(b.getAttributes(), "max");
|
final long max = parseLong(b.getAttributes(), "max");
|
||||||
final double chance = parseDouble(b.getAttributes(), "chance");
|
final double chance = parseDouble(b.getAttributes(), "chance");
|
||||||
final int minEnchant = parseInteger(b.getAttributes(), "minEnchant", 0);
|
final int minEnchant = parseInteger(b.getAttributes(), "minEnchant", 0);
|
||||||
final int maxEnchant = parseInteger(b.getAttributes(), "maxEnchant", 0);
|
final int maxEnchant = parseInteger(b.getAttributes(), "maxEnchant", 0);
|
||||||
|
@ -181,8 +181,8 @@ public class DocumentItem extends DocumentBase implements IXmlReader
|
|||||||
if ("item".equals(b.getNodeName()))
|
if ("item".equals(b.getNodeName()))
|
||||||
{
|
{
|
||||||
final int id = parseInteger(b.getAttributes(), "id");
|
final int id = parseInteger(b.getAttributes(), "id");
|
||||||
final long min = parseInteger(b.getAttributes(), "min");
|
final long min = parseLong(b.getAttributes(), "min");
|
||||||
final long max = parseInteger(b.getAttributes(), "max");
|
final long max = parseLong(b.getAttributes(), "max");
|
||||||
final double chance = parseDouble(b.getAttributes(), "chance");
|
final double chance = parseDouble(b.getAttributes(), "chance");
|
||||||
final int minEnchant = parseInteger(b.getAttributes(), "minEnchant", 0);
|
final int minEnchant = parseInteger(b.getAttributes(), "minEnchant", 0);
|
||||||
final int maxEnchant = parseInteger(b.getAttributes(), "maxEnchant", 0);
|
final int maxEnchant = parseInteger(b.getAttributes(), "maxEnchant", 0);
|
||||||
|
@ -181,8 +181,8 @@ public class DocumentItem extends DocumentBase implements IXmlReader
|
|||||||
if ("item".equals(b.getNodeName()))
|
if ("item".equals(b.getNodeName()))
|
||||||
{
|
{
|
||||||
final int id = parseInteger(b.getAttributes(), "id");
|
final int id = parseInteger(b.getAttributes(), "id");
|
||||||
final long min = parseInteger(b.getAttributes(), "min");
|
final long min = parseLong(b.getAttributes(), "min");
|
||||||
final long max = parseInteger(b.getAttributes(), "max");
|
final long max = parseLong(b.getAttributes(), "max");
|
||||||
final double chance = parseDouble(b.getAttributes(), "chance");
|
final double chance = parseDouble(b.getAttributes(), "chance");
|
||||||
final int minEnchant = parseInteger(b.getAttributes(), "minEnchant", 0);
|
final int minEnchant = parseInteger(b.getAttributes(), "minEnchant", 0);
|
||||||
final int maxEnchant = parseInteger(b.getAttributes(), "maxEnchant", 0);
|
final int maxEnchant = parseInteger(b.getAttributes(), "maxEnchant", 0);
|
||||||
|
@ -181,8 +181,8 @@ public class DocumentItem extends DocumentBase implements IXmlReader
|
|||||||
if ("item".equals(b.getNodeName()))
|
if ("item".equals(b.getNodeName()))
|
||||||
{
|
{
|
||||||
final int id = parseInteger(b.getAttributes(), "id");
|
final int id = parseInteger(b.getAttributes(), "id");
|
||||||
final long min = parseInteger(b.getAttributes(), "min");
|
final long min = parseLong(b.getAttributes(), "min");
|
||||||
final long max = parseInteger(b.getAttributes(), "max");
|
final long max = parseLong(b.getAttributes(), "max");
|
||||||
final double chance = parseDouble(b.getAttributes(), "chance");
|
final double chance = parseDouble(b.getAttributes(), "chance");
|
||||||
final int minEnchant = parseInteger(b.getAttributes(), "minEnchant", 0);
|
final int minEnchant = parseInteger(b.getAttributes(), "minEnchant", 0);
|
||||||
final int maxEnchant = parseInteger(b.getAttributes(), "maxEnchant", 0);
|
final int maxEnchant = parseInteger(b.getAttributes(), "maxEnchant", 0);
|
||||||
|
@ -181,8 +181,8 @@ public class DocumentItem extends DocumentBase implements IXmlReader
|
|||||||
if ("item".equals(b.getNodeName()))
|
if ("item".equals(b.getNodeName()))
|
||||||
{
|
{
|
||||||
final int id = parseInteger(b.getAttributes(), "id");
|
final int id = parseInteger(b.getAttributes(), "id");
|
||||||
final long min = parseInteger(b.getAttributes(), "min");
|
final long min = parseLong(b.getAttributes(), "min");
|
||||||
final long max = parseInteger(b.getAttributes(), "max");
|
final long max = parseLong(b.getAttributes(), "max");
|
||||||
final double chance = parseDouble(b.getAttributes(), "chance");
|
final double chance = parseDouble(b.getAttributes(), "chance");
|
||||||
final int minEnchant = parseInteger(b.getAttributes(), "minEnchant", 0);
|
final int minEnchant = parseInteger(b.getAttributes(), "minEnchant", 0);
|
||||||
final int maxEnchant = parseInteger(b.getAttributes(), "maxEnchant", 0);
|
final int maxEnchant = parseInteger(b.getAttributes(), "maxEnchant", 0);
|
||||||
|
@ -181,8 +181,8 @@ public class DocumentItem extends DocumentBase implements IXmlReader
|
|||||||
if ("item".equals(b.getNodeName()))
|
if ("item".equals(b.getNodeName()))
|
||||||
{
|
{
|
||||||
final int id = parseInteger(b.getAttributes(), "id");
|
final int id = parseInteger(b.getAttributes(), "id");
|
||||||
final long min = parseInteger(b.getAttributes(), "min");
|
final long min = parseLong(b.getAttributes(), "min");
|
||||||
final long max = parseInteger(b.getAttributes(), "max");
|
final long max = parseLong(b.getAttributes(), "max");
|
||||||
final double chance = parseDouble(b.getAttributes(), "chance");
|
final double chance = parseDouble(b.getAttributes(), "chance");
|
||||||
final int minEnchant = parseInteger(b.getAttributes(), "minEnchant", 0);
|
final int minEnchant = parseInteger(b.getAttributes(), "minEnchant", 0);
|
||||||
final int maxEnchant = parseInteger(b.getAttributes(), "maxEnchant", 0);
|
final int maxEnchant = parseInteger(b.getAttributes(), "maxEnchant", 0);
|
||||||
|
@ -181,8 +181,8 @@ public class DocumentItem extends DocumentBase implements IXmlReader
|
|||||||
if ("item".equals(b.getNodeName()))
|
if ("item".equals(b.getNodeName()))
|
||||||
{
|
{
|
||||||
final int id = parseInteger(b.getAttributes(), "id");
|
final int id = parseInteger(b.getAttributes(), "id");
|
||||||
final long min = parseInteger(b.getAttributes(), "min");
|
final long min = parseLong(b.getAttributes(), "min");
|
||||||
final long max = parseInteger(b.getAttributes(), "max");
|
final long max = parseLong(b.getAttributes(), "max");
|
||||||
final double chance = parseDouble(b.getAttributes(), "chance");
|
final double chance = parseDouble(b.getAttributes(), "chance");
|
||||||
final int minEnchant = parseInteger(b.getAttributes(), "minEnchant", 0);
|
final int minEnchant = parseInteger(b.getAttributes(), "minEnchant", 0);
|
||||||
final int maxEnchant = parseInteger(b.getAttributes(), "maxEnchant", 0);
|
final int maxEnchant = parseInteger(b.getAttributes(), "maxEnchant", 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user