投币后向前移动一下

This commit is contained in:
by 2024-09-07 16:22:12 +08:00
parent 7099975e9e
commit d61a153948
3 changed files with 3 additions and 8 deletions

View File

@ -76,6 +76,8 @@ func MSDollMachineoCoinResultHandler(session *netlib.Session, packetId int, data
case 1:
if msg.Result == 1 {
logger.Logger.Tracef("上分成功snid = ", msg.Snid)
//发送向前移动指令
sceneEx.OnPlayerSMPerateOp(p.SnId, int32(sceneEx.machineId), rule.ButtonFront)
} else {
logger.Logger.Tracef("上分失败snid = ", msg.Snid)
}

View File

@ -119,13 +119,6 @@ func SMDollMachinePerateHandler(session *netlib.Session, packetId int, data inte
Process(conn, f1, f2)
case 5:
//投币
/* f1 := []func(){
func() { machinedoll.Coin(conn) },
}
f2 := []func(){
func() {},
}
Process(conn, f1, f2)*/
machinedoll.Coin(conn)
go DollMachineGrabResult(session, conn, msg.Snid, msg.GetId())
}

View File

@ -382,7 +382,7 @@ var data = []byte{
0x65, //0 几币几玩
0x00, //1 几币几玩占用位
0x2D, //2 游戏时间
0x00, //3 出奖模式0 无概率 1 随机模式 2 固定模式 3 冠兴模式
0x01, //3 出奖模式0 无概率 1 随机模式 2 固定模式 3 冠兴模式
0x0F, //4 出奖概率
0x00, //5 出奖概率占用位
0x00, //6 空中抓物 0关闭 1开启