mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-09 14:45:35 +00:00
Updates for mods UI
This commit is contained in:
@@ -82,13 +82,13 @@ export default class Module {
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the mass of this module, taking in to account modifications
|
||||
* @return {Number} the mass of this module
|
||||
* Get the integrity of this module, taking in to account modifications
|
||||
* @return {Number} the integrity of this module
|
||||
*/
|
||||
getMass() {
|
||||
getIntegrity() {
|
||||
let result = 0;
|
||||
if (this.mass) {
|
||||
result = this.mass;
|
||||
if (this.health) {
|
||||
result = this.health;
|
||||
if (result) {
|
||||
let mult = this.getModValue(3);
|
||||
if (mult) { result = result * (1 + mult); }
|
||||
@@ -98,13 +98,13 @@ export default class Module {
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the integrity of this module, taking in to account modifications
|
||||
* @return {Number} the integrity of this module
|
||||
* Get the mass of this module, taking in to account modifications
|
||||
* @return {Number} the mass of this module
|
||||
*/
|
||||
getIntegrity() {
|
||||
getMass() {
|
||||
let result = 0;
|
||||
if (this.health) {
|
||||
result = this.health;
|
||||
if (this.mass) {
|
||||
result = this.mass;
|
||||
if (result) {
|
||||
let mult = this.getModValue(4);
|
||||
if (mult) { result = result * (1 + mult); }
|
||||
|
||||
Reference in New Issue
Block a user