Improve prestige and add ascension as currency

This commit is contained in:
2026-04-14 00:10:57 +02:00
parent 9d10ccb8dc
commit 0e8c682ae7
18 changed files with 294 additions and 61 deletions

View File

@@ -464,9 +464,11 @@ func get_external_save_data(section_key: StringName) -> Dictionary:
return {}
func reset_for_prestige(reset_total_currency: bool = false, emit_currency_signals: bool = true) -> void:
func reset_for_prestige(reset_total_currency: bool = false, emit_currency_signals: bool = true, preserve_currency_ids: Array[StringName] = []) -> void:
var currency_ids: Array[StringName] = _collect_currency_ids_for_save()
for currency_id in currency_ids:
if currency_id in preserve_currency_ids:
continue
_set_current_currency(currency_id, BigNumber.from_float(0.0))
if reset_total_currency:
_set_total_currency(currency_id, BigNumber.from_float(0.0))