Skip to content

Commit

Permalink
fix grade calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
inada-s committed Nov 7, 2020
1 parent c56a939 commit 3e83500
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gdxsv/lbs_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -587,13 +587,13 @@ func decideGrade(winCount, rank int) uint8 {

if 12 <= grade {
if rank <= 5 {
rank = 14 // 1~5 [大将]
grade = 14 // 1~5 [大将]
} else if rank <= 20 {
rank = 13 // 6~20 [中将]
grade = 13 // 6~20 [中将]
} else if rank <= 50 {
rank = 12 // 21~50 [少将]
grade = 12 // 21~50 [少将]
} else {
rank = 11 // 50~ [大佐]
grade = 11 // 50~ [大佐]
}
}

Expand Down

0 comments on commit 3e83500

Please sign in to comment.