With all the other mods getting made, I decided I would finally try to make one of my own. The problem is that I have no idea what I'm doing. I read on the Ruleset Reference section of UFOpaedia that damage types other than 0-9 will only affect terrain and not units, so I got the idea to make a Terrain Vaporizer that destroys terrain without damaging humans or aliens.
Here's the code I've got so far:
I'm using the attached sprite for the weapon (yes it's just a TftD rip for now.)
The problem is that, when I enable the ruleset, the weapon doesn't function at all. It doesn't appear for purchase or in New Battle. It
does appear in the in-game UFOpaedia, but trying to access it just causes the game to crash.