引导修改
This commit is contained in:
parent
6f6926dd9f
commit
7ec2df8381
|
@ -3097,9 +3097,6 @@ func CSUpdateAttribute(s *netlib.Session, packetId int, data interface{}, sid in
|
||||||
p.GuideData = make(map[int32]int32)
|
p.GuideData = make(map[int32]int32)
|
||||||
}
|
}
|
||||||
stepId := p.GuideStep + 1
|
stepId := p.GuideStep + 1
|
||||||
if msg.GuideId != 1 {
|
|
||||||
stepId = int32(msg.Param[0])
|
|
||||||
}
|
|
||||||
pack := &player_proto.SCUpdateAttribute{
|
pack := &player_proto.SCUpdateAttribute{
|
||||||
OpRetCode: player_proto.OpResultCode_OPRC_Error,
|
OpRetCode: player_proto.OpResultCode_OPRC_Error,
|
||||||
Tp: msg.GetTp(),
|
Tp: msg.GetTp(),
|
||||||
|
@ -3110,6 +3107,9 @@ func CSUpdateAttribute(s *netlib.Session, packetId int, data interface{}, sid in
|
||||||
send := func() {
|
send := func() {
|
||||||
p.SendToClient(int(player_proto.PlayerPacketID_PACKET_SCUpdateAttribute), pack)
|
p.SendToClient(int(player_proto.PlayerPacketID_PACKET_SCUpdateAttribute), pack)
|
||||||
logger.Logger.Tracef("SCUpdateAttribute %v", pack)
|
logger.Logger.Tracef("SCUpdateAttribute %v", pack)
|
||||||
|
if msg.GuideId != 1 {
|
||||||
|
stepId = p.GuideData[msg.GuideId]
|
||||||
|
}
|
||||||
// 日志
|
// 日志
|
||||||
if pack.OpRetCode == player_proto.OpResultCode_OPRC_Sucess {
|
if pack.OpRetCode == player_proto.OpResultCode_OPRC_Sucess {
|
||||||
switch msg.GetTp() {
|
switch msg.GetTp() {
|
||||||
|
|
Loading…
Reference in New Issue