|
@@ -63,12 +63,12 @@ namespace GFGGame
|
|
|
else
|
|
|
{
|
|
|
long itemCount = ItemDataManager.GetItemNum(_shopCfg.costId);
|
|
|
- long curMoneyCanBuy = itemCount / _shopCfg.price;
|
|
|
+ long curMoneyCanBuy = itemCount / _shopCfg.Price;
|
|
|
if (_shopCfg.menu1 == ConstStoreTabId.STORE_ARENA)
|
|
|
{
|
|
|
itemCount = ItemDataManager.GetItemNum(ConstItemID.ARENA_CUR_COST);
|
|
|
long itemCountOther = ItemDataManager.GetItemNum(ConstItemID.ARENA_PAST_COST);
|
|
|
- curMoneyCanBuy = (itemCount + itemCountOther) / _shopCfg.price;
|
|
|
+ curMoneyCanBuy = (itemCount + itemCountOther) / _shopCfg.Price;
|
|
|
}
|
|
|
if (_shopCfg.maxBuyNum == 0)
|
|
|
{
|
|
@@ -162,14 +162,14 @@ namespace GFGGame
|
|
|
{
|
|
|
_ui.m_comCost.target.visible = false;
|
|
|
_ui.m_txtRmbCost.visible = true;
|
|
|
- _ui.m_txtRmbCost.text = string.Format("¥ {0}", _shopCfg.price);
|
|
|
+ _ui.m_txtRmbCost.text = string.Format("¥ {0}", _shopCfg.Price);
|
|
|
// _ui.m_txtRmbCost.SetVar("value", _shopCfg.price.ToString()).FlushVars();
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
_ui.m_comCost.target.visible = true;
|
|
|
_ui.m_txtRmbCost.visible = false;
|
|
|
- ItemUtil.UpdateItemNeedNum(_ui.m_comCost.target, _shopCfg.costId, (int)_buyCount * _shopCfg.price);
|
|
|
+ ItemUtil.UpdateItemNeedNum(_ui.m_comCost.target, _shopCfg.costId, (int)_buyCount * _shopCfg.Price);
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -210,8 +210,8 @@ namespace GFGGame
|
|
|
{
|
|
|
costId = cfg.oldSeasonCostId;
|
|
|
}
|
|
|
- if (costId == ConstItemID.ARENA_PAST_COST && ItemDataManager.GetItemNum(costId) < cfg.price
|
|
|
- && ItemDataManager.GetItemNum(costId) + ItemDataManager.GetItemNum(ConstItemID.ARENA_CUR_COST) >= cfg.price)
|
|
|
+ if (costId == ConstItemID.ARENA_PAST_COST && ItemDataManager.GetItemNum(costId) < cfg.Price
|
|
|
+ && ItemDataManager.GetItemNum(costId) + ItemDataManager.GetItemNum(ConstItemID.ARENA_CUR_COST) >= cfg.Price)
|
|
|
{
|
|
|
string oldSeasonName = ItemCfgArray.Instance.GetCfg(ConstItemID.ARENA_PAST_COST).name;
|
|
|
string curSeasonName = ItemCfgArray.Instance.GetCfg(ConstItemID.ARENA_CUR_COST).name;
|
|
@@ -223,7 +223,7 @@ namespace GFGGame
|
|
|
});
|
|
|
return;
|
|
|
}
|
|
|
- else if (ItemDataManager.GetItemNum(costId) < cfg.price)
|
|
|
+ else if (ItemDataManager.GetItemNum(costId) < cfg.Price)
|
|
|
{
|
|
|
PromptController.Instance.ShowFloatTextPrompt("道具不足");
|
|
|
return;
|