aboutsummaryrefslogtreecommitdiffstats
path: root/src/entities/oldMint.c
diff options
context:
space:
mode:
authornathan <nathansmith@disroot.org>2026-01-19 14:10:40 +0000
committernathan <nathansmith@disroot.org>2026-01-19 14:10:40 +0000
commitf44d154d1372597742642596fe91c619613f81ef (patch)
tree22eb7aaefc5b1100e6294c7aa2fd63a97758a8cb /src/entities/oldMint.c
parentf339de8c07647ed4c5d659639f0f3e6c271faf8f (diff)
downloadFindThings-f44d154d1372597742642596fe91c619613f81ef.tar.gz
FindThings-f44d154d1372597742642596fe91c619613f81ef.tar.bz2
FindThings-f44d154d1372597742642596fe91c619613f81ef.zip
Using inventory items
Diffstat (limited to 'src/entities/oldMint.c')
-rw-r--r--src/entities/oldMint.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/entities/oldMint.c b/src/entities/oldMint.c
index 445f34a..9e43fd9 100644
--- a/src/entities/oldMint.c
+++ b/src/entities/oldMint.c
@@ -30,8 +30,10 @@ InteractionCommand interactWithOldMint(Entity* entity, Game* game,
"Oh goodie it's an old mint!\nThough I advice you don't taste it\n...(assuming you want to live)");
addItemToInventory(&game->inventory, item);
return INTERACTION_TALK;
+ case SELECTION_USE:
+ return INTERACTION_KILL_ITEM;
default:
- entity->id = ENTITY_NONE;
+ entity->visable = false;
return INTERACTION_END;
}
}