--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>
58 lines
1.2 KiB
C++
58 lines
1.2 KiB
C++
#include "classes.h"
|
|
|
|
// 0041e460
|
|
int Config::GetPillEffects()
|
|
{
|
|
int in_ECX;
|
|
|
|
return in_ECX + 0x30;
|
|
}
|
|
|
|
// 00424530
|
|
void Config::GetCollectibles()
|
|
{
|
|
return;
|
|
}
|
|
|
|
// 00685d30
|
|
void * Config::GetTrinkets()
|
|
{
|
|
return (void *)(GHIDRA_INT(this) + 0xc);
|
|
}
|
|
|
|
// 00685d40
|
|
int Config::GetCards()
|
|
{
|
|
int in_ECX;
|
|
|
|
return in_ECX + 0x24;
|
|
}
|
|
|
|
// 0072fda0
|
|
ItemConfig_Item * Config::GetNullItem(int id)
|
|
{
|
|
if ((id < 0) || (*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(this) + 0x1c)) - *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(this) + 0x18)) >> 2 <= id)) {
|
|
return GHIDRA_CAST<ItemConfig_Item *>(0x0);
|
|
}
|
|
return *GHIDRA_CAST<ItemConfig_Item **>((*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(this) + 0x18)) + id * 4));
|
|
}
|
|
|
|
// 0072fdd0
|
|
void * Config::GetPillEffect(int pillEffect)
|
|
{
|
|
if ((pillEffect < 0) ||
|
|
(*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(this) + 0x34)) - *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(this) + 0x30)) >> 2 <= pillEffect)) {
|
|
return (void *)0x0;
|
|
}
|
|
return *(void **)(*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(this) + 0x30)) + pillEffect * 4);
|
|
}
|
|
|
|
// 0085dbd0
|
|
uint8_t Config::ShouldAddCostumeOnPickup(ItemConfig_Item *item)
|
|
{
|
|
if ((item == GHIDRA_CAST<ItemConfig_Item *>(0x0)) || (item->addCostumeOnPickup == 0)) {
|
|
return 0;
|
|
}
|
|
return 1;
|
|
}
|