diff --git a/gs/game/player_scene.go b/gs/game/player_scene.go index 6511a93c..ec6ad4a9 100644 --- a/gs/game/player_scene.go +++ b/gs/game/player_scene.go @@ -1273,7 +1273,10 @@ func (g *Game) CreateConfigEntity(scene *Scene, groupId uint32, entityConfig any monster := entityConfig.(*gdconf.Monster) // TODO 怪物等级与世界等级的关联 worldLevel := owner.PropMap[constant.PLAYER_PROP_PLAYER_WORLD_LEVEL] - monsterLevel := uint8(float32(monster.Level) * float32(worldLevel+1) * 0.25) + monsterLevel := uint8(monster.Level) * uint8(worldLevel+1) + if monsterLevel > 100 { + monsterLevel = 100 + } return scene.CreateEntityMonster( &model.Vector{X: float64(monster.Pos.X), Y: float64(monster.Pos.Y), Z: float64(monster.Pos.Z)}, &model.Vector{X: float64(monster.Rot.X), Y: float64(monster.Rot.Y), Z: float64(monster.Rot.Z)},