mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-10 15:15:34 +00:00
Set initial shield boost correctly
This commit is contained in:
@@ -1114,7 +1114,7 @@ export default class Ship {
|
|||||||
*/
|
*/
|
||||||
recalculateShield() {
|
recalculateShield() {
|
||||||
let shield = 0;
|
let shield = 0;
|
||||||
let shieldBoost = 0;
|
let shieldBoost = 1;
|
||||||
let shieldExplRes = null;
|
let shieldExplRes = null;
|
||||||
let shieldKinRes = null;
|
let shieldKinRes = null;
|
||||||
let shieldThermRes = null;
|
let shieldThermRes = null;
|
||||||
@@ -1130,7 +1130,6 @@ export default class Ship {
|
|||||||
// Shield from boosters
|
// Shield from boosters
|
||||||
for (let slot of this.hardpoints) {
|
for (let slot of this.hardpoints) {
|
||||||
if (slot.m && slot.m.grp == 'sb') {
|
if (slot.m && slot.m.grp == 'sb') {
|
||||||
//shield += baseShield * slot.m.getShieldBoost();
|
|
||||||
shieldBoost += slot.m.getShieldBoost();
|
shieldBoost += slot.m.getShieldBoost();
|
||||||
shieldExplRes *= (1 - slot.m.getExplosiveResistance());
|
shieldExplRes *= (1 - slot.m.getExplosiveResistance());
|
||||||
shieldKinRes *= (1 - slot.m.getKineticResistance());
|
shieldKinRes *= (1 - slot.m.getKineticResistance());
|
||||||
|
|||||||
Reference in New Issue
Block a user