Fix boss name display. (#2111)

This commit is contained in:
dragon 2023-04-13 12:59:40 +08:00 committed by GitHub
parent 60eb62fa42
commit 4251b53d75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -238,8 +238,10 @@ public class EntityMonster extends GameEntity {
.setPoseId(this.getPoseId()) .setPoseId(this.getPoseId())
.setBlockId(getScene().getId()) .setBlockId(getScene().getId())
.setBornType(MonsterBornType.MONSTER_BORN_TYPE_DEFAULT); .setBornType(MonsterBornType.MONSTER_BORN_TYPE_DEFAULT);
if (metaMonster.special_name_id != 0) {
if (getMonsterData().getDescribeData() != null) { monsterInfo.setTitleId(metaMonster.title_id)
.setSpecialNameId(metaMonster.special_name_id);
} else if (getMonsterData().getDescribeData() != null) {
monsterInfo.setTitleId(getMonsterData().getDescribeData().getTitleId()) monsterInfo.setTitleId(getMonsterData().getDescribeData().getTitleId())
.setSpecialNameId(getMonsterData().getSpecialNameId()); .setSpecialNameId(getMonsterData().getSpecialNameId());