Skip to content

Commit

Permalink
Fix - Out of ammo hint to use Ammo name
Browse files Browse the repository at this point in the history
Noticed that there was a hint message saying "Flashlight is out of ammo", came up with this as a way to avoid that.
This fix makes it now say "Flashlight is out of Battery"
  • Loading branch information
niefia committed Sep 19, 2024
1 parent d101dd5 commit cb1abcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion COGITO/Components/PlayerInteractionComponent.gd
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ func attempt_action_primary(is_released: bool):
print("Nothing equipped, but is_wielding was true. This shouldn't happen!")
return
if equipped_wieldable_item.charge_current == 0:
send_hint(null, equipped_wieldable_item.name + " is out of ammo.")
send_hint(null, equipped_wieldable_item.name + " is out of " + equipped_wieldable_item.ammo_item_name)
else:
equipped_wieldable_node.action_primary(equipped_wieldable_item, is_released)

Expand Down

0 comments on commit cb1abcb

Please sign in to comment.