#include "classes.h" // 009fa190 uint32_t Weapon_Bombs::GetFocusEntity() { if ((*GHIDRA_CAST((GHIDRA_CAST(this) + 0x34)) >> 4 & 1) == 0) { return GHIDRA_CAST(0x0); } return *GHIDRA_CAST((GHIDRA_CAST(this) + 0x44)); } // 009fa1b0 uint32_t Weapon_Bombs::GetMarkedTargetVariant() { void *player = this; uint8_t isHasItem; int targetVariant; Entity_Player *player; if ((*GHIDRA_CAST((GHIDRA_CAST(player) + 0x34)) >> 4 & 1) != 0) { return 0; } player = *GHIDRA_CAST((GHIDRA_CAST(player) + 4)); if (player != GHIDRA_CAST(0x0)) { if (player->_type == 1) goto LAB_009fa1e0; if (player->_type == 3) { player = *GHIDRA_CAST(&player->_isControlsEnabled); goto LAB_009fa1e0; } } player = GHIDRA_CAST(0x0); LAB_009fa1e0: isHasItem = (GHIDRA_CAST((player)))->Entity_Player::HasCollectible(0x18a,0); if (isHasItem == 0) { return 0; } isHasItem = (GHIDRA_CAST((player)))->Entity_Player::HasCollectible(0x23c,0); targetVariant = 0x1e; if (isHasItem != 0) { targetVariant = 0x99; } return targetVariant; }