Skip to content

Instantly share code, notes, and snippets.

@Lusamine
Last active May 13, 2021 17:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Lusamine/bd5cc6c9c279e1b59d242842b0ba474a to your computer and use it in GitHub Desktop.
Save Lusamine/bd5cc6c9c279e1b59d242842b0ba474a to your computer and use it in GitHub Desktop.
bool isSpecialSpeciesItem(ushort speciesID,uint itemID)
{
ulonglong uVar1;
if ((itemID & 0xffff) == 0) {
return false;
}
if (speciesID < 0x289) {
if ((uint)speciesID - 0x17e < 2) {
return false;
}
if (speciesID == 0x1e7) {
if ((itemID & 0xffff) != 0x70) {
return false;
}
return true;
}
if (speciesID == 0x1ed) {
uVar1 = isArceusPlate((ulonglong)itemID);
if ((uVar1 & 1) == 0) {
return false;
}
return true;
}
}
else {
if (speciesID < 0x378) {
if (speciesID == 0x289) {
uVar1 = isGenesectDrive((ulonglong)itemID);
if ((uVar1 & 1) == 0) {
return false;
}
return true;
}
if (speciesID == 0x305) {
uVar1 = isSilvallyMemory((ulonglong)itemID);
if ((uVar1 & 1) == 0) {
return false;
}
return true;
}
}
else {
if (speciesID == 0x378) {
if ((itemID & 0xffff) != 0x44f) {
return false;
}
return true;
}
if (speciesID == 0x379) {
if ((itemID & 0xffff) != 0x450) {
return false;
}
return true;
}
}
}
uVar1 = FUN_71007890f0((ulonglong)itemID);
if ((uVar1 & 1) == 0) {
return false;
}
return true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment