feat: 重构怪物生成和NPC战斗处理逻辑
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful

调整怪物等级处理方式,将固定等级逻辑移至GetLevel方法
优化NPC战斗特殊情况的处理流程
This commit is contained in:
xinian
2026-02-26 19:28:02 +08:00
committed by cnb
parent de297c9904
commit 21ae004979
3 changed files with 14 additions and 8 deletions

View File

@@ -140,7 +140,7 @@ func (Controller) OnPlayerFightNpcMonster(data1 *fight.FightNpcMonsterInboundInf
-1,
0, //野怪没特性
int(refPet.Lv),
int(refPet.GetLevel()),
refPet.ShinyInfo, -1)
monster.CatchMap = p.Info.MapID //设置当前地图
if refPet.Ext != 0 {