Fix ilvl calculation
Empty slots are not ignored for ilvl, the divisor is always fixed at 13.
This commit is contained in:
parent
418ae77035
commit
b3a1cd7e18
1 changed files with 4 additions and 1 deletions
|
@ -265,7 +265,10 @@ class CardCreator {
|
|||
if (cnt == 0)
|
||||
return 0;
|
||||
|
||||
return this.pad(Math.floor(ilvl / cnt), 4);
|
||||
// ilvl division is always out of 13 items
|
||||
// mainhand counts twice if there's no offhand
|
||||
// job stones are ignored
|
||||
return this.pad(Math.floor(ilvl / 13), 4);
|
||||
}
|
||||
|
||||
pad(num, size) {
|
||||
|
|
Loading…
Reference in a new issue