refactor: 修改升级指令为s

main
NorthLan 2 years ago
parent 1b06af241c
commit 42d26f9cc1

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

Loading…
Cancel
Save