From f1a5b90ca5b196846e2580edfe62b4a896c56446 Mon Sep 17 00:00:00 2001 From: xinian Date: Sun, 1 Mar 2026 08:59:39 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=BC=98=E5=8C=96=E5=AE=A0?= =?UTF-8?q?=E7=89=A9=E7=B1=BB=E5=9E=8B=E5=8F=98=E9=87=8F=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E5=B9=B6=E7=AE=80=E5=8C=96=E6=9D=A1=E4=BB=B6=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- logic/controller/fight_boss野怪和地图怪.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/logic/controller/fight_boss野怪和地图怪.go b/logic/controller/fight_boss野怪和地图怪.go index b99a007a3..787046643 100644 --- a/logic/controller/fight_boss野怪和地图怪.go +++ b/logic/controller/fight_boss野怪和地图怪.go @@ -174,9 +174,9 @@ func (Controller) OnPlayerFightNpcMonster(data1 *fight.FightNpcMonsterInboundInf items.ADDitem(3, uint32(poolexp)) p.AddPetExp(foi.Winpet, int64(addexp)) - - if monster.IsShiny() && p.CanGetXUAN() &&xmlres.PetMAP[int(refPet.GetID())].Type<16{ - xuan := 400686 + int64(xmlres.PetMAP[int(refPet.GetID())].Type) + pettype := int64(xmlres.PetMAP[int(refPet.GetID())].Type) + if monster.IsShiny() && p.CanGetXUAN() && pettype < 16 { + xuan := 400686 + pettype ok := p.ItemAdd(xuan, 1) if ok { items.ADDitem(uint32(xuan), 1)