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

This commit is contained in:
xinian
2026-02-16 03:33:41 +08:00
committed by cnb
parent b67dd576e5
commit d58c47fd27
2 changed files with 6 additions and 6 deletions

View File

@@ -201,11 +201,11 @@ func (Controller) OnPlayerFightNpcMonster(data1 *fight.FightNpcMonsterInboundInf
exp := uint32(xmlres.PetMAP[int(monster.ID)].YieldingExp) * monster.Level / 7
addlevel, poolevel := p.CanGetExp()
addexp := uint32(addlevel) * (exp)
poolexp := uint32(poolevel) * (exp)
addexp := gconv.Float32(addlevel * gconv.Float32(exp))
poolexp := gconv.Float32(poolevel) * gconv.Float32((exp))
items := &info.S2C_GET_BOSS_MONSTER{
//EV: 45,
EXP: poolexp,
EXP: uint32(poolexp),
}
p.Info.ExpPool += int64(poolexp + addexp)
p.AddPetExp(foi.Winpet, int64(addexp))