Skip to content

Commit

Permalink
added icons for world
Browse files Browse the repository at this point in the history
  • Loading branch information
Neryss committed Nov 26, 2022
1 parent fdb6138 commit 2dc6877
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
1 change: 0 additions & 1 deletion commands/mh_rise.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ async function match_found(data, i)
.setColor("#ff0080")
.setTitle(data[i].name)
.addField("Inflicts : ", "(ailments inflicted by the monster)");
// TODO: add monster icon
try {
weakness.setThumbnail("http://neryss.pw/icons/rise-" + data[i].name.toLowerCase().replaceAll(" ", "_") + "-icon.png");
}
Expand Down
15 changes: 6 additions & 9 deletions commands/mhw_search.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,12 @@ function match_found(found, data, i)
.setColor("#ff0080")
.setTitle(data[i].name)
.addField("Inflicts : ", "(ailments inflicted by the monster)");
if (data[i].icon)
{
// TODO add monster icons localy
try {
weakness.setThumbnail("http://neryss.pw/icons/mhw-" + data[i].name.toLowerCase() + "_icon.png");
}
catch (err) {
console.log("no thumbnail found for -" + data[i].name.toLowerCase() + "-!");
}
try {
console.log(data[i].name.toLowerCase());
weakness.setThumbnail("http://neryss.pw/icons/mhw-" + data[i].name.toLowerCase().replaceAll(" ", "_") + "-icon.png");
}
catch (err) {
console.log("no thumbnail found for -" + data[i].name.toLowerCase() + "-!");
}
e_inflicts = data[i].ailments;
for (var j = 0; j < e_inflicts.length; j++)
Expand Down

0 comments on commit 2dc6877

Please sign in to comment.