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

@@ -64,7 +64,6 @@ func (p *Player) GenMonster() {
if p.Data[i].ID != 0 {
p.Data[i].Lv = uint32(grand.N(v.MinLevel, v.MaxLevel))
if len(v.RefreshID) == 1 { //说明这里只固定刷一个,概率变尼尔尼奥,不是稀有精灵
@@ -75,8 +74,6 @@ func (p *Player) GenMonster() {
p.Data[i].Ext = 416
}
p.Data[i].Lv = 16
}
}