|
@@ -101,7 +101,18 @@ namespace GFGGame
|
|
|
long needCount = prayCfg.consumeArr[0][1];
|
|
|
if (type == LeaguePrayType.First && curTimes != 0 && hasCount < needCount || type != LeaguePrayType.First && hasCount < needCount)
|
|
|
{
|
|
|
- PromptController.Instance.ShowFloatTextPrompt("消耗不足");
|
|
|
+ if (prayCfg.consumeArr[0][0] == ConstItemID.GOLD)
|
|
|
+ {
|
|
|
+ ItemUtil.AddGold(0, null, 1);
|
|
|
+ }
|
|
|
+ else if (prayCfg.consumeArr[0][0] == ConstItemID.DIAMOND_RED)
|
|
|
+ {
|
|
|
+ ItemUtil.AddDiamondRed();
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ PromptController.Instance.ShowFloatTextPrompt("消耗不足");
|
|
|
+ }
|
|
|
return;
|
|
|
}
|
|
|
LeagueSproxy.ReqPrayLeague(type).Coroutine();
|