金币消耗

This commit is contained in:
wh_zcy 2023-04-28 18:30:26 +08:00
parent ad76eb3828
commit d08eaf01af

View File

@ -418,7 +418,7 @@ func (this *User) change(session comm.IUserSession, attr string, add int32) (cha
code = pb.ErrorCode_GoldNoEnough
return
}
go this.ModuleRtask.TriggerTask(session.GetUserId(), comm.GettaskParam(comm.Rtype68, add))
go this.ModuleRtask.TriggerTask(session.GetUserId(), comm.GettaskParam(comm.Rtype68, -(add)))
}
change.Gold += int64(add)
case comm.ResExp: