From 606da1e3e772334f54007fc35ce4db58c0ab8895 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Thu, 23 Sep 2021 20:14:04 -0300 Subject: It is here! Mercenary Evolution is finally in! (sort of) --- npc/items/mercenary.txt | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) (limited to 'npc/items') diff --git a/npc/items/mercenary.txt b/npc/items/mercenary.txt index ea7f1389a..140d3887b 100644 --- a/npc/items/mercenary.txt +++ b/npc/items/mercenary.txt @@ -103,3 +103,48 @@ function script merc_randid { return .@n; } +// Read the card and return its rarity +// merc_getstar(card) +function script merc_getstar { + switch (getarg(0)) { + case MercBoxE: + case MercBoxEE: + case MercCard_AndreiSakar: + case MercCard_Lilanna: + case MercCard_Woody: + case MercCard_Xanthem: + return 5; + case MercBoxD: + case MercBoxDD: + case MercCard_Aisen: + case MercCard_Msawis: + case MercCard_DragonStar: + case MercCard_Swezanne: + return 4; + case MercBoxC: + case MercBoxCC: + case MercCard_Saulc: + case MercCard_Crazyfefe: + case MercCard_LawnCable: + case MercCard_Arthur: + return 3; + case MercBoxB: + case MercBoxBB: + case MercCard_Pookie: + case MercCard_Jesusalva: + case MercCard_Demure: + case MercCard_EarthWitch: + return 2; + case MercBoxA: + case MercBoxAA: + case MercCard_Apane: + case MercCard_Soren: + case MercCard_GonzoDark: + case MercCard_Rosa: + return 1; + default: + return 0; + } + return -1; +} + -- cgit v1.2.3-70-g09d2