summaryrefslogtreecommitdiff
path: root/npc/001-11/Demure.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/001-11/Demure.txt')
-rw-r--r--npc/001-11/Demure.txt15
1 files 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!");