feat: rename game to ModBison and currency to Buffalo Chips
checkpoint / checkpoint (push) Successful in 5m56s

This commit is contained in:
2026-09-17 18:29:48 +00:00
parent e05e18c384
commit aa5f945287
9 changed files with 44 additions and 44 deletions
+8 -8
View File
@@ -95,7 +95,7 @@ func refresh_wallet() -> void:
if res.ok and res.data is Dictionary:
var balance: int = int(res.data.get("balance", 0))
if balance_label:
balance_label.text = "%d CR" % balance
balance_label.text = "%d Buffalo Chips" % balance
else:
show_status("Failed to fetch wallet: " + res.detail, true)
@@ -118,15 +118,15 @@ func refresh_transactions() -> void:
func _buy_pack(credits: int) -> void:
var api = _get_api()
if not api or not api.has_token():
show_status("Please login to purchase Credits", true)
show_status("Please login to purchase Buffalo Chips", true)
return
show_status("Processing purchase of %d Credits..." % credits)
show_status("Processing purchase of %d Buffalo Chips..." % credits)
var res: Dictionary = await EconomyApiClient.purchase_credits(api, credits)
if res.ok and res.data is Dictionary:
var new_bal: int = int(res.data.get("new_balance", 0))
if balance_label:
balance_label.text = "%d CR" % new_bal
show_status("Successfully purchased %d Credits! Balance: %d CR" % [credits, new_bal])
balance_label.text = "%d Buffalo Chips" % new_bal
show_status("Successfully purchased %d Buffalo Chips! Balance: %d Buffalo Chips" % [credits, new_bal])
refresh_transactions()
else:
show_status("Purchase failed: " + res.detail, true)
@@ -171,16 +171,16 @@ func render_transactions(tx_list: Array) -> void:
var amount: int = int(tx.get("amount", 0))
var amt_lbl := Label.new()
if amount > 0:
amt_lbl.text = "+%d CR" % amount
amt_lbl.text = "+%d Buffalo Chips" % amount
amt_lbl.add_theme_color_override("font_color", Color(0.2, 0.9, 0.2))
else:
amt_lbl.text = "%d CR" % amount
amt_lbl.text = "%d Buffalo Chips" % amount
amt_lbl.add_theme_color_override("font_color", Color(0.9, 0.3, 0.3))
amt_lbl.custom_minimum_size = Vector2(100, 0)
hbox.add_child(amt_lbl)
var bal_lbl := Label.new()
bal_lbl.text = "Bal: %s CR" % str(tx.get("balance_after", 0))
bal_lbl.text = "Bal: %s Buffalo Chips" % str(tx.get("balance_after", 0))
bal_lbl.custom_minimum_size = Vector2(100, 0)
bal_lbl.add_theme_color_override("font_color", Color(0.8, 0.8, 0.8))
hbox.add_child(bal_lbl)