diff --git a/services/m=hiscore/helpers.js b/services/m=hiscore/helpers.js
index e7d826b46..1f31e98c8 100644
--- a/services/m=hiscore/helpers.js
+++ b/services/m=hiscore/helpers.js
@@ -73,8 +73,8 @@ hiscores.initalizeRightsideButtons = () => {
document.getElementById("search_rank_submit").addEventListener("click", function (e) {
e.preventDefault();
if (document.getElementById('search_rank').value) {
- hiscores.loadUserTable(defaultTableData[document.getElementById('search_rank').value - 1].username)
- hiscores.setHeadSkillText(defaultTableData[document.getElementById('search_rank').value - 1].username + "'s ");
+ hiscores.loadUserTable(hiscores.defaultTableData[document.getElementById('search_rank').value - 1].username)
+ hiscores.setHeadSkillText(hiscores.defaultTableData[document.getElementById('search_rank').value - 1].username + "'s ");
}
else {
hiscores.loadDefaultHSTable();
@@ -82,7 +82,7 @@ hiscores.initalizeRightsideButtons = () => {
});
}
-hiscores.formatName = (name, aposS = false) => {
+hiscores.formatName = (name, ironStatus = 0, xpRate = 10, aposS = false,) => {
name = name.replaceAll("_", " ");
name = name.replace(/(^\w|\s\w)/g, match => match.toUpperCase()); // Capitalize first letter of each word
if (aposS) {
@@ -93,7 +93,15 @@ hiscores.formatName = (name, aposS = false) => {
}
}
- return name;
+ name = hiscores.getIronIcon(ironStatus) + name;
+ switch (Number(xpRate)) {
+ case 5:
+ return `${name}`
+ case 10:
+ return `${name}`
+ default:
+ return name + ` ${xpRate > 10 ? Math.round(xpRate) : xpRate}x` ;
+ }
}
hiscores.setHeadSkillIcon = (icon) => {
@@ -105,7 +113,7 @@ hiscores.setHeadSkillIcon = (icon) => {
}
hiscores.setHeadSkillText = (text) => {
- document.getElementById("scores_head_skill").innerText = text;
+ document.getElementById("scores_head_skill").innerHTML = text;
}
hiscores.getIronIcon = (ironStatus) => {
@@ -122,4 +130,4 @@ hiscores.getIronIcon = (ironStatus) => {
default:
return "";
}
-}
\ No newline at end of file
+}
diff --git a/services/m=hiscore/hiscores.html b/services/m=hiscore/hiscores.html
index c4345e19d..8f47dea22 100644
--- a/services/m=hiscore/hiscores.html
+++ b/services/m=hiscore/hiscores.html
@@ -155,7 +155,7 @@ English
-
Location: Home >
+
Location: Home >
Hiscores
@@ -614,24 +614,33 @@ English
-
+
-
-
-
- To view personal
- hiscores and compare
- yourself to your friends
-
+
+
+
+
![](../../site/img/osrsimg/ironman.png)
Ironman
+
+
![](../../site/img/osrsimg/ultimateironman.png)
Ultimate Ironman
+
+
![](../../site/img/osrsimg/hcim.png)
Hardcore Ironman
+
+
---
+
+
1x exp rate
+
+
2.5x exp rate
+
+
5x exp rate
+
+ 10x exp rate
+
diff --git a/services/m=hiscore/hiscores.js b/services/m=hiscore/hiscores.js
index 8309242bd..2e4ab53f3 100644
--- a/services/m=hiscore/hiscores.js
+++ b/services/m=hiscore/hiscores.js
@@ -22,7 +22,7 @@ hiscores.populateDefaultHSTable = () => {
row.childNodes[3].replaceWith(document.createElement("td"));
row.childNodes[3].className = "alL";
- row.childNodes[3].innerHTML = `${hiscores.getIronIcon(playerData.iron_mode)}
${playerData ? hiscores.formatName(playerData.username) : ""}`;
+ row.childNodes[3].innerHTML = `
${playerData ? hiscores.formatName(playerData.username, playerData.iron_mode, playerData.exp_multiplier) : ""}`;
row.childNodes[3].addEventListener("click", function (e) {
e.preventDefault();
hiscores.loadUserTable(playerData.username);
@@ -46,7 +46,7 @@ hiscores.loadUserTable = (username) => {
hiscores.tableData = result.skills;
hiscores.tableInfo = result.info;
hiscores.populatePlayerHSTable();
- hiscores.setHeadSkillText(hiscores.formatName(username, true));
+ hiscores.setHeadSkillText(hiscores.formatName(username, 0, result.info.exp_multiplier, true));
})
.catch(error => {
document.getElementById('search_name').style.color = 'red';
@@ -55,7 +55,20 @@ hiscores.loadUserTable = (username) => {
}
hiscores.populatePlayerHSTable = () => {
- hiscores.setHeadSkillIcon(hiscores.tableInfo.iron_mode === "0" ? "Constitution" : "../../site/img/osrsimg/ironman.png");
+ switch (Number(hiscores.tableInfo.iron_mode)) {
+ case 1:
+ hiscores.setHeadSkillIcon("../../site/img/osrsimg/ironman.png");
+ break;
+ case 2:
+ hiscores.setHeadSkillIcon("../../site/img/osrsimg/hcim.png");
+ break;
+ case 3:
+ hiscores.setHeadSkillIcon("../../site/img/osrsimg/ultimateironman.png");
+ break;
+ default:
+ hiscores.setHeadSkillIcon("Constitution");
+ }
+
for (let i = 1; i <= 24; i++) {
row = document.getElementsByClassName(`row row${i}`)[0];
@@ -106,7 +119,7 @@ hiscores.populateSkillHSTable = () => {
row.childNodes[3].replaceWith(document.createElement("td"));
row.childNodes[3].className = "alL";
- row.childNodes[3].innerHTML = `${hiscores.getIronIcon(playerData.iron_mode)}
${playerData ? hiscores.formatName(playerData.username) : ""}`;
+ row.childNodes[3].innerHTML = `
${playerData ? hiscores.formatName(playerData.username, playerData.iron_mode, playerData.exp_multiplier) : ""}`;
row.childNodes[3].addEventListener("click", function (e) {
e.preventDefault();
hiscores.loadUserTable(playerData.username);
diff --git a/site/css/hiscores-17.css b/site/css/hiscores-17.css
index e69043f2b..b6e9c88b1 100644
--- a/site/css/hiscores-17.css
+++ b/site/css/hiscores-17.css
@@ -591,7 +591,7 @@
width: 156px;
height: 505px;
}
- .search_small, .search_large {
+ .search_small, .search_large, .search_custom_large {
margin-bottom: 2px;
width: 156px;
text-align: center;
@@ -601,10 +601,14 @@
background: transparent url(../img/hiscores/search_smalleccb.png?3) repeat-x;
}
.search_large {
- height: 98px;
- background: transparent url(../img/hiscores/search_largeeccb.png?3) repeat-x;
+ height: 98px;
+ background: transparent url(../img/hiscores/search_largeeccb.png?3) repeat-x;
+ }
+ .search_custom_large {
+ height: 130px;
+ background: transparent url(../img/hiscores/search_custom_largeeccb.png?3) repeat-x;
}
- #friends_search {
+ #friends_search {
margin-bottom: 0px;
padding: 0px;
}
diff --git a/site/img/hiscores/search_custom_largeeccb.png b/site/img/hiscores/search_custom_largeeccb.png
new file mode 100644
index 000000000..7f1ec04e9
Binary files /dev/null and b/site/img/hiscores/search_custom_largeeccb.png differ