diff --git a/logic.gd b/logic.gd index fdfef24..9c4dca3 100644 --- a/logic.gd +++ b/logic.gd @@ -33,7 +33,7 @@ func _process(delta): pause_button.disabled = !running add10_button.disabled = !running add100_button.disabled = !running - reset_button.disabled = not timer > 0 + reset_button.disabled = not pickups.size() > 0 undo_button.disabled = not pickups.size() > 0 current_sc_label.text = str(super_credits) @@ -44,8 +44,7 @@ func _process(delta): #returns the amount of minutes until 1000 sc reached func get_next_warbond() -> int: - var next_warbond_needed : float = 1000 - wrap(super_credits,0, 1000) - + var next_warbond_needed : float = 1000 - super_credits if next_warbond_needed <= 0: return 0 var sc_per_hour_min : float = round((pickups.size()*10)*(3600/timer)) diff --git a/project.godot b/project.godot index 166dbc6..82950d7 100644 --- a/project.godot +++ b/project.godot @@ -11,7 +11,6 @@ config_version=5 [application] config/name="SuperCreditFarm" -run/main_scene="res://main.tscn" config/features=PackedStringArray("4.3", "GL Compatibility") config/icon="res://icon.svg"