Fix prestige bug after reset
This commit is contained in:
@@ -458,6 +458,8 @@ func reset_for_prestige(reset_total_currency: bool = false, emit_currency_signal
|
||||
generator_buff_levels.clear()
|
||||
generator_buff_unlocked.clear()
|
||||
_goal_completed.clear()
|
||||
for goal_id in _goal_definitions.keys():
|
||||
_goal_completed[goal_id] = false
|
||||
|
||||
if not emit_currency_signals:
|
||||
return
|
||||
@@ -1113,7 +1115,7 @@ func _complete_goal_manually(goal_id: StringName) -> void:
|
||||
var goal: GoalData = _goal_definitions.get(goal_id, null)
|
||||
if goal == null:
|
||||
return
|
||||
if _goal_completed[goal_id]:
|
||||
if _goal_completed.get(goal_id, false):
|
||||
return
|
||||
if not goal.is_met():
|
||||
return
|
||||
|
||||
@@ -156,7 +156,7 @@ multiplier = base_multiplier * (growth_base ^ total_prestige)
|
||||
- Current currencies reset to 0
|
||||
- Generator states cleared
|
||||
- Buff levels reset to 0
|
||||
- Goal completion cleared
|
||||
- Goal completion cleared and re-initialized
|
||||
- Lifetime totals preserved
|
||||
5. Generators reinitialized
|
||||
6. Save triggered
|
||||
|
||||
Reference in New Issue
Block a user