|
@@ -62,15 +62,19 @@ namespace Fort23.Mono
|
|
|
{
|
|
|
if (b)
|
|
|
{
|
|
|
- if (_shopItemConfig.price != 0 &&
|
|
|
- !PlayerManager.Instance.BagController.IsEnough(_shopItemConfig.costItemId,
|
|
|
- _shopItemConfig.price * count))
|
|
|
+ if (_shopItemConfig.costItemId != 9999)
|
|
|
{
|
|
|
- ItemSourcePanel.OpenPanel(_shopItemConfig.costItemId);
|
|
|
- // TipMessagePanel.OpenTipMessagePanel(829, Vector2.zero);
|
|
|
- return;
|
|
|
+ if (_shopItemConfig.price != 0 &&
|
|
|
+ !PlayerManager.Instance.BagController.IsEnough(_shopItemConfig.costItemId,
|
|
|
+ _shopItemConfig.price * count))
|
|
|
+ {
|
|
|
+ ItemSourcePanel.OpenPanel(_shopItemConfig.costItemId);
|
|
|
+ // TipMessagePanel.OpenTipMessagePanel(829, Vector2.zero);
|
|
|
+ return;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
+
|
|
|
if (_shopItemConfig.buyCount != -1 && _shopItem.buyCount >= _shopItemConfig.buyCount)
|
|
|
{
|
|
|
TipMessagePanel.OpenTipMessagePanel(10366, Vector2.zero);
|