1
0
mirror of https://github.com/lexogrine/dota2-react-hud.git synced 2026-05-04 04:23:10 +02:00

fixed hero icons and added signature file

This commit is contained in:
Hubert Walczak
2023-06-27 17:04:39 +02:00
parent 45c8fd0310
commit 8766d43d3e
2 changed files with 76 additions and 1 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ export const getAssetURL = (
return `${apiUrl}static/dota2/heroes/animated/${asset.startsWith("npc_dota_hero_")? asset : `npc_dota_hero_${asset}`}.webm`;
}
if (assetType === "heroes_icons") {
return `${apiUrl}static/dota2/heroes/icons/${asset}.png`;
return `${apiUrl}static/dota2/heroes/icons/${asset.replace("npc_dota_hero_", "")}.png`;
}
if (assetType === "items") {
return `${apiUrl}static/dota2/${assetType}/${asset.replace(