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/0b428b61651d427afba5c32a9a2cabe2 to your computer and use it in GitHub Desktop.
Save Lusamine/0b428b61651d427afba5c32a9a2cabe2 to your computer and use it in GitHub Desktop.
bool isSpecialSpeciesItem(ushort speciesID,uint itemID)
{
ulonglong uVar1;
uVar1 = (ulonglong)itemID;
if (speciesID < 0x289) {
if (speciesID < 0x1e7) {
if (speciesID == 0x17e) {
if ((itemID & 0xffff) != 0) {
return false;
}
return true;
}
if (speciesID == 0x17f) {
if ((itemID & 0xffff) != 0) {
return false;
}
return true;
}
}
else {
if (speciesID == 0x1e7) {
if ((itemID & 0xffff) != 0x70) {
return false;
}
return true;
}
if (speciesID == 0x1ed) {
uVar1 = isArceusPlate(uVar1);
if ((uVar1 & 1) == 0) {
return false;
}
return true;
}
}
}
else {
if (speciesID < 0x378) {
if (speciesID == 0x289) {
uVar1 = isGenesectDrive(uVar1);
if ((uVar1 & 1) == 0) {
return false;
}
return true;
}
if (speciesID == 0x305) {
uVar1 = isSilvallyMemory(uVar1);
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(uVar1);
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