diff options
author | Fedja Beader <fedja@protonmail.ch> | 2024-06-12 19:23:28 +0200 |
---|---|---|
committer | Jesusalva Jesusalva <jesusalva@tmw2.org> | 2024-06-12 19:14:35 +0000 |
commit | 46c8bae3273d0bc245eb9398525a9a7de8ab59e4 (patch) | |
tree | 192463359ee3c80a495d5bfe252b3c6d36a0bbe8 | |
parent | 2eaa8c709b6ebf66cf9f0eac7029665af5af207c (diff) | |
download | serverdata-46c8bae3273d0bc245eb9398525a9a7de8ab59e4.tar.gz serverdata-46c8bae3273d0bc245eb9398525a9a7de8ab59e4.tar.bz2 serverdata-46c8bae3273d0bc245eb9398525a9a7de8ab59e4.tar.xz serverdata-46c8bae3273d0bc245eb9398525a9a7de8ab59e4.zip |
Only announce picking an apple if it then lands in your inventory. Also
check if it fits before announcing.
-rw-r--r-- | npc/001-7/homunculus.txt | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/npc/001-7/homunculus.txt b/npc/001-7/homunculus.txt index 11df6ab80..6328a0689 100644 --- a/npc/001-7/homunculus.txt +++ b/npc/001-7/homunculus.txt @@ -192,15 +192,17 @@ OnInit: mesn; mesc l("A close inspection reveals nothing out of ordinary. It seems to be well kept."); next; + if (!(.@q & 1)) { mesn strcharinfo(0); mesc l("You're hesitant to pick one, they could be dangerous."); close; } - mesn strcharinfo(0); - mesc l("You carefully pick a @@. It looks delicious! You feel you'll need it sooner than you expect.", getitemlink(MagicApple)); + if (!(.@q & .hcID)) { inventoryplace MagicApple, 1; + mesn strcharinfo(0); + mesc l("You carefully pick a @@. It looks delicious! You feel you'll need it sooner than you expect.", getitemlink(MagicApple)); getitem MagicApple, 1; setq2 FrostiaQuest_Homunculus, .@q|.hcID; } |