From 602bfee943ac7810d0ca961851883c8909f5d7ff Mon Sep 17 00:00:00 2001 From: nathan Date: Tue, 20 Jan 2026 06:39:03 -0700 Subject: Intractable inventory items --- src/entities/oldMint.c | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'src/entities') diff --git a/src/entities/oldMint.c b/src/entities/oldMint.c index 9e43fd9..87b3583 100644 --- a/src/entities/oldMint.c +++ b/src/entities/oldMint.c @@ -31,9 +31,19 @@ InteractionCommand interactWithOldMint(Entity* entity, Game* game, addItemToInventory(&game->inventory, item); return INTERACTION_TALK; case SELECTION_USE: - return INTERACTION_KILL_ITEM; + setInteractionChat(&game->interactionChat, + "Bad idea. I am very old and stale."); + entity->data = (void*)1; + return INTERACTION_TALK; default: - entity->visable = false; - return INTERACTION_END; + if (entity->data == NULL) + { + entity->visable = false; + return INTERACTION_END; + } + else + { + return INTERACTION_KILL_ITEM; + } } } -- cgit v1.2.3