Fix issue for additive specials not showing up

This commit is contained in:
Cmdr McDonald
2017-03-30 08:17:13 +01:00
parent d624663278
commit da274f1b75
2 changed files with 3 additions and 1 deletions

View File

@@ -110,6 +110,7 @@ export default class ModificationsMenu extends TranslatedComponent {
* @param {int} grade The grade of the selected blueprint
*/
_blueprintSelected(fdname, grade) {
this.context.tooltip(null);
const { m } = this.props;
const blueprint = getBlueprint(fdname, m);
blueprint.grade = grade;
@@ -133,6 +134,7 @@ export default class ModificationsMenu extends TranslatedComponent {
* @param {int} special The name of the selected special
*/
_specialSelected(special) {
this.context.tooltip(null);
const { m, ship } = this.props;
if (m.blueprint) {

View File

@@ -48,7 +48,7 @@ export default class Module {
// this special effect modifies our returned value
const modification = Modifications.modifications[name];
if (modification.method === 'additive') {
result = result + modifierActions[name];
result = result + modifierActions[name] * 100;
} else if (modification.method === 'overwrite') {
result = modifierActions[name];
} else {