mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-10 15:15:34 +00:00
Fix issue for additive specials not showing up
This commit is contained in:
@@ -110,6 +110,7 @@ export default class ModificationsMenu extends TranslatedComponent {
|
|||||||
* @param {int} grade The grade of the selected blueprint
|
* @param {int} grade The grade of the selected blueprint
|
||||||
*/
|
*/
|
||||||
_blueprintSelected(fdname, grade) {
|
_blueprintSelected(fdname, grade) {
|
||||||
|
this.context.tooltip(null);
|
||||||
const { m } = this.props;
|
const { m } = this.props;
|
||||||
const blueprint = getBlueprint(fdname, m);
|
const blueprint = getBlueprint(fdname, m);
|
||||||
blueprint.grade = grade;
|
blueprint.grade = grade;
|
||||||
@@ -133,6 +134,7 @@ export default class ModificationsMenu extends TranslatedComponent {
|
|||||||
* @param {int} special The name of the selected special
|
* @param {int} special The name of the selected special
|
||||||
*/
|
*/
|
||||||
_specialSelected(special) {
|
_specialSelected(special) {
|
||||||
|
this.context.tooltip(null);
|
||||||
const { m, ship } = this.props;
|
const { m, ship } = this.props;
|
||||||
|
|
||||||
if (m.blueprint) {
|
if (m.blueprint) {
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ export default class Module {
|
|||||||
// this special effect modifies our returned value
|
// this special effect modifies our returned value
|
||||||
const modification = Modifications.modifications[name];
|
const modification = Modifications.modifications[name];
|
||||||
if (modification.method === 'additive') {
|
if (modification.method === 'additive') {
|
||||||
result = result + modifierActions[name];
|
result = result + modifierActions[name] * 100;
|
||||||
} else if (modification.method === 'overwrite') {
|
} else if (modification.method === 'overwrite') {
|
||||||
result = modifierActions[name];
|
result = modifierActions[name];
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user