|
|
|
@ -53,7 +53,7 @@ func (h *ZhgmangGameLogic) WithCmdParserLogic(p []cmd.Pattern) LogicOption {
|
|
|
|
|
Alias: []string{"莽"},
|
|
|
|
|
ContentMaxLen: 0,
|
|
|
|
|
}, {
|
|
|
|
|
Prefix: "l",
|
|
|
|
|
Prefix: "s",
|
|
|
|
|
Alias: []string{"升级"},
|
|
|
|
|
ContentMaxLen: 0,
|
|
|
|
|
}, {
|
|
|
|
@ -73,7 +73,7 @@ func (h *ZhgmangGameLogic) WithCmdHandlers() LogicOption {
|
|
|
|
|
logic.RegisterCMDHandler(h.handleJoinGame, "j")
|
|
|
|
|
logic.RegisterCMDHandler(h.handleAddUnit, "c")
|
|
|
|
|
logic.RegisterCMDHandler(h.handleWai, "w")
|
|
|
|
|
logic.RegisterCMDHandler(h.handleLevelUp, "l")
|
|
|
|
|
logic.RegisterCMDHandler(h.handleLevelUp, "s")
|
|
|
|
|
logic.RegisterCMDHandler(h.handleMockGift, "n")
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -197,9 +197,9 @@ func (h *ZhgmangGameLogic) handleMockGift(liveRoom *LiveRoom, _ string, content
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
logger.SLog.Debugf("用户 [%s] gift [%s] count [%d]", user.Username, giftType, count)
|
|
|
|
|
// 禁止 c w l n j
|
|
|
|
|
// 禁止 c w s n j
|
|
|
|
|
switch giftType {
|
|
|
|
|
case "tt":
|
|
|
|
|
case "lt":
|
|
|
|
|
h.goldSpeedUp(room, user, float64(count)*0.1)
|
|
|
|
|
case "qp":
|
|
|
|
|
h.clearScreen(room, user)
|
|
|
|
|