Replaced AttributeType NONE_ARMOR with NONE.
This commit is contained in:
@@ -22,8 +22,7 @@ package com.l2jmobius.gameserver.enums;
|
|||||||
*/
|
*/
|
||||||
public enum AttributeType
|
public enum AttributeType
|
||||||
{
|
{
|
||||||
NONE_ARMOR(-2),
|
NONE(-2),
|
||||||
NONE(-1),
|
|
||||||
FIRE(0),
|
FIRE(0),
|
||||||
WATER(1),
|
WATER(1),
|
||||||
WIND(2),
|
WIND(2),
|
||||||
|
@@ -42,7 +42,7 @@ public class ExChooseInventoryAttributeItem implements IClientOutgoingPacket
|
|||||||
_itemId = stone.getDisplayId();
|
_itemId = stone.getDisplayId();
|
||||||
_count = stone.getCount();
|
_count = stone.getCount();
|
||||||
_atribute = AttributeType.findByClientId(Elementals.getItemElement(_itemId));
|
_atribute = AttributeType.findByClientId(Elementals.getItemElement(_itemId));
|
||||||
if ((_atribute == AttributeType.NONE) || (_atribute == AttributeType.NONE_ARMOR))
|
if (_atribute == AttributeType.NONE)
|
||||||
{
|
{
|
||||||
throw new IllegalArgumentException("Undefined Atribute item: " + stone);
|
throw new IllegalArgumentException("Undefined Atribute item: " + stone);
|
||||||
}
|
}
|
||||||
|
@@ -22,8 +22,7 @@ package com.l2jmobius.gameserver.enums;
|
|||||||
*/
|
*/
|
||||||
public enum AttributeType
|
public enum AttributeType
|
||||||
{
|
{
|
||||||
NONE_ARMOR(-2),
|
NONE(-2),
|
||||||
NONE(-1),
|
|
||||||
FIRE(0),
|
FIRE(0),
|
||||||
WATER(1),
|
WATER(1),
|
||||||
WIND(2),
|
WIND(2),
|
||||||
|
@@ -42,7 +42,7 @@ public class ExChooseInventoryAttributeItem implements IClientOutgoingPacket
|
|||||||
_itemId = stone.getDisplayId();
|
_itemId = stone.getDisplayId();
|
||||||
_count = stone.getCount();
|
_count = stone.getCount();
|
||||||
_atribute = AttributeType.findByClientId(Elementals.getItemElement(_itemId));
|
_atribute = AttributeType.findByClientId(Elementals.getItemElement(_itemId));
|
||||||
if ((_atribute == AttributeType.NONE) || (_atribute == AttributeType.NONE_ARMOR))
|
if (_atribute == AttributeType.NONE)
|
||||||
{
|
{
|
||||||
throw new IllegalArgumentException("Undefined Atribute item: " + stone);
|
throw new IllegalArgumentException("Undefined Atribute item: " + stone);
|
||||||
}
|
}
|
||||||
|
@@ -22,8 +22,7 @@ package com.l2jmobius.gameserver.enums;
|
|||||||
*/
|
*/
|
||||||
public enum AttributeType
|
public enum AttributeType
|
||||||
{
|
{
|
||||||
NONE_ARMOR(-2),
|
NONE(-2),
|
||||||
NONE(-1),
|
|
||||||
FIRE(0),
|
FIRE(0),
|
||||||
WATER(1),
|
WATER(1),
|
||||||
WIND(2),
|
WIND(2),
|
||||||
|
@@ -42,7 +42,7 @@ public class ExChooseInventoryAttributeItem implements IClientOutgoingPacket
|
|||||||
_itemId = stone.getDisplayId();
|
_itemId = stone.getDisplayId();
|
||||||
_count = stone.getCount();
|
_count = stone.getCount();
|
||||||
_atribute = AttributeType.findByClientId(Elementals.getItemElement(_itemId));
|
_atribute = AttributeType.findByClientId(Elementals.getItemElement(_itemId));
|
||||||
if ((_atribute == AttributeType.NONE) || (_atribute == AttributeType.NONE_ARMOR))
|
if (_atribute == AttributeType.NONE)
|
||||||
{
|
{
|
||||||
throw new IllegalArgumentException("Undefined Atribute item: " + stone);
|
throw new IllegalArgumentException("Undefined Atribute item: " + stone);
|
||||||
}
|
}
|
||||||
|
@@ -22,8 +22,7 @@ package com.l2jmobius.gameserver.enums;
|
|||||||
*/
|
*/
|
||||||
public enum AttributeType
|
public enum AttributeType
|
||||||
{
|
{
|
||||||
NONE_ARMOR(-2),
|
NONE(-2),
|
||||||
NONE(-1),
|
|
||||||
FIRE(0),
|
FIRE(0),
|
||||||
WATER(1),
|
WATER(1),
|
||||||
WIND(2),
|
WIND(2),
|
||||||
|
@@ -42,7 +42,7 @@ public class ExChooseInventoryAttributeItem implements IClientOutgoingPacket
|
|||||||
_itemId = stone.getDisplayId();
|
_itemId = stone.getDisplayId();
|
||||||
_count = stone.getCount();
|
_count = stone.getCount();
|
||||||
_atribute = AttributeType.findByClientId(Elementals.getItemElement(_itemId));
|
_atribute = AttributeType.findByClientId(Elementals.getItemElement(_itemId));
|
||||||
if ((_atribute == AttributeType.NONE) || (_atribute == AttributeType.NONE_ARMOR))
|
if (_atribute == AttributeType.NONE)
|
||||||
{
|
{
|
||||||
throw new IllegalArgumentException("Undefined Atribute item: " + stone);
|
throw new IllegalArgumentException("Undefined Atribute item: " + stone);
|
||||||
}
|
}
|
||||||
|
@@ -22,8 +22,7 @@ package com.l2jmobius.gameserver.enums;
|
|||||||
*/
|
*/
|
||||||
public enum AttributeType
|
public enum AttributeType
|
||||||
{
|
{
|
||||||
NONE_ARMOR(-2),
|
NONE(-2),
|
||||||
NONE(-1),
|
|
||||||
FIRE(0),
|
FIRE(0),
|
||||||
WATER(1),
|
WATER(1),
|
||||||
WIND(2),
|
WIND(2),
|
||||||
|
@@ -42,7 +42,7 @@ public class ExChooseInventoryAttributeItem implements IClientOutgoingPacket
|
|||||||
_itemId = stone.getDisplayId();
|
_itemId = stone.getDisplayId();
|
||||||
_count = stone.getCount();
|
_count = stone.getCount();
|
||||||
_atribute = AttributeType.findByClientId(Elementals.getItemElement(_itemId));
|
_atribute = AttributeType.findByClientId(Elementals.getItemElement(_itemId));
|
||||||
if ((_atribute == AttributeType.NONE) || (_atribute == AttributeType.NONE_ARMOR))
|
if (_atribute == AttributeType.NONE)
|
||||||
{
|
{
|
||||||
throw new IllegalArgumentException("Undefined Atribute item: " + stone);
|
throw new IllegalArgumentException("Undefined Atribute item: " + stone);
|
||||||
}
|
}
|
||||||
|
@@ -22,8 +22,7 @@ package com.l2jmobius.gameserver.enums;
|
|||||||
*/
|
*/
|
||||||
public enum AttributeType
|
public enum AttributeType
|
||||||
{
|
{
|
||||||
NONE_ARMOR(-2),
|
NONE(-2),
|
||||||
NONE(-1),
|
|
||||||
FIRE(0),
|
FIRE(0),
|
||||||
WATER(1),
|
WATER(1),
|
||||||
WIND(2),
|
WIND(2),
|
||||||
|
@@ -42,7 +42,7 @@ public class ExChooseInventoryAttributeItem implements IClientOutgoingPacket
|
|||||||
_itemId = stone.getDisplayId();
|
_itemId = stone.getDisplayId();
|
||||||
_count = stone.getCount();
|
_count = stone.getCount();
|
||||||
_atribute = AttributeType.findByClientId(Elementals.getItemElement(_itemId));
|
_atribute = AttributeType.findByClientId(Elementals.getItemElement(_itemId));
|
||||||
if ((_atribute == AttributeType.NONE) || (_atribute == AttributeType.NONE_ARMOR))
|
if (_atribute == AttributeType.NONE)
|
||||||
{
|
{
|
||||||
throw new IllegalArgumentException("Undefined Atribute item: " + stone);
|
throw new IllegalArgumentException("Undefined Atribute item: " + stone);
|
||||||
}
|
}
|
||||||
|
@@ -22,8 +22,7 @@ package com.l2jmobius.gameserver.enums;
|
|||||||
*/
|
*/
|
||||||
public enum AttributeType
|
public enum AttributeType
|
||||||
{
|
{
|
||||||
NONE_ARMOR(-2),
|
NONE(-2),
|
||||||
NONE(-1),
|
|
||||||
FIRE(0),
|
FIRE(0),
|
||||||
WATER(1),
|
WATER(1),
|
||||||
WIND(2),
|
WIND(2),
|
||||||
|
@@ -42,7 +42,7 @@ public class ExChooseInventoryAttributeItem implements IClientOutgoingPacket
|
|||||||
_itemId = stone.getDisplayId();
|
_itemId = stone.getDisplayId();
|
||||||
_count = stone.getCount();
|
_count = stone.getCount();
|
||||||
_atribute = AttributeType.findByClientId(Elementals.getItemElement(_itemId));
|
_atribute = AttributeType.findByClientId(Elementals.getItemElement(_itemId));
|
||||||
if ((_atribute == AttributeType.NONE) || (_atribute == AttributeType.NONE_ARMOR))
|
if (_atribute == AttributeType.NONE)
|
||||||
{
|
{
|
||||||
throw new IllegalArgumentException("Undefined Atribute item: " + stone);
|
throw new IllegalArgumentException("Undefined Atribute item: " + stone);
|
||||||
}
|
}
|
||||||
|
@@ -22,8 +22,7 @@ package com.l2jmobius.gameserver.enums;
|
|||||||
*/
|
*/
|
||||||
public enum AttributeType
|
public enum AttributeType
|
||||||
{
|
{
|
||||||
NONE_ARMOR(-2),
|
NONE(-2),
|
||||||
NONE(-1),
|
|
||||||
FIRE(0),
|
FIRE(0),
|
||||||
WATER(1),
|
WATER(1),
|
||||||
WIND(2),
|
WIND(2),
|
||||||
|
@@ -42,7 +42,7 @@ public class ExChooseInventoryAttributeItem implements IClientOutgoingPacket
|
|||||||
_itemId = stone.getDisplayId();
|
_itemId = stone.getDisplayId();
|
||||||
_count = stone.getCount();
|
_count = stone.getCount();
|
||||||
_atribute = AttributeType.findByClientId(Elementals.getItemElement(_itemId));
|
_atribute = AttributeType.findByClientId(Elementals.getItemElement(_itemId));
|
||||||
if ((_atribute == AttributeType.NONE) || (_atribute == AttributeType.NONE_ARMOR))
|
if (_atribute == AttributeType.NONE)
|
||||||
{
|
{
|
||||||
throw new IllegalArgumentException("Undefined Atribute item: " + stone);
|
throw new IllegalArgumentException("Undefined Atribute item: " + stone);
|
||||||
}
|
}
|
||||||
|
@@ -22,8 +22,7 @@ package com.l2jmobius.gameserver.enums;
|
|||||||
*/
|
*/
|
||||||
public enum AttributeType
|
public enum AttributeType
|
||||||
{
|
{
|
||||||
NONE_ARMOR(-2),
|
NONE(-2),
|
||||||
NONE(-1),
|
|
||||||
FIRE(0),
|
FIRE(0),
|
||||||
WATER(1),
|
WATER(1),
|
||||||
WIND(2),
|
WIND(2),
|
||||||
|
@@ -42,7 +42,7 @@ public class ExChooseInventoryAttributeItem implements IClientOutgoingPacket
|
|||||||
_itemId = stone.getDisplayId();
|
_itemId = stone.getDisplayId();
|
||||||
_count = stone.getCount();
|
_count = stone.getCount();
|
||||||
_atribute = AttributeType.findByClientId(Elementals.getItemElement(_itemId));
|
_atribute = AttributeType.findByClientId(Elementals.getItemElement(_itemId));
|
||||||
if ((_atribute == AttributeType.NONE) || (_atribute == AttributeType.NONE_ARMOR))
|
if (_atribute == AttributeType.NONE)
|
||||||
{
|
{
|
||||||
throw new IllegalArgumentException("Undefined Atribute item: " + stone);
|
throw new IllegalArgumentException("Undefined Atribute item: " + stone);
|
||||||
}
|
}
|
||||||
|
@@ -22,8 +22,7 @@ package com.l2jmobius.gameserver.enums;
|
|||||||
*/
|
*/
|
||||||
public enum AttributeType
|
public enum AttributeType
|
||||||
{
|
{
|
||||||
NONE_ARMOR(-2),
|
NONE(-2),
|
||||||
NONE(-1),
|
|
||||||
FIRE(0),
|
FIRE(0),
|
||||||
WATER(1),
|
WATER(1),
|
||||||
WIND(2),
|
WIND(2),
|
||||||
|
@@ -42,7 +42,7 @@ public class ExChooseInventoryAttributeItem implements IClientOutgoingPacket
|
|||||||
_itemId = stone.getDisplayId();
|
_itemId = stone.getDisplayId();
|
||||||
_count = stone.getCount();
|
_count = stone.getCount();
|
||||||
_atribute = AttributeType.findByClientId(Elementals.getItemElement(_itemId));
|
_atribute = AttributeType.findByClientId(Elementals.getItemElement(_itemId));
|
||||||
if ((_atribute == AttributeType.NONE) || (_atribute == AttributeType.NONE_ARMOR))
|
if (_atribute == AttributeType.NONE)
|
||||||
{
|
{
|
||||||
throw new IllegalArgumentException("Undefined Atribute item: " + stone);
|
throw new IllegalArgumentException("Undefined Atribute item: " + stone);
|
||||||
}
|
}
|
||||||
|
@@ -22,8 +22,7 @@ package com.l2jmobius.gameserver.enums;
|
|||||||
*/
|
*/
|
||||||
public enum AttributeType
|
public enum AttributeType
|
||||||
{
|
{
|
||||||
NONE_ARMOR(-2),
|
NONE(-2),
|
||||||
NONE(-1),
|
|
||||||
FIRE(0),
|
FIRE(0),
|
||||||
WATER(1),
|
WATER(1),
|
||||||
WIND(2),
|
WIND(2),
|
||||||
|
@@ -42,7 +42,7 @@ public class ExChooseInventoryAttributeItem implements IClientOutgoingPacket
|
|||||||
_itemId = stone.getDisplayId();
|
_itemId = stone.getDisplayId();
|
||||||
_count = stone.getCount();
|
_count = stone.getCount();
|
||||||
_atribute = AttributeType.findByClientId(Elementals.getItemElement(_itemId));
|
_atribute = AttributeType.findByClientId(Elementals.getItemElement(_itemId));
|
||||||
if ((_atribute == AttributeType.NONE) || (_atribute == AttributeType.NONE_ARMOR))
|
if (_atribute == AttributeType.NONE)
|
||||||
{
|
{
|
||||||
throw new IllegalArgumentException("Undefined Atribute item: " + stone);
|
throw new IllegalArgumentException("Undefined Atribute item: " + stone);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user