From e357ddf6713413aa04facfd0d7ebff0a0dd516a3 Mon Sep 17 00:00:00 2001 From: wh_zcy Date: Fri, 16 Jun 2023 18:10:24 +0800 Subject: [PATCH] update --- modules/user/module.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/user/module.go b/modules/user/module.go index 668a5bbde..587fe2df6 100644 --- a/modules/user/module.go +++ b/modules/user/module.go @@ -12,7 +12,6 @@ import ( "go_dreamfactory/sys/configure" "go_dreamfactory/sys/db" "go_dreamfactory/utils" - "math" "strings" "sync" "time" @@ -1148,7 +1147,7 @@ func (this *User) ConsumePsAddExp(session comm.IUserSession, ps int) (addExp int return } //体力消耗,增加玩家经验 - addExp = int32(math.Abs(float64(ps))) * ggd.FightPs + addExp = int32(ps) * ggd.FightPs user.Exp += int64(addExp) attrs := make(map[string]int32, 0)