Cut down on the stupidity
- gameVerison is now a string instead of a number (that way 2.0 doesn't turn into 2) - Fixed comment history always showing the mod badge. I blame JavaScript for this one.
This commit is contained in:
parent
07e66fec26
commit
6383e6fb65
2 changed files with 3 additions and 3 deletions
|
@ -24,7 +24,7 @@ class Level {
|
|||
this.diamonds = levelInfo[18] < 2 ? 0 : parseInt(levelInfo[18]) + 2
|
||||
this.featured = levelInfo[19] > 0
|
||||
this.epic = levelInfo[42] == 1
|
||||
this.gameVersion = levelInfo[13] > 17 ? levelInfo[13] / 10 : Number('1.' + (levelInfo[13]-1))
|
||||
this.gameVersion = levelInfo[13] > 17 ? (levelInfo[13] / 10).toFixed(1) : '1.' + (levelInfo[13]-1)
|
||||
if (levelInfo[28]) this.uploaded = levelInfo[28] + config.timestampSuffix
|
||||
if (levelInfo[29]) this.updated = levelInfo[29] + config.timestampSuffix
|
||||
this.version = levelInfo[5];
|
||||
|
|
|
@ -211,7 +211,7 @@ fetch(`../api${!history ? window.location.pathname : "/comments/" + lvl.playerID
|
|||
<img class="inline" src="../icon/${userLink}?form=${x.form}" height=21% style="margin-right: 0.8%">
|
||||
<a href=../${x.accountID == "0" ? `search/${x.playerID}?user` : `../profile/${userLink}`}>
|
||||
<h2 class="inline gdButton ${x.accountID == "0" ? "green unregistered" : ""}">${userName}</h2></a>
|
||||
${modNumber ? `<img class="inline" src="../assets/mod${modNumber == 2 ? "-elder" : ""}.png" height=18% style="margin-left: 0.6%;">` : ""}
|
||||
${modNumber > 0 ? `<img class="inline" src="../assets/mod${modNumber == 2 ? "-elder" : ""}.png" height=18% style="margin-left: 0.6%;">` : ""}
|
||||
<p class="commentPercent inline">${x.percent ? x.percent + "%" : ""}</p>
|
||||
|
||||
<div class="commentAlign">
|
||||
|
@ -237,7 +237,7 @@ fetch(`../api${!history ? window.location.pathname : "/comments/" + lvl.playerID
|
|||
<img class="inline" src="../icon/${userLink}?form=${x.form}" height=21% style="margin-right: 0.8%">
|
||||
<a href=../${x.accountID == "0" ? `search/${x.playerID}?user` : `../profile/${userLink}`}>
|
||||
<h2 class="inline gdButton ${x.accountID == "0" ? "green unregistered" : ""}">${userName}</h2></a>
|
||||
${modNumber ? `<img class="inline" src="../assets/mod${modNumber == 2 ? "-elder" : ""}.png" height=18% style="margin-left: 0.6%;">` : ""}
|
||||
${modNumber > 0 ? `<img class="inline" src="../assets/mod${modNumber == 2 ? "-elder" : ""}.png" height=18% style="margin-left: 0.6%;">` : ""}
|
||||
<p class="commentPercent inline">${x.percent ? x.percent + "%" : ""}</p>
|
||||
|
||||
<div class="commentAlign">
|
||||
|
|
Loading…
Add table
Reference in a new issue