What's the difference between Energy Weapon (Item flag) and Energy Weaponry (Damage Flag)?

OrangeBurner

Well-Known Member
Mar 13, 2022
305
72
Example - Heavy Plasma Caster.png

While I know that Energy Weaponry is used for certain abilities (like: Overcharge, Linked Emitters, etc.) and Energy Weapon seems to be just a cosmetic flag.

Are they different checks for the item flag over the damage flag (like how the item flag 'Pistol' determines the small icon in the inventory)?
Because the Energy Weapon item flag seems to go pretty much unused in the code I've seen (and the code that does also checks for the damage flag, for example: hasRangedEnergyWeapon() in creature.js checks for if the weapon has either the item flag or the damage flag).

Because I was wondering what's the point of Energy Weapon if Energy Weaponry exists because even the codex's entries say basically the same thing.
And all the other cosmetic item flags don't share a similar damage flag.

Codex Entries:
Energy Weaponry (Damage Flag)
Energy Weapon - Damage Flag.png

Energy Weapon (Item Flag)
Energy Weapon - Special Flag.png


Might also be a good time to mention that the Sunsetter doesn't have the item flag but does have the damage flag.
Sunsetter - Lacking Item Flag.png