diff --git a/src/app/components/ModificationsMenu.jsx b/src/app/components/ModificationsMenu.jsx index bb1e83a3..14d32f78 100644 --- a/src/app/components/ModificationsMenu.jsx +++ b/src/app/components/ModificationsMenu.jsx @@ -6,7 +6,7 @@ import { isEmpty, stopCtxPropagation } from '../utils/UtilityFunctions'; import cn from 'classnames'; import { Modifications } from 'coriolis-data/dist'; import Modification from './Modification'; -import { getBlueprint, blueprintTooltip, setPercent, setRandom } from '../utils/BlueprintFunctions'; +import { getBlueprint, blueprintTooltip, setPercent, getPercent, setRandom } from '../utils/BlueprintFunctions'; /** * Modifications menu @@ -239,10 +239,12 @@ export default class ModificationsMenu extends TranslatedComponent { let blueprintLabel; let haveBlueprint = false; let blueprintTt; + let blueprintCv; if (m.blueprint && m.blueprint.name) { blueprintLabel = translate(m.blueprint.name) + ' ' + translate('grade') + ' ' + m.blueprint.grade; haveBlueprint = true; blueprintTt = blueprintTooltip(translate, m.blueprint.grades[m.blueprint.grade], Modifications.modules[m.grp].blueprints[m.blueprint.fdname].grades[m.blueprint.grade].engineers, m.grp); + blueprintCv = getPercent(m); } let specialLabel; @@ -273,20 +275,18 @@ export default class ModificationsMenu extends TranslatedComponent { { showBlueprintsMenu ? this._renderBlueprints(this.props, this.context) : null } { showSpecial & !showSpecialsMenu ?
{specialLabel}
: null } { showSpecialsMenu ? specials : null } - { showRolls || showReset ? + { showReset ?
{ translate('reset') }
: null } + { showRolls ? + { showRolls ? - - - - - : null } - { showReset ? - - + + + + : null }
{ translate('roll') }: { translate('0%') } { translate('50%') } { translate('100%') } { translate('random') }
{ translate('reset') } { translate('0%') } { translate('50%') } { translate('100%') } { translate('random') }
: null }