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/stickyNickel.c | |
| parent | 013ac4a2f4ae24d71f425f31edd77a8e29ed1da8 (diff) | |
| download | FindThings-e853966be38ae6c5319df137c3b04a86e52b562b.tar.gz FindThings-e853966be38ae6c5319df137c3b04a86e52b562b.tar.bz2 FindThings-e853966be38ae6c5319df137c3b04a86e52b562b.zip | |
Diffstat (limited to 'src/entities/stickyNickel.c')
| -rw-r--r-- | src/entities/stickyNickel.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/entities/stickyNickel.c b/src/entities/stickyNickel.c index 94755c5..87d3687 100644 --- a/src/entities/stickyNickel.c +++ b/src/entities/stickyNickel.c @@ -1,4 +1,5 @@ #include "stickyNickel.h" +#include "ui.h" void initStickyNickel(Entity* entity) { @@ -11,3 +12,26 @@ void updateStickyNickel(Entity* entity, Game* game) DrawBillboard(game->player.camera, game->assets.textures[NICKEL_TEXTURE], entity->position, 1.0, WHITE); } + +InteractionCommand interactWithStickyNickel(Entity* entity, Game* game, + Selection selection) +{ + InventoryItem item = (InventoryItem){ + .id = STICKY_NICKEL, + .textureId = NICKEL_TEXTURE, + .count = 1 + }; + + switch (selection) + { + case SELECTION_INTERACT: + setInteractionChat( + &game->interactionChat, + "Luck you, its a sticky nickel :D\nBetter wash your hands..."); + addItemToInventory(&game->inventory, item); + return INTERACTION_TALK; + default: + entity->id = ENTITY_NONE; + return INTERACTION_END; + } +} |
