more work on bn13

This commit is contained in:
Olivier Gagnon
2021-11-13 22:44:17 -05:00
990 changed files with 58453 additions and 9515 deletions
+9 -3
View File
@@ -26,17 +26,23 @@ export function Stanek(): React.ReactElement {
}
function addCharge(): void {
staneksGift.fragments.forEach((f) => (f.charge = 1e21));
staneksGift.fragments.forEach((f) => {
f.avgCharge = 1e21;
f.numCharge = 1e21;
});
}
function modCharge(modify: number): (x: number) => void {
return function (cycles: number): void {
staneksGift.fragments.forEach((f) => (f.charge += cycles * modify));
staneksGift.fragments.forEach((f) => (f.avgCharge += cycles * modify));
};
}
function resetCharge(): void {
staneksGift.fragments.forEach((f) => (f.charge = 0));
staneksGift.fragments.forEach((f) => {
f.avgCharge = 0;
f.numCharge = 0;
});
}
return (