``` refactor(monster): 优化怪物生成逻辑并简化OgreInfo数据结构

This commit is contained in:
1
2025-12-28 14:40:17 +00:00
parent 7e840cbf17
commit 67227f3016
4 changed files with 34 additions and 40 deletions

View File

@@ -165,7 +165,7 @@ func (h Controller) OnPlayerFightNpcMonster(data1 *fight.FightNpcMonsterInboundI
if !p.CanFight() {
return nil, errorcode.ErrorCodes.ErrSystemError
}
refPet := p.OgreInfo.Data[data1.Number]
refPet := p.OgreInfo[data1.Number]
if refPet.Id == 0 {
return nil, errorcode.ErrorCodes.ErrPokemonNotExists