forked from team-sg/hero-mark-2
fix 100% detection
This commit is contained in:
parent
1838605be3
commit
eda2db4a3a
1 changed files with 2 additions and 3 deletions
|
@ -16,6 +16,7 @@ onready var tab_container: TabContainer = $"%TabContainer"
|
|||
func _ready() -> void:
|
||||
yield(get_tree(), "idle_frame")
|
||||
_set_tag()
|
||||
print(_scoreboard_tag)
|
||||
$"%YesScore".grab_focus()
|
||||
Fade.fade_in(0.4)
|
||||
|
||||
|
@ -23,7 +24,6 @@ func _ready() -> void:
|
|||
func _on_YesScore_pressed() -> void:
|
||||
_scoreboard_id = LevelData.levels[Game.current_level].scores_id
|
||||
_score_value = Game.final_score
|
||||
print(_score_value)
|
||||
tab_container.current_tab = 2
|
||||
if yield(_submit(), "completed"):
|
||||
tab_container.current_tab = 3
|
||||
|
@ -42,7 +42,6 @@ func _on_NoScore_pressed() -> void:
|
|||
func _on_YesTime_pressed() -> void:
|
||||
_scoreboard_id = LevelData.levels[Game.current_level].times_id
|
||||
_score_value = int(Game.time * 1000.0)
|
||||
print(_score_value)
|
||||
tab_container.current_tab = 2
|
||||
if yield(_submit(), "completed"):
|
||||
tab_container.current_tab = 3
|
||||
|
@ -73,7 +72,7 @@ func _set_tag() -> void:
|
|||
_scoreboard_tag = "spicy"
|
||||
Game.Difficulty.PUNGENT:
|
||||
_scoreboard_tag = "pungent"
|
||||
if Game.has_collection_bonus():
|
||||
if Game.keys >= 50 and Game.shards >= 5:
|
||||
_scoreboard_tag += "-100%"
|
||||
else:
|
||||
_scoreboard_tag += "-any%"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue