Skip to content

Commit

Permalink
Merge pull request WoWAnalyzer#6661 from emallson/rpglogs-assets
Browse files Browse the repository at this point in the history
switch to assets.rpglogs.com for WoW Icons
  • Loading branch information
emallson authored Feb 26, 2024
2 parents a5be3df + 66a88e2 commit b8ec2ef
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 38 deletions.
2 changes: 1 addition & 1 deletion scripts/talents/generate-talents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ const entryToSpell = (
): GenericTalentInterface => ({
id: entry.spellId!,
name: entry.name!,
icon: entry.icon,
icon: entry.icon.replace(/\.(tga|jpg)$/, ''),
//additional DF tree information
maxRanks: entry.maxRanks,
//reqPoints: classTalent.reqPoints ?? 0,
Expand Down
1 change: 1 addition & 0 deletions src/CHANGELOG.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ import SpellLink from 'interface/SpellLink';

// prettier-ignore
export default [
change(date(2024, 2, 26), 'Switch icon source to the WCL CDN.', emallson),
change(date(2024, 2, 18), <>Fix crash in QualitativePerformance</>, Trevor),
change(date(2024, 2, 17), 'Add a missed realm for Classic.', Putro),
change(date(2024, 2, 7), 'Inspect more stack trace lines for external script sources.', ToppleTheNun),
Expand Down
2 changes: 1 addition & 1 deletion src/analysis/retail/deathknight/blood/modules/Abilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ class Abilities extends CoreAbilities {
timelineSortIndex: 9,
},
{
spell: TALENTS.EMPOWER_RUNE_WEAPON_SHARED_TALENT.id,
spell: SPELLS.EMPOWER_RUNE_WEAPON.id,
category: SPELL_CATEGORY.ROTATIONAL,
//buff spell id later?
enabled: combatant.hasTalent(TALENTS.EMPOWER_RUNE_WEAPON_SHARED_TALENT),
Expand Down
2 changes: 1 addition & 1 deletion src/common/SPELLS/others.ts
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ const spells = {
HEALTHSTONE: {
id: 6262,
name: 'Healthstone',
icon: 'warlock_healthstone',
icon: 'warlock_-healthstone',
},
ANCIENT_REJUVENATION_POTION: {
id: 188018,
Expand Down
2 changes: 1 addition & 1 deletion src/common/SPELLS/warlock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const spells = {
CREATE_HEALTHSTONE: {
id: 6201,
name: 'Create Healthstone',
icon: 'warlock_healthstone',
icon: 'warlock_-healthstone',
},
CREATE_SOULWELL: {
id: 29893,
Expand Down
2 changes: 1 addition & 1 deletion src/common/TALENTS/deathknight.ts
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ const talents = {
definitionIds: [{ id: 101231, specId: 251 }],
},
EMPOWER_RUNE_WEAPON_SHARED_TALENT: {
id: 47568,
id: 392962,
name: 'Empower Rune Weapon',
icon: 'inv_sword_62',
maxRanks: 1,
Expand Down
2 changes: 1 addition & 1 deletion src/common/TALENTS/druid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -840,7 +840,7 @@ const talents = {
MAIM_TALENT: {
id: 22570,
name: 'Maim',
icon: 'ability_druid_mangle.tga',
icon: 'ability_druid_mangle',
maxRanks: 1,
entryIds: [103299],
definitionIds: [{ id: 108304, specId: 102 }],
Expand Down
22 changes: 1 addition & 21 deletions src/interface/BAD_ICONS.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,5 @@
// or https://media-azeroth.cursecdn.com/wow/icons/large/????????.jpg
// some icons have in their corners lighter pixels, might require some photoshop-skills

const BAD_ICONS = [
'spell_deathknight_bloodboil',
'spell_deathknight_butcher2',
'spell_shadow_abominationexplosion',
'talentspec_druid_feral_cat',
'talentspec_druid_feral_bear',
'inv_cosmicvoid_debuff',
'inv_misc_bone_skull_01',
'inv_10_elementalshardfoozles_shadowflame',
'spell_animarevendreth_beam',
'ability_ardenweald_paladin_autumn',
'ability_ardenweald_paladin_spring',
'ability_ardenweald_paladin_summer',
'ability_ardenweald_paladin_winter',
'ability_ardenweald_paladin_winter',
'inv_10_elementalshardfoozles_shadowflame',
'spell_priest_void_flay',
'spell_priest_shadow_mend',
'spell_priest_void_blast',
'inv_axe_2h_fyrakk_d_01_shadowflame',
];
const BAD_ICONS: string[] = [];
export default BAD_ICONS;
12 changes: 2 additions & 10 deletions src/interface/Icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,9 @@ const Icon = ({ icon, className, alt = '', ...others }: IconProps) => {
if (!icon) {
return null;
}
icon = icon.replace('.jpg', '').replace(/-/g, '');
if (icon === 'petbattle_healthdown') {
// Blizzard seems to have forgotten to remove the dash for this one... or something
icon = 'petbattle_health-down';
}
if (icon === 'class_demonhunter') {
// Blizzard seems to have forgotten to remove the dash for this one too
icon = 'class_demon-hunter';
}
icon = icon.replace('.jpg', '');

let baseURL = `//render-us.worldofwarcraft.com/icons/56`;
let baseURL = `https://assets.rpglogs.com/img/warcraft/abilities`;
if (BAD_ICONS.includes(icon)) {
baseURL = `/img/Icons`;
}
Expand Down
2 changes: 1 addition & 1 deletion src/parser/shared/metrics/apl/annotate.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Array [
<img
alt=""
className="icon game "
src="//render-us.worldofwarcraft.com/icons/56/inv_misc_questionmark.jpg"
src="https://assets.rpglogs.com/img/warcraft/abilities/inv_misc_questionmark.jpg"
/>
Unknown spell: 2
Expand Down

0 comments on commit b8ec2ef

Please sign in to comment.