From e853966be38ae6c5319df137c3b04a86e52b562b Mon Sep 17 00:00:00 2001 From: nathan Date: Sun, 11 Jan 2026 06:13:36 -0700 Subject: More inventory things --- src/entities/oldMint.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'src/entities/oldMint.c') diff --git a/src/entities/oldMint.c b/src/entities/oldMint.c index 17c751e..be90ed6 100644 --- a/src/entities/oldMint.c +++ b/src/entities/oldMint.c @@ -10,3 +10,26 @@ void updateOldMint(Entity* entity, Game* game) DrawBillboard(game->player.camera, game->assets.textures[MINT_TEXTURE], entity->position, 1.0, WHITE); } + +InteractionCommand interactWithOldMint(Entity* entity, Game* game, + Selection selection) +{ + InventoryItem item = (InventoryItem){ + .id = OLD_MINT, + .textureId = MINT_TEXTURE, + .count = 1 + }; + + switch (selection) + { + case SELECTION_INTERACT: + setInteractionChat( + &game->interactionChat, + "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; + default: + entity->id = ENTITY_NONE; + return INTERACTION_END; + } +} -- cgit v1.2.3