From 2cb9f89cae5f5f01be20d5f20bc3dcdaa66c6249 Mon Sep 17 00:00:00 2001 From: flswld Date: Wed, 24 Apr 2024 18:36:32 +0800 Subject: [PATCH] *** --- gs/game/player_scene.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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)},