Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions scenes/game_elements/props/powerup/components/powerup.gd
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@ var _tween: Tween

func _set_ability(new_ability: Enums.PlayerAbilities) -> void:
ability = new_ability
_update_ability_name()
interact_area.action = "Collect " + ability_name
if not Engine.is_editor_hint() and is_node_ready():
_update_ability_name()
Comment on lines +43 to +44

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent, thanks for the detailed description of the problem.

interact_area.action = "Collect " + ability_name if ability_name else "Collect"


func _set_sprite_frames(new_sprite_frames: SpriteFrames) -> void:
Expand Down