prettier
This commit is contained in:
parent
86325f8ed8
commit
29255ea347
@ -4,19 +4,19 @@ import u from "updeep";
|
||||
import { createSelector } from "reselect";
|
||||
|
||||
const dux = new Updux({
|
||||
initial: {
|
||||
space: 0,
|
||||
cost: 0,
|
||||
mass: 0,
|
||||
},
|
||||
initial: {
|
||||
space: 0,
|
||||
cost: 0,
|
||||
mass: 0,
|
||||
},
|
||||
});
|
||||
|
||||
const set_cargo = action('set_cargo',payload());
|
||||
const set_cargo = action("set_cargo", payload());
|
||||
|
||||
dux.addMutation(set_cargo, space => () => ({
|
||||
space,
|
||||
cost: 0,
|
||||
mass: space,
|
||||
dux.addMutation(set_cargo, (space) => () => ({
|
||||
space,
|
||||
cost: 0,
|
||||
mass: space,
|
||||
}));
|
||||
|
||||
export default dux.asDux;
|
||||
|
@ -71,9 +71,9 @@ dux.addSubscription((store) =>
|
||||
store => store.general.mass,
|
||||
store => store.streamlining.type,
|
||||
(ship_mass, streamlining ) => {
|
||||
const mass = ceil( ship_mass * (
|
||||
const mass = ceil( ship_mass * (
|
||||
streamlining === 'none' ? 0
|
||||
: streamlining === 'partial' ? 5 : 10
|
||||
: streamlining === 'partial' ? 5 : 10
|
||||
) / 100 );
|
||||
const cost = 2 * mass;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user