Changes included:
Warhead code split out of weapon code and refactored.
Warhead functionality now split into several classes, each handling one effect/impact.
Additional custom warheads can now be defined and called via yaml.
Custom warheads inherit the abstract class Warhead,
which provides target check functions.
Custom warheads have to define their own impact functions,
and can also define their own replacement for check
functions.
The onDamaged event handler would still fire after an enemy building had
been captured. Fixed by checking the owner before starting repairs.
Thanks to Microbit for showing me that people actually did that.