Curation round 20: player update, costumes and render, Missing No., the last actives and cards, familiars, Pin, the Frail, Wormwood and the Heretic, Dross to Gehenna, effects and the devil room purchase, champion colours, the quit path, save fields, shared vector helpers

This commit is contained in:
shweet committed 2026-11-22 00:33:35 -05:00
1 parent ee863e70e6
commit 8dbeb1bc4a
168 files changed
+15682 -2399

No files matched your search

-642
View File
@@ -1,642 +0,0 @@
#include "classes.h"
// 008332e0
void Ambush::shuffle_waves()
{
int iVar1;
code *pcVar2;
uint32_t seed;
uint32_t swapIndex;
uint32_t remainingCount;
uint32_t local_1c;
int waveOffset;
int waveIndex;
uint32_t swapTmp;
uint32_t *temp_161c0439608;
if (GHIDRA_CAST<Ambush *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0xc)))) != this) {
msvc::vector<msvc::vector<12byte>>::assign
(*GHIDRA_CAST<uint32_t *>(this),*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x4)))),local_1c);
}
iVar1 = *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(g_game->_room) + 4));
seed = 0;
if (iVar1 != 0) {
seed = *GHIDRA_CAST<uint32_t *>((iVar1 + 0x5c));
}
iVar1 = *GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0xc))));
remainingCount = (*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x10)))) - iVar1) / 0xc;
waveIndex = remainingCount - 1;
if (0 < waveIndex) {
waveOffset = waveIndex * 0xc;
do {
if (seed == 0) {
KAGE_LogMessage(0x10,GHIDRA_CAST<uint8_t *>("RNG Seed is zero!\n"));
pcVar2 = (code *)swi(3);
(*pcVar2)();
return;
}
seed = seed >> 1 ^ seed;
seed = seed << 5 ^ seed;
seed = seed >> 0x13 ^ seed;
swapIndex = 0;
if (remainingCount != 0) {
swapIndex = seed % remainingCount;
}
temp_161c0439608 = GHIDRA_CAST<uint32_t *>((iVar1 + swapIndex * 0xc));
if (GHIDRA_CAST<uint32_t *>((iVar1 + waveOffset)) != temp_161c0439608) {
swapTmp = *GHIDRA_CAST<uint32_t *>((iVar1 + waveOffset));
*GHIDRA_CAST<uint32_t *>((waveOffset + iVar1)) = *temp_161c0439608;
*temp_161c0439608 = swapTmp;
swapTmp = *GHIDRA_CAST<uint32_t *>((waveOffset + 4 + iVar1));
*GHIDRA_CAST<uint32_t *>((waveOffset + 4 + iVar1)) = temp_161c0439608[1];
temp_161c0439608[1] = swapTmp;
swapTmp = *GHIDRA_CAST<uint32_t *>((waveOffset + 8 + iVar1));
*GHIDRA_CAST<uint32_t *>((waveOffset + 8 + iVar1)) = temp_161c0439608[2];
temp_161c0439608[2] = swapTmp;
}
waveIndex = waveIndex + -1;
waveOffset = waveOffset + -0xc;
remainingCount = remainingCount - 1;
} while (0 < waveIndex);
}
return;
}
// 00833420
void Ambush::StartChallenge()
{
void *pvVar1;
Entity_Player *doorStopOwner;
int targetRoomType;
uint32_t doorSlot;
uint32_t uVar3;
Game *game;
int doorOffset;
int currentRoomType;
GridEntity_Door *door;
int targetRoomType;
if (((*GHIDRA_CAST<uint32_t *>((*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(g_game->_room) + 4)) + 0x44)) >> 3 & 1) == 0) && (this->_isActive == 0)
) {
this->_isActive = 1;
*GHIDRA_CAST<uint32_t *>((this + 1)) = 0x1e;
this->_currentWave = 0;
shuffle_waves(this);
doorStopOwner = PlayerManager::FirstTrinketOwner(&g_game->_playerManager,0x7c);
if (doorStopOwner == GHIDRA_CAST<Entity_Player *>(0x0)) {
targetRoomType = 0;
}
else {
targetRoomType = Entity_Player::GetTrinketMultiplier(doorStopOwner,0x7c);
}
doorOffset = 0x724;
doorSlot = 0;
game = g_game;
do {
doorSlot = doorSlot + 1;
if (doorSlot < 9) {
pvVar1 = game->_room;
door = *GHIDRA_CAST<GridEntity_Door **>((doorOffset + GHIDRA_INT(pvVar1)));
if (((door != GHIDRA_CAST<GridEntity_Door *>(0x0)) &&
((game->_enterDoor != door->_slot ||
(((targetRoomType < 2 || (*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(pvVar1) + 8)) != 0x11)) &&
((targetRoomType < 3 || (*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(pvVar1) + 8)) != 0xb)))))))) &&
(*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((door)) + 0xc)))) != 1)) {
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((door)) + 0xc)))) = 1;
GridEntity_Door::UpdateAnimation(door);
currentRoomType = door->_currentRoomType;
if (((((currentRoomType == 7) ||
(targetRoomType = door->_targetRoomType, targetRoomType == 7)) ||
(currentRoomType == 8)) || ((targetRoomType == 8 || (currentRoomType == 0x1d)))) ||
(game = g_game, targetRoomType == 0x1d)) {
(GHIDRA_CAST<msvc::string *>(((door->_openAnimation)._buf)))->msvc::string::assign(s_Open,4);
game = g_game;
}
}
}
doorOffset = doorOffset + 4;
} while (doorOffset < 0x744);
(GHIDRA_CAST<Music *>((GHIDRA_CAST<Music *>(&g_manager->_musicManager))))->Music::Play((*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(game->_room) + 8)) == 0x11) + 0x26,
(g_manager->_optionsConfig)._musicVolume);
game = g_game;
targetRoomType = *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(g_game->_room) + 4));
uVar3 = 0;
if (targetRoomType != 0) {
uVar3 = *GHIDRA_CAST<uint32_t *>((targetRoomType + 0x5c));
}
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[1])) + 0x4)))) = uVar3;
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[1])) + 0x8)))) = 5;
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[1])) + 0xc)))) = 9;
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[1])) + 0x10)))) = 7;
targetRoomType = *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(game->_room) + 4));
uVar3 = 0;
if (targetRoomType != 0) {
uVar3 = *GHIDRA_CAST<uint32_t *>((targetRoomType + 0x5c));
}
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[1])) + 0x14)))) = uVar3;
this[1]._maxWaves = 7;
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[1])) + 0x1c)))) = 0x11;
*GHIDRA_CAST<uint32_t *>(&this[1]._isActive) = 0x15;
}
return;
}
// 00833600
void Ambush::SpawnWave()
{
code *pcVar1;
int iVar2;
uint32_t uVar3;
uint64_t *pickedEntry;
uint32_t uVar4;
uint32_t *playerSlot;
int gridX;
Entity *entryType;
void *pvVar5;
uint32_t *puVar6;
short *spawnEntry;
PlayerManager *playerManager;
uint32_t local_90;
Vector local_8c;
int local_84;
uint32_t *entries;
uint32_t *entriesEnd;
uint32_t *local_78;
Vector local_74;
uint32_t *entriesCapacity;
Entity *local_68;
uint32_t local_64;
uint32_t *local_60;
Room *room;
uint32_t *local_58;
Game *local_54;
uint32_t newEntry;
uint64_t uStack_4c;
uint32_t uStack_44;
uint64_t entry;
uint32_t local_38;
int difficultyTable [5];
uint8_t *puStack_20;
void *local_1c;
uint8_t *puStack_18;
int local_14;
Manager *manager;
uint16_t variant;
local_14 = 0xffffffff;
puStack_18 = &LAB_00b021dd;
local_1c = ExceptionList;
puStack_20 = GHIDRA_CAST<uint8_t *>((difficultyTable + 0xc));
difficultyTable[4] = __security_cookie ^ GHIDRA_UINT((difficultyTable + 9));
ExceptionList = &local_1c;
difficultyTable[0] = 1;
difficultyTable[1] = 5;
difficultyTable[2] = 10;
difficultyTable[3] = 0xf;
local_54 = g_game;
room = g_game->_room;
iVar2 = this->_currentWave - GHIDRA_UINT((g_game->_difficulty != 1));
if (3 < iVar2) {
iVar2 = 3;
}
local_84 = difficultyTable[iVar2];
if (g_game->_challenge == 0x2c) {
uVar3 = Level::GetRoomStageType(GHIDRA_CAST<Level *>(g_game),g_game->_currentRoomIdx);
local_58 = GHIDRA_CAST<uint32_t *>(RoomConfig)::GetStageID(local_54->_stage,uVar3,-1);
local_54 = g_game;
}
else if (g_game->_currentDimensionIdx == 2) {
local_58 = GHIDRA_CAST<uint32_t *>(&DAT_00000023);
}
else {
local_58 = GHIDRA_CAST<uint32_t *>(RoomConfig)::GetStageID(g_game->_stage,g_game->_stageType,-1);
}
local_8c.y = (float)(0xb - GHIDRA_UINT((*GHIDRA_CAST<int *>((*GHIDRA_CAST<int *>((*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((room)) + 0x4)))) + 0x10)) + 0x10)) != 1))
);
puVar6 = GHIDRA_CAST<uint32_t *>(0x0);
local_60 = GHIDRA_CAST<uint32_t *>(0x0);
entries = GHIDRA_CAST<uint32_t *>(0x0);
entriesEnd = GHIDRA_CAST<uint32_t *>(0x0);
entriesCapacity = GHIDRA_CAST<uint32_t *>(0x0);
local_78 = GHIDRA_CAST<uint32_t *>(0x0);
local_14 = 0;
local_64 = 0;
local_68 = GHIDRA_CAST<Entity *>(0x3e8);
do {
if (local_60 != puVar6) {
LAB_00833972:
local_58 = local_60 + 1;
do {
puVar6 = local_58;
local_68 = GHIDRA_CAST<Entity *>(local_58[-1]);
local_8c.x = (float)(GHIDRA_INT(local_68) % room->_gridWidth) * 40.0 + 40.0;
local_8c.y = (float)(GHIDRA_INT(local_68) / room->_gridWidth) * 40.0 + 120.0;
Room::FindFreeTilePosition(room,&local_74,&local_8c,0.0);
uVar3 = *GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[1])) + 0x14))));
if (*puVar6 - 10 < 0x3de) {
if (uVar3 == 0) {
KAGE_LogMessage(0x10,GHIDRA_CAST<uint8_t *>("RNG Seed is zero!\n"));
uVar3 = *GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[1])) + 0x14))));
if (uVar3 == 0) {
pcVar1 = (code *)swi(3);
(*pcVar1)();
return;
}
}
puVar6 = local_58;
uVar3 = uVar3 >> ((uint8_t)this[1]._maxWaves & 0x1f) ^ uVar3;
uVar3 = uVar3 << ((uint8_t)*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[1])) + 0x1c)))) & 0x1f) ^ uVar3;
uVar3 = uVar3 >> ((uint8_t)*GHIDRA_CAST<uint32_t *>(&this[1]._isActive) & 0x1f) ^ uVar3;
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[1])) + 0x14)))) = uVar3;
variant = (uint16_t)local_58[1];
iVar2 = spawn_enemy_spawner_effect
(*local_58,variant,&local_74,variant,0,
*GHIDRA_CAST<uint16_t *>((GHIDRA_CAST<char *>(local_58) + 6)),uVar3,variant,local_68);
local_54 = g_game;
if ((((g_game != GHIDRA_CAST<Game *>(0x0)) && (1 < *GHIDRA_CAST<int *>(&g_game->_deathmatchManager))) &&
(*puVar6 == 1)) || (*puVar6 - 10 < 0x3de)) {
*GHIDRA_CAST<uint32_t *>((iVar2 + 0x16c)) = *GHIDRA_CAST<uint32_t *>((iVar2 + 0x16c)) | 0x80;
*GHIDRA_CAST<uint32_t *>((iVar2 + 0x168)) = *GHIDRA_CAST<uint32_t *>((iVar2 + 0x168));
}
}
else {
if (uVar3 == 0) {
KAGE_LogMessage(0x10,GHIDRA_CAST<uint8_t *>("RNG Seed is zero!\n"));
uVar3 = *GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[1])) + 0x14))));
local_54 = g_game;
if (uVar3 == 0) {
pcVar1 = (code *)swi(3);
(*pcVar1)();
return;
}
}
puVar6 = local_58;
uVar3 = uVar3 >> ((uint8_t)this[1]._maxWaves & 0x1f) ^ uVar3;
uVar3 = uVar3 << ((uint8_t)*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[1])) + 0x1c)))) & 0x1f) ^ uVar3;
uVar3 = uVar3 >> ((uint8_t)*GHIDRA_CAST<uint32_t *>(&this[1]._isActive) & 0x1f) ^ uVar3;
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[1])) + 0x14)))) = uVar3;
local_68 = Game::Spawn(local_54,*local_58,GHIDRA_UINT((uint16_t)local_58[1]),&local_74,
&g_vectorZero,GHIDRA_CAST<Entity *>(0x0),GHIDRA_UINT(*GHIDRA_CAST<uint16_t *>((GHIDRA_CAST<char *>(local_58) + 6))),
uVar3);
if (local_68->_type == 1000) {
(**(code **)(*GHIDRA_CAST<int *>(local_68) + 0xc))();
}
local_68->_spawnGridIndex = puVar6[-1];
local_54 = g_game;
}
local_58 = puVar6 + 4;
} while (puVar6 + 3 != entriesEnd);
LAB_00833b32:
manager = g_manager;
local_64 = 0x367;
seed_fart_sound_override(GHIDRA_CAST<int *>(&local_64));
(GHIDRA_CAST<SoundEffects *>((&manager->_sfxManager)))->SoundEffects::Play(local_64,1.0,2,0,1.0,0.0);
uVar3 = 0;
playerManager = &g_game->_playerManager;
if (GHIDRA_INT((g_game->_playerManager)._playerList._end) - GHIDRA_INT((playerManager->_playerList)._begin)
>> 2 != 0) {
do {
pvVar5 = (playerManager->_playerList)._end;
if (GHIDRA_INT(pvVar5) - GHIDRA_INT((playerManager->_playerList)._begin) >> 2 == 0) {
KAGE_LogMessage(0x10,GHIDRA_CAST<uint8_t *>("PlayerManager::GetPlayer() : There are no players! \n"));
pvVar5 = (playerManager->_playerList)._end;
}
playerSlot = (playerManager->_playerList)._begin;
if (uVar3 < GHIDRA_UINT((GHIDRA_INT(pvVar5) - GHIDRA_INT(playerSlot) >> 2))) {
playerSlot = playerSlot + uVar3;
}
Entity_Player::spawn_locusts(GHIDRA_CAST<Entity_Player *>(*playerSlot));
uVar3 = uVar3 + 1;
playerManager = &g_game->_playerManager;
} while (uVar3 < GHIDRA_UINT((GHIDRA_INT((g_game->_playerManager)._playerList._end) -
GHIDRA_INT((playerManager->_playerList)._begin) >> 2)));
}
if (local_60 != GHIDRA_CAST<uint32_t *>(0x0)) {
uVar3 = GHIDRA_INT(entriesCapacity) - GHIDRA_INT(local_60) & 0xfffffff0;
puVar6 = local_60;
if (0xfff < uVar3) {
puVar6 = GHIDRA_CAST<uint32_t *>(local_60[-1]);
uVar3 = uVar3 + 0x23;
if (GHIDRA_CAST<uint8_t *>(0x1f) < GHIDRA_CAST<uint8_t *>((GHIDRA_INT(local_60) + (-4 - GHIDRA_INT(puVar6))))) {
/* WARNING: Subroutine does not return */
_invalid_parameter_noinfo_noreturn();
}
}
operator_delete(puVar6,uVar3);
}
ExceptionList = local_1c;
return;
}
local_54 = GHIDRA_CAST<Game *>(&local_54->_roomConfig);
local_90 = 0;
local_74.y = (float)Room::GetRoomShape(room);
uVar3 = *GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[1])) + 0x14))));
if (uVar3 == 0) {
KAGE_LogMessage(0x10,GHIDRA_CAST<uint8_t *>("RNG Seed is zero!\n"));
uVar3 = *GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[1])) + 0x14))));
if (uVar3 == 0) {
pcVar1 = (code *)swi(3);
(*pcVar1)();
return;
}
}
uVar3 = uVar3 >> ((uint8_t)this[1]._maxWaves & 0x1f) ^ uVar3;
uVar3 = uVar3 << ((uint8_t)*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[1])) + 0x1c)))) & 0x1f) ^ uVar3;
uVar3 = uVar3 >> ((uint8_t)*GHIDRA_CAST<uint32_t *>(&this[1]._isActive) & 0x1f) ^ uVar3;
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[1])) + 0x14)))) = uVar3;
local_54 = GHIDRA_CAST<Game *>(RoomConfig)::GetRandomRoom
(GHIDRA_CAST<RoomConfig *>(local_54),uVar3,1,GHIDRA_INT(local_58),0xb,GHIDRA_INT(local_74.y),0
,-1,local_84,local_84,&local_90,GHIDRA_UINT(local_8c.y),-1);
if (local_54 == GHIDRA_CAST<Game *>(0x0)) {
if (local_58 == GHIDRA_CAST<uint32_t *>(0x0)) {
KAGE_LogMessage(0x10,GHIDRA_CAST<uint8_t *>("No enemy wave found for ambush (difficulty: %d)\n"));
goto LAB_008337d3;
}
local_58 = GHIDRA_CAST<uint32_t *>(0x0);
}
else {
LAB_008337d3:
local_74.y = 0.0;
if (*GHIDRA_CAST<short *>((GHIDRA_CAST<char *>(local_54) + 0x44)) != 0) {
local_60 = GHIDRA_CAST<uint32_t *>(0x0);
do {
spawnEntry = GHIDRA_CAST<short *>((GHIDRA_INT(*(void **)(GHIDRA_CAST<char *>(local_54) + 0x40)) + GHIDRA_INT(local_60)));
uVar3 = *GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[1])) + 0x14))));
if (uVar3 == 0) {
KAGE_LogMessage(0x10,GHIDRA_CAST<uint8_t *>("RNG Seed is zero!\n"));
uVar3 = *GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[1])) + 0x14))));
if (uVar3 == 0) {
pcVar1 = (code *)swi(3);
(*pcVar1)();
return;
}
}
uVar3 = uVar3 >> ((uint8_t)this[1]._maxWaves & 0x1f) ^ uVar3;
uVar3 = uVar3 << ((uint8_t)*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[1])) + 0x1c)))) & 0x1f) ^ uVar3;
uVar3 = uVar3 >> ((uint8_t)*GHIDRA_CAST<uint32_t *>(&this[1]._isActive) & 0x1f) ^ uVar3;
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[1])) + 0x14)))) = uVar3;
pickedEntry = (GHIDRA_CAST<Spawn *>((spawnEntry)))->Spawn::PickEntry((float)((double)GHIDRA_INT(uVar3) +
__uint_to_double_fixup[-(GHIDRA_INT(uVar3) >> 0x1f)]) *
2.3283062e-10);
entry = *pickedEntry;
local_38 = *GHIDRA_CAST<uint32_t *>((pickedEntry + 1));
iVar2 = spawnEntry[1] + 1;
gridX = *spawnEntry + 1;
if ((((gridX < 0) || (room->_gridWidth <= gridX)) || (iVar2 < 0)) ||
(room->_gridHeight <= iVar2)) {
uVar3 = 0xffffffff;
}
else {
uVar3 = room->_gridWidth * iVar2 + gridX;
}
uVar4 = *GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[1])) + 0x14))));
if (uVar4 == 0) {
KAGE_LogMessage(0x10,GHIDRA_CAST<uint8_t *>("RNG Seed is zero!\n"));
uVar4 = *GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[1])) + 0x14))));
if (uVar4 == 0) {
pcVar1 = (code *)swi(3);
(*pcVar1)();
return;
}
}
uVar4 = uVar4 >> ((uint8_t)this[1]._maxWaves & 0x1f) ^ uVar4;
uVar4 = uVar4 << ((uint8_t)*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[1])) + 0x1c)))) & 0x1f) ^ uVar4;
uVar4 = uVar4 >> ((uint8_t)*GHIDRA_CAST<uint32_t *>(&this[1]._isActive) & 0x1f) ^ uVar4;
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[1])) + 0x14)))) = uVar4;
Room::TransformEntry(room,&entry,uVar3,uVar4);
if (&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&((GHIDRA_CAST<Entity *>(entry))[-1])) + 0x40f))) < GHIDRA_CAST<uint8_t *>(0x3e7)) {
entryType = GHIDRA_CAST<Entity *>(entry);
if (GHIDRA_CAST<Entity *>(entry) == GHIDRA_CAST<Entity *>(0x3e7)) {
entryType = local_68;
}
entry = CONCAT44((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(entry)) + 0x4))),entryType);
uStack_4c = entry;
uStack_44 = local_38;
newEntry = uVar3;
if (entriesEnd == entriesCapacity) {
msvc::vector<Vec16>::_Emplace_reallocate(entriesEnd,&newEntry);
entriesCapacity = local_78;
}
else {
*entriesEnd = uVar3;
entriesEnd[1] = GHIDRA_UINT(entryType);
entriesEnd[2] = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(entry)) + 0x4)));
entriesEnd[3] = local_38;
entriesEnd = entriesEnd + 4;
}
}
local_74.y = (float)(GHIDRA_INT(local_74.y) + 1);
local_60 = GHIDRA_CAST<uint32_t *>((GHIDRA_INT(local_60) + 0x10));
} while (GHIDRA_UINT(local_74.y) < GHIDRA_UINT((uint16_t)*GHIDRA_CAST<short *>((GHIDRA_CAST<char *>(local_54) + 0x44))));
local_60 = entries;
puVar6 = entriesEnd;
}
}
local_64 = local_64 + 1;
if (9 < local_64) {
local_54 = g_game;
if (local_60 == puVar6) goto LAB_00833b32;
goto LAB_00833972;
}
local_54 = g_game;
} while( true );
}
// 00833c40
void Ambush::SpawnBossrushWave()
{
int iVar1;
Manager *pMVar2;
uint32_t uVar3;
uint32_t *playerSlot;
int iVar4;
void *pvVar5;
int iVar6;
PlayerManager *playerManager;
Vector leftCopyPos;
Vector rightCopyPos;
Vector bodySpawnPos;
Vector headSpawnPos;
uint32_t local_38;
int local_20 [4];
void *local_10;
uint8_t *puStack_c;
int local_8;
puStack_c = &LAB_00b0221d;
local_10 = ExceptionList;
uVar3 = __security_cookie ^ GHIDRA_UINT((local_20 + 7));
ExceptionList = &local_10;
iVar6 = 0;
local_8 = 0;
if (0 < *GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x1c))))) {
do {
iVar4 = *GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x10)))) - *GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0xc))));
iVar1 = iVar4 >> 0x1f;
if (iVar4 / 0xc + iVar1 == iVar1) break;
msvc::vector<12byte>::insert_range
(0,*GHIDRA_CAST<uint32_t *>((*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x10)))) + -0xc)),
*GHIDRA_CAST<uint32_t *>((*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x10)))) + -8)),local_38);
msvc::vector<12byte>::_Tidy(uVar3);
*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x10)))) = *GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x10)))) + -0xc;
iVar6 = iVar6 + 1;
} while (iVar6 < *GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x1c)))));
}
local_20[0] = 0;
KAGE_LogMessage(0x10,GHIDRA_CAST<uint8_t *>("Wave has no entries!"));
pMVar2 = g_manager;
local_20[0] = 0x367;
seed_fart_sound_override(local_20);
(GHIDRA_CAST<SoundEffects *>((&pMVar2->_sfxManager)))->SoundEffects::Play(local_20[0],1.0,2,0,1.0,0.0);
uVar3 = 0;
playerManager = &g_game->_playerManager;
if (GHIDRA_INT((g_game->_playerManager)._playerList._end) - GHIDRA_INT((playerManager->_playerList)._begin) >> 2
!= 0) {
do {
pvVar5 = (playerManager->_playerList)._end;
if (GHIDRA_INT(pvVar5) - GHIDRA_INT((playerManager->_playerList)._begin) >> 2 == 0) {
KAGE_LogMessage(0x10,GHIDRA_CAST<uint8_t *>("PlayerManager::GetPlayer() : There are no players! \n"));
pvVar5 = (playerManager->_playerList)._end;
}
playerSlot = (playerManager->_playerList)._begin;
if (uVar3 < GHIDRA_UINT((GHIDRA_INT(pvVar5) - GHIDRA_INT(playerSlot) >> 2))) {
playerSlot = playerSlot + uVar3;
}
Entity_Player::spawn_locusts(GHIDRA_CAST<Entity_Player *>(*playerSlot));
uVar3 = uVar3 + 1;
playerManager = &g_game->_playerManager;
} while (uVar3 < GHIDRA_UINT((GHIDRA_INT((g_game->_playerManager)._playerList._end) -
GHIDRA_INT((playerManager->_playerList)._begin) >> 2)));
}
ExceptionList = local_10;
return;
}
// 00834350
void Ambush::Update()
{
int iVar1;
int iVar2;
Entity_Player *player;
int iVar3;
int iVar4;
int iVar5;
uint32_t playerIndex;
void *local_1c;
int tempEffect [3];
uint32_t local_c;
void *collectibles;
Game *game;
Manager *manager;
uint32_t *roomFlags;
game = g_game;
iVar1 = *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(g_game->_room) + 8));
if (iVar1 == 0x11) {
iVar3 = *GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x10)))) - *GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0xc))));
iVar4 = this->_maxWaves;
iVar2 = iVar3 >> 0x1f;
if (iVar3 / 0xc + iVar2 == iVar2) {
this->_maxWaves = this->_currentWave;
}
}
else {
iVar4 = (*GHIDRA_CAST<int *>((*GHIDRA_CAST<int *>((*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(g_game->_room) + 4)) + 0x10)) + 0x10)) != 1) + 2;
}
iVar2 = *GHIDRA_CAST<int *>((this + 1));
if (0 < iVar2) {
local_1c = game->_room;
iVar5 = *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(local_1c) + 0x12c4)) + *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(local_1c) + 0x12c0));
iVar3 = 0;
if (0 < iVar5) {
iVar3 = iVar5;
}
if ((iVar3 != 0) || (iVar1 == 0x11)) {
iVar5 = *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(local_1c) + 0x12cc)) + *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(local_1c) + 0x12c8));
iVar3 = 0;
if (0 < iVar5) {
iVar3 = iVar5;
}
if (0 < iVar3) {
return;
}
if (iVar1 != 0x11) {
return;
}
}
if (((iVar2 == 0x1e) && (0 < this->_currentWave)) && (this->_currentWave < iVar4)) {
PlayerManager::trigger_room_clear(&g_game->_playerManager);
if (iVar1 == 0x11) {
PlayerManager::trigger_room_clear(&g_game->_playerManager);
}
playerIndex = 0;
if (GHIDRA_INT((g_game->_playerManager)._playerList._end) -
GHIDRA_INT((g_game->_playerManager)._playerList._begin) >> 2 != 0) {
do {
player = Game::GetPlayer(g_game,playerIndex);
collectibles = (g_manager->_itemConfig)._collectibles._begin;
if ((0x898 < GHIDRA_INT((GHIDRA_INT((g_manager->_itemConfig)._collectibles._end) - GHIDRA_INT(collectibles) &
0xfffffffcU))) &&
(iVar1 = *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(collectibles) + 0x898)), iVar1 != 0)) {
tempEffect[2] = *GHIDRA_CAST<uint32_t *>((iVar1 + 0x78));
tempEffect[1] = 0;
local_c = 0;
tempEffect[0] = iVar1;
TemporaryEffects::RemoveEffect(&player->_temporaryeffects,tempEffect,1);
}
playerIndex = playerIndex + 1;
} while (playerIndex <
GHIDRA_UINT((GHIDRA_INT((g_game->_playerManager)._playerList._end) -
GHIDRA_INT((g_game->_playerManager)._playerList._begin) >> 2)));
}
(GHIDRA_CAST<RNG *>((GHIDRA_CAST<RNG *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[1])) + 0x4)))))))->RNG::Next();
iVar2 = *GHIDRA_CAST<int *>((this + 1));
}
*GHIDRA_CAST<int *>((this + 1)) = iVar2 + -1;
return;
}
if (iVar4 <= this->_currentWave) {
this->_isActive = 0;
roomFlags = GHIDRA_CAST<uint32_t *>((*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(game->_room) + 4)) + 0x44));
*roomFlags = *roomFlags | 8;
iVar4 = *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(game->_room) + 4));
if ((iVar4 == 0) || (*GHIDRA_CAST<int *>((iVar4 + 0x10)) == 0)) {
iVar2 = 1;
}
else {
iVar2 = *GHIDRA_CAST<int *>((*GHIDRA_CAST<int *>((iVar4 + 0x10)) + 0x48));
}
ScoreSheet::add_cleared_room
(GHIDRA_CAST<ScoreSheet *>(&game->_scoreSheet),*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(game->_room) + 8)),iVar2,1,
(uint8_t)(*GHIDRA_CAST<uint32_t *>((iVar4 + 0x44)) >> 10) & 1);
iVar4 = 0x5c;
if (*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(g_game->_room) + 8)) == 0x11) {
iVar4 = 0x28;
}
MusicManager::Crossfade(&g_manager->_musicManager,iVar4,0.08);
if (0x25 < (GHIDRA_INT((g_manager->_musicManager)._entries._end) -
GHIDRA_INT((g_manager->_musicManager)._entries._begin)) / 0x60) {
(g_manager->_musicManager)._queuedMusicID = 0x25;
}
Room::SpawnClearAward(g_game->_room);
PlayerManager::trigger_room_clear(&g_game->_playerManager);
if (iVar1 == 0x11) {
PlayerManager::trigger_room_clear(&g_game->_playerManager);
}
manager = g_manager;
local_1c = (void *)0x24;
roomFlags = GHIDRA_CAST<uint32_t *>((*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(g_game->_room) + 4)) + 0x44));
*roomFlags = *roomFlags | 1;
seed_fart_sound_override(GHIDRA_CAST<int *>(&local_1c));
(GHIDRA_CAST<SoundEffects *>((&manager->_sfxManager)))->SoundEffects::Play(GHIDRA_INT(local_1c),1.0,2,0,1.0,0.0);
return;
}
*GHIDRA_CAST<uint32_t *>((this + 1)) = 0x1e;
this->_currentWave = this->_currentWave + 1;
if (iVar1 == 0x11) {
SpawnBossrushWave(this);
return;
}
SpawnWave(this);
return;
}
+15 -81
View File
@@ -151,6 +151,7 @@ struct BossPool;
struct BossPoolState;
struct BossPool_Entry;
struct BossPool_Pool;
struct BossRushEntry;
struct BrimstoneShot;
struct BufferedStream;
struct ButterBeanFart;
@@ -395,7 +396,9 @@ struct LayerAnimation;
struct LayerData;
struct LayerState;
struct Leaderboard;
struct LeechThrow;
struct LeftFire;
struct LerpRange;
struct Level;
struct LevelGenerator;
struct LevelGenerator_Room;
@@ -510,6 +513,7 @@ struct PlayerHUDPocketItem;
struct PlayerHUDTrinket;
struct PlayerManager;
struct PlayerProceduralItems;
struct PlayerTrail;
struct PngWriter;
struct PocketItem;
struct PocketItemConfig;
@@ -634,6 +638,7 @@ struct TexelQuery;
struct TextMeasure;
struct TexturePtr;
struct Thread;
struct TrailFrame;
struct TrailPoint;
struct TrinketPoolItem;
struct TypeDescriptor;
@@ -961,36 +966,6 @@ struct AfterbirthPersistentGameData {
};
struct std_vector {
void * _begin;
void * _end;
void * _capacity;
};
LAYOUT32(offsetof(std_vector, _begin) == 0x0);
LAYOUT32(offsetof(std_vector, _end) == 0x4);
LAYOUT32(offsetof(std_vector, _capacity) == 0x8);
LAYOUT32(sizeof(std_vector) == 0xc);
struct Ambush {
void shuffle_waves(); // 008332e0
void StartChallenge(); // 00833420
void SpawnWave(); // 00833600
void SpawnBossrushWave(); // 00833c40
void Update(); // 00834350
uint8_t _pad_0x0[0xc];
std_vector _bossRushWaves;
int _maxWaves;
uint8_t _pad_0x1c[0x4];
bool _isActive;
uint8_t _pad_0x21[0x3];
int _currentWave;
};
LAYOUT32(offsetof(Ambush, _bossRushWaves) == 0xc);
LAYOUT32(offsetof(Ambush, _maxWaves) == 0x18);
LAYOUT32(offsetof(Ambush, _isActive) == 0x20);
LAYOUT32(offsetof(Ambush, _currentWave) == 0x24);
struct BitSet128 {
static BitSet128 * operator_and(BitSet128 *outResult, BitSet128 *a, BitSet128 *b); // 00417170
uint8_t IsNonZero(); // 004171b0
@@ -1609,13 +1584,6 @@ struct Weapon {
}
struct IsaacsBodyData {
virtual ~IsaacsBodyData(); // 0060d530 slot 0 ::FUN_0060d530
uint8_t _pad_0x4[0x574];
};
LAYOUT32(sizeof(IsaacsBodyData) == 0x578);
struct Item {
uint8_t IsCollectible(); // 005b14e0
uint8_t HasTags(uint64_t tags); // 005b1500
@@ -3629,13 +3597,6 @@ struct PersistentGameDataWriter {
};
struct PickupGhostData {
virtual ~PickupGhostData(); // 005d23a0 slot 0 ::FUN_005d23a0
uint8_t _pad_0x4[0x454];
};
LAYOUT32(sizeof(PickupGhostData) == 0x458);
struct PillEffect {
uint8_t IsAvailable(); // 00730b20
};
@@ -3815,6 +3776,16 @@ struct SimpleString {
};
struct std_vector {
void * _begin;
void * _end;
void * _capacity;
};
LAYOUT32(offsetof(std_vector, _begin) == 0x0);
LAYOUT32(offsetof(std_vector, _end) == 0x4);
LAYOUT32(offsetof(std_vector, _capacity) == 0x8);
LAYOUT32(sizeof(std_vector) == 0xc);
struct SoundEffects {
void Play(int ID, float Volume, int FrameDelay, uint8_t Loop, float Pitch, float Pan); // 0092dc30
void ClearVolumeModifier(); // 0092e430
@@ -5824,8 +5795,6 @@ void FUN_004aae30(char param_1); // 004aae30
void FUN_004aae50(char param_1); // 004aae50
int FUN_004aae70(); // 004aae70
void FUN_004b3950(); // 004b3950
void FUN_004b3d50(); // 004b3d50
void FUN_004b3f10(); // 004b3f10
void FUN_004b6b20(int *param_1, int param_2, int param_3); // 004b6b20
void FUN_004b6ce0(int param_1, int param_2, int param_3); // 004b6ce0
uint32_t FUN_004b6d70(uint32_t param_1); // 004b6d70
@@ -5932,8 +5901,6 @@ int FUN_005accb0(); // 005accb0
int FUN_005accf0(); // 005accf0
int FUN_005acd10(); // 005acd10
void FUN_005ad1c0(); // 005ad1c0
uint32_t position_is_over_pit(); // 005ae0b0
bool FUN_005ae1d0(); // 005ae1d0
void FUN_005b1490(uint32_t param_1, uint32_t param_2); // 005b1490
void FUN_005b1560(); // 005b1560
void FUN_005b15a0(uint32_t param_1); // 005b15a0
@@ -6042,8 +6009,6 @@ void FUN_005cd840(uint32_t param_1); // 005cd840
void FUN_005cd850(); // 005cd850
void FUN_005cd8c0(uint8_t param_1); // 005cd8c0
void FUN_005cda90(); // 005cda90
void FUN_005d2300(); // 005d2300
void FUN_005d23a0(uint8_t param_1); // 005d23a0
void FUN_00607540(); // 00607540
void room_perimeter_to_position(float *param_1, float *param_2); // 0060ac70
void FUN_0060c350(); // 0060c350
@@ -6104,10 +6069,8 @@ bool FUN_0060d1c0(uint32_t param_1); // 0060d1c0
uint32_t FUN_0060d1e0(); // 0060d1e0
void FUN_0060d1f0(uint32_t param_1); // 0060d1f0
void FUN_0060d400(); // 0060d400
void FUN_0060d530(uint8_t param_1); // 0060d530
void FUN_0060d5e0(uint8_t param_1); // 0060d5e0
uint32_t FUN_0060dae0(); // 0060dae0
void FUN_0062c8a0(); // 0062c8a0
void FUN_0062e0e0(int param_1); // 0062e0e0
void FUN_00631a00(float *param_1, uint32_t param_2, float *param_3); // 00631a00
void familiar_wisp_pick_tear_color(RNG *rng, int *outVariant, BitSet128 *outFlags); // 00633990
@@ -6116,9 +6079,6 @@ void FUN_006395e0(Vector *param_1, int *param_2, int param_3, int param_4, int p
void FUN_0063b240(); // 0063b240
void FUN_0063c060(int param_1); // 0063c060
void FUN_0063e180(); // 0063e180
void FUN_00640050(); // 00640050
void FUN_006401d0(); // 006401d0
void FUN_006403f0(); // 006403f0
void FUN_006431b0(); // 006431b0
void anm2_apply_gfx_overrides(std_string *gfxSpec, std_string *unusedString, ANM2 *anm2); // 0064aab0
void FUN_0064b6a0(); // 0064b6a0
@@ -6197,7 +6157,6 @@ uint8_t string_to_bool(void *self); // 0067f600
void ResolveRelativePath(uint8_t *anmPath, uint8_t *relPath, uint8_t *outPath); // 0067f670
void ExtractAngleBracketText(); // 0067fdf0
void FUN_00680060(size_t param_1); // 00680060
void FUN_00682260(); // 00682260
void shader_stack_push(int shaderIndex); // 00682280
void FUN_00682350(); // 00682350
uint32_t checksum_stream(void *stream, int offset, int trailingSize); // 00683580
@@ -6413,7 +6372,6 @@ void FUN_007008b0(int *param_1); // 007008b0
void FUN_00703140(); // 00703140
void FUN_00704b50(); // 00704b50
void FUN_007068f0(int param_1); // 007068f0
void r_key_timer_callback(); // 00707ad0
Entity * spawn_chain_lightning(Vector *position, BitSet128 tearFlags, Entity *spawner, float damage); // 00707e10
uint32_t FUN_00708350(); // 00708350
void FUN_00708380(); // 00708380
@@ -6768,7 +6726,6 @@ void FUN_008370b0(); // 008370b0
uint32_t FUN_00837610(); // 00837610
void FUN_00837660(uint32_t param_1); // 00837660
int FUN_00839070(); // 00839070
void FUN_008391a0(); // 008391a0
void sprite_member_at_0xc_destroy(void *self); // 00839300
void list_anm2_state_assign(int *param_1); // 00839380
void FUN_00839830(); // 00839830
@@ -6789,7 +6746,6 @@ void FUN_0083c480(); // 0083c480
void item_pool_icons_render(void *iconLayer, Vector *position, KColor *color); // 0083d8c0
char * FUN_00840510(); // 00840510
std_string * int_to_string(std_string *outString, int value); // 00840540
void FUN_0084a870(float *param_1); // 0084a870
void FUN_0084abc0(uint32_t *param_1, float *param_2, uint32_t *param_3, uint32_t *param_4); // 0084abc0
void FUN_0084bba0(); // 0084bba0
void FUN_0084bbc0(uint32_t *param_1); // 0084bbc0
@@ -6895,7 +6851,6 @@ uint32_t Catch_00863d4e(); // 00863d4e
uint32_t Catch_008641bb(); // 008641bb
uint32_t Catch_008642a4(); // 008642a4
uint32_t Catch_00864682(); // 00864682
uint8_t FUN_00864d80(uint32_t param_1, uint32_t param_2, uint32_t param_3, float *param_4); // 00864d80
uint8_t * Catch_00864e6d(); // 00864e6d
uint32_t Catch_0086504e(); // 0086504e
uint32_t Catch_0086512e(); // 0086512e
@@ -20809,28 +20764,19 @@ namespace AudioPacketQueue {
void destroyAllAudioPackets(); // 00aadc80
}
namespace FamiliarAI {
void bobs_brain(Entity_Familiar *familiar); // 00616770
void gb_bug(Entity_Familiar *familiar); // 00618b00
void variant_53(Entity_Familiar *familiar); // 006196e0
void variant_66(Entity_Familiar *familiar); // 0061c3f0
void punching_bag(Entity_Familiar *familiar); // 0061c910
void lil_haunt(Entity_Familiar *familiar, int unused); // 0061d030
void lost_fly(Entity_Familiar *familiar); // 0062e9c0
void bumbo(Entity_Familiar *familiar); // 0062f7f0
void spider_mod(Entity_Familiar *familiar); // 00630c90
void sprinkler(Entity_Familiar *familiar); // 00635390
void mystery_egg(Entity_Familiar *familiar); // 00638170
void lil_spewer(Entity_Familiar *familiar); // 006384a0
Entity_Knife * sprinkler_spawn_knife(Entity_Familiar *familiar); // 0063b070
void tinytoma(Entity_Familiar *familiar); // 00642cb0
void variant_204(Entity_Familiar *familiar); // 00644780
void lost_soul(Entity_Familiar *familiar); // 00645bc0
void lil_dumpy(Entity_Familiar *familiar); // 006468a0
void apollyons_best_friend(Entity_Familiar *familiar); // 00647320
int worm_friend(Entity_Familiar *familiar); // 0064bfa0
void star_of_bethlehem(Entity_Familiar *familiar); // 0064d5f0
void cube_baby(Entity_Familiar *familiar); // 0064f860
void blood_puppy(Entity_Familiar *familiar); // 0064fd40
void vanishing_twin(Entity_Familiar *familiar); // 00650610
}
namespace FamiliarHelper {
@@ -20843,7 +20789,6 @@ void SwapANM2(ANM2 *left, ANM2 *right); // 00407ae0
ItemConfig * GetItemConfig(); // 0042ca00
int Random(int Max); // 0067f010
Vector * GetRandomPickupVelocity(Vector *outVelocity, Vector *position, uint32_t pickupVelType, RNG *rng); // 006ee440
void Shutdown(); // 009ab700
}
namespace ItemInfo {
uint8_t is_collectible_seen(int param_1); // 0083d760
@@ -20887,7 +20832,6 @@ void ENTITY_BEAST_ultra_war(Entity_NPC *npc); // 0044c070
void ENTITY_BEAST_ultra_war_fire_burst(Entity_NPC *npc); // 0044ee60
void ENTITY_BEAST_ultra_war_bomb(Entity_NPC *npc); // 0044f2b0
void ENTITY_LIL_BLUB(Entity_NPC *npc); // 00450da0
void ENTITY_PIN(Entity_NPC *npc); // 00476860
void ENTITY_BUMBINO(Entity_NPC *npc); // 00499de0
void ENTITY_CHIMERA_head_update(Entity_NPC *npc); // 0049cd90
void ENTITY_CHIMERA_body(Entity_NPC *npc); // 0049d130
@@ -20899,7 +20843,6 @@ void ENTITY_DOGMA(Entity_NPC *npc); // 004aafa0
void ENTITY_DOGMA_angel(Entity_NPC *npc); // 004ae4d0
Vector * ENTITY_DOGMA_angel_baby(Entity_NPC *npc); // 004b0200
void ENTITY_DOGMA_tv(Entity_NPC *npc); // 004b0a30
void ENTITY_HERETIC(Entity_NPC *npc); // 004b43c0
void ENTITY_HORNFEL_DOOR(Entity_NPC *npc); // 004bb9b0
void ENTITY_HORNY_BOYS(Entity_NPC *npc); // 004bd2a0
void ENTITY_MATRIARCH(Entity_NPC *npc); // 004c59d0
@@ -20920,7 +20863,6 @@ void ENTITY_WHIPPER(Entity_NPC *npc); // 004e5170
void ENTITY_GRUDGE(Entity_NPC *npc); // 004e6570
uint32_t ENTITY_BISHOP(Entity_NPC *npc); // 004e7ea0
uint8_t * ENTITY_BABY_BEGOTTEN(Entity_NPC *npc); // 004e8380
void ENTITY_EXORCIST(Entity_NPC *npc); // 004ec240
void ENTITY_REVENANT(Entity_NPC *npc); // 004ecc10
void ENTITY_CULTIST(Entity_NPC *npc); // 004ed840
void ENTITY_CLICKETY_CLACK(Entity_NPC *npc); // 004efb90
@@ -20930,7 +20872,6 @@ void ENTITY_BALL_AND_CHAIN(Entity_NPC *npc); // 004f4730
void ENTITY_POOFER(Entity_NPC *npc); // 004f64e0
void ENTITY_MOCKULUS(Entity_NPC *npc); // 004f76f0
void ENTITY_MORNINGSTAR(Entity_NPC *npc); // 004f7e60
void ENTITY_FACELESS(Entity_NPC *npc); // 004faad0
void ENTITY_DANNY(Entity_NPC *npc); // 004fbd10
void ENTITY_GYRO(Entity_NPC *npc); // 004ff620
void ENTITY_BOUNCER(Entity_NPC *npc); // 00501f30
@@ -21005,10 +20946,6 @@ void ENTITY_VISAGE(Entity_NPC *npc); // 005a7b20
void ENTITY_VISAGE_mask(Entity_NPC *npc); // 005ab4d0
void ENTITY_VISAGE_chain(Entity_NPC *npc); // 005ad250
void ENTITY_VISAGE_plasma(Entity_NPC *npc); // 005ad8a0
void ENTITY_WORMWOOD_pick_pit(Entity_NPC *npc); // 005ae230
void ENTITY_WORMWOOD_segment_follow(Entity_NPC *npc); // 005ae840
void wormwood_pick_emerge_position(Entity_NPC *npc); // 005aef20
void ENTITY_WORMWOOD_main(Entity_NPC *npc); // 005af800
}
namespace OnlinePlayerInfo {
void render_items(float *param_1); // 008d4940
@@ -21034,9 +20971,6 @@ uint32_t _seekPage(int param_1, char param_2); // 00a8e1b0
namespace _Entity {
int GetAncestorField(uint32_t param_1); // 006b7d20
}
namespace _Entity_Player {
uint32_t SpawnTrinketRandomPickup(); // 007dc2d0
}
namespace _NpcHelper {
uint32_t spider_load_graphics(uint8_t *param_1); // 006baa70
}
-38
View File
@@ -124,41 +124,3 @@ int InputManager::FirstLocalDeviceID()
);
return -1;
}
// 009562d0
float InputManager::GetActionValue(int action, int controllerIndex, Entity *entity, int unused)
{
char isNetplayHandled;
uint32_t in_ECX;
int iVar1;
uint32_t deviceIndex;
long double value;
Manager *manager;
int requestedAction;
requestedAction = action;
manager = g_manager;
if (((*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((g_manager)) + 0x8)))) != 2) || (g_luaEngine == (void *)0x0)) ||
(isNetplayHandled = FUN_00864d80(entity,in_ECX,action,&action), isNetplayHandled == '\0')) {
iVar1 = manager->_netplayManager;
if ((iVar1 != *GHIDRA_CAST<int *>((manager + 1))) && (controllerIndex == -1)) {
deviceIndex = 0;
if (*GHIDRA_CAST<int *>((manager + 1)) - iVar1 >> 2 != 0) {
do {
action = *GHIDRA_CAST<uint32_t *>((**GHIDRA_CAST<int **>((iVar1 + deviceIndex * 4)) + 0x38));
value = (long double)(*(code *)action)(requestedAction);
if ((float)value != 0.0) {
return (float)value;
}
deviceIndex = deviceIndex + 1;
iVar1 = manager->_netplayManager;
} while (deviceIndex < GHIDRA_UINT((*GHIDRA_CAST<int *>((manager + 1)) - iVar1 >> 2)));
}
return 0.0;
}
entity = GHIDRA_CAST<Entity *>(requestedAction);
action = 0;
(**(code **)(PTR_vftable_00c57b18 + 0x74))(controllerIndex,FUN_00a20ab0,&entity,&action,0);
}
return (float)action;
}
-345
View File
@@ -469,333 +469,6 @@ LAB_004a2fed:
return;
}
// 004b3af0
Entity * NpcHelper::heretic_spawn_afterimage(Entity_NPC *npc)
{
uint8_t bVar1;
Entity *afterimage;
uint8_t *afterimageAnimChar;
uint32_t uVar2;
LayerState *afterimageLayer;
LayerState *npcLayer;
uint8_t *****animNameData;
uint8_t *****animNameChar;
bool isLess;
uint32_t local_38;
uint8_t *****animName [4];
uint32_t animNameSize;
uint32_t animNameCapacity;
uint32_t securityCookie;
void *local_10;
uint8_t *puStack_c;
uint8_t ****local_8;
uint32_t flagsHi;
void *npcAnimData;
local_8 = GHIDRA_CAST<uint8_t ****>(0xffffffff);
puStack_c = &LAB_00af32ed;
local_10 = ExceptionList;
securityCookie = __security_cookie ^ GHIDRA_UINT((animName + 10));
ExceptionList = &local_10;
afterimage = Game::Spawn(g_game,0x389,0,&npc->_pos,&npc->_velocity,GHIDRA_CAST<Entity *>(npc),
(npc->_state == 0xb) + 1,npc->_initSeed);
flagsHi = *GHIDRA_CAST<uint32_t *>((GHIDRA_INT(&npc->_flags) + 4));
*GHIDRA_CAST<int *>(&afterimage->_flags) = GHIDRA_INT(npc->_flags);
*GHIDRA_CAST<uint32_t *>((GHIDRA_INT(&afterimage->_flags) + 4)) = flagsHi;
FUN_004b6b20((afterimage->_colorParams)._begin,(npc->_colorParams)._begin,(npc->_colorParams)._end
,local_38);
flagsHi = *GHIDRA_CAST<uint32_t *>((GHIDRA_INT(&afterimage->_flags) + 4));
*GHIDRA_CAST<uint32_t *>(&afterimage->_flags) = GHIDRA_UINT(afterimage->_flags) | 0x11;
afterimage->_isInvicible = 1;
*GHIDRA_CAST<uint32_t *>((GHIDRA_INT(&afterimage->_flags) + 4)) = flagsHi;
npcAnimData = (npc->_sprite)._animState._animData;
if (npcAnimData == (void *)0x0) {
animNameCapacity = 0xf;
animNameSize = 0;
animName[0] = GHIDRA_CAST<uint8_t *****>(0x0);
}
else {
(GHIDRA_CAST<msvc::string *>((GHIDRA_CAST<char *>(animName))))->msvc::string::string(npcAnimData);
}
local_8 = GHIDRA_CAST<uint8_t ****>(0x0);
animNameData = GHIDRA_CAST<uint8_t *****>(animName);
if (0xf < animNameCapacity) {
animNameData = animName[0];
}
afterimageAnimChar = (afterimage->_sprite)._animState._animData;
if (afterimageAnimChar != GHIDRA_CAST<uint8_t *>(0x0)) {
if (0xf < *GHIDRA_CAST<uint32_t *>((afterimageAnimChar + 0x14))) {
afterimageAnimChar = *GHIDRA_CAST<uint8_t **>(afterimageAnimChar);
}
animNameChar = animNameData;
do {
bVar1 = *afterimageAnimChar;
isLess = bVar1 < *GHIDRA_CAST<uint8_t *>(animNameChar);
if (bVar1 != *GHIDRA_CAST<uint8_t *>(animNameChar)) {
LAB_004b3c27:
uVar2 = -GHIDRA_UINT(isLess) | 1;
goto LAB_004b3c2c;
}
if (bVar1 == 0) break;
bVar1 = afterimageAnimChar[1];
isLess = bVar1 < *GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(animNameChar) + 1));
if (bVar1 != *GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(animNameChar) + 1))) goto LAB_004b3c27;
afterimageAnimChar = afterimageAnimChar + 2;
animNameChar = GHIDRA_CAST<uint8_t *****>((GHIDRA_INT(animNameChar) + 2));
} while (bVar1 != 0);
uVar2 = 0;
LAB_004b3c2c:
if ((uVar2 == 0) &&
((*GHIDRA_CAST<char *>((GHIDRA_INT((afterimage->_sprite)._animState._animData) + 0x34)) == '\0' ||
((afterimage->_sprite)._animState._isPlaying != 0)))) goto LAB_004b3c68;
}
bVar1 = ANM2::SetAnimation(&afterimage->_sprite,GHIDRA_CAST<uint8_t *>(animNameData),1);
if (bVar1 != 0) {
AnimationState::Rewind(&(afterimage->_sprite)._animState);
(afterimage->_sprite)._animState._isPlaying = 1;
}
LAB_004b3c68:
local_8 = GHIDRA_CAST<uint8_t ****>(0xffffffff);
if (0xf < animNameCapacity) {
uVar2 = animNameCapacity + 1;
animNameData = animName[0];
if (0xfff < uVar2) {
animNameData = GHIDRA_CAST<uint8_t *****>(animName[0][-1]);
uVar2 = animNameCapacity + 0x24;
if (GHIDRA_CAST<uint8_t *>(0x1f) < GHIDRA_CAST<uint8_t *>((GHIDRA_INT(animName[0]) + (-4 - GHIDRA_INT(animNameData))))) {
/* WARNING: Subroutine does not return */
_invalid_parameter_noinfo_noreturn();
}
}
operator_delete(animNameData,uVar2);
}
animNameSize = 0;
animNameCapacity = 0xf;
animName[0] = GHIDRA_CAST<uint8_t *****>((GHIDRA_UINT(animName[0]) & 0xffffff00));
if ((afterimage->_sprite)._animState._animData != (void *)0x0) {
AnimationState::SetFrameFloat
(&(afterimage->_sprite)._animState,(npc->_sprite)._animState._animFrame);
}
afterimageLayer = ANM2::GetLayer(&afterimage->_sprite,GHIDRA_CAST<uint8_t *>(0x0));
npcLayer = ANM2::GetLayer(&npc->_sprite,GHIDRA_CAST<uint8_t *>(0x0));
(afterimageLayer->_color)._tint[3] = (npcLayer->_color)._tint[3];
afterimage->_entityGridCollisionClass = 0;
afterimage->_entityCollisionClass = 0;
afterimage[2]._preInterpolatePos.x = 1.82169e-44;
*GHIDRA_CAST<uint8_t *>((GHIDRA_INT(&afterimage[2]._health) + 2)) =
*GHIDRA_CAST<uint8_t *>((GHIDRA_INT(&npc->_projectileCooldown) + 2));
*GHIDRA_CAST<uint16_t *>((afterimage + 1)) = 0;
afterimage->_health = 0.0;
afterimage->_maxHitPoints = 0.0;
(**(code **)(*GHIDRA_CAST<int *>(afterimage) + 0xc))();
ExceptionList = local_10;
return afterimage;
}
// 004b3ec0
int NpcHelper::heretic_count_out_fires()
{
int *entityIt;
int outFireCount;
int remaining;
int entity;
outFireCount = 0;
remaining = *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(g_game->_room) + 0x1264));
if (remaining != 0) {
entityIt = *GHIDRA_CAST<int **>((GHIDRA_CAST<char *>(g_game->_room) + 0x125c));
do {
entity = *entityIt;
if (((*GHIDRA_CAST<int *>((entity + 0x28)) == 0x21) && (*GHIDRA_CAST<int *>((entity + 0x2c)) == 3)) &&
(*GHIDRA_CAST<float *>((entity + 0x380)) <= 1.5 && *GHIDRA_CAST<float *>((entity + 0x380)) != 1.5)) {
outFireCount = outFireCount + 1;
}
entityIt = entityIt + 1;
remaining = remaining + -1;
} while (remaining != 0);
}
return outFireCount;
}
// 004b40d0
void NpcHelper::heretic_choose_attack(Entity_NPC *npc)
{
RNG rng;
Entity_NPC *pEVar1;
uint32_t uVar2;
uint32_t outcomeCount;
void *pvVar3;
uint32_t *outcomesCursor;
float halfHealth;
uint64_t uStack_44;
uint32_t uStack_3c;
uint32_t *local_38;
Entity_NPC *npcLocal;
void *outcomes;
uint32_t *outcomesEnd;
uint32_t *outcomesCapacityEnd;
uint32_t local_24;
uint8_t *puStack_20;
void *local_1c;
uint8_t *puStack_18;
uint32_t local_14;
int *weight;
puStack_20 = GHIDRA_CAST<uint8_t *>((GHIDRA_INT(register0x00000010) + -4));
puStack_18 = &LAB_00af332d;
local_1c = ExceptionList;
local_24 = __security_cookie ^ GHIDRA_INT(register0x00000010) - 0x10U;
ExceptionList = &local_1c;
outcomes = (void *)0x0;
outcomesEnd = GHIDRA_CAST<uint32_t *>(0x0);
outcomesCapacityEnd = GHIDRA_CAST<uint32_t *>(0x0);
local_14 = 0;
npcLocal = npc;
local_38 = GHIDRA_CAST<uint32_t *>(heretic_count_out_fires());
pvVar3 = (void *)0x0;
outcomesCursor = GHIDRA_CAST<uint32_t *>(0x0);
if (*GHIDRA_CAST<char *>((GHIDRA_INT(&npcLocal->_projectileDelay) + 1)) < '\x01') {
uStack_44 = CONCAT44(0xe,(uint32_t)uStack_44);
uStack_3c = 10;
msvc::vector<8byte>::_Emplace_reallocate(0,GHIDRA_INT(&uStack_44) + 4);
pvVar3 = outcomes;
outcomesCursor = outcomesEnd;
}
if (*GHIDRA_CAST<char *>((GHIDRA_INT(&npcLocal->_projectileDelay) + 2)) < '\x01') {
uVar2 = 0;
outcomeCount = GHIDRA_INT(outcomesCursor) - GHIDRA_INT(pvVar3) >> 3;
if (outcomeCount != 0) {
do {
if (*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(pvVar3) + uVar2 * 8)) == 9) {
weight = GHIDRA_CAST<int *>((GHIDRA_INT(pvVar3) + uVar2 * 8 + 4));
*weight = *weight + 10;
if (*weight < 0) {
*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(pvVar3) + uVar2 * 8 + 4)) = 0;
}
goto LAB_004b41d2;
}
uVar2 = uVar2 + 1;
} while (uVar2 < outcomeCount);
}
uStack_44 = CONCAT44(9,(uint32_t)uStack_44);
uStack_3c = 10;
if (outcomesCursor == outcomesCapacityEnd) {
msvc::vector<8byte>::_Emplace_reallocate(outcomesCursor,GHIDRA_INT(&uStack_44) + 4);
pvVar3 = outcomes;
outcomesCursor = outcomesEnd;
}
else {
*outcomesCursor = 9;
outcomesCursor[1] = 10;
outcomesCursor = outcomesCursor + 2;
outcomesEnd = outcomesCursor;
}
}
LAB_004b41d2:
if (*GHIDRA_CAST<char *>((GHIDRA_INT(&npcLocal->_projectileDelay) + 3)) < '\x01') {
if (GHIDRA_CAST<uint32_t *>(0x2) < local_38) {
uVar2 = 0;
outcomeCount = GHIDRA_INT(outcomesCursor) - GHIDRA_INT(pvVar3) >> 3;
if (outcomeCount != 0) {
do {
if (*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(pvVar3) + uVar2 * 8)) == 7) {
weight = GHIDRA_CAST<int *>((GHIDRA_INT(pvVar3) + uVar2 * 8 + 4));
*weight = *weight + 10;
if (*weight < 0) {
*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(pvVar3) + uVar2 * 8 + 4)) = 0;
}
goto LAB_004b4249;
}
uVar2 = uVar2 + 1;
} while (uVar2 < outcomeCount);
}
uStack_44 = CONCAT44(7,(uint32_t)uStack_44);
uStack_3c = 10;
if (outcomesCursor == outcomesCapacityEnd) {
msvc::vector<8byte>::_Emplace_reallocate(outcomesCursor,GHIDRA_INT(&uStack_44) + 4);
pvVar3 = outcomes;
outcomesCursor = outcomesEnd;
}
else {
*outcomesCursor = 7;
outcomesCursor[1] = 10;
outcomesEnd = outcomesCursor + 2;
outcomesCursor = outcomesEnd;
}
}
}
LAB_004b4249:
uVar2 = 0;
outcomeCount = GHIDRA_INT(outcomesCursor) - GHIDRA_INT(pvVar3) >> 3;
if (outcomeCount != 0) {
do {
if (*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(pvVar3) + uVar2 * 8)) == 3) {
weight = GHIDRA_CAST<int *>((GHIDRA_INT(pvVar3) + uVar2 * 8 + 4));
*weight = *weight + 1;
if (*weight < 0) {
*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(pvVar3) + uVar2 * 8 + 4)) = 0;
}
goto LAB_004b42a6;
}
uVar2 = uVar2 + 1;
} while (uVar2 < outcomeCount);
}
uStack_44 = CONCAT44(3,(uint32_t)uStack_44);
uStack_3c = 1;
if (outcomesCursor == outcomesCapacityEnd) {
msvc::vector<8byte>::_Emplace_reallocate(outcomesCursor,GHIDRA_INT(&uStack_44) + 4);
}
else {
*outcomesCursor = 3;
outcomesCursor[1] = 1;
outcomesEnd = outcomesCursor + 2;
}
LAB_004b42a6:
uVar2 = Random();
uStack_44 = 0x900000005;
uStack_3c = 7;
rng._shift1 = 5;
rng._seed = uVar2 | 1;
rng._shift2 = 9;
rng._shift3 = 7;
uVar2 = WeightedOutcomePicker::PickOutcome(GHIDRA_CAST<WeightedOutcomePicker *>(&outcomes),rng);
pEVar1 = npcLocal;
if (uVar2 == 3) {
*GHIDRA_CAST<uint16_t *>((GHIDRA_INT(&npcLocal->_stateFrame) + 2)) = 0;
}
else {
*GHIDRA_CAST<uint16_t *>(&npcLocal->_stateFrame) = 0xffff;
npcLocal->_state = uVar2;
if (uVar2 == 7) {
Entity_NPC::ClearDequeRefs(npcLocal);
if (pEVar1->_child != 0) {
local_38 = &pEVar1->_child;
msvc::multiset<unsigned_int>::erase(&local_38);
}
halfHealth = pEVar1->_maxHitPoints * 0.5;
pEVar1->_child = 0;
*GHIDRA_CAST<char *>(&pEVar1->_projectileCooldown) =
(pEVar1->_health <= halfHealth && halfHealth != pEVar1->_health) + '\x05';
}
*GHIDRA_CAST<uint8_t *>((GHIDRA_INT(&pEVar1->_projectileCooldown) + 1)) = 0;
}
if (outcomes != (void *)0x0) {
uVar2 = GHIDRA_INT(outcomesCapacityEnd) - GHIDRA_INT(outcomes) & 0xfffffff8;
pvVar3 = outcomes;
if (0xfff < uVar2) {
pvVar3 = *(void **)(GHIDRA_CAST<char *>(outcomes) + -4);
uVar2 = uVar2 + 0x23;
if (0x1f < GHIDRA_UINT((GHIDRA_INT(outcomes) + (-4 - GHIDRA_INT(pvVar3))))) {
/* WARNING: Subroutine does not return */
_invalid_parameter_noinfo_noreturn();
}
}
operator_delete(pvVar3,uVar2);
}
ExceptionList = local_1c;
return;
}
// 004b70c0
void NpcHelper::hornfel_spawn_doors()
{
@@ -7537,24 +7210,6 @@ LAB_005adfbb:
return 1;
}
// 005ae140
Entity * NpcHelper::wormwood_spawn_splash(Entity_NPC *npc)
{
uint32_t seed;
Entity *splash;
int soundId;
Manager *manager;
seed = Random();
splash = Game::Spawn(g_game,1000,0x84,&npc->_pos,&g_vectorZero,GHIDRA_CAST<Entity *>(0x0),0,seed);
(**(code **)(*GHIDRA_CAST<int *>(splash) + 0xc))();
manager = g_manager;
soundId = 0x1da;
seed_fart_sound_override(&soundId);
(GHIDRA_CAST<SoundEffects *>((&manager->_sfxManager)))->SoundEffects::Play(soundId,1.0,10,0,1.0,0.0);
return splash;
}
// 006be7e0
uint8_t NpcHelper::is_target_valid(Entity *target)
{
-47
View File
@@ -8222,11 +8222,6 @@ uint32_t register0x0000001e{};
AbyssLocustData::~AbyssLocustData() { generated_stub("AbyssLocustData::~AbyssLocustData 0060d5e0"); }
uint8_t AfterbirthPersistentGameData::check_header(void *stream) { generated_stub("AfterbirthPersistentGameData::check_header 0041d670"); }
void Ambush::shuffle_waves() { generated_stub("Ambush::shuffle_waves 008332e0"); }
void Ambush::StartChallenge() { generated_stub("Ambush::StartChallenge 00833420"); }
void Ambush::SpawnWave() { generated_stub("Ambush::SpawnWave 00833600"); }
void Ambush::SpawnBossrushWave() { generated_stub("Ambush::SpawnBossrushWave 00833c40"); }
void Ambush::Update() { generated_stub("Ambush::Update 00834350"); }
BitSet128 * BitSet128::operator_and(BitSet128 *outResult, BitSet128 *a, BitSet128 *b) { generated_stub("BitSet128::operator_and 00417170"); }
uint8_t BitSet128::IsNonZero() { generated_stub("BitSet128::IsNonZero 004171b0"); }
BitSet128 * BitSet128::operator__(BitSet128 *other) { generated_stub("BitSet128::operator__ 00435bf0"); }
@@ -8383,10 +8378,8 @@ void GlitchedItemSet::recalculate() { generated_stub("GlitchedItemSet::recalcula
void HallucinationOverlay::Render(Vector *offset) { generated_stub("HallucinationOverlay::Render 00839550"); }
void * InputManager::GetDeviceByPlayerEntity(Entity_Player *player) { generated_stub("InputManager::GetDeviceByPlayerEntity 0090ac70"); }
int InputManager::FirstLocalDeviceID() { generated_stub("InputManager::FirstLocalDeviceID 0090aeb0"); }
float InputManager::GetActionValue(int action, int controllerIndex, Entity *entity, int unused) { generated_stub("InputManager::GetActionValue 009562d0"); }
void InviteFriendsMenu::load_graphics() { generated_stub("InviteFriendsMenu::load_graphics 009c4100"); }
void InviteFriendsMenu::Render() { generated_stub("InviteFriendsMenu::Render 009c51e0"); }
IsaacsBodyData::~IsaacsBodyData() { generated_stub("IsaacsBodyData::~IsaacsBodyData 0060d530"); }
KAGE::CommandQueue::~CommandQueue() { generated_stub("KAGE::CommandQueue::~CommandQueue 00a28d30"); }
KAGE::EosFriendManager::~EosFriendManager() { generated_stub("KAGE::EosFriendManager::~EosFriendManager 00a7e440"); }
KAGE::ManagerBase::~ManagerBase() { generated_stub("KAGE::ManagerBase::~ManagerBase 00a61a80"); }
@@ -9224,9 +9217,6 @@ int * NpcHelper::chub_nearest_segment(int *param_1, int param_2) { generated_stu
void NpcHelper::chimera_charge_begin(Entity_NPC *npc, Vector *target, float speed) { generated_stub("NpcHelper::chimera_charge_begin 0049f870"); }
Vector * NpcHelper::colostomia_pick_target(Entity_NPC *npc, Vector *outTarget, uint8_t *isPlayerPos) { generated_stub("NpcHelper::colostomia_pick_target 004a2940"); }
void NpcHelper::colostomia_pick_dive_target(Entity_NPC *npc) { generated_stub("NpcHelper::colostomia_pick_dive_target 004a2ce0"); }
Entity * NpcHelper::heretic_spawn_afterimage(Entity_NPC *npc) { generated_stub("NpcHelper::heretic_spawn_afterimage 004b3af0"); }
int NpcHelper::heretic_count_out_fires() { generated_stub("NpcHelper::heretic_count_out_fires 004b3ec0"); }
void NpcHelper::heretic_choose_attack(Entity_NPC *npc) { generated_stub("NpcHelper::heretic_choose_attack 004b40d0"); }
void NpcHelper::hornfel_spawn_doors() { generated_stub("NpcHelper::hornfel_spawn_doors 004b70c0"); }
void NpcHelper::hornfel_remove_doors() { generated_stub("NpcHelper::hornfel_remove_doors 004b78f0"); }
void NpcHelper::hornfel_charge(Entity_NPC *npc) { generated_stub("NpcHelper::hornfel_charge 004b7e30"); }
@@ -9286,7 +9276,6 @@ void NpcHelper::visage_pick_target_position(Entity_NPC *npc) { generated_stub("N
void NpcHelper::visage_start_charge(Entity_NPC *npc) { generated_stub("NpcHelper::visage_start_charge 005ab180"); }
void NpcHelper::visage_chain_solve(Entity_NPC *npc, uint8_t isInterpolate) { generated_stub("NpcHelper::visage_chain_solve 005acd30"); }
uint8_t NpcHelper::visage_handle_collision(Entity_NPC *npc, Entity *collider, int unused) { generated_stub("NpcHelper::visage_handle_collision 005add40"); }
Entity * NpcHelper::wormwood_spawn_splash(Entity_NPC *npc) { generated_stub("NpcHelper::wormwood_spawn_splash 005ae140"); }
uint8_t NpcHelper::is_target_valid(Entity *target) { generated_stub("NpcHelper::is_target_valid 006be7e0"); }
void NpcHelper::fireplace_moveable_update(Entity_NPC *npc) { generated_stub("NpcHelper::fireplace_moveable_update 006d0ec0"); }
void OnlineChat::render(Vector *position, uint8_t isInputLine, uint8_t isCursorVisible, float alpha) { generated_stub("OnlineChat::render 0091d2b0"); }
@@ -9299,7 +9288,6 @@ void OnlineChatMessage::constructor() { generated_stub("OnlineChatMessage::const
void PersistentGameDataReader::read(PersistentGameData *data) { generated_stub("PersistentGameDataReader::read 0091adf0"); }
void * PersistentGameDataWriter::compress(uint32_t *outSize) { generated_stub("PersistentGameDataWriter::compress 0091acc0"); }
void PersistentGameDataWriter::write(PersistentGameData *data, void *header) { generated_stub("PersistentGameDataWriter::write 0091b130"); }
PickupGhostData::~PickupGhostData() { generated_stub("PickupGhostData::~PickupGhostData 005d23a0"); }
void PngWriter::write_end() { generated_stub("PngWriter::write_end 009e8d40"); }
void PngWriter::write_info() { generated_stub("PngWriter::write_info 009e8ee0"); }
uint8_t ProceduralEffect::roll_trigger_target(uint32_t *outTarget, float *outChance, RNG *rng) { generated_stub("ProceduralEffect::roll_trigger_target 009e0700"); }
@@ -9887,7 +9875,6 @@ bool FUN_004567d0() { generated_stub("FUN_004567d0 004567d0"); }
void FUN_00456820() { generated_stub("FUN_00456820 00456820"); }
void FUN_00456830(uint32_t param_1, uint32_t param_2, uint32_t param_3, uint32_t param_4) { generated_stub("FUN_00456830 00456830"); }
int FUN_00456880() { generated_stub("FUN_00456880 00456880"); }
void NpcAI::ENTITY_PIN(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_PIN 00476860"); }
void FUN_00479d50(uint32_t *param_1) { generated_stub("FUN_00479d50 00479d50"); }
void FUN_00498f80() { generated_stub("FUN_00498f80 00498f80"); }
void _range_to_span(uint32_t *param_1) { generated_stub("_range_to_span 00499270"); }
@@ -9929,9 +9916,6 @@ void NpcAI::ENTITY_DOGMA_angel(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_
Vector * NpcAI::ENTITY_DOGMA_angel_baby(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_DOGMA_angel_baby 004b0200"); }
void NpcAI::ENTITY_DOGMA_tv(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_DOGMA_tv 004b0a30"); }
void FUN_004b3950() { generated_stub("FUN_004b3950 004b3950"); }
void FUN_004b3d50() { generated_stub("FUN_004b3d50 004b3d50"); }
void FUN_004b3f10() { generated_stub("FUN_004b3f10 004b3f10"); }
void NpcAI::ENTITY_HERETIC(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_HERETIC 004b43c0"); }
void FUN_004b6b20(int *param_1, int param_2, int param_3) { generated_stub("FUN_004b6b20 004b6b20"); }
void FUN_004b6ce0(int param_1, int param_2, int param_3) { generated_stub("FUN_004b6ce0 004b6ce0"); }
uint32_t FUN_004b6d70(uint32_t param_1) { generated_stub("FUN_004b6d70 004b6d70"); }
@@ -9994,7 +9978,6 @@ void NpcAI::ENTITY_WHIPPER(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_WHIP
void NpcAI::ENTITY_GRUDGE(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_GRUDGE 004e6570"); }
uint32_t NpcAI::ENTITY_BISHOP(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_BISHOP 004e7ea0"); }
uint8_t * NpcAI::ENTITY_BABY_BEGOTTEN(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_BABY_BEGOTTEN 004e8380"); }
void NpcAI::ENTITY_EXORCIST(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_EXORCIST 004ec240"); }
void NpcAI::ENTITY_REVENANT(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_REVENANT 004ecc10"); }
void NpcAI::ENTITY_CULTIST(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_CULTIST 004ed840"); }
void NpcAI::ENTITY_CLICKETY_CLACK(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_CLICKETY_CLACK 004efb90"); }
@@ -10010,7 +9993,6 @@ uint8_t str_ne(std_string *a, uint8_t *b) { generated_stub("str_ne 004f84a0"); }
void rng_pair_init(void *self) { generated_stub("rng_pair_init 004f88a0"); }
uint32_t FUN_004f88e0() { generated_stub("FUN_004f88e0 004f88e0"); }
uint32_t FUN_004f8930() { generated_stub("FUN_004f8930 004f8930"); }
void NpcAI::ENTITY_FACELESS(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_FACELESS 004faad0"); }
void NpcAI::ENTITY_DANNY(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_DANNY 004fbd10"); }
void NpcAI::ENTITY_GYRO(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_GYRO 004ff620"); }
void NpcAI::ENTITY_BOUNCER(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_BOUNCER 00501f30"); }
@@ -10144,12 +10126,6 @@ int FUN_005acd10() { generated_stub("FUN_005acd10 005acd10"); }
void FUN_005ad1c0() { generated_stub("FUN_005ad1c0 005ad1c0"); }
void NpcAI::ENTITY_VISAGE_chain(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_VISAGE_chain 005ad250"); }
void NpcAI::ENTITY_VISAGE_plasma(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_VISAGE_plasma 005ad8a0"); }
uint32_t position_is_over_pit() { generated_stub("position_is_over_pit 005ae0b0"); }
bool FUN_005ae1d0() { generated_stub("FUN_005ae1d0 005ae1d0"); }
void NpcAI::ENTITY_WORMWOOD_pick_pit(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_WORMWOOD_pick_pit 005ae230"); }
void NpcAI::ENTITY_WORMWOOD_segment_follow(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_WORMWOOD_segment_follow 005ae840"); }
void NpcAI::wormwood_pick_emerge_position(Entity_NPC *npc) { generated_stub("NpcAI::wormwood_pick_emerge_position 005aef20"); }
void NpcAI::ENTITY_WORMWOOD_main(Entity_NPC *npc) { generated_stub("NpcAI::ENTITY_WORMWOOD_main 005af800"); }
void FUN_005b1490(uint32_t param_1, uint32_t param_2) { generated_stub("FUN_005b1490 005b1490"); }
void FUN_005b1560() { generated_stub("FUN_005b1560 005b1560"); }
void FUN_005b15a0(uint32_t param_1) { generated_stub("FUN_005b15a0 005b15a0"); }
@@ -10258,8 +10234,6 @@ void FUN_005cd840(uint32_t param_1) { generated_stub("FUN_005cd840 005cd840"); }
void FUN_005cd850() { generated_stub("FUN_005cd850 005cd850"); }
void FUN_005cd8c0(uint8_t param_1) { generated_stub("FUN_005cd8c0 005cd8c0"); }
void FUN_005cda90() { generated_stub("FUN_005cda90 005cda90"); }
void FUN_005d2300() { generated_stub("FUN_005d2300 005d2300"); }
void FUN_005d23a0(uint8_t param_1) { generated_stub("FUN_005d23a0 005d23a0"); }
void FUN_00607540() { generated_stub("FUN_00607540 00607540"); }
void room_perimeter_to_position(float *param_1, float *param_2) { generated_stub("room_perimeter_to_position 0060ac70"); }
void FUN_0060c350() { generated_stub("FUN_0060c350 0060c350"); }
@@ -10320,24 +10294,16 @@ bool FUN_0060d1c0(uint32_t param_1) { generated_stub("FUN_0060d1c0 0060d1c0"); }
uint32_t FUN_0060d1e0() { generated_stub("FUN_0060d1e0 0060d1e0"); }
void FUN_0060d1f0(uint32_t param_1) { generated_stub("FUN_0060d1f0 0060d1f0"); }
void FUN_0060d400() { generated_stub("FUN_0060d400 0060d400"); }
void FUN_0060d530(uint8_t param_1) { generated_stub("FUN_0060d530 0060d530"); }
void FUN_0060d5e0(uint8_t param_1) { generated_stub("FUN_0060d5e0 0060d5e0"); }
uint32_t FUN_0060dae0() { generated_stub("FUN_0060dae0 0060dae0"); }
void FamiliarAI::bobs_brain(Entity_Familiar *familiar) { generated_stub("FamiliarAI::bobs_brain 00616770"); }
void FamiliarAI::gb_bug(Entity_Familiar *familiar) { generated_stub("FamiliarAI::gb_bug 00618b00"); }
void FamiliarAI::variant_53(Entity_Familiar *familiar) { generated_stub("FamiliarAI::variant_53 006196e0"); }
void FamiliarAI::variant_66(Entity_Familiar *familiar) { generated_stub("FamiliarAI::variant_66 0061c3f0"); }
void FamiliarAI::punching_bag(Entity_Familiar *familiar) { generated_stub("FamiliarAI::punching_bag 0061c910"); }
void FamiliarAI::lil_haunt(Entity_Familiar *familiar, int unused) { generated_stub("FamiliarAI::lil_haunt 0061d030"); }
void FUN_0062c8a0() { generated_stub("FUN_0062c8a0 0062c8a0"); }
void FUN_0062e0e0(int param_1) { generated_stub("FUN_0062e0e0 0062e0e0"); }
void FamiliarAI::lost_fly(Entity_Familiar *familiar) { generated_stub("FamiliarAI::lost_fly 0062e9c0"); }
void FamiliarAI::bumbo(Entity_Familiar *familiar) { generated_stub("FamiliarAI::bumbo 0062f7f0"); }
void FamiliarAI::spider_mod(Entity_Familiar *familiar) { generated_stub("FamiliarAI::spider_mod 00630c90"); }
void FUN_00631a00(float *param_1, uint32_t param_2, float *param_3) { generated_stub("FUN_00631a00 00631a00"); }
void familiar_wisp_pick_tear_color(RNG *rng, int *outVariant, BitSet128 *outFlags) { generated_stub("familiar_wisp_pick_tear_color 00633990"); }
void FamiliarAI::sprinkler(Entity_Familiar *familiar) { generated_stub("FamiliarAI::sprinkler 00635390"); }
void FamiliarAI::mystery_egg(Entity_Familiar *familiar) { generated_stub("FamiliarAI::mystery_egg 00638170"); }
void FamiliarAI::lil_spewer(Entity_Familiar *familiar) { generated_stub("FamiliarAI::lil_spewer 006384a0"); }
void FUN_00638e20() { generated_stub("FUN_00638e20 00638e20"); }
void FUN_006395e0(Vector *param_1, int *param_2, int param_3, int param_4, int param_5, float param_6, int param_7, int param_8, Entity *param_9, int param_10) { generated_stub("FUN_006395e0 006395e0"); }
@@ -10347,13 +10313,9 @@ void FUN_0063b240() { generated_stub("FUN_0063b240 0063b240"); }
void FUN_0063c060(int param_1) { generated_stub("FUN_0063c060 0063c060"); }
void FamiliarHelper::fly_head_pathfind_move(Entity_Familiar *familiar) { generated_stub("FamiliarHelper::fly_head_pathfind_move 0063d570"); }
void FUN_0063e180() { generated_stub("FUN_0063e180 0063e180"); }
void FUN_00640050() { generated_stub("FUN_00640050 00640050"); }
void FUN_006401d0() { generated_stub("FUN_006401d0 006401d0"); }
void FUN_006403f0() { generated_stub("FUN_006403f0 006403f0"); }
void FamiliarAI::tinytoma(Entity_Familiar *familiar) { generated_stub("FamiliarAI::tinytoma 00642cb0"); }
void FUN_006431b0() { generated_stub("FUN_006431b0 006431b0"); }
void FamiliarAI::variant_204(Entity_Familiar *familiar) { generated_stub("FamiliarAI::variant_204 00644780"); }
void FamiliarAI::lost_soul(Entity_Familiar *familiar) { generated_stub("FamiliarAI::lost_soul 00645bc0"); }
void FamiliarAI::lil_dumpy(Entity_Familiar *familiar) { generated_stub("FamiliarAI::lil_dumpy 006468a0"); }
void FamiliarAI::apollyons_best_friend(Entity_Familiar *familiar) { generated_stub("FamiliarAI::apollyons_best_friend 00647320"); }
void anm2_apply_gfx_overrides(std_string *gfxSpec, std_string *unusedString, ANM2 *anm2) { generated_stub("anm2_apply_gfx_overrides 0064aab0"); }
@@ -10364,8 +10326,6 @@ int level_get_room_neighbors(uint32_t roomIndex, uint32_t *outNeighbors) { gener
int star_of_bethlehem_get_target_room() { generated_stub("star_of_bethlehem_get_target_room 0064d370"); }
void FUN_0064d570(uint32_t param_1) { generated_stub("FUN_0064d570 0064d570"); }
void FamiliarAI::star_of_bethlehem(Entity_Familiar *familiar) { generated_stub("FamiliarAI::star_of_bethlehem 0064d5f0"); }
void FamiliarAI::cube_baby(Entity_Familiar *familiar) { generated_stub("FamiliarAI::cube_baby 0064f860"); }
void FamiliarAI::blood_puppy(Entity_Familiar *familiar) { generated_stub("FamiliarAI::blood_puppy 0064fd40"); }
void FamiliarAI::vanishing_twin(Entity_Familiar *familiar) { generated_stub("FamiliarAI::vanishing_twin 00650610"); }
int apply_forgotten_lullaby(void *self, int fireDelay) { generated_stub("apply_forgotten_lullaby 00651810"); }
int FUN_006518d0(uint32_t param_1) { generated_stub("FUN_006518d0 006518d0"); }
@@ -10439,7 +10399,6 @@ uint8_t string_to_bool(void *self) { generated_stub("string_to_bool 0067f600");
void ResolveRelativePath(uint8_t *anmPath, uint8_t *relPath, uint8_t *outPath) { generated_stub("ResolveRelativePath 0067f670"); }
void ExtractAngleBracketText() { generated_stub("ExtractAngleBracketText 0067fdf0"); }
void FUN_00680060(size_t param_1) { generated_stub("FUN_00680060 00680060"); }
void FUN_00682260() { generated_stub("FUN_00682260 00682260"); }
void shader_stack_push(int shaderIndex) { generated_stub("shader_stack_push 00682280"); }
void FUN_00682350() { generated_stub("FUN_00682350 00682350"); }
uint32_t checksum_stream(void *stream, int offset, int trailingSize) { generated_stub("checksum_stream 00683580"); }
@@ -10659,7 +10618,6 @@ void FUN_007008b0(int *param_1) { generated_stub("FUN_007008b0 007008b0"); }
void FUN_00703140() { generated_stub("FUN_00703140 00703140"); }
void FUN_00704b50() { generated_stub("FUN_00704b50 00704b50"); }
void FUN_007068f0(int param_1) { generated_stub("FUN_007068f0 007068f0"); }
void r_key_timer_callback() { generated_stub("r_key_timer_callback 00707ad0"); }
Entity * spawn_chain_lightning(Vector *position, BitSet128 tearFlags, Entity *spawner, float damage) { generated_stub("spawn_chain_lightning 00707e10"); }
uint32_t FUN_00708350() { generated_stub("FUN_00708350 00708350"); }
void FUN_00708380() { generated_stub("FUN_00708380 00708380"); }
@@ -10862,7 +10820,6 @@ uint32_t FUN_007da770() { generated_stub("FUN_007da770 007da770"); }
uint32_t FUN_007dac30() { generated_stub("FUN_007dac30 007dac30"); }
void FUN_007dad80() { generated_stub("FUN_007dad80 007dad80"); }
int FUN_007dafb0() { generated_stub("FUN_007dafb0 007dafb0"); }
uint32_t _Entity_Player::SpawnTrinketRandomPickup() { generated_stub("_Entity_Player::SpawnTrinketRandomPickup 007dc2d0"); }
void FUN_007dc610() { generated_stub("FUN_007dc610 007dc610"); }
void FUN_007dc620(uint32_t *param_1) { generated_stub("FUN_007dc620 007dc620"); }
void FUN_007dc650() { generated_stub("FUN_007dc650 007dc650"); }
@@ -11016,7 +10973,6 @@ void FUN_008370b0() { generated_stub("FUN_008370b0 008370b0"); }
uint32_t FUN_00837610() { generated_stub("FUN_00837610 00837610"); }
void FUN_00837660(uint32_t param_1) { generated_stub("FUN_00837660 00837660"); }
int FUN_00839070() { generated_stub("FUN_00839070 00839070"); }
void FUN_008391a0() { generated_stub("FUN_008391a0 008391a0"); }
void sprite_member_at_0xc_destroy(void *self) { generated_stub("sprite_member_at_0xc_destroy 00839300"); }
void list_anm2_state_assign(int *param_1) { generated_stub("list_anm2_state_assign 00839380"); }
void FUN_00839830() { generated_stub("FUN_00839830 00839830"); }
@@ -11043,7 +10999,6 @@ void ItemInfo::render_popup_callback(int param_1, uint32_t param_2) { generated_
void ItemInfo::render_line(uint8_t *param_1, Vector *param_2, int param_3) { generated_stub("ItemInfo::render_line 008404a0"); }
char * FUN_00840510() { generated_stub("FUN_00840510 00840510"); }
std_string * int_to_string(std_string *outString, int value) { generated_stub("int_to_string 00840540"); }
void FUN_0084a870(float *param_1) { generated_stub("FUN_0084a870 0084a870"); }
void FUN_0084abc0(uint32_t *param_1, float *param_2, uint32_t *param_3, uint32_t *param_4) { generated_stub("FUN_0084abc0 0084abc0"); }
void FUN_0084bba0() { generated_stub("FUN_0084bba0 0084bba0"); }
void FUN_0084bbc0(uint32_t *param_1) { generated_stub("FUN_0084bbc0 0084bbc0"); }
@@ -11150,7 +11105,6 @@ uint32_t Catch_00863d4e() { generated_stub("Catch_00863d4e 00863d4e"); }
uint32_t Catch_008641bb() { generated_stub("Catch_008641bb 008641bb"); }
uint32_t Catch_008642a4() { generated_stub("Catch_008642a4 008642a4"); }
uint32_t Catch_00864682() { generated_stub("Catch_00864682 00864682"); }
uint8_t FUN_00864d80(uint32_t param_1, uint32_t param_2, uint32_t param_3, float *param_4) { generated_stub("FUN_00864d80 00864d80"); }
uint8_t * Catch_00864e6d() { generated_stub("Catch_00864e6d 00864e6d"); }
uint32_t Catch_0086504e() { generated_stub("Catch_0086504e 0086504e"); }
uint32_t Catch_0086512e() { generated_stub("Catch_0086512e 0086512e"); }
@@ -13256,7 +13210,6 @@ void FUN_009a8a40() { generated_stub("FUN_009a8a40 009a8a40"); }
void _player_hud_set_heart_anim_state(int param_1) { generated_stub("_player_hud_set_heart_anim_state 009a90b0"); }
void move_directory_files() { generated_stub("move_directory_files 009a90e0"); }
uint8_t delete_directory_recursive(uint8_t *path) { generated_stub("delete_directory_recursive 009a9250"); }
void Isaac::Shutdown() { generated_stub("Isaac::Shutdown 009ab700"); }
void resources_mount_language() { generated_stub("resources_mount_language 009ab970"); }
void FUN_009abd50() { generated_stub("FUN_009abd50 009abd50"); }
void FUN_009ad470() { generated_stub("FUN_009ad470 009ad470"); }