Skip to content

Commit

Permalink
fix: displayGroupNameの名前取得を簡素にした
Browse files Browse the repository at this point in the history
  • Loading branch information
kuroma6666 committed Oct 14, 2024
1 parent f53aba9 commit 90b34e1
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,9 @@ object AchievementGroupMenuButtons {
.TitleFlags
.addOne(achievement.id)
val displayGroupName =
AchievementGroup.getGroupNameByEntryId(achievement.id) match {
case Some(name) => name
case None => "未実装"
}
AchievementGroup
.getGroupNameByEntryId(achievement.id)
.getOrElse("未実装")
player.sendMessage(
s"[${displayGroupName}]実績No${achievement.id}を解除しました!おめでとうございます!"
)
Expand Down

0 comments on commit 90b34e1

Please sign in to comment.