1
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful

This commit is contained in:
xinian
2026-02-18 15:48:52 +08:00
committed by cnb
parent 29d0552b9f
commit 1b6ef07ef8

View File

@@ -2,7 +2,6 @@ package controller
import (
"blazing/common/socket/errorcode"
"blazing/cool"
"sync/atomic"
"blazing/logic/service/fight"
@@ -78,7 +77,8 @@ func (h Controller) ArenaFightOwner(data *fight.ARENA_FIGHT_OWENR, c *player.Pla
}
if foi.Reason == 0 { //正常获胜
addev := int64(int(1) * int(cool.Connected) * int(c.GetSpace().Owner.HostWins) * (int(c.GetSpace().User.Count()) / int(cool.Connected)))
// addev := int64(int(1) * int(cool.Connected) * int(c.GetSpace().Owner.HostWins) * (int(c.GetSpace().User.Count()) / int(cool.Connected)))
addev := int64(int(1) * int(c.GetSpace().Owner.HostWins) * (int(c.GetSpace().User.Count())))
if foi.WinnerId == c.GetInfo().UserID {
c.Info.MaxArenaWins += 1
c.Info.EVPool += addev