Improve prestige and add ascension as currency
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user