Added some additional type annotations
Refactored shield resistance calculations
Got basic shield resistance and HP calculations working in UI

This has a bug where the shield resistances don't seem to recalculate
properly.  The armor resistances do recalculate as expected.  I'll have
to dig into it further.