Closed shemetz closed 2 months ago
The bow icon is actually my doing and why the NPCs ranged attack icons aren't used, because i replace them with it, otherwise all NPC strikes would be the "claw" icon.
If you compile me a mapping of attacks/images then yes, i guess i could implement it.
// These are the 50 most common attack names for NPC actors; together they cover about 70% of all attacks, out of ~1000 unique names.
const iconsForCommonAttacks = {
"Jaws": "icons/creatures/abilities/mouth-teeth-long-red.webp",
"Claw": "icons/creatures/claws/claw-curved-jagged-gray.webp",
"Fist": "icons/skills/melee/unarmed-punch-fist.webp",
"Dagger": "icons/weapons/daggers/dagger-straight-blue.webp",
"Tail": "icons/creatures/abilities/tail-swipe-green.webp",
"Shortsword": "icons/weapons/swords/sword-guard-purple.webp",
"Fangs": "icons/creatures/abilities/mouth-teeth-sharp.webp",
"Spear": "icons/weapons/polearms/spear-flared-steel.webp",
"Staff": "icons/weapons/staves/staff-simple.webp",
"Shortbow": "icons/weapons/bows/shortbow-leather.webp",
"Beak": "icons/commodities/bones/beak-hooked-red.webp",
"Tentacle": "icons/creatures/tentacles/tentacles-octopus-black-pink.webp",
"Club": "icons/weapons/clubs/club-banded-brown.webp",
"Longsword": "icons/weapons/swords/sword-guard-blue.webp",
"Rock": "icons/commodities/stone/boulder-grey.webp",
"Wing": "icons/commodities/biological/wing-lizard-pink-purple.webp",
"Hoof": "icons/commodities/biological/foot-black-grey.webp",
"Composite Shortbow": "icons/weapons/bows/shortbow-recurve-bone.webp",
"Talon": "icons/creatures/claws/claw-talons-glowing-orange.webp",
"Composite Longbow": "icons/weapons/bows/shortbow-recurve-bone.webp",
"Javelin": "icons/weapons/polearms/javelin.webp",
"Foot": "icons/commodities/claws/claw-blue-grey.webp",
"Rapier": "systems/pf2e/icons/equipment/weapons/rapier.webp",
"Hatchet": "icons/weapons/axes/axe-broad-black.webp",
"Crossbow": "icons/weapons/crossbows/crossbow-purple.webp",
"Horn": "icons/creatures/mammals/beast-horned-scaled-glowing-orange.webp",
"Bite": "icons/creatures/abilities/mouth-teeth-crooked-blue.webp",
"Scimitar": "icons/weapons/swords/scimitar-worn-blue.webp",
"Hand Crossbow": "icons/weapons/crossbows/handcrossbow-black.webp",
"Pseudopod": "icons/commodities/biological/tongue-violet.webp",
"Mandibles": "icons/commodities/biological/mouth-pincer-brown.webp",
"Trident": "icons/weapons/polearms/trident-silver-blue.webp",
"Greataxe": "icons/weapons/axes/axe-double-engraved.webp",
"Stinger": "icons/creatures/abilities/stinger-poison-scorpion-brown.webp",
"Claws": "icons/creatures/claws/claw-curved-jagged-gray.webp",
"Greatsword": "icons/weapons/swords/greatsword-crossguard-silver.webp",
"Sling": "icons/weapons/slings/slingshot-wood.webp",
"Tongue": "icons/commodities/biological/tongue-pink.webp",
"Horns": "icons/creatures/mammals/beast-horned-scaled-glowing-orange.webp",
"Light Hammer": "icons/weapons/hammers/shorthammer-embossed-white.webp",
"Kukri": "icons/weapons/daggers/dagger-bone-worn-black.webp",
"Sap": "icons/weapons/clubs/club-baton-brown.webp",
"Warhammer": "icons/weapons/hammers/hammer-war-rounding.webp",
"Sickle": "icons/tools/hand/sickle-steel-grey.webp",
"Ghostly Hand": "icons/magic/death/hand-withered-gray.webp",
"Tendril": "icons/creatures/tentacles/tentacle-earth-green.webp",
"Longspear": "icons/weapons/polearms/spear-simple-engraved.webp",
"Battle Axe": "icons/weapons/axes/axe-battle-black.webp",
"Branch": "icons/magic/nature/root-vine-leaves-green.webp",
"Glaive": "icons/weapons/polearms/glaive-simple.webp",
}
The above should account for 71% of the exact matches for attack names; You can get an extra 5% by making it string inclusion matching (e.g. applying the contained word for Bo Staff, Heavy Crossbow, Snake Fangs, Nightmare tendril, Stone Fist, etc.... but they'll be less correct, see e.g. Stone Fist)
gonna have to use slug instead of names because of localization.
Ah, sure, here you go then:
// These are the 50 most common attack names (slugs) for NPC actors; together they cover about 70% of all attacks, out of ~1000 unique names.
const iconsForCommonAttacks = {
"jaws": "icons/creatures/abilities/mouth-teeth-long-red.webp", // Jaws
"claw": "icons/creatures/claws/claw-curved-jagged-gray.webp", // Claw
"fist": "icons/skills/melee/unarmed-punch-fist.webp", // Fist
"dagger": "icons/weapons/daggers/dagger-straight-blue.webp", // Dagger
"tail": "icons/creatures/abilities/tail-swipe-green.webp", // Tail
"shortsword": "icons/weapons/swords/sword-guard-purple.webp", // Shortsword
"fangs": "icons/creatures/abilities/mouth-teeth-sharp.webp", // Fangs
"spear": "icons/weapons/polearms/spear-flared-steel.webp", // Spear
"staff": "icons/weapons/staves/staff-simple.webp", // Staff
"shortbow": "icons/weapons/bows/shortbow-leather.webp", // Shortbow
"beak": "icons/commodities/bones/beak-hooked-red.webp", // Beak
"tentacle": "icons/creatures/tentacles/tentacles-octopus-black-pink.webp", // Tentacle
"club": "icons/weapons/clubs/club-banded-brown.webp", // Club
"longsword": "icons/weapons/swords/sword-guard-blue.webp", // Longsword
"rock": "icons/commodities/stone/boulder-grey.webp", // Rock
"wing": "icons/commodities/biological/wing-lizard-pink-purple.webp", // Wing
"hoof": "icons/commodities/biological/foot-black-grey.webp", // Hoof
"composite-shortbow": "icons/weapons/bows/shortbow-recurve-bone.webp", // Composite Shortbow
"talon": "icons/creatures/claws/claw-talons-glowing-orange.webp", // Talon
"composite-longbow": "icons/weapons/bows/shortbow-recurve-bone.webp", // Composite Longbow
"javelin": "icons/weapons/polearms/javelin.webp", // Javelin
"foot": "icons/commodities/claws/claw-blue-grey.webp", // Foot
"rapier": "systems/pf2e/icons/equipment/weapons/rapier.webp", // Rapier
"hatchet": "icons/weapons/axes/axe-broad-black.webp", // Hatchet
"crossbow": "icons/weapons/crossbows/crossbow-purple.webp", // Crossbow
"horn": "icons/creatures/mammals/beast-horned-scaled-glowing-orange.webp", // Horn
"bite": "icons/creatures/abilities/mouth-teeth-crooked-blue.webp", // Bite
"scimitar": "icons/weapons/swords/scimitar-worn-blue.webp", // Scimitar
"hand-crossbow": "icons/weapons/crossbows/handcrossbow-black.webp", // Hand Crossbow
"pseudopod": "icons/commodities/biological/tongue-violet.webp", // Pseudopod
"mandibles": "icons/commodities/biological/mouth-pincer-brown.webp", // Mandibles
"trident": "icons/weapons/polearms/trident-silver-blue.webp", // Trident
"greataxe": "icons/weapons/axes/axe-double-engraved.webp", // Greataxe
"stinger": "icons/creatures/abilities/stinger-poison-scorpion-brown.webp", // Stinger
"claws": "icons/creatures/claws/claw-curved-jagged-gray.webp", // Claws
"greatsword": "icons/weapons/swords/greatsword-crossguard-silver.webp", // Greatsword
"sling": "icons/weapons/slings/slingshot-wood.webp", // Sling
"tongue": "icons/commodities/biological/tongue-pink.webp", // Tongue
"horns": "icons/creatures/mammals/beast-horned-scaled-glowing-orange.webp", // Horns
"light-hammer": "icons/weapons/hammers/shorthammer-embossed-white.webp", // Light Hammer
"kukri": "icons/weapons/daggers/dagger-bone-worn-black.webp", // Kukri
"sap": "icons/weapons/clubs/club-baton-brown.webp", // Sap
"warhammer": "icons/weapons/hammers/hammer-war-rounding.webp", // Warhammer
"sickle": "icons/tools/hand/sickle-steel-grey.webp", // Sickle
"ghostly-hand": "icons/magic/death/hand-withered-gray.webp", // Ghostly Hand
"tendril": "icons/creatures/tentacles/tentacle-earth-green.webp", // Tendril
"longspear": "icons/weapons/polearms/spear-simple-engraved.webp", // Longspear
"battle-axe": "icons/weapons/axes/axe-battle-black.webp", // Battle Axe
"branch": "icons/magic/nature/root-vine-leaves-green.webp", // Branch
"glaive": "icons/weapons/polearms/glaive-simple.webp", // Glaive
}
BTW, I tried to make all of them use the core Foundry icons rather than PF2E icons, because the PF2E icons have lower resolution and look a bit pixelated and blurry when scaled up from the size of a thumbnail to the size of a shortcut icon. (the only exception is Rapier, for which I didn't find any suitable icon).
If you don't care about bloat, I've got another two hundred weapons that my script matched an image for (including lower res images), making up another 8% of attacks:
const extraIconsForWeapons = {
'bastard-sword': 'icons/weapons/swords/sword-guard.webp',
'dart': 'systems/pf2e/icons/equipment/weapons/dart.webp',
'halberd': 'systems/pf2e/icons/equipment/weapons/halberd.webp',
'falchion': 'icons/weapons/swords/scimitar-guard-wood.webp',
'shuriken': 'systems/pf2e/icons/equipment/weapons/shuriken.webp',
'greatclub': 'systems/pf2e/icons/equipment/weapons/greatclub.webp',
'bo-staff': 'icons/weapons/staves/staff-simple-gold.webp',
'scythe': 'systems/pf2e/icons/equipment/weapons/scythe.webp',
'heavy-crossbow': 'icons/weapons/crossbows/crossbow-simple-black.webp',
'whip': 'systems/pf2e/icons/equipment/weapons/whip.webp',
'morningstar': 'systems/pf2e/icons/equipment/weapons/morningstar.webp',
'longbow': 'icons/weapons/bows/longbow-recurve-leather-brown.webp',
'maul': 'icons/weapons/hammers/hammer-double-steel-embossed.webp',
'aldori-dueling-sword': 'icons/weapons/swords/sword-guard-gold-red.webp',
'spiked-chain': 'systems/pf2e/icons/equipment/weapons/spiked-chain.webp',
'mace': 'icons/weapons/maces/mace-flanged-steel.webp',
'gauntlet': 'icons/equipment/hand/gauntlet-tooled-steel.webp',
'blowgun': 'systems/pf2e/icons/equipment/weapons/blowgun.webp',
'flail': 'icons/weapons/maces/flail-ball-grey.webp',
'pick': 'icons/weapons/axes/pickaxe-iron-green.webp',
'ranseur': 'icons/weapons/polearms/trident-curved-steel.webp',
'lance': 'systems/pf2e/icons/equipment/weapons/lance.webp',
'light-mace': 'icons/weapons/maces/mace-round-steel.webp',
'alchemists-fire-lesser': 'systems/pf2e/icons/equipment/alchemical-items/alchemical-bombs/alchemists-fire.webp',
'dogslicer': 'systems/pf2e/icons/equipment/weapons/dogslicer.webp',
'aklys': 'icons/weapons/maces/mace-studded-steel.webp',
'war-razor': 'systems/pf2e/icons/equipment/weapons/war-razor.webp',
'alchemists-fire-moderate': 'systems/pf2e/icons/equipment/alchemical-items/alchemical-bombs/alchemists-fire.webp',
'spiked-gauntlet': 'systems/pf2e/icons/equipment/weapons/spiked-gauntlet.webp',
'starknife': 'systems/pf2e/icons/equipment/weapons/starknife.webp',
'greatpick': 'systems/pf2e/icons/equipment/weapons/greatpick.webp',
'acid-flask-moderate': 'systems/pf2e/icons/equipment/alchemical-items/alchemical-bombs/acid-flask.webp',
'flintlock-pistol': 'icons/weapons/guns/gun-pistol-flintlock-metal.webp',
'dueling-pistol': 'systems/pf2e/icons/equipment/weapons/dueling-pistol.webp',
'ogre-hook': 'systems/pf2e/icons/equipment/weapons/ogre-hook.webp',
'sawtooth-saber': 'systems/pf2e/icons/equipment/weapons/sawtooth-saber.webp',
'war-flail': 'icons/weapons/maces/flail-studded-grey.webp',
'shield-spikes': 'systems/pf2e/icons/equipment/weapons/shield-spikes.webp',
'main-gauche': 'systems/pf2e/icons/equipment/weapons/main-gauche.webp',
'guisarme': 'systems/pf2e/icons/equipment/weapons/guisarme.webp',
'bola': 'icons/weapons/thrown/bolas-stone.webp',
'orc-knuckle-dagger': 'systems/pf2e/icons/equipment/weapons/orc-knuckle-dagger.webp',
'elven-curve-blade': 'systems/pf2e/icons/equipment/weapons/elven-curve-blade.webp',
'rhoka-sword': 'systems/pf2e/icons/equipment/weapons/rhoka-sword.webp',
'shield-boss': 'systems/pf2e/icons/equipment/weapons/shield-boss.webp',
'katana': 'systems/pf2e/icons/equipment/weapons/katana.webp',
'temple-sword': 'systems/pf2e/icons/equipment/weapons/temple-sword.webp',
'bayonet': 'systems/pf2e/icons/equipment/weapons/bayonet.webp',
'light-pick': 'systems/pf2e/icons/equipment/weapons/light-pick.webp',
'halfling-sling-staff': 'systems/pf2e/icons/equipment/weapons/halfling-sling-staff.webp',
'clan-dagger': 'systems/pf2e/icons/equipment/weapons/clan-dagger.webp',
'katar': 'icons/weapons/fist/fist-katar-gold.webp',
'machete': 'systems/pf2e/icons/equipment/weapons/machete.webp',
'filchers-fork': 'systems/pf2e/icons/equipment/weapons/filchers-fork.webp',
'flintlock-musket': 'systems/pf2e/icons/equipment/weapons/flintlock-musket.webp',
'orc-necksplitter': 'icons/weapons/axes/axe-battle-heavy-jagged.webp',
'sword-cane': 'systems/pf2e/icons/equipment/weapons/sword-cane.webp',
'elven-branched-spear': 'icons/weapons/polearms/spear-ornate-gold.webp',
'mambele': 'systems/pf2e/icons/equipment/weapons/mambele.webp',
'flying-talon': 'systems/pf2e/icons/equipment/weapons/flying-talon.webp',
'repeating-hand-crossbow': 'systems/pf2e/icons/equipment/weapons/repeating-hand-crossbow.webp',
'gaff': 'systems/pf2e/icons/equipment/weapons/gaff.webp',
'tengu-gale-blade': 'systems/pf2e/icons/equipment/weapons/tengu-gale-blade.webp',
'acid-flask-lesser': 'systems/pf2e/icons/equipment/alchemical-items/alchemical-bombs/acid-flask.webp',
'frost-vial-moderate': 'systems/pf2e/icons/equipment/alchemical-items/alchemical-bombs/frost-vial.webp',
'tamchal-chakram': 'systems/pf2e/icons/equipment/weapons/tamchal-chakram.webp',
'soul-chain': 'systems/pf2e/icons/equipment/weapons/specific-magic-weapons/soul-chain.webp',
'nightmare-cudgel': 'systems/pf2e/icons/equipment/weapons/specific-magic-weapons/nightmare-cudgel.webp',
'khopesh': 'systems/pf2e/icons/equipment/weapons/khopesh.webp',
'dragon-mouth-pistol': 'icons/weapons/guns/gun-pistol-wood.webp',
'naginata': 'systems/pf2e/icons/equipment/weapons/naginata.webp',
'hook-sword': 'systems/pf2e/icons/equipment/weapons/hook-sword.webp',
'fighting-fan': 'icons/commodities/materials/material-feathers-violet.webp',
'sai': 'systems/pf2e/icons/equipment/weapons/sai.webp',
'butterfly-sword': 'icons/weapons/swords/scimitar-guard.webp',
'icicle': 'icons/magic/water/projectile-arrow-ice-gray-blue.webp',
'little-love': 'systems/pf2e/icons/equipment/weapons/dagger.webp',
'devils-trident': 'systems/pf2e/icons/equipment/weapons/trident.webp',
'holy-water': 'systems/pf2e/icons/equipment/consumables/other-consumables/holy-water.webp',
'knuckle-duster': 'icons/weapons/fist/fist-knuckles-brass.webp',
'jax': 'systems/pf2e/icons/equipment/weapons/piercing-wind.webp',
'dwarven-scattergun': 'icons/weapons/guns/gun-blunderbuss-bronze.webp',
'jezail': 'icons/weapons/guns/rifle-brown.webp',
'cane-pistol': 'systems/pf2e/icons/equipment/weapons/cane-pistol.webp',
'mace-multipistol': 'systems/pf2e/icons/equipment/weapons/mace-multipistol.webp',
'blackaxe': 'systems/pf2e/icons/equipment/artifacts/blackaxe.webp',
'horsechopper': 'systems/pf2e/icons/equipment/weapons/horsechopper.webp',
'rope-dart': 'icons/weapons/thrown/dagger-ringed-steel.webp',
'bloodletting-kukri': 'systems/pf2e/icons/equipment/weapons/specific-magic-weapons/bloodletting-kukri.webp',
'retribution-axe': 'systems/pf2e/icons/equipment/weapons/specific-magic-weapons/retribution-axe.webp',
'wish-knife': 'icons/weapons/daggers/dagger-curved-purple.webp',
'double-barreled-pistol': 'systems/pf2e/icons/equipment/weapons/double-barreled-pistol.webp',
'boarding-pike': 'icons/weapons/polearms/spear-hooked-spike.webp',
'vexing-vapor-moderate': 'systems/pf2e/icons/equipment/alchemical-items/alchemical-bombs/vexing-vapor.webp',
'chakri': 'systems/pf2e/icons/equipment/weapons/chakri.webp',
'visap': 'icons/weapons/daggers/dagger-double-black.webp',
'gun-sword': 'systems/pf2e/icons/equipment/weapons/gun-sword.webp',
'alchemists-fire-greater': 'systems/pf2e/icons/equipment/alchemical-items/alchemical-bombs/alchemists-fire.webp',
'fiends-hunger': 'icons/weapons/daggers/dagger-straight-blue.webp',
'fighters-fork': 'systems/pf2e/icons/equipment/weapons/specific-magic-weapons/fighters-fork.webp',
'scorpion-whip': 'systems/pf2e/icons/equipment/weapons/scorpion-whip.webp',
'spike-launcher': 'systems/pf2e/icons/default-icons/weapon.svg',
'shauth-lash': 'systems/pf2e/icons/equipment/weapons/shauth-lash.webp',
'shauth-blade': 'systems/pf2e/icons/equipment/weapons/shauth-blade.webp',
'battle-lute': 'icons/tools/instruments/lute-gold-brown.webp',
'staff-of-fire': 'systems/pf2e/icons/equipment/staves/staff-of-fire.webp',
'verdant-staff': 'icons/weapons/staves/staff-nature-spiral.webp',
'cinderclaw-gauntlet': 'icons/equipment/hand/gauntlet-cuffed-steel-blue.webp',
'poisoners-staff': 'systems/pf2e/icons/equipment/staves/poisoners-staff.webp',
'blade-of-the-rabbit-prince': 'systems/pf2e/icons/equipment/weapons/specific-magic-weapons/blade-of-the-rabbit-prince.webp',
'scourge': 'systems/pf2e/icons/equipment/weapons/scourge.webp',
'cane-of-the-maelstrom': 'systems/pf2e/icons/equipment/staves/cane-of-the-maelstrom.webp',
'gearblade': 'systems/pf2e/icons/equipment/weapons/greatclub.webp',
'bladed-scarf': 'systems/pf2e/icons/equipment/weapons/bladed-scarf.webp',
'shadows-heart': 'systems/pf2e/icons/equipment/weapons/kukri.webp',
'double-barreled-musket': 'icons/weapons/guns/gun-double-barrel.webp',
'boomerang': 'systems/pf2e/icons/equipment/weapons/boomerang.webp',
'ankylostar': 'systems/pf2e/icons/equipment/weapons/specific-magic-weapons/ankylostar.webp',
'stoneraiser-javelin': 'systems/pf2e/icons/equipment/weapons/specific-magic-weapons/stoneraiser-javelin.webp',
'whip-of-compliance': 'systems/pf2e/icons/equipment/weapons/specific-magic-weapons/whip-of-compliance.webp',
'alchemical-crossbow': 'icons/weapons/crossbows/handcrossbow-green.webp',
'feng-huo-lun': 'systems/pf2e/icons/default-icons/weapon.svg',
'khakkhara': 'systems/pf2e/icons/equipment/weapons/khakkhara.webp',
'harpoon': 'icons/weapons/polearms/spear-simple-barbed.webp',
'spore-sap': 'systems/pf2e/icons/equipment/weapons/specific-magic-weapons/spore-sap.webp',
'staff-of-power': 'systems/pf2e/icons/equipment/staves/staff-of-power.webp',
'hex-blaster': 'systems/pf2e/icons/equipment/weapons/specific-magic-weapons/hex-blaster.webp',
'redeemers-pistol': 'systems/pf2e/icons/equipment/weapons/specific-magic-weapons/redeemers-pistol.webp',
'reinforced-stock': 'systems/pf2e/icons/equipment/weapons/reinforced-stock.webp',
'clan-pistol': 'systems/pf2e/icons/equipment/weapons/clan-pistol.webp',
'slide-pistol': 'systems/pf2e/icons/equipment/weapons/slide-pistol.webp',
'coat-pistol': 'icons/weapons/guns/gun-pistol-flintlock.webp',
'repeating-crossbow': 'systems/pf2e/icons/equipment/weapons/repeating-crossbow.webp',
'ovinrbaane': 'icons/skills/melee/blade-tip-chipped-blood-red.webp',
'oathbow': 'systems/pf2e/icons/equipment/weapons/specific-magic-weapons/oathbow.webp',
'rod-of-razors': 'icons/weapons/polearms/spear-hooked-blue.webp',
'wakizashi': 'systems/pf2e/icons/equipment/weapons/wakizashi.webp',
'frying-pan': 'systems/pf2e/icons/equipment/weapons/frying-pan.webp',
'tetsubo': 'systems/pf2e/icons/equipment/weapons/aklys.webp',
'bottled-lightning-lesser': 'systems/pf2e/icons/equipment/alchemical-items/alchemical-bombs/bottled-lightning.webp',
'blunderbuss': 'icons/weapons/guns/gun-blunderbuss-worn-brown.webp',
'dread-ampoule-greater': 'systems/pf2e/icons/equipment/alchemical-items/alchemical-bombs/dread-ampoule.webp',
'glue-bomb-greater': 'icons/containers/bags/sack-simple-leather-tan.webp',
'mammoth-bow': 'systems/pf2e/icons/equipment/weapons/composite-longbow.webp',
'kusarigama': 'systems/pf2e/icons/equipment/weapons/kama.webp',
'urumi': 'systems/pf2e/icons/equipment/weapons/urumi.webp',
'buzzsaw-axe': 'systems/pf2e/icons/equipment/weapons/specific-magic-weapons/buzzsaw-axe.webp',
'acid-flask-greater': 'systems/pf2e/icons/equipment/alchemical-items/alchemical-bombs/acid-flask.webp',
'staff-of-air-greater': 'icons/weapons/staves/staff-simple.webp',
'repeating-heavy-crossbow': 'systems/pf2e/icons/equipment/weapons/repeating-heavy-crossbow.webp',
'spore-shephards-staff': 'icons/weapons/staves/staff-forest-gold.webp',
'throwing-knife': 'icons/weapons/thrown/dagger-ringed-steel.webp',
'deflecting-branch': 'systems/pf2e/icons/default-icons/weapon.svg',
'habus-cudgel': 'icons/weapons/clubs/club-barbed.webp',
'spellcutter': 'systems/pf2e/icons/equipment/weapons/longsword.webp',
'briar': 'icons/weapons/staves/staff-forest-jewel.webp',
'slime-whip': 'systems/pf2e/icons/equipment/weapons/specific-magic-weapons/slime-whip.webp',
'heartripper-blade': 'systems/pf2e/icons/equipment/weapons/specific-magic-weapons/gloom-blade.webp',
'gloom-blade': 'systems/pf2e/icons/equipment/weapons/specific-magic-weapons/gloom-blade.webp',
'claw-blade': 'systems/pf2e/icons/equipment/weapons/claw-blade.webp',
'shears': 'systems/pf2e/icons/equipment/weapons/shears.webp',
}
It does seem fine at least with the default font-size scaling.
This feature request is not easily implemented, but I think it's pretty valuable, so I'm hoping you consider doing it regardless.
As a GM, I'd really like to know -- at a glance -- which of the attacks does what. Since this HUD uses images instead of text, I'd like the images to at least hint at this information. However, NPC attacks currently have no assigned icons, so they all use the default icon of "claws" for melee or "bow-and-arrow" for ranged.
Here's an example of what shortcuts currently look like, for a sample NPC, Doatara:
These four attacks are shown as three identical "ranged attack" icons and one "melee attack" icon, but the truth is that they're four different things:
And I would much prefer to see this:
systems/pf2e/icons/equipment/alchemical-items/alchemical-bombs/alchemists-fire.webp
(the icon for "Alchemist's Fire (Lesser)" and its other versions)systems/pf2e/icons/equipment/alchemical-items/alchemical-bombs/bottled-lightning.webp
icons/weapons/daggers/dagger-straight-blue.webp
, the icon for "Dagger"icons/weapons/swords/sword-guard-purple.webp
, the icon for "Shortsword"Another example: the Giant Opossum looks like this:
But could look like this, instead:
icons/creatures/claws/claw-curved-jagged-gray.webp
icons/creatures/abilities/mouth-teeth-long-red.webp
icons/creatures/abilities/tail-swipe-green.webp
Why not just edit the NPC sheet and set those as the attacks' icons?
Shouldn't the core PF2E system take care of icons for NPC attacks?
In an ideal world, yes, but... the PF2E system actually almost never uses those icons on NPC attacks. They're not shown on the sheet, nor in the chat card. They're only shown in the attack's Edit dialogue. So, the core system developers don't really have any reasons to bother giving them icons in the first place.
Technically, how should we assign icons to attacks?
I don't need a perfect solution and I'd be happy with a hardcoded solution. I think it would have to be a big hardcoded list that maps attack names to image URLs, and includes the most common ~50 abilities, those that repeat across lots of creatures. The icons would be taken from the PF2E icons and core Foundry icons (usually pf2e for weapons and core for natural attacks).
I would personally be happy to make such a list for you, if you're okay with that!