From 8a3ca84944bdb8badc3d555340ad2496b3f6614c Mon Sep 17 00:00:00 2001 From: "Guilherme G. Menaldo" Date: Tue, 17 Oct 2023 20:45:17 -0300 Subject: [PATCH] fix itemlink test with cards Captain_Felock_Card card is not available for pre-re, making tests fail. Now using a card available for both modes. --- npc/dev/test.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/npc/dev/test.txt b/npc/dev/test.txt index 32d0cf1f4a1..a6c7ecbdf37 100644 --- a/npc/dev/test.txt +++ b/npc/dev/test.txt @@ -243,7 +243,7 @@ function script F_TestGetItemLink_BaseWeapon { } function script F_TestGetItemLink_FullWeapon { - setarray(.@cards[0], Fabre_Card, Captain_Felock_Card, 0, Agility1); + setarray(.@cards[0], Fabre_Card, Necromancer_Card, 0, Agility1); setarray(.@options[0], WEAPON_ATTR_GROUND, 1, 0, VAR_MAXHPAMOUNT, 10, 0); .@str$ = getitemlink(Knife, 10, .@cards, .@options, 2); @@ -251,11 +251,11 @@ function script F_TestGetItemLink_FullWeapon { if (PACKETVER < 20150923) { .@pass = (.@str$ == getiteminfo(Knife, ITEMINFO_NAME)); } else if (PACKETVER < 20161116) { - .@pass = (.@str$ == "000021jn%0a'12y'74q'00'1ei)2R*00+01)01*00+0a"); + .@pass = (.@str$ == "000021jn%0a'12y'19C'00'1ei)2R*00+01)01*00+0a"); } else if (PACKETVER < 20200916) { - .@pass = (.@str$ == "000021jn%0a&00(12y(74q(00(1ei*2R+00,01*01+00,0a"); + .@pass = (.@str$ == "000021jn%0a&00(12y(19C(00(1ei*2R+00,01*01+00,0a"); } else { - .@pass = (.@str$ == "000021jn%0a&00'02)12y)74q)00)1ei+2R,00-01+01,00-0a"); + .@pass = (.@str$ == "000021jn%0a&00'02)12y)19C)00)1ei+2R,00-01+01,00-0a"); } return .@pass;