From e4423cc8490b7f5ec3449f568bf64e81f4d03248 Mon Sep 17 00:00:00 2001 From: David Luevano Alvarado Date: Sun, 5 Jun 2022 04:38:44 -0600 Subject: add more food types, refactored code and tidy up stuff --- src/stats.gd | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'src/stats.gd') diff --git a/src/stats.gd b/src/stats.gd index 6906221..d789341 100644 --- a/src/stats.gd +++ b/src/stats.gd @@ -46,6 +46,17 @@ func get_stats() -> Dictionary: func set_stats(stats: Dictionary) -> void: - var current_stats: Dictionary = get_stats() - for i in stats: - current_stats[i] = stats[i] + points = stats["points"] + segments = stats["segments"] + dash_points = stats["dash_points"] + slow_points = stats["slow_points"] + jump_points = stats["jump_points"] + dash_segments = stats["dash_segments"] + slow_segments = stats["slow_segments"] + jump_segments = stats["jump_segments"] + dash_percentage = stats["dash_percentage"] + slow_percentage = stats["slow_percentage"] + jump_lenght = stats["jump_lenght"] + trait_dash = stats["trait_dash"] + trait_slow = stats["trait_slow"] + trait_jump = stats["trait_jump"] -- cgit v1.2.3