系统优化
This commit is contained in:
parent
cf7401791e
commit
331ec61294
@ -238,6 +238,9 @@ func LimitedTimeEnergyAdd(p *Player) {
|
|||||||
BaseMod := p.PlayMod.getBaseMod()
|
BaseMod := p.PlayMod.getBaseMod()
|
||||||
delta := curtime - BaseMod.GetRecoverTime()
|
delta := curtime - BaseMod.GetRecoverTime()
|
||||||
Recover := userCfg.GetRecover(BaseMod.GetLevel())
|
Recover := userCfg.GetRecover(BaseMod.GetLevel())
|
||||||
|
if Recover <= 0 {
|
||||||
|
return
|
||||||
|
}
|
||||||
Addsta := int(delta) / Recover
|
Addsta := int(delta) / Recover
|
||||||
if Addsta <= 0 {
|
if Addsta <= 0 {
|
||||||
return
|
return
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user