removed commented out attempt
This commit is contained in:
@@ -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)
|
u8 GetItemEffectType(u16 item)
|
||||||
{
|
{
|
||||||
const u8 *itemEffect;
|
const u8 *itemEffect;
|
||||||
|
|||||||
Reference in New Issue
Block a user