mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-23 16:13:49 +01:00
Merge pull request #1538 from Snarling/patch-2
Actually fix fragment power display for negative numbers
This commit is contained in:
commit
4bef2f09a5
@ -55,7 +55,7 @@ export function FragmentInspector(props: IProps): React.ReactElement {
|
|||||||
charge = "N/A";
|
charge = "N/A";
|
||||||
effect = `${f.power}x adjacent fragment power`;
|
effect = `${f.power}x adjacent fragment power`;
|
||||||
} else {
|
} else {
|
||||||
effect = Effect(f.type).replace("x%", numeralWrapper.formatPercentage(props.gift.effect(props.fragment) - 1));
|
effect = Effect(f.type).replace(/-*x%/, numeralWrapper.formatPercentage(props.gift.effect(props.fragment) - 1));
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
Loading…
Reference in New Issue
Block a user