mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-23 09:42:53 +02:00
STANEK: Re-apply stanek boosts when applying entropy (#816)
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import React from "react";
|
||||
|
||||
import { staneksGift } from "../../CotMG/Helper";
|
||||
import { Player } from "@player";
|
||||
|
||||
import Accordion from "@mui/material/Accordion";
|
||||
import AccordionSummary from "@mui/material/AccordionSummary";
|
||||
@@ -29,12 +30,14 @@ export function StanekDev(): React.ReactElement {
|
||||
staneksGift.fragments.forEach((f) => {
|
||||
f.highestCharge = 1e21;
|
||||
f.numCharge = 1e21;
|
||||
Player.applyEntropy(Player.entropy);
|
||||
});
|
||||
}
|
||||
|
||||
function modCharge(modify: number): (x: number) => void {
|
||||
return function (cycles: number): void {
|
||||
staneksGift.fragments.forEach((f) => (f.highestCharge += cycles * modify));
|
||||
Player.applyEntropy(Player.entropy);
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user