驯龙升阶后重置养成属性次数
This commit is contained in:
parent
83a5794a4d
commit
4da2453476
@ -109,6 +109,9 @@ func (this *apiComp) Train(session comm.IUserSession, req *pb.DragonTrainReq) (e
|
|||||||
dragon.Property["csubtime"] = c.Csubtime
|
dragon.Property["csubtime"] = c.Csubtime
|
||||||
update["property"] = dragon.Property // 更新属性
|
update["property"] = dragon.Property // 更新属性
|
||||||
}
|
}
|
||||||
|
// 升阶后重置养成属性次数
|
||||||
|
dragon.Play = make(map[int32]*pb.PlayData)
|
||||||
|
update["play"] = dragon.Play
|
||||||
}
|
}
|
||||||
if speed > 0 { // 更新最大速度
|
if speed > 0 { // 更新最大速度
|
||||||
dragon.Property["etime"] = speed
|
dragon.Property["etime"] = speed
|
||||||
|
Loading…
Reference in New Issue
Block a user