diff options
Diffstat (limited to 'npc/items/mercenary.txt')
-rw-r--r-- | npc/items/mercenary.txt | 45 |
1 files changed, 45 insertions, 0 deletions
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; +} + |