https://www.d20pfsrd.com/equipment/d...Energy-Attacks
Half damage, subject to GM discretion.
For the time being, just drag energy damage on twice if it should bypass.
I'm also all ears to suggestions about how I could parse for material (seems nearly impossible to me). Or suggestions about how to make a UI for bypassing the halving.
It would also work to just hold down the keyboard shortcut when dragging the damage instead of having this halving code, but--since the game's default behavior is supposed to be halving--I thought the code should default to that as well.