UI: Fix misleading favor numbers (#1530)

This commit is contained in:
catloversg
2024-08-02 12:44:03 +07:00
committed by GitHub
parent bcb4a3835b
commit 9308301b12
4 changed files with 4 additions and 6 deletions
+1 -1
View File
@@ -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)" }}>
+1 -3
View File
@@ -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>
+1 -1
View File
@@ -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>