Compare commits
No commits in common. "ac608b4a44337461de87507c98c5cd88d5d2840a" and "b9191e05380e3c838033cbeb558de57761e1015a" have entirely different histories.
ac608b4a44
...
b9191e0538
|
@ -529,7 +529,7 @@ func (this *PlayGame) OnPlayerOp(s *base.Scene, p *base.Player, opcode int, para
|
||||||
case rule.ClawDollPlayerOpGo:
|
case rule.ClawDollPlayerOpGo:
|
||||||
|
|
||||||
pack := &machine.SMDollMachineGrab{
|
pack := &machine.SMDollMachineGrab{
|
||||||
Snid: proto.Int32(p.SnId),
|
Snid: proto.Int32(playerEx.SnId),
|
||||||
Id: proto.Int32(int32(sceneEx.machineId)),
|
Id: proto.Int32(int32(sceneEx.machineId)),
|
||||||
TypeId: proto.Int32(int32(1)),
|
TypeId: proto.Int32(int32(1)),
|
||||||
}
|
}
|
||||||
|
@ -537,14 +537,6 @@ func (this *PlayGame) OnPlayerOp(s *base.Scene, p *base.Player, opcode int, para
|
||||||
sceneEx.SendToMachine(int(machine.DollMachinePacketID_PACKET_SMDollMachineGrab), pack)
|
sceneEx.SendToMachine(int(machine.DollMachinePacketID_PACKET_SMDollMachineGrab), pack)
|
||||||
case rule.ClawDollPlayerOpMove:
|
case rule.ClawDollPlayerOpMove:
|
||||||
|
|
||||||
// 1-前 2-后 3-左 4-右 5-投币
|
|
||||||
pack := &machine.SMDollMachineoPerate{
|
|
||||||
Snid: proto.Int32(p.SnId),
|
|
||||||
Id: proto.Int32(int32(sceneEx.machineId)),
|
|
||||||
Perate: proto.Int32(int32(params[0])),
|
|
||||||
}
|
|
||||||
|
|
||||||
sceneEx.SendToMachine(int(machine.DollMachinePacketID_PACKET_SMDollMachinePerate), pack)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return false
|
return false
|
||||||
|
|
|
@ -19,7 +19,6 @@ import (
|
||||||
|
|
||||||
// game
|
// game
|
||||||
_ "mongo.games.com/game/gamesrv/chess"
|
_ "mongo.games.com/game/gamesrv/chess"
|
||||||
_ "mongo.games.com/game/gamesrv/clawdoll"
|
|
||||||
_ "mongo.games.com/game/gamesrv/fishing"
|
_ "mongo.games.com/game/gamesrv/fishing"
|
||||||
_ "mongo.games.com/game/gamesrv/smallrocket"
|
_ "mongo.games.com/game/gamesrv/smallrocket"
|
||||||
_ "mongo.games.com/game/gamesrv/thirteen"
|
_ "mongo.games.com/game/gamesrv/thirteen"
|
||||||
|
|
Loading…
Reference in New Issue