From cd023b3b4d986d0b6799f70e371ad8faddcefda1 Mon Sep 17 00:00:00 2001 From: He4eT Date: Tue, 10 Dec 2024 19:35:32 +0100 Subject: [PATCH] Eatable potion --- items/potion.t | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/items/potion.t b/items/potion.t index 3fde87e..db6e3d0 100644 --- a/items/potion.t +++ b/items/potion.t @@ -1,4 +1,4 @@ -potion: Thing +potion: Food 'potion' 'potion' "A small glass bottle filled with a glowing green potion.\n @@ -6,4 +6,10 @@ potion: Thing It's sealed with a cork and looks both intriguing and powerful, hinting at magical properties within. " location = dude + dobjFor(Eat) { + action() { + "It was poisoned. "; + finishGameMsg(ftDeath, [finishOptionUndo]); + } + } ;