Curation round 4: popups, Seeds/Random, Game, KeyConfigs, offline NetplayManager, Console, TextureCache, render passes

Six agents took over PopupButtons/PopupQueue/AchievementOverlay, Seeds with the global Random (now seeded from the
clock as in the original), Game (g_game exists from Manager::Init on), KeyConfigs, an offline NetplayManager, Console's
output and printing, TextureCache, the color-mod and sprite shader passes, mod shaders and reload_resource_paths. An
integration pass moved callers to the new APIs (0 errors, 0 warnings with -Wall -Wextra). build/isaac loads the 34
installed mods and stops at ScoreSheet::ScoreSheet in Game's constructor; with the remaining stubs skipped under gdb the
intro cutscene plays through and the main menu's frame loop runs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
shweetandClaude Opus 5.5 committed 2026-11-20 01:32:19 -05:00
1 parent ddf913f304
commit fd8b965350
110 files changed
+6500 -40129

No files matched your search

+47 -46
View File
@@ -533,7 +533,7 @@ void Entity_Tear::play_fire_sound()
}
else {
if (((iVar1 == 0xd) || (iVar1 == 0x17)) &&
(isSeedEffectActive = (GHIDRA_CAST<Seeds *>((&g_game->_seedEffects)))->Seeds::HasSeedEffect(0x4f),
(isSeedEffectActive = Seeds::HasSeedEffect(&g_game->_seedEffects,0x4f),
isSeedEffectActive != 0)) goto LAB_00666e14;
manager = g_manager;
soundId = 0x99;
@@ -1599,8 +1599,8 @@ void Entity_Tear::Update()
}
}
if ((this->_variant == 0xd) || (this->_variant == 0x17)) {
seeds = GHIDRA_CAST<Seeds *>((GHIDRA_CAST<Game *>((g_game)))->Game)::GetSeeds();
bVar4 = (GHIDRA_CAST<Seeds *>((seeds)))->Seeds::HasSeedEffect(0x4f);
seeds = GHIDRA_CAST<Seeds *>(Game)::GetSeeds(g_game);
bVar4 = Seeds::HasSeedEffect(seeds,0x4f);
if (bVar4 != 0) {
(GHIDRA_CAST<BitSet128 *>((&g_tearFlagLasershot)))->BitSet128::__bnot(&notLasershot);
FUN_005cd430();
@@ -1684,7 +1684,7 @@ LAB_0066757c:
(GHIDRA_CAST<Vector *>((&greenCreepPos)))->Vector::operator_assign(pVVar9);
uVar10 = Random();
in_stack_ffffd9fc = GHIDRA_CAST<Vector *>(0x0);
(GHIDRA_CAST<Game *>((g_game)))->Game::Spawn(1000,0x35,&greenCreepPos,&g_vectorZero,GHIDRA_CAST<Entity *>(this->_spawnerEntity),0,
Game::Spawn(g_game,1000,0x35,&greenCreepPos,&g_vectorZero,GHIDRA_CAST<Entity *>(this->_spawnerEntity),0,
uVar10);
pEVar11 = GHIDRA_CAST<Entity *>(__RTDynamicCast());
greenCreepBaseScale = (void *)0x3ecccccd;
@@ -1712,7 +1712,7 @@ LAB_006677ce:
(GHIDRA_CAST<Vector *>((&redCreepPos)))->Vector::operator_assign(pVVar9);
uVar10 = Random();
in_stack_ffffd9fc = GHIDRA_CAST<Vector *>(0x0);
(GHIDRA_CAST<Game *>((g_game)))->Game::Spawn(1000,0x2e,&redCreepPos,&g_vectorZero,GHIDRA_CAST<Entity *>(this->_spawnerEntity),0,
Game::Spawn(g_game,1000,0x2e,&redCreepPos,&g_vectorZero,GHIDRA_CAST<Entity *>(this->_spawnerEntity),0,
uVar10);
pEVar11 = GHIDRA_CAST<Entity *>(__RTDynamicCast());
redCreepBaseScale = (void *)0x3ecccccd;
@@ -1869,7 +1869,7 @@ LAB_00668224:
if (this->_laserShotLaser == 0) {
local_8b0 = local_8d8;
if (local_8d8 == GHIDRA_CAST<Room *>(0x0)) {
local_8b0 = GHIDRA_CAST<Room *>((GHIDRA_CAST<Game *>((g_game)))->Game)::GetPlayer(0);
local_8b0 = GHIDRA_CAST<Room *>(Game)::GetPlayer(g_game,0);
}
(GHIDRA_CAST<Vector *>((&this->_pos)))->Vector::operator__(&this->_velocity);
pVVar9 = (GHIDRA_CAST<Vector *>((&local_1598)))->Vector::Vector(zeroConst,this->_height);
@@ -2160,8 +2160,8 @@ LAB_0066863a:
case 0x17:
case 0x1c:
if ((iVar7 == 0xd) || (iVar7 == 0x17)) {
seeds = GHIDRA_CAST<Seeds *>((GHIDRA_CAST<Game *>((g_game)))->Game)::GetSeeds();
bVar4 = (GHIDRA_CAST<Seeds *>((seeds)))->Seeds::HasSeedEffect(0x4f);
seeds = GHIDRA_CAST<Seeds *>(Game)::GetSeeds(g_game);
bVar4 = Seeds::HasSeedEffect(seeds,0x4f);
if (bVar4 == 0) goto LAB_00668a9b;
iVar7 = Isaac::Random(5);
if ((iVar7 == 0) && ((this->_deathFlags & 1) != 0)) {
@@ -2284,7 +2284,7 @@ LAB_006689b3:
(GHIDRA_CAST<Vector *>((&this->_pos)))->Vector::__add(&particlePos,pVVar9);
uVar10 = Random();
pVVar9 = (GHIDRA_CAST<Vector *>((&particleDir)))->Vector::__mul(&VStack_15b0,GHIDRA_CAST<float *>(&particleSpeed));
pEVar11 = (GHIDRA_CAST<Game *>((g_game)))->Game::Spawn(1000,0x23,&particlePos,pVVar9,GHIDRA_CAST<Entity *>(0x0),1,uVar10);
pEVar11 = Game::Spawn(g_game,1000,0x23,&particlePos,pVVar9,GHIDRA_CAST<Entity *>(0x0),1,uVar10);
(GHIDRA_CAST<Entity *>((pEVar11)))->Entity::SetPositionOffset(&this->_posOffset);
in_stack_ffffd9fc = GHIDRA_CAST<Vector *>(0xffffffff);
pEVar11->SetColor();
@@ -2349,7 +2349,7 @@ LAB_00668fdf:
LAB_00668fe9:
local_8c8 = GHIDRA_CAST<ANM2 *>(0x1);
Game::BombTearflagEffects(g_game,pVVar9,60.0,this->_tearFlags,GHIDRA_CAST<Entity *>(this),1.0);
(GHIDRA_CAST<Game *>((g_game)))->Game::GetField26614();
Game::GetField26614(g_game);
cVar5 = DeathmatchManager::is_active();
if (cVar5 == '\0') {
local_89c = GHIDRA_CAST<Room *>(this->_collisionDamage);
@@ -2377,13 +2377,13 @@ LAB_00668fe9:
local_910 = (void *)(*pfVar15 / 60.0);
in_stack_ffffd9fc = *GHIDRA_CAST<Vector **>((GHIDRA_INT(&(this->_tearFlags)._h) + 4));
auVar31 = ZEXT416(local_89c);
(GHIDRA_CAST<Game *>((g_game)))->Game::BombDamage(pVVar9,(float)local_89c,*pfVar15,1,GHIDRA_CAST<Entity *>(this),this->_tearFlags,
Game::BombDamage(g_game,pVVar9,(float)local_89c,*pfVar15,1,GHIDRA_CAST<Entity *>(this),this->_tearFlags,
ZEXT48(local_8b4),0);
pBVar6 = BitSet128::operator_and(&poisonMask,&this->_tearFlags,&g_tearFlagPoison);
bVar4 = (GHIDRA_CAST<BitSet128 *>((pBVar6)))->BitSet128::IsNonZero();
if (bVar4 != 0) {
uVar10 = Random();
(GHIDRA_CAST<Game *>((g_game)))->Game::Spawn(1000,7,pVVar9,&g_vectorZero,GHIDRA_CAST<Entity *>(0x0),0,uVar10);
Game::Spawn(g_game,1000,7,pVVar9,&g_vectorZero,GHIDRA_CAST<Entity *>(0x0),0,uVar10);
pEVar11 = GHIDRA_CAST<Entity *>(__RTDynamicCast());
decayFactor = random_float();
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(auVar31)) + 0x0))) = GHIDRA_CAST<Room *>(((decayFactor + oneConst) * (float)local_910));
@@ -2396,7 +2396,7 @@ LAB_00668fe9:
(*pcVar1)();
pEVar11->Update();
uVar10 = Random();
pEVar11 = (GHIDRA_CAST<Game *>((g_game)))->Game::Spawn(1000,2,tearPos,&g_vectorZero,GHIDRA_CAST<Entity *>(0x0),4,uVar10);
pEVar11 = Game::Spawn(g_game,1000,2,tearPos,&g_vectorZero,GHIDRA_CAST<Entity *>(0x0),4,uVar10);
pcVar1 = *(code **)(*GHIDRA_CAST<int *>(pEVar11) + 0x3c);
(GHIDRA_CAST<Color *>(()))->Color::Color();
(*pcVar1)();
@@ -2467,7 +2467,7 @@ LAB_00668fe9:
pEVar11 = GHIDRA_CAST<Entity *>(this->_spawnerEntity);
pVVar9 = (GHIDRA_CAST<Vector *>((tearPos)))->Vector::__sub(&local_15d8,GHIDRA_CAST<Vector *>(local_88c));
spawnedTear = tear;
(GHIDRA_CAST<Game *>((g_game)))->Game::Spawn(tear->_type,GHIDRA_UINT(local_8c0),pVVar9,&splitVel,pEVar11,0,uVar10);
Game::Spawn(g_game,tear->_type,GHIDRA_UINT(local_8c0),pVVar9,&splitVel,pEVar11,0,uVar10);
room = GHIDRA_CAST<Room *>(__RTDynamicCast());
local_89c = room;
if (local_8b4 == GHIDRA_CAST<Room *>(0x0)) {
@@ -2492,7 +2492,7 @@ LAB_00668fe9:
FUN_0060d070();
}
(GHIDRA_CAST<Entity_Projectile *>((GHIDRA_CAST<Entity_Projectile *>(room))))->Entity_Projectile::set_falling_accel((float)pRVar28);
(GHIDRA_CAST<Game *>((g_game)))->Game::GetPlayer(0);
Game::GetPlayer(g_game,0);
FUN_0060d060();
local_8b4 = pRVar28;
if (zeroConst < (float)pRVar28) {
@@ -2557,7 +2557,7 @@ LAB_00668fe9:
pAVar22 = local_8c8;
if (local_8c8 != GHIDRA_CAST<ANM2 *>(0x0)) {
uVar10 = Random();
(GHIDRA_CAST<Game *>((g_game)))->Game::Spawn(1000,GHIDRA_UINT(pAVar22),&this->_pos,&g_vectorZero,GHIDRA_CAST<Entity *>(this),GHIDRA_UINT(local_898),
Game::Spawn(g_game,1000,GHIDRA_UINT(pAVar22),&this->_pos,&g_vectorZero,GHIDRA_CAST<Entity *>(this),GHIDRA_UINT(local_898),
uVar10);
room = GHIDRA_CAST<Room *>(__RTDynamicCast());
local_88c = room;
@@ -2777,7 +2777,7 @@ LAB_00668fe9:
bloodParticleDist = (void *)(decayFactor * 24.0);
pVVar9 = (GHIDRA_CAST<Vector *>((pVVar9)))->Vector::__mul(&local_1610,GHIDRA_CAST<float *>(&bloodParticleDist));
pVVar9 = (GHIDRA_CAST<Vector *>((tearPos)))->Vector::__add(&local_1618,pVVar9);
(GHIDRA_CAST<Game *>((g_game)))->Game::Spawn(1000,7,pVVar9,&g_vectorZero,GHIDRA_CAST<Entity *>(0x0),0,uVar10);
Game::Spawn(g_game,1000,7,pVVar9,&g_vectorZero,GHIDRA_CAST<Entity *>(0x0),0,uVar10);
pEVar11 = GHIDRA_CAST<Entity *>(__RTDynamicCast());
bloodParticleScale = (void *)0x3e99999a;
pVVar9 = (GHIDRA_CAST<Vector *>((&g_vectorOne)))->Vector::__mul(&uniformScale4,GHIDRA_CAST<float *>(&bloodParticleScale));
@@ -3198,7 +3198,7 @@ LAB_0066cdbc:
room = GHIDRA_CAST<Room *>((GHIDRA_CAST<EntityList *>((GHIDRA_CAST<EntityList *>(aheadQuery))))->EntityList)::Size();
} while (local_888 < room);
}
(GHIDRA_CAST<Game *>((g_game)))->Game::GetField26614();
Game::GetField26614(g_game);
cVar5 = DeathmatchManager::is_active();
if (cVar5 != '\0') {
(GHIDRA_CAST<Level *>((GHIDRA_CAST<Level *>(g_game))))->Level::GetCurrentRoom();
@@ -3285,7 +3285,7 @@ LAB_0066cdbc:
if ((iVar7 == 0) && (this->_dead == 0)) {
uVar10 = Random();
in_stack_ffffd9fc = GHIDRA_CAST<Vector *>(local_88c);
local_8a0 = GHIDRA_CAST<Room *>((GHIDRA_CAST<Game *>((g_game)))->Game)::SpawnEx(7,2,&this->_pos,&g_vectorZero,GHIDRA_CAST<Entity *>(local_88c),3
local_8a0 = GHIDRA_CAST<Room *>(Game)::SpawnEx(g_game,7,2,&this->_pos,&g_vectorZero,GHIDRA_CAST<Entity *>(local_88c),3
,uVar10,1);
if (local_8a0 == GHIDRA_CAST<Room *>(0x0)) {
(GHIDRA_CAST<BitSet128 *>((&g_tearFlagFetusTechx)))->BitSet128::__bnot(&notFetusTechx);
@@ -3338,7 +3338,7 @@ LAB_0066cdbc:
if ((iVar7 == 0) && (this->_dead == 0)) {
uVar10 = Random();
in_stack_ffffd9fc = &g_vectorZero;
room = GHIDRA_CAST<Room *>((GHIDRA_CAST<Game *>((g_game)))->Game)::Spawn(8,1,&this->_pos,&g_vectorZero,GHIDRA_CAST<Entity *>(local_88c),0,
room = GHIDRA_CAST<Room *>(Game)::Spawn(g_game,8,1,&this->_pos,&g_vectorZero,GHIDRA_CAST<Entity *>(local_88c),0,
uVar10);
local_8b4 = room;
if (room != GHIDRA_CAST<Room *>(0x0)) {
@@ -3414,7 +3414,7 @@ LAB_0066cdbc:
if ((iVar7 == 0) && (this->_dead == 0)) {
uVar10 = Random();
in_stack_ffffd9fc = &g_vectorZero;
room = GHIDRA_CAST<Room *>((GHIDRA_CAST<Game *>((g_game)))->Game)::Spawn(8,0,&this->_pos,&g_vectorZero,GHIDRA_CAST<Entity *>(local_88c),0,
room = GHIDRA_CAST<Room *>(Game)::Spawn(g_game,8,0,&this->_pos,&g_vectorZero,GHIDRA_CAST<Entity *>(local_88c),0,
uVar10);
local_8b4 = room;
if (room != GHIDRA_CAST<Room *>(0x0)) {
@@ -3468,7 +3468,7 @@ LAB_0066cdbc:
}
uVar18 = Random();
in_stack_ffffd9fc = &g_vectorZero;
room = GHIDRA_CAST<Room *>((GHIDRA_CAST<Game *>((g_game)))->Game)::Spawn(8,uVar10,&this->_pos,&g_vectorZero,GHIDRA_CAST<Entity *>(local_88c),0,
room = GHIDRA_CAST<Room *>(Game)::Spawn(g_game,8,uVar10,&this->_pos,&g_vectorZero,GHIDRA_CAST<Entity *>(local_88c),0,
uVar18);
local_8b4 = room;
if (room == GHIDRA_CAST<Room *>(0x0)) {
@@ -4288,7 +4288,7 @@ LAB_0066dd14:
}
}
if (((room->_gridEntities[2] == &DAT_0000000d) || (room->_gridEntities[2] == &DAT_00000017)) &&
(bVar4 = (GHIDRA_CAST<Game *>((g_game)))->Game::IsInTimedSet(0x4f), bVar4 != 0)) {
(bVar4 = Game::IsInTimedSet(g_game,0x4f), bVar4 != 0)) {
(GHIDRA_CAST<Vector *>((room->_gridEntities + 0xd4)))->x = 3.0;
}
puVar19 = room->_gridEntities[2];
@@ -4393,8 +4393,8 @@ LAB_0066e037:
}
}
if (room->_gridEntities[2] == &DAT_00000017) {
seeds = GHIDRA_CAST<Seeds *>((GHIDRA_CAST<Game *>((g_game)))->Game)::GetSeeds();
bVar4 = (GHIDRA_CAST<Seeds *>((seeds)))->Seeds::HasSeedEffect(0x4f);
seeds = GHIDRA_CAST<Seeds *>(Game)::GetSeeds(g_game);
bVar4 = Seeds::HasSeedEffect(seeds,0x4f);
if (((bVar4 != 0) &&
(iVar7 = (GHIDRA_CAST<Entity *>((GHIDRA_CAST<Entity *>(room))))->Entity::GetIntervalTicks(2.0,zeroConst), iVar7 != 0)) &&
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(room->_gridEntities) + 0x14d)) != 0)) {
@@ -4407,7 +4407,7 @@ LAB_0066e037:
pVVar14 = (GHIDRA_CAST<Vector *>((pVVar14)))->Vector::__mul(&local_1150,&tear->_fScale);
pVVar14 = (GHIDRA_CAST<Vector *>((tearPos)))->Vector::__sub(&local_1158,pVVar14);
effect = (Entity_Effect *)
(GHIDRA_CAST<Game *>((g_game)))->Game::Spawn(1000,0x3b,pVVar14,pVVar9,GHIDRA_CAST<Entity *>(0x0),0,uVar10);
Game::Spawn(g_game,1000,0x3b,pVVar14,pVVar9,GHIDRA_CAST<Entity *>(0x0),0,uVar10);
pcVar1 = *(code **)(*GHIDRA_CAST<int *>(effect) + 0x3c);
(GHIDRA_CAST<Color *>((local_4e8)))->Color::Color(oneConst,oneConst,oneConst,0.3);
in_stack_ffffd9fc = GHIDRA_CAST<Vector *>(0xffffffff);
@@ -4443,7 +4443,7 @@ LAB_0066e037:
pfVar15 = &tear->_fScale;
pVVar14 = (GHIDRA_CAST<Vector *>((pVVar14)))->Vector::__mul(&local_1188,pfVar15);
in_stack_ffffd9fc = (GHIDRA_CAST<Vector *>((pVVar9)))->Vector::__add(&local_1190,pVVar14);
local_89c = GHIDRA_CAST<Room *>((GHIDRA_CAST<Game *>((g_game)))->Game)::Spawn(1000,0x58,tearPos,in_stack_ffffd9fc,GHIDRA_CAST<Entity *>(0x0),0,
local_89c = GHIDRA_CAST<Room *>(Game)::Spawn(g_game,1000,0x58,tearPos,in_stack_ffffd9fc,GHIDRA_CAST<Entity *>(0x0),0,
GHIDRA_UINT(local_87c));
sprite = GHIDRA_CAST<Sprite *>((GHIDRA_CAST<Entity *>((GHIDRA_CAST<Entity *>(local_89c))))->Entity)::GetSprite();
pVVar9 = (GHIDRA_CAST<Vector *>((&g_vectorOne)))->Vector::__mul(&uniformScale11,pfVar15);
@@ -4468,7 +4468,7 @@ LAB_0066e037:
pVVar14 = (GHIDRA_CAST<Vector *>((pVVar14)))->Vector::__mul(&local_11c8,GHIDRA_CAST<float *>(&local_ba8));
pVVar14 = (GHIDRA_CAST<Vector *>((pVVar14)))->Vector::__mul(&local_11d0,&tear->_fScale);
in_stack_ffffd9fc = (GHIDRA_CAST<Vector *>((pVVar9)))->Vector::__add(&local_11d8,pVVar14);
room = GHIDRA_CAST<Room *>((GHIDRA_CAST<Game *>((g_game)))->Game)::Spawn(1000,0x6f,tearPos,in_stack_ffffd9fc,GHIDRA_CAST<Entity *>(0x0),0,
room = GHIDRA_CAST<Room *>(Game)::Spawn(g_game,1000,0x6f,tearPos,in_stack_ffffd9fc,GHIDRA_CAST<Entity *>(0x0),0,
GHIDRA_UINT(local_87c));
local_89c = room;
pAVar22 = GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<Entity *>((GHIDRA_CAST<Entity *>(room))))->Entity)::GetSprite();
@@ -4682,7 +4682,7 @@ LAB_0066ebda:
if (uVar10 == 0x24) {
uVar10 = 1;
}
(GHIDRA_CAST<Game *>((g_game)))->Game::Spawn(2,uVar10,tearPos,pVVar9,pEVar11,0,uVar18);
Game::Spawn(g_game,2,uVar10,tearPos,pVVar9,pEVar11,0,uVar18);
pRVar28 = GHIDRA_CAST<Room *>(__RTDynamicCast());
local_ab4 = (void *)0xc0c00000;
local_898 = pRVar28;
@@ -4757,7 +4757,7 @@ LAB_0066ef8a:
pBVar6 = BitSet128::operator_and(&andResult21,pBVar6,pBVar8);
bVar4 = (GHIDRA_CAST<BitSet128 *>((pBVar6)))->BitSet128::IsNonZero();
if (bVar4 == 0) {
(GHIDRA_CAST<Game *>((g_game)))->Game::GetField26614();
Game::GetField26614(g_game);
cVar5 = DeathmatchManager::is_active();
if ((cVar5 == '\0') ||
(bVar4 = (GHIDRA_CAST<Entity *>((GHIDRA_CAST<Entity *>(local_890))))->Entity::IsDescendantOf(room->_gridEntities[0xe9]),
@@ -5849,14 +5849,14 @@ LAB_0067162f:
}
}
LAB_0067176f:
(GHIDRA_CAST<Game *>((g_game)))->Game::GetField26614();
Game::GetField26614(g_game);
cVar5 = DeathmatchManager::is_active();
if (cVar5 == '\0') {
LAB_006717e1:
local_8a1 = '\0';
}
else {
playerManager = GHIDRA_CAST<PlayerManager *>((GHIDRA_CAST<Game *>((g_game)))->Game)::GetPlayerManager();
playerManager = GHIDRA_CAST<PlayerManager *>(Game)::GetPlayerManager(g_game);
bVar4 = (GHIDRA_CAST<PlayerManager *>((playerManager)))->PlayerManager::AnyoneHasCollectible(0x1a7);
if (bVar4 == 0) goto LAB_006717e1;
outResult = GHIDRA_CAST<TypeDescriptor *>(0x6717b0);
@@ -5913,7 +5913,7 @@ LAB_006717e1:
(GHIDRA_CAST<TearParams *>((&tearHitParams)))->TearParams::copy(other);
uVar10 = Random();
pVVar9 = (GHIDRA_CAST<Vector *>((GHIDRA_CAST<Vector *>((room->_gridEntities + 0xcf)))))->Vector::__unm(&negated3);
(GHIDRA_CAST<Game *>((g_game)))->Game::Spawn(2,0,GHIDRA_CAST<Vector *>((room->_gridEntities + 0xc6)),pVVar9,GHIDRA_CAST<Entity *>(local_888)
Game::Spawn(g_game,2,0,GHIDRA_CAST<Vector *>((room->_gridEntities + 0xc6)),pVVar9,GHIDRA_CAST<Entity *>(local_888)
,0,uVar10);
spawnedTear = GHIDRA_CAST<Entity_Tear *>(__RTDynamicCast());
Entity_Projectile::SetHeight
@@ -5976,7 +5976,7 @@ LAB_006717e1:
room->_gridEntities[0xd3] =
(void *)(*GHIDRA_CAST<float *>((GHIDRA_INT(room->_gridEntities[0xc3]) + 0x38)) * *pfVar15 * 5.0);
}
bVar4 = (GHIDRA_CAST<Game *>((g_game)))->Game::IsInTimedSet(0x25);
bVar4 = Game::IsInTimedSet(g_game,0x25);
if (bVar4 != 0) {
pcVar1 = *(code **)(*GHIDRA_CAST<int *>(room) + 0x3c);
(GHIDRA_CAST<Color *>(()))->Color::Color();
@@ -6198,7 +6198,7 @@ LAB_006722d8:
pRVar28 = pRVar29;
}
pVVar9 = GHIDRA_CAST<Vector *>((room->_gridEntities + 0xc6));
(GHIDRA_CAST<Game *>((g_game)))->Game::Fart(pVVar9,85.0,GHIDRA_CAST<Entity *>(pRVar28),1.0,0,color);
Game::Fart(g_game,pVVar9,85.0,GHIDRA_CAST<Entity *>(pRVar28),1.0,0,color);
if (room->_gridEntities[0x115] != (void *)0x0) {
bVar4 = (GHIDRA_CAST<Entity *>((GHIDRA_CAST<Entity *>(room))))->Entity::HasEntityFlags(0x80000000000);
if (bVar4 == 0) {
@@ -6270,7 +6270,7 @@ LAB_006722d8:
local_b1c = (void *)(decayFactor * 4.0 + 8.0);
pVVar9 = (GHIDRA_CAST<Vector *>((&local_b8c)))->Vector::__mul(&local_1488,GHIDRA_CAST<float *>(&local_b1c));
pVVar14 = (GHIDRA_CAST<Vector *>((tearPos)))->Vector::__sub(&local_1490,GHIDRA_CAST<Vector *>(local_8e0));
local_8d0 = GHIDRA_CAST<Room *>((GHIDRA_CAST<Game *>((g_game)))->Game)::Spawn(tear->_type,tear->_variant,pVVar14,pVVar9,
local_8d0 = GHIDRA_CAST<Room *>(Game)::Spawn(g_game,tear->_type,tear->_variant,pVVar14,pVVar9,
GHIDRA_CAST<Entity *>(local_8ac),0,uVar10);
(GHIDRA_CAST<Entity_Projectile *>((GHIDRA_CAST<Entity_Projectile *>(local_8d0))))->Entity_Projectile::SetHeight(-23.75);
local_8cc = GHIDRA_CAST<Room *>((GHIDRA_CAST<BitSet128 *>((&g_tearFlagHydrobounce)))->BitSet128)::__bnot(&notHydrobounce2);
@@ -6486,7 +6486,7 @@ LAB_0067308c:
if (bVar4 == 0) {
(**(code **)(*GHIDRA_CAST<int *>(room) + 0x28))();
uVar10 = Random();
pEVar11 = (GHIDRA_CAST<Game *>((g_game)))->Game::Spawn(1000,0x10,pVVar9,&g_vectorZero,GHIDRA_CAST<Entity *>(0x0),0x42,
pEVar11 = Game::Spawn(g_game,1000,0x10,pVVar9,&g_vectorZero,GHIDRA_CAST<Entity *>(0x0),0x42,
uVar10);
pEVar11->Update();
}
@@ -6633,7 +6633,7 @@ float Entity_Tear::get_height_offset_y(float height)
(((iVar1 != 0x2f && (iVar1 != 0x31)) ||
((0.001 < this->_fallingAccel && (this->_isHovering == 0)))))) {
if ((((iVar1 == 0xd) || (iVar1 == 0x17)) &&
(isGFuel = (GHIDRA_CAST<Seeds *>((&g_game->_seedEffects)))->Seeds::HasSeedEffect(0x4f), isGFuel != 0)) &&
(isGFuel = Seeds::HasSeedEffect(&g_game->_seedEffects,0x4f), isGFuel != 0)) &&
((this->_fallingAccel <= 0.001 || (this->_isHovering != 0)))) {
return -12.0;
}
@@ -7215,7 +7215,7 @@ void Entity_Tear::apply_death_flag_effects(Entity *target)
pTVar12 = &IsaacRepentancePlus::Entity_Tear::RTTI_Type_Descriptor;
pTVar11 = &IsaacRepentancePlus::Entity::RTTI_Type_Descriptor;
uVar10 = 0;
spawned = (GHIDRA_CAST<Game *>((g_game)))->Game::Spawn(2,0,&local_98,&local_8c,GHIDRA_CAST<Entity *>(this->_spawnerEntity),0,uVar4);
spawned = Game::Spawn(g_game,2,0,&local_98,&local_8c,GHIDRA_CAST<Entity *>(this->_spawnerEntity),0,uVar4);
childTear = GHIDRA_CAST<Entity_Tear *>(__RTDynamicCast(spawned,uVar10,pTVar11,pTVar12,uVar13));
local_60 = childTear;
if (isDeadRising == '\0') {
@@ -7329,7 +7329,8 @@ void Entity_Tear::apply_death_flag_effects(Entity *target)
pTVar12 = &IsaacRepentancePlus::Entity_Tear::RTTI_Type_Descriptor;
pTVar11 = &IsaacRepentancePlus::Entity::RTTI_Type_Descriptor;
uVar10 = 0;
spawned = (GHIDRA_CAST<Game *>((g_game)))->Game::Spawn(2,uVar4,&local_8c,&local_98,GHIDRA_CAST<Entity *>(this->_spawnerEntity),0,seed);
spawned = Game::Spawn(g_game,2,uVar4,&local_8c,&local_98,GHIDRA_CAST<Entity *>(this->_spawnerEntity),0,seed
);
childTear = GHIDRA_CAST<Entity_Tear *>(__RTDynamicCast(spawned,uVar10,pTVar11,pTVar12,uVar13));
local_68 = childTear;
if (uVar4 == 0x1d) {
@@ -7458,7 +7459,7 @@ void Entity_Tear::apply_death_flag_effects(Entity *target)
local_60 = GHIDRA_CAST<Entity_Tear *>((this->_collisionDamage * 0.5));
Room::GetClampedPositionImpl(game->_room,&local_a0,&this->_pos,0.0,0.0,0.0,0.0);
uVar4 = Random();
spawned = (GHIDRA_CAST<Game *>((g_game)))->Game::Spawn(1000,0xb4,&local_a0,&g_vectorZero,GHIDRA_CAST<Entity *>(this->_spawnerEntity),
spawned = Game::Spawn(g_game,1000,0xb4,&local_a0,&g_vectorZero,GHIDRA_CAST<Entity *>(this->_spawnerEntity),
0,uVar4);
fVar9 = this->_fScale * g_vectorOne.x;
iVar6 = *GHIDRA_CAST<int *>(spawned);
@@ -7911,7 +7912,7 @@ LAB_00678885:
fVar12 = sin(fVar12);
tearVelocity.x = fVar13 * shotSpeed * 10.0 - fVar12 * 0.0;
tearVelocity.y = fVar12 * shotSpeed * 10.0 + fVar13 * 0.0;
spawned = (GHIDRA_CAST<Game *>((g_game)))->Game::SpawnEx(2,1,&this->_pos,&tearVelocity,spawned,0,uVar6,0);
spawned = Game::SpawnEx(g_game,2,1,&this->_pos,&tearVelocity,spawned,0,uVar6,0);
childShot = (Entity_Tear *)
__RTDynamicCast(spawned,0,&IsaacRepentancePlus::Entity::RTTI_Type_Descriptor,
&IsaacRepentancePlus::Entity_Tear::RTTI_Type_Descriptor,0);
@@ -8710,7 +8711,7 @@ Entity_Tear * Entity_Tear::MakeMultidimensionalCopy(Entity *spawner)
if (((variant != 0x23) && (variant != 0x25)) && (variant != 0x26)) {
variant = 0x15;
}
spawned = (GHIDRA_CAST<Game *>((g_game)))->Game::SpawnEx(2,variant,&this->_pos,&this->_velocity,spawner,this->_subtype,
spawned = Game::SpawnEx(g_game,2,variant,&this->_pos,&this->_velocity,spawner,this->_subtype,
(this->_dropRNG)._seed,0);
copy = (Entity_Tear *)
__RTDynamicCast(spawned,0,&IsaacRepentancePlus::Entity::RTTI_Type_Descriptor,
@@ -8807,7 +8808,7 @@ void Entity_Tear::ChangeVariant(int variant)
if (this->_config != (void *)0x0) {
ANM2::Load(&this->_sprite,GHIDRA_CAST<std_string *>((GHIDRA_INT(this->_config) + 0x74)),1);
if (this->_variant == 0xd) {
isGfuelSeed = (GHIDRA_CAST<Seeds *>((&g_game->_seedEffects)))->Seeds::HasSeedEffect(0x4f);
isGfuelSeed = Seeds::HasSeedEffect(&g_game->_seedEffects,0x4f);
if (isGfuelSeed != 0) {
bulletAnmPath._size = 0;
bulletAnmPath._capacity = 0xf;
@@ -8849,7 +8850,7 @@ void Entity_Tear::ChangeVariant(int variant)
}
}
else if (this->_variant == 0x17) {
isGfuelSeed = (GHIDRA_CAST<Seeds *>((&g_game->_seedEffects)))->Seeds::HasSeedEffect(0x4f);
isGfuelSeed = Seeds::HasSeedEffect(&g_game->_seedEffects,0x4f);
if (isGfuelSeed != 0) {
missileAnmPath._size = 0;
missileAnmPath._capacity = 0xf;
@@ -9410,7 +9411,7 @@ void Entity_Tear::reroll_hit_entity(int unused)
poofColor._offset[0] = 0.2509804;
poofColor._offset[1] = 0.34901962;
poofColor._offset[2] = 0.5019608;
tmpEntity = (GHIDRA_CAST<Game *>((g_game)))->Game::SpawnEx(1000,0xf,&this->_pos,&g_vectorZero,GHIDRA_CAST<Entity *>(0x0),0,uVar5,0);
tmpEntity = Game::SpawnEx(g_game,1000,0xf,&this->_pos,&g_vectorZero,GHIDRA_CAST<Entity *>(0x0),0,uVar5,0);
spriteColor = &(tmpEntity->_sprite)._color;
if (spriteColor != &poofColor) {
spriteColor->_tint[0] = 1.0;