mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-09 06:43:24 +00:00
Compare commits
5 Commits
7050356bce
...
7e44772f2e
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7e44772f2e | ||
|
|
e90bfe9b68 | ||
|
|
64002e1ae0 | ||
|
|
873dfaa305 | ||
|
|
9e012c1490 |
@@ -286,6 +286,8 @@ export default class AvailableModulesMenu extends TranslatedComponent {
|
||||
// the maximum does not apply
|
||||
} else if (m.experimental && (!mountedModule || !mountedModule.experimental)) {
|
||||
disabled = 4 <= ship.hardpoints.filter(o => o.m && o.m.experimental).length;
|
||||
} else if (m.grp === 'mlc' && (!mountedModule || mountedModule.grp !== 'mlc')) {
|
||||
disabled = 1 <= ship.internal.filter(o => o.m && o.m.grp === 'mlc').length;
|
||||
}
|
||||
let active = mountedModule && mountedModule.id === m.id;
|
||||
let classes = cn(m.name ? 'lc' : 'c', {
|
||||
|
||||
@@ -110,6 +110,7 @@
|
||||
"mc": "Multi-cannon",
|
||||
"axmc": "AX Multi-cannon",
|
||||
"ml": "Mining Laser",
|
||||
"mlc": "Multi Limpet Controller",
|
||||
"mr": "Missile Rack",
|
||||
"axmr": "AX Missile Rack",
|
||||
"mrp": "Module Reinforcement Package",
|
||||
|
||||
@@ -918,8 +918,8 @@ export function _weaponSustainedDps(m, opponent, opponentShields, opponentArmour
|
||||
weapon.effectiveness.shields.total = weapon.effectiveness.shields.range * weapon.effectiveness.shields.sys * weapon.effectiveness.shields.resistance;
|
||||
weapon.effectiveness.armour.total = weapon.effectiveness.armour.range * weapon.effectiveness.armour.resistance * weapon.effectiveness.armour.hardness;
|
||||
|
||||
weapon.effectiveness.shields.dpe = weapon.damage.shields.total / m.getEps();
|
||||
weapon.effectiveness.armour.dpe = weapon.damage.armour.total / m.getEps();
|
||||
weapon.effectiveness.shields.dpe = weapon.damage.shields.total / m.getEps() / m.getSustainedFactor();
|
||||
weapon.effectiveness.armour.dpe = weapon.damage.armour.total / m.getEps() / m.getSustainedFactor();
|
||||
|
||||
|
||||
return weapon;
|
||||
|
||||
Reference in New Issue
Block a user