round soul to integer (compatibility with earlier HK versions)

This commit is contained in:
ReznoRMichael 2021-07-07 23:26:18 +02:00
parent cce9d458e5
commit 50fb58e607
3 changed files with 5 additions and 5 deletions

View file

@ -5134,11 +5134,11 @@ function SingleEntryFill(section, entry) {
span = ["", ""]; span = ["", ""];
Img = soulNormal; Img = soulNormal;
for (var _i = 0, _total = entry.amountTotal / 33; _i < _total; _i++) { for (var _i = 0, _total = Math.round(entry.amountTotal / 33); _i < _total; _i++) {
textSuffix += Img; textSuffix += Img;
} }
textSuffix += "".concat(p, "<sup>(").concat(entry.amountTotal / 33, ")</sup>"); textSuffix += "".concat(p, "<sup>(").concat(Math.round(entry.amountTotal / 33), ")</sup>");
break; break;
case "notches": case "notches":

File diff suppressed because one or more lines are too long

View file

@ -366,11 +366,11 @@ function SingleEntryFill(section, entry) {
span = ["", ""]; span = ["", ""];
Img = soulNormal; Img = soulNormal;
for (let i = 0, total = entry.amountTotal / 33; i < total; i++) { for (let i = 0, total = Math.round(entry.amountTotal / 33); i < total; i++) {
textSuffix += Img; textSuffix += Img;
} }
textSuffix += `${p}<sup>(${entry.amountTotal / 33})</sup>`; textSuffix += `${p}<sup>(${Math.round(entry.amountTotal / 33)})</sup>`;
break; break;