Rework per-module resistance calculations

This commit is contained in:
Cmdr McDonald
2016-11-13 13:13:57 +00:00
parent 9556f28ba4
commit 8397d3505b
8 changed files with 94 additions and 6 deletions

View File

@@ -73,6 +73,14 @@ export default class Module {
return result;
}
/**
* Return true if this is a shield generator
* @return {Boolean} if this is a shield generator
*/
isShieldGenerator() {
return (this.grp === 'sg' || this.grp === 'psg' || this.grp === 'bsg');
}
/**
* Get the power generation of this module, taking in to account modifications
* @return {Number} the power generation of this module