Explorar el Código

【游戏服】修改测试礼物时,礼物价值依照真实效果

大爷 hace 1 año
padre
commit
96babcc90a
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      DotNet/Hotfix/Scenes/Game/Handler/C2G_BattleNotifyHandler.cs

+ 2 - 1
DotNet/Hotfix/Scenes/Game/Handler/C2G_BattleNotifyHandler.cs

@@ -77,6 +77,7 @@ namespace ET.Server
                 else if(funcIndex <= 6 && funcIndex >= 1)
                 {
                     string[] GIFT = { DouyinItem.GiftId_1, DouyinItem.GiftId_10, DouyinItem.GiftId_52, DouyinItem.GiftId_99, DouyinItem.GiftId_199, DouyinItem.GiftId_520 };
+                    int[] GiftValue = { 10, 100, 520, 990, 1990, 5200 };
                     int cnt = 1;
                     switch(funcIndex)
                     {
@@ -88,7 +89,7 @@ namespace ET.Server
                             break;
                     }
 
-                    MessageHelper.SendActor(instanceid, new R2G_LiveGift() { OpenId = randunit.OpenId, RoomId = roomId, NickName = randunit.Name, Url = randunit.Url, GiftId = GIFT[funcIndex-1], GiftNum = cnt, GiftValue = funcIndex * 80 });
+                    MessageHelper.SendActor(instanceid, new R2G_LiveGift() { OpenId = randunit.OpenId, RoomId = roomId, NickName = randunit.Name, Url = randunit.Url, GiftId = GIFT[funcIndex-1], GiftNum = cnt, GiftValue = GiftValue[funcIndex-1] * cnt });
                 }
                 
                 return;