mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-23 17:53:00 +02:00
CORPORATION: Rework share price calculation + UI improvements (#782)
This commit is contained in:
@@ -69,6 +69,12 @@ export function CorporationDev(): React.ReactElement {
|
||||
});
|
||||
}
|
||||
|
||||
function resetCorporationCooldowns(): void {
|
||||
if (!Player.corporation) return;
|
||||
Player.corporation.shareSaleCooldown = 0;
|
||||
Player.corporation.issueNewSharesCooldown = 0;
|
||||
}
|
||||
|
||||
return (
|
||||
<Accordion TransitionProps={{ unmountOnExit: true }}>
|
||||
<AccordionSummary expandIcon={<ExpandMoreIcon />}>
|
||||
@@ -117,6 +123,11 @@ export function CorporationDev(): React.ReactElement {
|
||||
<Button onClick={addCorporationResearch}>Tons of research</Button>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<Button onClick={resetCorporationCooldowns}>Reset stock cooldowns</Button>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</AccordionDetails>
|
||||
|
||||
Reference in New Issue
Block a user