mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-08 22:33:24 +00:00
Migrate ed-forge API change
This commit is contained in:
@@ -166,7 +166,7 @@ export default class Slot extends TranslatedComponent {
|
||||
*/
|
||||
_getMaxClassLabel() {
|
||||
const { m } = this.props;
|
||||
let size = m.getSize();
|
||||
let size = m.getSizeNum();
|
||||
switch (true) {
|
||||
case m.getSlot() === 'armour':
|
||||
return '';
|
||||
|
||||
@@ -52,13 +52,13 @@ function shipSummary(shipId) {
|
||||
|
||||
// Count Hardpoints by class
|
||||
ship.getHardpoints(undefined, true).forEach(hardpoint => {
|
||||
summary.hp[hardpoint.getSize()]++;
|
||||
summary.hp[hardpoint.getSizeNum()]++;
|
||||
summary.hpCount++;
|
||||
});
|
||||
// Count Internal Compartments by class
|
||||
let maxCargo = 0, maxPassengers = 0;
|
||||
ship.getInternals(undefined, true).forEach(internal => {
|
||||
const size = String(internal.getSize());
|
||||
const size = String(internal.getSizeNum());
|
||||
summary.int[size]++;
|
||||
summary.intCount++;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user