mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-16 06:18:42 +02:00
UI: Show faction enemies even after joining (#2046)
This commit is contained in:
@@ -154,7 +154,7 @@ const FactionElement = (props: FactionElementProps): React.ReactElement => {
|
||||
</Tooltip>
|
||||
)}
|
||||
|
||||
{!props.faction.isMember && facInfo.enemies.length > 0 && (
|
||||
{facInfo.enemies.length > 0 && (
|
||||
<Tooltip
|
||||
title={
|
||||
<Typography component="div">
|
||||
@@ -164,7 +164,7 @@ const FactionElement = (props: FactionElementProps): React.ReactElement => {
|
||||
<li key={enemy}>{enemy}</li>
|
||||
))}
|
||||
</ul>
|
||||
Joining this Faction will prevent you from joining its enemies
|
||||
{!props.faction.isMember && <>Joining this Faction will prevent you from joining its enemies</>}
|
||||
</Typography>
|
||||
}
|
||||
>
|
||||
|
||||
@@ -52,6 +52,12 @@ export function Info(props: IProps): React.ReactElement {
|
||||
return (
|
||||
<>
|
||||
<Typography classes={{ root: classes.noformat }}>{props.factionInfo.infoText}</Typography>
|
||||
{props.factionInfo.enemies.length > 0 && (
|
||||
<Typography component="div">
|
||||
<br />
|
||||
This faction is enemies with: {props.factionInfo.enemies.join(", ")}.
|
||||
</Typography>
|
||||
)}
|
||||
<Typography>-------------------------</Typography>
|
||||
<Box display="flex">
|
||||
<Tooltip
|
||||
|
||||
Reference in New Issue
Block a user