驯龙升阶后重置养成属性次数

This commit is contained in:
meixiongfeng 2023-09-14 11:11:28 +08:00
parent 83a5794a4d
commit 4da2453476

View File

@ -109,6 +109,9 @@ func (this *apiComp) Train(session comm.IUserSession, req *pb.DragonTrainReq) (e
dragon.Property["csubtime"] = c.Csubtime
update["property"] = dragon.Property // 更新属性
}
// 升阶后重置养成属性次数
dragon.Play = make(map[int32]*pb.PlayData)
update["play"] = dragon.Play
}
if speed > 0 { // 更新最大速度
dragon.Property["etime"] = speed