summaryrefslogtreecommitdiff
path: root/src/stats.gd
diff options
context:
space:
mode:
authorDavid Luevano Alvarado <david@luevano.xyz>2022-06-05 04:38:44 -0600
committerDavid Luevano Alvarado <david@luevano.xyz>2022-06-05 04:38:44 -0600
commite4423cc8490b7f5ec3449f568bf64e81f4d03248 (patch)
tree167f178e1197c21260f70eaffd0a3375742f3447 /src/stats.gd
parent36abc689d783774ce4f2d7b5a1bb621d8684be45 (diff)
add more food types, refactored code and tidy up stuff
Diffstat (limited to 'src/stats.gd')
-rw-r--r--src/stats.gd17
1 files changed, 14 insertions, 3 deletions
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"]