Embed battle centre in main pages

This commit is contained in:
Cmdr McDonald
2017-03-17 12:07:18 +00:00
parent d60a8f2625
commit 91cab5a4f1
19 changed files with 976 additions and 349 deletions

View File

@@ -182,10 +182,10 @@ export default class Defence extends TranslatedComponent {
if (sys === 0) {
// No system pips so will never recover shields
recover = Math.Inf;
} else {
// Recover remaining shields at the rate of the power distributor's recharge
} else {
// Recover remaining shields at the rate of the power distributor's recharge
recover += remainingShieldToRecover / (sysRechargeRate / 0.6);
}
}
}
// Recharge time is the time taken to go from 50% to 100%
@@ -207,10 +207,10 @@ export default class Defence extends TranslatedComponent {
if (sys === 0) {
// No system pips so will never recharge shields
recharge = Math.Inf;
} else {
// Recharge remaining shields at the rate of the power distributor's recharge
} else {
// Recharge remaining shields at the rate of the power distributor's recharge
recharge += remainingShieldToRecharge / (sysRechargeRate / 0.6);
}
}
}
shield = {