mirror of
https://github.com/magefree/mage.git
synced 2025-12-24 20:41:58 -08:00
comment fix
This commit is contained in:
parent
7b48e9e0bf
commit
18b7b8c514
1 changed files with 2 additions and 1 deletions
|
|
@ -115,7 +115,8 @@ public class CardsStorage {
|
|||
if (ratings.containsKey(card.getName())) {
|
||||
int r = ratings.get(card.getName());
|
||||
float f = 10.0f * (r - min) / (max - min);
|
||||
return (int) Math.round(f); // normalize to [1..10]
|
||||
// normalize to [1..10]
|
||||
return (int) Math.round(f);
|
||||
}
|
||||
return DEFAULT_NOT_RATED_CARD_RATING;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue