|
|
@ -200,7 +200,7 @@ func (h *ZhgmangGameLogic) handleMockGift(liveRoom *LiveRoom, _ string, content
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
logger.SLog.Debugf("用户 [%s] gift [%s] count [%d]", user.Username, giftType, count)
|
|
|
|
logger.SLog.Debugf("用户 [%s] gift [%s] count [%d]", user.Username, giftType, count)
|
|
|
|
// 禁止 c w s n j
|
|
|
|
// 禁止 w s n j
|
|
|
|
switch giftType {
|
|
|
|
switch giftType {
|
|
|
|
case "lt":
|
|
|
|
case "lt":
|
|
|
|
h.goldSpeedUp(room, user, float64(count)*0.1)
|
|
|
|
h.goldSpeedUp(room, user, float64(count)*0.1)
|
|
|
@ -210,7 +210,7 @@ func (h *ZhgmangGameLogic) handleMockGift(liveRoom *LiveRoom, _ string, content
|
|
|
|
h.randomAddon(room, user, int(count))
|
|
|
|
h.randomAddon(room, user, int(count))
|
|
|
|
case "hb":
|
|
|
|
case "hb":
|
|
|
|
h.redPackAddon(room, user, int(count))
|
|
|
|
h.redPackAddon(room, user, int(count))
|
|
|
|
case "重开":
|
|
|
|
case "ck":
|
|
|
|
room.Broadcast(pb.PushZhgmangGameOver, &pbGameZhgMang.GameOver{
|
|
|
|
room.Broadcast(pb.PushZhgmangGameOver, &pbGameZhgMang.GameOver{
|
|
|
|
User: user,
|
|
|
|
User: user,
|
|
|
|
Team: int32(count),
|
|
|
|
Team: int32(count),
|
|
|
|