diff options
| author | nathan <nathansmith@disroot.org> | 2026-01-11 13:13:36 +0000 |
|---|---|---|
| committer | nathan <nathansmith@disroot.org> | 2026-01-11 13:13:36 +0000 |
| commit | e853966be38ae6c5319df137c3b04a86e52b562b (patch) | |
| tree | 76a7b271ac1795098ebb8d797a523fbcbfc54080 /src/entities/oldMint.c | |
| parent | 013ac4a2f4ae24d71f425f31edd77a8e29ed1da8 (diff) | |
| download | FindThings-e853966be38ae6c5319df137c3b04a86e52b562b.tar.gz FindThings-e853966be38ae6c5319df137c3b04a86e52b562b.tar.bz2 FindThings-e853966be38ae6c5319df137c3b04a86e52b562b.zip | |
Diffstat (limited to 'src/entities/oldMint.c')
| -rw-r--r-- | src/entities/oldMint.c | 23 |
1 files changed, 23 insertions, 0 deletions
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; + } +} |
