summaryrefslogtreecommitdiff
path: root/npc/001-11/Demure.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-01-28 23:51:30 -0300
committerJesusaves <cpntb1@ymail.com>2020-01-28 23:51:30 -0300
commit888d5595c511b30b6db724936cf82123ca3f8ae6 (patch)
treef08c434faa96d6d2ba0f62cb88c82eb477a9cd66 /npc/001-11/Demure.txt
parentff2b50b738e1a79df4c60f6075459d122fe42e9d (diff)
downloadserverdata-888d5595c511b30b6db724936cf82123ca3f8ae6.tar.gz
serverdata-888d5595c511b30b6db724936cf82123ca3f8ae6.tar.bz2
serverdata-888d5595c511b30b6db724936cf82123ca3f8ae6.tar.xz
serverdata-888d5595c511b30b6db724936cf82123ca3f8ae6.zip
Demure - allow to append multiple love letters (as many as needed, actually)
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!");