Improved lamp xp calculation

Improved shop restrictions
Fixed bugged Cyclops room teleport
This commit is contained in:
Ceikry
2023-05-31 08:58:40 +00:00
committed by Ryan
parent 9150137c47
commit cb4c94f3ab
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -272,7 +272,7 @@ class Shop(val title: String, val stock: Array<ShopItem>, val general: Boolean =
return TransactionStatus.Failure("Shop item out of stock.")
}
if(isMainStock && inStock.amount > stock[slot].amount && !getServerConfig().getBoolean(Shops.personalizedShops, false) && player.ironmanManager.isIronman)
if(isMainStock && inStock.amount > stock[slot].amount && (!getServerConfig().getBoolean(Shops.personalizedShops, false) || forceShared) && player.ironmanManager.isIronman)
{
sendDialogue(player, "As an ironman, you cannot buy overstocked items from shops.")
return TransactionStatus.Failure("Ironman overstock purchase")