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"; import AccordionDetails from "@mui/material/AccordionDetails"; import ExpandMoreIcon from "@mui/icons-material/ExpandMore"; import Typography from "@mui/material/Typography"; import { Adjuster } from "./Adjuster"; export function StanekDev(): React.ReactElement { function addCycles(): void { staneksGift.storedCycles = 1e6; } function modCycles(modify: number): (x: number) => void { return function (cycles: number): void { staneksGift.storedCycles += cycles * modify; }; } function resetCycles(): void { staneksGift.storedCycles = 0; } function addCharge(): void { 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); }; } function resetCharge(): void { staneksGift.fragments.forEach((f) => { f.highestCharge = 0; f.numCharge = 0; }); } return ( }> Stanek's Gift
); }