--check: 938/3256 method bodies compile for x86_64 (28.8%), 32-bit layout asserts hold; boot path 3/626 curated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
31 lines
968 B
C++
31 lines
968 B
C++
#include "classes.h"
|
|
|
|
// 00730b20
|
|
uint8_t PillEffect::IsAvailable()
|
|
{
|
|
char cVar1;
|
|
uint8_t bVar2;
|
|
|
|
if (g_game != GHIDRA_CAST<Game *>(0x0)) {
|
|
if (*GHIDRA_CAST<char *>((GHIDRA_CAST<char *>(this) + 0x38)) == '\0') {
|
|
if (g_game->_difficulty == 2) {
|
|
return 0;
|
|
}
|
|
if (g_game->_difficulty == 3) {
|
|
return 0;
|
|
}
|
|
}
|
|
if ((1 < *GHIDRA_CAST<int *>(&g_game->_deathmatchManager)) &&
|
|
(cVar1 = (**(code **)(**GHIDRA_CAST<int **>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&((g_game->_deathmatchManager))) + 0xc)))) + 0x28))
|
|
(*GHIDRA_CAST<uint32_t *>(this)), cVar1 != '\0')) {
|
|
return 0;
|
|
}
|
|
}
|
|
if ((*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(this) + 4)) < 0) ||
|
|
(bVar2 = (GHIDRA_CAST<PersistentGameData *>((&g_manager->_persistentGameData)))->PersistentGameData::Unlocked(*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(this) + 4))),
|
|
bVar2 != 0)) {
|
|
return 1;
|
|
}
|
|
return 0;
|
|
}
|