Merge branch 'dev' into bugfix/corp-updates

This commit is contained in:
phyzical
2022-04-02 20:12:19 +08:00
19 changed files with 185 additions and 145 deletions
+3 -3
View File
@@ -27,20 +27,20 @@ export function Stanek(): React.ReactElement {
function addCharge(): void {
staneksGift.fragments.forEach((f) => {
f.avgCharge = 1e21;
f.highestCharge = 1e21;
f.numCharge = 1e21;
});
}
function modCharge(modify: number): (x: number) => void {
return function (cycles: number): void {
staneksGift.fragments.forEach((f) => (f.avgCharge += cycles * modify));
staneksGift.fragments.forEach((f) => (f.highestCharge += cycles * modify));
};
}
function resetCharge(): void {
staneksGift.fragments.forEach((f) => {
f.avgCharge = 0;
f.highestCharge = 0;
f.numCharge = 0;
});
}