Added Use button on sucessful .xpshopbuy or when a user already owns the item

This commit is contained in:
Kwoth
2022-08-08 16:17:30 +02:00
parent 38e3badb87
commit 6b9a858f28
8 changed files with 17 additions and 31 deletions

View File

@@ -1394,7 +1394,7 @@ public class XpService : INService, IReadyExecutor, IExecNoCommand
var conf = _xpConfig.Data;
if (!conf.Shop.IsEnabled)
return BuyResult.UnknownItem;
return BuyResult.XpShopDisabled;
var req = type == XpShopItemType.Background
? conf.Shop.BgsTierRequirement
@@ -1545,6 +1545,7 @@ public class XpService : INService, IReadyExecutor, IExecNoCommand
public enum BuyResult
{
Success,
XpShopDisabled,
AlreadyOwned,
InsufficientFunds,
UnknownItem,