feat: 根据NPC战斗特殊处理解除捕捉限制
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful

This commit is contained in:
xinian
2026-02-26 11:03:47 +08:00
committed by cnb
parent ae22e51868
commit 380796875f

View File

@@ -87,7 +87,8 @@ func (p *Player) GenMonster() {
}
p.Data[i].Lv = 16
p.Data[i].IsCapture = 1 //解除捕捉限制
p.Data[i].IsCapture = handleNPCFightSpecial(p.Data[i].Ext) //解除捕捉限制
}
}
@@ -95,7 +96,7 @@ func (p *Player) GenMonster() {
if cool.Config.ServerInfo.IsVip != 0 { //测试服,百分百异色
p.Data[i].FixSHiny()
} else {
if p.Data[i].IsCapture!=0 && grand.Meet(1, 500) {
if p.Data[i].IsCapture != 0 && grand.Meet(1, 500) {
p.Data[i].RandomByWeightShiny()