Эх сурвалжийг харах

雅集祈福建议加上获得飘字,比如祈福一次飘字 “获得贡献*50,获得雅集资金*100”

hexiaojie 1 жил өмнө
parent
commit
a41ddd7421

+ 17 - 1
GameClient/Assets/Game/HotUpdate/ServerProxy/LeagueSproxy.cs

@@ -568,7 +568,23 @@ namespace GFGGame
             {
                 if (response.Error == ErrorCode.ERR_Success)
                 {
-                    PromptController.Instance.ShowFloatTextPrompt("祈福完成");
+                    if (response.Contribution > 0)
+                    {
+                        PromptController.Instance.ShowFloatTextPrompt($"获得贡献*{response.Contribution}", MessageType.SUCCESS); 
+                    }
+
+                    if (response.Coin > 0)
+                    {
+                        PromptController.Instance.ShowFloatTextPrompt($"获得雅集资金*{response.Coin}", MessageType.SUCCESS);
+                    }
+                    
+                    foreach (ItemInfoProto itemInfoProto in response.Bonus)
+                    {
+                        ItemCfg itemCfg = ItemCfgArray.Instance.GetCfg(itemInfoProto.ConfigId);
+                        if (itemCfg == null) continue;
+                       
+                        PromptController.Instance.ShowFloatTextPrompt($"获得{itemCfg.name}*{itemInfoProto.Count}", MessageType.SUCCESS);
+                    }
                     EventAgent.DispatchEvent(ConstMessage.RED_CHANGE);
                     return true;
                 }