GANG: Fix Gang UI to correctly report the bonus time multiplier as 25x

Add Tooltop to Corporation UI to explain bonus time (matching the one in
Gang UI)
Move corporation.process to the correct location
This commit is contained in:
TheMas3212
2022-11-25 00:41:24 +11:00
parent e7fc0fbb03
commit 533d8a4332
4 changed files with 23 additions and 10 deletions
+16 -5
View File
@@ -296,10 +296,21 @@ function BonusTime(): React.ReactElement {
const storedTime = corp.storedCycles * CONSTANTS.MilliPerCycle;
if (storedTime <= 15000) return <></>;
return (
<Typography>
Bonus time: {convertTimeMsToTimeElapsedString(storedTime)}
<br />
<br />
</Typography>
<Box display="flex">
<Tooltip
title={
<Typography>
You gain bonus time while offline or when the game is inactive (e.g. when the tab is throttled by the
browser). Bonus time makes the Corporation mechanic progress faster, up to 10x the normal speed.
</Typography>
}
>
<Typography>
Bonus time: {convertTimeMsToTimeElapsedString(storedTime)}
<br />
<br />
</Typography>
</Tooltip>
</Box>
);
}