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

@@ -19,10 +19,16 @@ function update_charsheet() {
}
}
async function purchase_upgrade(tree, upgrade) {
var upgrade_data = await fetch(`/upgrades/${tree}/${upgrade}`)
.then(res => res.text())
console.log(upgrade_data)
}
async function display_tree(tree) {
var upgrade_tree = await fetch(`/upgrades/${tree}`)
.then(res => res.text())
console.log(upgrade_tree)
//console.log(upgrade_tree)
charsheet_elements["blk_tree"].innerHTML = upgrade_tree
}