Fixed the core damage bug that caused ships to instagib.
Thanks to Mechanos for helping chaise this bug down.

Edit: Fixed a problem that caused shields to instantly be able to recharge again.
Merge branch 'master' of https://github.com/ludsoe/enviro-addon