系统优化

This commit is contained in:
hahwu 2025-04-17 10:51:29 +08:00
parent cf7401791e
commit 331ec61294

View File

@ -238,6 +238,9 @@ func LimitedTimeEnergyAdd(p *Player) {
BaseMod := p.PlayMod.getBaseMod()
delta := curtime - BaseMod.GetRecoverTime()
Recover := userCfg.GetRecover(BaseMod.GetLevel())
if Recover <= 0 {
return
}
Addsta := int(delta) / Recover
if Addsta <= 0 {
return