From 321ebb8e6b152cc26898f844c3066f78b44cdd1a Mon Sep 17 00:00:00 2001 From: JHDev2006 Date: Sun, 21 Sep 2025 13:22:09 +0100 Subject: [PATCH] ok, figured out what it was, it was some -1 checks i forgot to do, NOW its sound --- Scripts/Classes/Singletons/SpeedrunHandler.gd | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Scripts/Classes/Singletons/SpeedrunHandler.gd b/Scripts/Classes/Singletons/SpeedrunHandler.gd index 44280997..adf8ad7b 100644 --- a/Scripts/Classes/Singletons/SpeedrunHandler.gd +++ b/Scripts/Classes/Singletons/SpeedrunHandler.gd @@ -355,12 +355,13 @@ func check_for_medal_achievement() -> void: level += 1 world += 1 - if marathon_best_any_time <= GOLD_ANY_TIMES[Global.current_campaign] and marathon_best_warpless_time <= GOLD_WARPLESS_TIMES[Global.current_campaign]: - has_gold_full = true - if marathon_best_any_time <= GOLD_ANY_TIMES[Global.current_campaign] * MEDAL_CONVERSIONS[1] and marathon_best_warpless_time <= GOLD_WARPLESS_TIMES[Global.current_campaign] * MEDAL_CONVERSIONS[1]: - has_silver_full = true - if marathon_best_any_time <= GOLD_ANY_TIMES[Global.current_campaign] * MEDAL_CONVERSIONS[0] and marathon_best_warpless_time <= GOLD_WARPLESS_TIMES[Global.current_campaign] * MEDAL_CONVERSIONS[0]: - has_bronze_full = true + if marathon_best_any_time >= 0 and marathon_best_warpless_time >= 0: + if marathon_best_any_time <= GOLD_ANY_TIMES[Global.current_campaign] and marathon_best_warpless_time <= GOLD_WARPLESS_TIMES[Global.current_campaign]: + has_gold_full = true + if marathon_best_any_time <= GOLD_ANY_TIMES[Global.current_campaign] * MEDAL_CONVERSIONS[1] and marathon_best_warpless_time <= GOLD_WARPLESS_TIMES[Global.current_campaign] * MEDAL_CONVERSIONS[1]: + has_silver_full = true + if marathon_best_any_time <= GOLD_ANY_TIMES[Global.current_campaign] * MEDAL_CONVERSIONS[0] and marathon_best_warpless_time <= GOLD_WARPLESS_TIMES[Global.current_campaign] * MEDAL_CONVERSIONS[0]: + has_bronze_full = true if has_gold_levels_warpless and has_gold_levels_any and has_gold_full: match Global.current_campaign: