defense gem calculation. Still need to do secondary effects