summaryrefslogtreecommitdiff
path: root/npc/020-1/trainer.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/020-1/trainer.txt')
-rw-r--r--npc/020-1/trainer.txt26
1 files changed, 25 insertions, 1 deletions
diff --git a/npc/020-1/trainer.txt b/npc/020-1/trainer.txt
index e1b2a778e..1fb4774ac 100644
--- a/npc/020-1/trainer.txt
+++ b/npc/020-1/trainer.txt
@@ -96,7 +96,31 @@ L_Main:
break;
// Evolve Card
case 3:
- mesc l("ERROR: Unimplemented Function"), 1;
+ mesn;
+ mesq l("Give me %s cards of the same type, and I'll give you one card of a higher rarity. There is no cost, but the card is random.", b(l("three")));
+ next;
+ mes "##B" + l("Drag and drop an item from your inventory.") + "##b";
+
+ .@card = requestitem();
+ if (.@card <= 1) break;
+ if (countitem(.@card) < 3) {
+ mesc l("You need at least %d cards of same kind.", 3), 1;
+ break;
+ }
+ .@st = merc_getstar(.@card);
+ if (.@st < 1 || .@st >= 5) {
+ mesc l("This cannot be evolved."), 1;
+ break;
+ }
+ delitem .@card, 3;
+ merc_boxset(
+ (.@st == 4 ? 1000 : 0),
+ (.@st == 3 ? 1000 : 0),
+ (.@st == 2 ? 1000 : 0),
+ (.@st == 1 ? 1000 : 0),
+ 0);
+ mesn;
+ mesq l("Here you go! Wasn't this a sweet deal?");
break;
// Leave
default: