From e771854eae0ec154d125b2171669ca2578997ae3 Mon Sep 17 00:00:00 2001 From: golem galvanize Date: Wed, 19 Dec 2018 10:51:55 -0500 Subject: [PATCH] removed commented out attempt --- src/party_menu.c | 65 ------------------------------------------------ 1 file changed, 65 deletions(-) diff --git a/src/party_menu.c b/src/party_menu.c index ce22f2dae..0c21960f9 100755 --- a/src/party_menu.c +++ b/src/party_menu.c @@ -5796,71 +5796,6 @@ void sub_81B7C74(u8 taskId, TaskFunc task) } } -/* u8 GetItemEffectType(u16 item) -{ - const u8 *itemEffect; - - if IS_POKEMON_ITEM(item) - { - if (item == ITEM_ENIGMA_BERRY) - itemEffect = gSaveBlock1Ptr->enigmaBerry.itemEffect; - else - itemEffect = gItemEffectTable[item - ITEM_POTION]; - if ((itemEffect[0] & 0x3F) || itemEffect[1] != 0 || itemEffect[2] != 0 || (itemEffect[3] & 0x80)) - return 0; - if (itemEffect[0] & 0x40) - return 10; - if (itemEffect[3] & 0x40) - return 1; - if ((itemEffect[3] & 0x3F) || (itemEffect[0] >> 7)) - { - if (itemEffect[3] == 0x20) - return 4; - if (itemEffect[3] == 0x10) - return 3; - if (itemEffect[3] == 8) - return 5; - if (itemEffect[3] == 4) - return 6; - if (itemEffect[3] == 2) - return 7; - if (itemEffect[3] == 1) - return 8; - if ((itemEffect[0] >> 7) != 0 && itemEffect[3] == 0) - return 9; - else - return 11; - } - if (itemEffect[4] & 0x44) - return 2; - if (itemEffect[4] & 2) - return 12; - if (itemEffect[4] & 1) - return 13; - if (itemEffect[5] & 8) - return 14; - if (itemEffect[5] & 4) - return 15; - if (itemEffect[5] & 2) - return 16; - if (itemEffect[5] & 1) - return 17; - if (itemEffect[4] & 0x80) - return 18; - if (itemEffect[4] & 0x20) - return 19; - if (itemEffect[5] & 0x10) - return 20; - if (itemEffect[4] & 0x18) - return 21; - return 22; - } - else - { - return 22; - } -} */ - u8 GetItemEffectType(u16 item) { const u8 *itemEffect;