mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-05-09 17:17:55 +02:00
UI: Fix misleading favor numbers (#1530)
This commit is contained in:
@@ -207,7 +207,7 @@ export function AugmentationsPage({ faction }: { faction: Faction }): React.Reac
|
||||
<Typography>
|
||||
<b>Reputation:</b> <Reputation reputation={faction.playerReputation} />
|
||||
<br />
|
||||
<b>Favor:</b> <Favor favor={Math.floor(faction.favor)} />
|
||||
<b>Favor:</b> <Favor favor={faction.favor} />
|
||||
</Typography>
|
||||
</Box>
|
||||
<Box sx={{ display: "grid", gridTemplateColumns: "repeat(4, 1fr)" }}>
|
||||
|
||||
@@ -193,9 +193,7 @@ const FactionElement = (props: FactionElementProps): React.ReactElement => {
|
||||
|
||||
{props.faction.isMember && (
|
||||
<Box display="grid" sx={{ alignItems: "center", justifyItems: "left", gridAutoFlow: "row" }}>
|
||||
<Typography sx={{ color: Settings.theme.rep }}>
|
||||
{formatFavor(Math.floor(props.faction.favor))} favor
|
||||
</Typography>
|
||||
<Typography sx={{ color: Settings.theme.rep }}>{formatFavor(props.faction.favor)} favor</Typography>
|
||||
<Typography sx={{ color: Settings.theme.rep }}>
|
||||
{formatReputation(props.faction.playerReputation)} rep
|
||||
</Typography>
|
||||
|
||||
@@ -91,7 +91,7 @@ export function Info(props: IProps): React.ReactElement {
|
||||
}
|
||||
>
|
||||
<Typography>
|
||||
Faction Favor: <Favor favor={Math.floor(props.faction.favor)} />
|
||||
Faction Favor: <Favor favor={props.faction.favor} />
|
||||
</Typography>
|
||||
</Tooltip>
|
||||
</Box>
|
||||
|
||||
Reference in New Issue
Block a user