mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-11 16:53:02 +00:00
Support non-percent modifiers
This commit is contained in:
@@ -67,6 +67,7 @@ export default class Modification extends TranslatedComponent {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const { value: modifierValue, unit: modifierUnit } = m.getModifierFormatted(property);
|
||||||
return (
|
return (
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
@@ -100,7 +101,7 @@ export default class Modification extends TranslatedComponent {
|
|||||||
secondary: beneficial,
|
secondary: beneficial,
|
||||||
warning: beneficial === false,
|
warning: beneficial === false,
|
||||||
})}
|
})}
|
||||||
>{formats.pct(m.getModifier(property))}</td>
|
>{formats.f2(modifierValue)}{modifierUnit || ''}</td>
|
||||||
</tr>
|
</tr>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user