``` feat(fight): 添加尼尔尼奥变身逻辑并重构怪物生成模块

This commit is contained in:
1
2025-12-10 13:54:51 +00:00
parent fa9ed83279
commit 04905be3f9
7 changed files with 264 additions and 158 deletions

View File

@@ -162,6 +162,9 @@ func (h Controller) OnPlayerFightNpcMonster(data *fight.FightNpcMonsterInboundIn
return nil, errorcode.ErrorCodes.ErrPokemonNotExists
}
if refpet.Ext != 0 {
refpet.Id = refpet.Ext
}
mo := model.GenPetInfo(
int(refpet.Id), -1,
-1,