This commit is contained in:
wh_zcy 2023-06-16 18:10:24 +08:00
parent ee97d178ca
commit e357ddf671

View File

@ -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)