mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-10 07:05:35 +00:00
Show normal speed in summary
This commit is contained in:
@@ -7,7 +7,7 @@ import { Warning } from './SvgIcons';
|
|||||||
|
|
||||||
import { ShipProps } from 'ed-forge';
|
import { ShipProps } from 'ed-forge';
|
||||||
const {
|
const {
|
||||||
MAX_SPEED, BOOST_SPEED, DAMAGE_METRICS, JUMP_METRICS, SHIELD_METRICS,
|
SPEED, BOOST_SPEED, DAMAGE_METRICS, JUMP_METRICS, SHIELD_METRICS,
|
||||||
ARMOUR_METRICS, CARGO_CAPACITY, FUEL_CAPACITY, UNLADEN_MASS, MAXIMUM_MASS,
|
ARMOUR_METRICS, CARGO_CAPACITY, FUEL_CAPACITY, UNLADEN_MASS, MAXIMUM_MASS,
|
||||||
MODULE_PROTECTION_METRICS
|
MODULE_PROTECTION_METRICS
|
||||||
} = ShipProps;
|
} = ShipProps;
|
||||||
@@ -46,7 +46,7 @@ export default class ShipSummaryTable extends TranslatedComponent {
|
|||||||
let { time, int, round, f1, f2 } = formats;
|
let { time, int, round, f1, f2 } = formats;
|
||||||
let hide = tooltip.bind(null, null);
|
let hide = tooltip.bind(null, null);
|
||||||
|
|
||||||
const speed = ship.get(MAX_SPEED);
|
const speed = ship.get(SPEED);
|
||||||
const shipBoost = ship.get(BOOST_SPEED);
|
const shipBoost = ship.get(BOOST_SPEED);
|
||||||
const canThrust = 0 < speed;
|
const canThrust = 0 < speed;
|
||||||
const canBoost = canThrust && !isNaN(shipBoost);
|
const canBoost = canThrust && !isNaN(shipBoost);
|
||||||
|
|||||||
Reference in New Issue
Block a user