mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-11-17 03:57:38 +01:00
removed commented out attempt
This commit is contained in:
parent
42c5ceef3a
commit
e771854eae
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user