fixed shield UI not clearing on game restart
This commit is contained in:
@@ -28,9 +28,9 @@ var mage_unlocked: bool = 0
|
||||
|
||||
|
||||
func check_high_score(level_title: String, wave_reached: int, endless: bool) -> void:
|
||||
if endless:
|
||||
if endless and endless_high_scores[level_title] < wave_reached:
|
||||
endless_high_scores[level_title] = wave_reached
|
||||
else:
|
||||
elif level_high_scores[level_title] < wave_reached:
|
||||
level_high_scores[level_title] = wave_reached
|
||||
|
||||
|
||||
|
||||
@@ -159,6 +159,8 @@ func spawn_players() -> void:
|
||||
base_took_damage.connect(player.hud.set_lives_count)
|
||||
root_scene.add_child(player)
|
||||
p_i += 1
|
||||
print("objective health: " + str(objective_health))
|
||||
print("player ui health: " + str(player.hud.shield_ui.health))
|
||||
|
||||
|
||||
func ready_player(player_ready_true: bool) -> void:
|
||||
|
||||
Reference in New Issue
Block a user