Savior Commit
Fixed some bugs regarding dojo, updated drop data, minor tweaks on Mystic Doors, added expeditions for Showa Manor, Zakum and Pink Bean, smart search for item slots on quest/npc rewarding system, attempt on boss HPbar to focus on player's current target, quests with selectable rewards now hands the item correctly, after the first PQ instance next ones are loaded more smoothly.
This commit is contained in:
@@ -56,6 +56,19 @@ public final class ItemConstants {
|
||||
public static boolean isBullet(int itemId) {
|
||||
return itemId / 10000 == 233;
|
||||
}
|
||||
|
||||
public static boolean isPotion(int itemId) {
|
||||
return itemId / 1000 == 2000;
|
||||
}
|
||||
|
||||
public static boolean isFood(int itemId) {
|
||||
int useType = itemId / 1000;
|
||||
return useType == 2022 || useType == 2010 || useType == 2020;
|
||||
}
|
||||
|
||||
public static boolean isConsumable(int itemId) {
|
||||
return isPotion(itemId) || isFood(itemId);
|
||||
}
|
||||
|
||||
public static boolean isRechargable(int itemId) {
|
||||
return isThrowingStar(itemId) || isBullet(itemId);
|
||||
@@ -68,6 +81,10 @@ public final class ItemConstants {
|
||||
public static boolean isArrowForBow(int itemId) {
|
||||
return itemId / 1000 == 2060;
|
||||
}
|
||||
|
||||
public static boolean isArrow(int itemId) {
|
||||
return isArrowForBow(itemId) || isArrowForCrossBow(itemId);
|
||||
}
|
||||
|
||||
public static boolean isPet(int itemId) {
|
||||
return itemId / 1000 == 5000;
|
||||
|
||||
Reference in New Issue
Block a user