mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-21 16:52:55 +02:00
Streamlining GangKarmaRequirement constant
As suggested by phyzical : The GangKarmaRequirement const was declared locally in the PlayerObjectGangMethod.ts file. It's now part of the GangConstants object in the gang/data/constant.ts file. Allowing it to be referenced in the FactionRoot.tsx tooltip.
This commit is contained in:
@@ -130,7 +130,7 @@ function MainPage({ faction, rerender, onAugmentations }: IMainProps): React.Rea
|
||||
<Box>
|
||||
<Paper sx={{ my: 1, p: 1 }}>
|
||||
<Tooltip
|
||||
title={!isManageGangClickable ? <Typography>Unlocked when reaching -54000 karma</Typography> : ""}
|
||||
title={!isManageGangClickable ? <Typography>Unlocked when reaching {GangConstants.GangKarmaRequirement} karma</Typography> : ""}
|
||||
>
|
||||
<span>
|
||||
<Button onClick={manageGang} disabled={!isManageGangClickable}>
|
||||
|
||||
Reference in New Issue
Block a user