don't charge player to withdraw items from their store

This commit is contained in:
RedSparr0w
2019-11-23 12:02:22 +13:00
parent 10c7adf74d
commit b920549af0
4 changed files with 26 additions and 12 deletions
@@ -177,6 +177,7 @@ public class ShopHandler {
int id = getEmptyShop();
player.myShopId = id;
ShopSModifier[id] = 0;
ShopBModifier[id] = 0;
ShopName[id] = player.properName + "'s Store";
for (int i = 0; i < MaxShopItems; i++){
ShopItems[id][i] = player.bankItems[i];
@@ -229,4 +230,8 @@ public class ShopHandler {
}
refreshShop(shop_id);
}
public static boolean playerOwnsStore(int shop_id, Client player){
return ShopSModifier[shop_id] == 0 && ShopBModifier[shop_id] == 0 && ShopName[shop_id].equalsIgnoreCase(player.properName + "'s Store");
}
}