From 2a346363ebf0346398df5ce400b76187a175b4e9 Mon Sep 17 00:00:00 2001 From: RealMelwei Date: Tue, 14 Oct 2025 14:45:39 +0200 Subject: [PATCH] Minor refactor in player code --- player/player.gd | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/player/player.gd b/player/player.gd index e527f38..83032f9 100644 --- a/player/player.gd +++ b/player/player.gd @@ -83,14 +83,14 @@ func _physics_process(delta: float) -> void: manage_velocity(delta) move_and_slide() -func _process(delta: float) -> void: +func _process(_delta: float) -> void: # All non-velocity management can run without FPS cap update_vine_statuses() manage_movement_options() manage_interaction() manage_animation() if handle_input: - manage_active(delta) + manage_active() manage_attack() func manage_attack(): @@ -104,7 +104,7 @@ func manage_attack(): $SwordSwingAudio.play() $AttackCooldown.start() -func manage_active(_delta : float): +func manage_active(): # Activate or remove items. Cooldown + use management is handled by the item. if(active_item != null and Input.is_action_just_pressed("item") and $ActiveItemCooldown.is_stopped()): active_item.trigger_activation()