DocumentItem should parse long min and max values.

This commit is contained in:
MobiusDevelopment 2021-11-04 12:49:32 +00:00
parent 419edfd7f5
commit f10e4495f9
21 changed files with 42 additions and 42 deletions

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 long min = parseInteger(b.getAttributes(), "min");
final long max = parseInteger(b.getAttributes(), "max");
final long min = parseLong(b.getAttributes(), "min");
final long max = parseLong(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);

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 long min = parseInteger(b.getAttributes(), "min");
final long max = parseInteger(b.getAttributes(), "max");
final long min = parseLong(b.getAttributes(), "min");
final long max = parseLong(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);

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 long min = parseInteger(b.getAttributes(), "min");
final long max = parseInteger(b.getAttributes(), "max");
final long min = parseLong(b.getAttributes(), "min");
final long max = parseLong(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);

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 long min = parseInteger(b.getAttributes(), "min");
final long max = parseInteger(b.getAttributes(), "max");
final long min = parseLong(b.getAttributes(), "min");
final long max = parseLong(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);

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 long min = parseInteger(b.getAttributes(), "min");
final long max = parseInteger(b.getAttributes(), "max");
final long min = parseLong(b.getAttributes(), "min");
final long max = parseLong(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);

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 long min = parseInteger(b.getAttributes(), "min");
final long max = parseInteger(b.getAttributes(), "max");
final long min = parseLong(b.getAttributes(), "min");
final long max = parseLong(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);

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 long min = parseInteger(b.getAttributes(), "min");
final long max = parseInteger(b.getAttributes(), "max");
final long min = parseLong(b.getAttributes(), "min");
final long max = parseLong(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);

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 long min = parseInteger(b.getAttributes(), "min");
final long max = parseInteger(b.getAttributes(), "max");
final long min = parseLong(b.getAttributes(), "min");
final long max = parseLong(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);

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 long min = parseInteger(b.getAttributes(), "min");
final long max = parseInteger(b.getAttributes(), "max");
final long min = parseLong(b.getAttributes(), "min");
final long max = parseLong(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);

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 long min = parseInteger(b.getAttributes(), "min");
final long max = parseInteger(b.getAttributes(), "max");
final long min = parseLong(b.getAttributes(), "min");
final long max = parseLong(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);

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 long min = parseInteger(b.getAttributes(), "min");
final long max = parseInteger(b.getAttributes(), "max");
final long min = parseLong(b.getAttributes(), "min");
final long max = parseLong(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);

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 long min = parseInteger(b.getAttributes(), "min");
final long max = parseInteger(b.getAttributes(), "max");
final long min = parseLong(b.getAttributes(), "min");
final long max = parseLong(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);

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 long min = parseInteger(b.getAttributes(), "min");
final long max = parseInteger(b.getAttributes(), "max");
final long min = parseLong(b.getAttributes(), "min");
final long max = parseLong(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);

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 long min = parseInteger(b.getAttributes(), "min");
final long max = parseInteger(b.getAttributes(), "max");
final long min = parseLong(b.getAttributes(), "min");
final long max = parseLong(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);

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 long min = parseInteger(b.getAttributes(), "min");
final long max = parseInteger(b.getAttributes(), "max");
final long min = parseLong(b.getAttributes(), "min");
final long max = parseLong(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);

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 long min = parseInteger(b.getAttributes(), "min");
final long max = parseInteger(b.getAttributes(), "max");
final long min = parseLong(b.getAttributes(), "min");
final long max = parseLong(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);

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 long min = parseInteger(b.getAttributes(), "min");
final long max = parseInteger(b.getAttributes(), "max");
final long min = parseLong(b.getAttributes(), "min");
final long max = parseLong(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);

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 long min = parseInteger(b.getAttributes(), "min");
final long max = parseInteger(b.getAttributes(), "max");
final long min = parseLong(b.getAttributes(), "min");
final long max = parseLong(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);

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 long min = parseInteger(b.getAttributes(), "min");
final long max = parseInteger(b.getAttributes(), "max");
final long min = parseLong(b.getAttributes(), "min");
final long max = parseLong(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);

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 long min = parseInteger(b.getAttributes(), "min");
final long max = parseInteger(b.getAttributes(), "max");
final long min = parseLong(b.getAttributes(), "min");
final long max = parseLong(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);

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 long min = parseInteger(b.getAttributes(), "min");
final long max = parseInteger(b.getAttributes(), "max");
final long min = parseLong(b.getAttributes(), "min");
final long max = parseLong(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);