From cb1abcb04379f00cabb74de5c87b399487985210 Mon Sep 17 00:00:00 2001 From: niefia <99533148+niefia@users.noreply.github.com> Date: Thu, 19 Sep 2024 14:17:56 +0100 Subject: [PATCH] Fix - Out of ammo hint to use Ammo name 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" --- COGITO/Components/PlayerInteractionComponent.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/COGITO/Components/PlayerInteractionComponent.gd b/COGITO/Components/PlayerInteractionComponent.gd index 1d80ca88..bd5e9644 100644 --- a/COGITO/Components/PlayerInteractionComponent.gd +++ b/COGITO/Components/PlayerInteractionComponent.gd @@ -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)