编辑文件 fight_boss野怪和地图怪.go
Some checks failed
ci/woodpecker/push/my-first-workflow Pipeline failed

This commit is contained in:
xinian
2026-03-01 08:11:03 +08:00
committed by cnb
parent f434d88f29
commit e7d85133c3

View File

@@ -175,7 +175,7 @@ func (Controller) OnPlayerFightNpcMonster(data1 *fight.FightNpcMonsterInboundInf
p.AddPetExp(foi.Winpet, int64(addexp)) p.AddPetExp(foi.Winpet, int64(addexp))
if monster.IsShiny() && p.CanGetXUAN() { if monster.IsShiny() && p.CanGetXUAN() &&xmlres.PetMAP[int(refref.GeGet()].Type<16{
xuan := 400686 + int64(xmlres.PetMAP[int(refPet.GetID())].Type) xuan := 400686 + int64(xmlres.PetMAP[int(refPet.GetID())].Type)
ok := p.ItemAdd(xuan, 1) ok := p.ItemAdd(xuan, 1)
if ok { if ok {