From 888d5595c511b30b6db724936cf82123ca3f8ae6 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 28 Jan 2020 23:51:30 -0300 Subject: Demure - allow to append multiple love letters (as many as needed, actually) --- npc/001-11/Demure.txt | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/npc/001-11/Demure.txt b/npc/001-11/Demure.txt index 8600ddb31..f71a08a7c 100644 --- a/npc/001-11/Demure.txt +++ b/npc/001-11/Demure.txt @@ -72,12 +72,20 @@ #VALENTINE_SENT+=@Val_Ammo; // Handle Love Letter + // TODO: Allow multiple attachment if (countitem(LoveLetter)) { mesn; mesq l("Should I attach a love letter?"); next; - if (askyesno() == ASK_YES) { - delitem LoveLetter, 1; + .@totalneed=@Val_Ammo/10+1; + select + l("Yes, one"), + l("Yes, %d", .@totalneed), + l("No"); + mes ""; + .@reply=@menu-1; + if (@menu != 3) { + delitem LoveLetter, (.@reply ? .@totalneed : 1); // Register your name on love letter .@s$ = htget($@VALENTINE_LOVELETTER, .@ref, ""); @@ -92,7 +100,8 @@ //#VALENTINE_POINTS+=min(25, max(1, @Val_Ammo/2)); // New rule: Double points up to 10 points - #VALENTINE_POINTS+=min(10, @Val_Ammo); + .@min=(.@reply ? .@totalneed*10 : 10); + #VALENTINE_POINTS+=min(.@min, @Val_Ammo); } // Love Letter OK mesc l("Ok, done!"); -- cgit v1.2.3-60-g2f50