big upgrades to upgrade system

This commit is contained in:
2025-10-05 11:11:54 -07:00
parent 0edb4b50d2
commit 537bdf1ad7
20 changed files with 3310 additions and 97 deletions

View File

@@ -0,0 +1,13 @@
export function cheat_resources() {
hnd_direction = document.querySelector("#dev-resource-direction");
hnd_restype = document.querySelector("#dev-resource-type");
hnd_amount = document.querySelector("#dev-resource-amount");
if (!isEmpty(hnd_amount.value)) {
if (hnd_direction == "+") {
gamestate[hnd_restype.value] += Number(hnd_amount.value);
} else if (hnd_direction == "-") {
gamestate[hnd_restype.value] -= Number(hnd_amount.value);
}
}
}