Add base resistances to defence summary tooltip

This commit is contained in:
Cmdr McDonald
2016-12-19 17:56:54 +00:00
parent f82122f29f
commit 2e42a328e0
3 changed files with 35 additions and 6 deletions

View File

@@ -295,6 +295,15 @@ export default class Ship {
}
}
/**
* Find the shield generator for this ship
* @return {object} The shield generator module for this ship
*/
findShieldGenerator() {
const slot = this.internal.find(slot => slot.m && ModuleUtils.isShieldGenerator(slot.m.grp));
return slot ? slot.m : undefined;
}
/**
* Serializes the ship to a string
* @return {String} Serialized ship 'code'