Consider guardian module reinforcement packages when calculation module protection

This commit is contained in:
Felix Linker
2018-09-10 01:00:36 +02:00
parent b419b8b104
commit be3ca23aee
2 changed files with 7 additions and 2 deletions

View File

@@ -585,7 +585,7 @@ export function armourMetrics(ship) {
hullThermDmg = hullThermDmg * (1 - slot.m.getThermalResistance());
hullCausDmg = hullCausDmg * (1 - slot.m.getCausticResistance());
}
if (slot.m && slot.m.grp == 'mrp') {
if (slot.m && (slot.m.grp == 'mrp' || slot.m.grp == 'gmrp')) {
moduleArmour += slot.m.getIntegrity();
moduleProtection = moduleProtection * (1 - slot.m.getProtection());
}