diff options
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; + } +} |
