Updated World Exchange enums.

Contributed by Index.
This commit is contained in:
MobiusDevelopment
2022-10-31 00:58:48 +00:00
parent 934c5a537c
commit ef065fff95
8 changed files with 18 additions and 11 deletions

View File

@@ -4,7 +4,6 @@
# Enable World Exchange icon. # Enable World Exchange icon.
# Default: False # Default: False
# Needs proper WorldExchangeSortType
EnableWorldExchange = False EnableWorldExchange = False
# World Exchange Default Language # World Exchange Default Language

View File

@@ -21,6 +21,7 @@ package org.l2jmobius.gameserver.enums;
*/ */
public enum WorldExchangeItemMainType public enum WorldExchangeItemMainType
{ {
ADENA(24),
EQUIPMENT(0), EQUIPMENT(0),
ARTIFACT(1), ARTIFACT(1),
ENCHANT(8), ENCHANT(8),

View File

@@ -45,7 +45,8 @@ public enum WorldExchangeItemSubType
TICKET(21), TICKET(21),
CRAFT(22), CRAFT(22),
INC_ENCHANT_PROP(23), INC_ENCHANT_PROP(23),
ETC_SUB_TYPE(24); ADENA(24),
ETC_SUB_TYPE(25);
private final int _id; private final int _id;

View File

@@ -27,7 +27,11 @@ public enum WorldExchangeSortType
// ENCHANT_ASCE(2), // ENCHANT_ASCE(2),
// ENCHANT_DESC(3), // ENCHANT_DESC(3),
PRICE_ASCE(4), PRICE_ASCE(4),
PRICE_DESC(5); PRICE_DESC(5),
AMOUNT_ASCE(6),
AMOUNT_DESC(7),
PRICE_PER_PIECE_ASCE(8),
PRICE_PER_PIECE_DESC(9);
private final int _id; private final int _id;
@@ -50,6 +54,6 @@ public enum WorldExchangeSortType
return type; return type;
} }
} }
return NONE; return null;
} }
} }

View File

@@ -22,10 +22,8 @@ package org.l2jmobius.gameserver.enums;
public enum WorldExchangeItemMainType public enum WorldExchangeItemMainType
{ {
EQUIPMENT(0), EQUIPMENT(0),
ARTIFACT(1),
ENCHANT(8), ENCHANT(8),
CONSUMABLE(20), CONSUMABLE(20),
ETC(4),
COLLECTION(5); COLLECTION(5);
private final int _id; private final int _id;

View File

@@ -21,11 +21,10 @@ package org.l2jmobius.gameserver.enums;
*/ */
public enum WorldExchangeItemMainType public enum WorldExchangeItemMainType
{ {
ADENA(24),
EQUIPMENT(0), EQUIPMENT(0),
ARTIFACT(1),
ENCHANT(8), ENCHANT(8),
CONSUMABLE(20), CONSUMABLE(20),
ETC(4),
COLLECTION(5); COLLECTION(5);
private final int _id; private final int _id;

View File

@@ -45,7 +45,8 @@ public enum WorldExchangeItemSubType
TICKET(21), TICKET(21),
CRAFT(22), CRAFT(22),
INC_ENCHANT_PROP(23), INC_ENCHANT_PROP(23),
ETC_SUB_TYPE(24); ADENA(24),
ETC_SUB_TYPE(25);
private final int _id; private final int _id;

View File

@@ -27,7 +27,11 @@ public enum WorldExchangeSortType
// ENCHANT_ASCE(2), // ENCHANT_ASCE(2),
// ENCHANT_DESC(3), // ENCHANT_DESC(3),
PRICE_ASCE(4), PRICE_ASCE(4),
PRICE_DESC(5); PRICE_DESC(5),
AMOUNT_ASCE(6),
AMOUNT_DESC(7),
PRICE_PER_PIECE_ASCE(8),
PRICE_PER_PIECE_DESC(9);
private final int _id; private final int _id;
@@ -50,6 +54,6 @@ public enum WorldExchangeSortType
return type; return type;
} }
} }
return NONE; return null;
} }
} }