Skip to content

Commit

Permalink
Merge pull request #801 from project-primera/fix/fix-rating-judge
Browse files Browse the repository at this point in the history
存在しない難易度の判定が間違っている問題を修正
  • Loading branch information
slime-hatena committed Mar 21, 2024
2 parents 7c8405d + 606eb3d commit b51fde4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions OngekiScoreLog/app/Services/OngekiUtility.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,7 @@ public function RateValueFromTitle(string $title, $difficulty, int $technicalSco
throw new \OutOfBoundsException("title: " . $title . " / artist:" . $artist . " / difficulty:" . $difficulty);
}

$difficulty = "lunatic_extra_level";
if(!array_key_exists($difficulty, $this::$MusicList[$title])){
if($this::$MusicList[$title][$difficulty] === null){
// なんか存在しない難易度の定数値取ろうとしてる
// 既に入ってる曲に後からlunatic追加されると起きがち
return 0;
Expand Down

0 comments on commit b51fde4

Please sign in to comment.