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:
1 parent
ddf913f304
commit
fd8b965350
110 files changed
+6500
-40129
No files matched your search
+103
-102
@@ -127,7 +127,7 @@ void Entity_NPC::Hornfel_UpdateAI()
|
||||
local_14 = 0;
|
||||
if (local_28 == GHIDRA_CAST<Entity_NPC *>(0x0)) {
|
||||
uVar8 = Random();
|
||||
tmpEntity = (GHIDRA_CAST<Game *>((g_game)))->Game::Spawn(1000,0x98,&g_vectorZero,&g_vectorZero,GHIDRA_CAST<Entity *>(0x0),0,uVar8);
|
||||
tmpEntity = Game::Spawn(g_game,1000,0x98,&g_vectorZero,&g_vectorZero,GHIDRA_CAST<Entity *>(0x0),0,uVar8);
|
||||
tmpEntity->Update(uVar5);
|
||||
}
|
||||
else {
|
||||
@@ -650,7 +650,7 @@ LAB_004b9d9e:
|
||||
launchTarget.y = local_134;
|
||||
local_11c = GHIDRA_CAST<Entity_NPC *>(launchTarget.x);
|
||||
uVar5 = Random();
|
||||
tmpEntity = (GHIDRA_CAST<Game *>((g_game)))->Game::Spawn(4,0xf,&this->_pos,&g_vectorZero,GHIDRA_CAST<Entity *>(0x0),0,uVar5);
|
||||
tmpEntity = Game::Spawn(g_game,4,0xf,&this->_pos,&g_vectorZero,GHIDRA_CAST<Entity *>(0x0),0,uVar5);
|
||||
NpcHelper::hornfel_launch_toward(this,tmpEntity,&launchTarget);
|
||||
tmpEntity->_entityCollisionClass = 1;
|
||||
if (local_2c == local_108) {
|
||||
@@ -708,7 +708,7 @@ LAB_004b9d9e:
|
||||
Room::FindFreePickupSpawnPosition(room,&local_148,&scratchVec,0.0,0,0,0);
|
||||
uVar5 = Random();
|
||||
vecPtr = &local_148;
|
||||
tmpEntity = (GHIDRA_CAST<Game *>((g_game)))->Game::Spawn(4,0,&this->_pos,&g_vectorZero,GHIDRA_CAST<Entity *>(0x0),0,uVar5);
|
||||
tmpEntity = Game::Spawn(g_game,4,0,&this->_pos,&g_vectorZero,GHIDRA_CAST<Entity *>(0x0),0,uVar5);
|
||||
NpcHelper::hornfel_launch_toward(this,tmpEntity,vecPtr);
|
||||
puVar3 = puStack_20;
|
||||
}
|
||||
@@ -894,11 +894,11 @@ LAB_004baae3:
|
||||
if (this->_variant == 1) {
|
||||
uVar5 = Random();
|
||||
vecPtr = &this->_pos;
|
||||
(GHIDRA_CAST<Game *>((g_game)))->Game::Spawn(1000,1,vecPtr,&g_vectorZero,GHIDRA_CAST<Entity *>(0x0),0,uVar5);
|
||||
Game::Spawn(g_game,1000,1,vecPtr,&g_vectorZero,GHIDRA_CAST<Entity *>(0x0),0,uVar5);
|
||||
uVar5 = Random();
|
||||
tmpEntity = (GHIDRA_CAST<Game *>((g_game)))->Game::Spawn(1000,0x12,vecPtr,&g_vectorZero,GHIDRA_CAST<Entity *>(0x0),0,uVar5);
|
||||
tmpEntity = Game::Spawn(g_game,1000,0x12,vecPtr,&g_vectorZero,GHIDRA_CAST<Entity *>(0x0),0,uVar5);
|
||||
tmpEntity->Update();
|
||||
(GHIDRA_CAST<Game *>((g_game)))->Game::BombDamage(vecPtr,110.0,75.0,0,GHIDRA_CAST<Entity *>(0x0),(BitSet128)ZEXT816(0),0x1004,0);
|
||||
Game::BombDamage(g_game,vecPtr,110.0,75.0,0,GHIDRA_CAST<Entity *>(0x0),(BitSet128)ZEXT816(0),0x1004,0);
|
||||
iVar7 = 6;
|
||||
do {
|
||||
uVar5 = Random();
|
||||
@@ -914,14 +914,14 @@ LAB_004baae3:
|
||||
scratchVec.y = sin((float)local_fc);
|
||||
scratchVec.y = scratchVec.y * (float)local_108;
|
||||
uVar5 = Random();
|
||||
tmpEntity = (GHIDRA_CAST<Game *>((g_game)))->Game::Spawn(4,3,&this->_pos,&scratchVec,GHIDRA_CAST<Entity *>(this),0,uVar5);
|
||||
tmpEntity = Game::Spawn(g_game,4,3,&this->_pos,&scratchVec,GHIDRA_CAST<Entity *>(this),0,uVar5);
|
||||
tmpEntity->_entityCollisionClass = 1;
|
||||
iVar7 = iVar7 + -1;
|
||||
} while (iVar7 != 0);
|
||||
}
|
||||
else if ((local_12c != GHIDRA_CAST<Entity_NPC *>(0x0)) && (this->_visible != 0)) {
|
||||
uVar5 = Random();
|
||||
(GHIDRA_CAST<Game *>((g_game)))->Game::Spawn(1000,1,&this->_pos,&g_vectorZero,GHIDRA_CAST<Entity *>(0x0),0,uVar5);
|
||||
Game::Spawn(g_game,1000,1,&this->_pos,&g_vectorZero,GHIDRA_CAST<Entity *>(0x0),0,uVar5);
|
||||
if (this->_state == 8) {
|
||||
uVar5 = (this->_entityDeque)._offset;
|
||||
if (*GHIDRA_CAST<int *>((*GHIDRA_CAST<int *>((GHIDRA_INT((this->_entityDeque)._map) +
|
||||
@@ -2309,7 +2309,7 @@ Entity_NPC * Entity_NPC::ThrowStrider(Vector *pos, Entity *spanwer, Vector *targ
|
||||
float targetY;
|
||||
|
||||
seed = Random();
|
||||
strider = GHIDRA_CAST<Entity_NPC *>((GHIDRA_CAST<Game *>((g_game)))->Game)::SpawnEx(0x32e,0,pos,&g_vectorZero,spanwer,0,seed,0);
|
||||
strider = GHIDRA_CAST<Entity_NPC *>(Game)::SpawnEx(g_game,0x32e,0,pos,&g_vectorZero,spanwer,0,seed,0);
|
||||
game = g_game;
|
||||
flagsHigh = *GHIDRA_CAST<uint32_t *>((GHIDRA_INT(&strider->_flags) + 4));
|
||||
*GHIDRA_CAST<uint32_t *>(&strider->_flags) = GHIDRA_UINT(strider->_flags) & 0xfffffffb;
|
||||
@@ -2705,7 +2705,7 @@ void Entity_NPC::CreateBling()
|
||||
pTVar3 = &IsaacRepentancePlus::Entity_Effect::RTTI_Type_Descriptor;
|
||||
pTVar2 = &IsaacRepentancePlus::Entity::RTTI_Type_Descriptor;
|
||||
rngResult = 0;
|
||||
spawned = (GHIDRA_CAST<Game *>((g_game)))->Game::Spawn(1000,0x67,&this->_pos,&g_vectorZero,GHIDRA_CAST<Entity *>(0x0),0,rngResult);
|
||||
spawned = Game::Spawn(g_game,1000,0x67,&this->_pos,&g_vectorZero,GHIDRA_CAST<Entity *>(0x0),0,rngResult);
|
||||
bling = GHIDRA_CAST<Entity_Effect *>(__RTDynamicCast(spawned,rngResult,pTVar2,pTVar3,uVar4));
|
||||
(bling->_sprite)._offset.x = offsetX;
|
||||
bling->_renderZOffset = 1000;
|
||||
@@ -2822,7 +2822,7 @@ Entity_Effect * Entity_NPC::MakeSplat(float size)
|
||||
int vtable;
|
||||
|
||||
seed = Random();
|
||||
spawned = (GHIDRA_CAST<Game *>((g_game)))->Game::SpawnEx(1000,7,&this->_pos,&g_vectorZero,GHIDRA_CAST<Entity *>(this),0,seed,0);
|
||||
spawned = Game::SpawnEx(g_game,1000,7,&this->_pos,&g_vectorZero,GHIDRA_CAST<Entity *>(this),0,seed,0);
|
||||
splat = (Entity_Effect *)
|
||||
__RTDynamicCast(spawned,0,&IsaacRepentancePlus::Entity::RTTI_Type_Descriptor,
|
||||
&IsaacRepentancePlus::Entity_Effect::RTTI_Type_Descriptor,0);
|
||||
@@ -2843,7 +2843,7 @@ Entity_Effect * Entity_NPC::MakeBloodCloud(Vector *pos, ColorMod *color)
|
||||
|
||||
rngResult = Random();
|
||||
cloud = (Entity_Effect *)
|
||||
(GHIDRA_CAST<Game *>((g_game)))->Game::Spawn(1000,0x10,pos,&g_vectorZero,GHIDRA_CAST<Entity *>(this),5,rngResult);
|
||||
Game::Spawn(g_game,1000,0x10,pos,&g_vectorZero,GHIDRA_CAST<Entity *>(this),5,rngResult);
|
||||
vtable = *GHIDRA_CAST<int *>(cloud);
|
||||
(cloud->_sprite)._scale.x = in_XMM2_Da;
|
||||
(cloud->_sprite)._scale.y = in_XMM2_Da;
|
||||
@@ -4209,7 +4209,7 @@ Entity * Entity_NPC::GetPlayerTarget()
|
||||
newTarget = Game::GetNearestTargetPlayer
|
||||
(&this->_pos,GHIDRA_CAST<Entity *>(this),(uint8_t)local_1c,bVar3,(void *)0x0,5000.0);
|
||||
if (newTarget == GHIDRA_CAST<Entity *>(0x0)) {
|
||||
player = (GHIDRA_CAST<Game *>((g_game)))->Game::GetPlayer(0);
|
||||
player = Game::GetPlayer(g_game,0);
|
||||
ExceptionList = local_10;
|
||||
return GHIDRA_CAST<Entity *>(player);
|
||||
}
|
||||
@@ -4315,7 +4315,7 @@ LAB_006be971:
|
||||
local_54 = 0;
|
||||
local_50 = 0;
|
||||
this->Kill(&killSource,uVar4);
|
||||
player = (GHIDRA_CAST<Game *>((g_game)))->Game::GetPlayer(0);
|
||||
player = Game::GetPlayer(g_game,0);
|
||||
LAB_006bea36:
|
||||
piVar2 = local_1c;
|
||||
if (*local_1c != 0) {
|
||||
@@ -4450,7 +4450,7 @@ LAB_006bee6f:
|
||||
if (((this->_confusionTargetPos).x != g_vectorZero.x) ||
|
||||
((this->_confusionTargetPos).y != g_vectorZero.y)) {
|
||||
if ((flags & 0x4000) != 0) goto LAB_006bee09;
|
||||
bVar2 = (GHIDRA_CAST<Game *>((g_game)))->Game::IsPaused();
|
||||
bVar2 = Game::IsPaused(g_game);
|
||||
if ((bVar2 != 0) || (game->_frameCount % 0xf != 0)) goto LAB_006bee09;
|
||||
}
|
||||
local_18.x = this->_size;
|
||||
@@ -4758,7 +4758,7 @@ LAB_006c0e23:
|
||||
*variant = 1;
|
||||
return 0;
|
||||
}
|
||||
isGreedMode = (GHIDRA_CAST<Game *>((game)))->Game::IsGreedMode();
|
||||
isGreedMode = Game::IsGreedMode(game);
|
||||
if (isGreedMode == 0) {
|
||||
iVar1 = (GHIDRA_CAST<Room *>((game->_room)))->Room::GetRoomConfigStage();
|
||||
switch(iVar1) {
|
||||
@@ -5536,7 +5536,7 @@ LAB_006c2838:
|
||||
if (isBig != 0) {
|
||||
type = 0x5e;
|
||||
}
|
||||
spawned = (GHIDRA_CAST<Game *>((g_game)))->Game::SpawnEx(type,0,position,&g_vectorZero,spawner,0,uVar1,0);
|
||||
spawned = Game::SpawnEx(g_game,type,0,position,&g_vectorZero,spawner,0,uVar1,0);
|
||||
spider = (Entity_NPC *)
|
||||
__RTDynamicCast(spawned,0,&IsaacRepentancePlus::Entity::RTTI_Type_Descriptor,
|
||||
&IsaacRepentancePlus::Entity_NPC::RTTI_Type_Descriptor,0);
|
||||
@@ -5928,7 +5928,7 @@ LAB_006c4f12:
|
||||
Entity_NPC_UpdateAI_dispatch(this);
|
||||
if ((this->_championColorIdx == 0x11) || (this->_championColorIdx == 0x19)) {
|
||||
uVar4 = Random();
|
||||
pEVar7 = (GHIDRA_CAST<Game *>((g_game)))->Game::Spawn(0x60,0,&this->_pos,&g_vectorZero,GHIDRA_CAST<Entity *>(this),0,uVar4);
|
||||
pEVar7 = Game::Spawn(g_game,0x60,0,&this->_pos,&g_vectorZero,GHIDRA_CAST<Entity *>(this),0,uVar4);
|
||||
(GHIDRA_CAST<Entity *>((pEVar7)))->Entity::SetParent(GHIDRA_CAST<Entity *>(this));
|
||||
}
|
||||
bVar2 = (GHIDRA_CAST<Entity *>((GHIDRA_CAST<Entity *>(this))))->Entity::HasEntityFlags(4);
|
||||
@@ -5937,19 +5937,19 @@ LAB_006c4f12:
|
||||
this->_savedState = this->_state;
|
||||
this->_state = 1;
|
||||
}
|
||||
playerManager = GHIDRA_CAST<PlayerManager *>((GHIDRA_CAST<Game *>((g_game)))->Game)::GetPlayerManager();
|
||||
playerManager = GHIDRA_CAST<PlayerManager *>(Game)::GetPlayerManager(g_game);
|
||||
bVar2 = (GHIDRA_CAST<PlayerManager *>((playerManager)))->PlayerManager::AnyoneHasTrinket(0x35);
|
||||
if ((((bVar2 != 0) && (this->_type != 0x112)) && (this->_type != 0x113)) &&
|
||||
(60.0 < this->_health)) {
|
||||
iVar15 = 0;
|
||||
playerManager = GHIDRA_CAST<PlayerManager *>((GHIDRA_CAST<Game *>((g_game)))->Game)::GetPlayerManager();
|
||||
playerManager = GHIDRA_CAST<PlayerManager *>(Game)::GetPlayerManager(g_game);
|
||||
iVar16 = (GHIDRA_CAST<PlayerManager *>((playerManager)))->PlayerManager::GetTrinketMultiplier(0x35);
|
||||
if (0 < iVar16) {
|
||||
do {
|
||||
game = g_game;
|
||||
iVar15 = iVar15 + 1;
|
||||
this->_health = this->_health * 0.85;
|
||||
playerManager = GHIDRA_CAST<PlayerManager *>((GHIDRA_CAST<Game *>((game)))->Game)::GetPlayerManager();
|
||||
playerManager = GHIDRA_CAST<PlayerManager *>(Game)::GetPlayerManager(game);
|
||||
iVar16 = (GHIDRA_CAST<PlayerManager *>((playerManager)))->PlayerManager::GetTrinketMultiplier(0x35);
|
||||
} while (iVar15 < iVar16);
|
||||
}
|
||||
@@ -5996,7 +5996,7 @@ LAB_006c5358:
|
||||
}
|
||||
cVar3 = this->IsBoss();
|
||||
if ((cVar3 != '\0') && (iVar16 = (GHIDRA_CAST<Entity *>((GHIDRA_CAST<Entity *>(this))))->Entity::Parent(), iVar16 == 0)) {
|
||||
(GHIDRA_CAST<Game *>((g_game)))->Game::AddEncounteredBoss(this->_type,this->_variant);
|
||||
Game::AddEncounteredBoss(g_game,this->_type,this->_variant);
|
||||
}
|
||||
}
|
||||
else if (iVar16 == 1) {
|
||||
@@ -6012,7 +6012,7 @@ LAB_006c5358:
|
||||
pTVar30 = &IsaacRepentancePlus::Entity_Effect::RTTI_Type_Descriptor;
|
||||
pTVar29 = &IsaacRepentancePlus::Entity::RTTI_Type_Descriptor;
|
||||
uVar28 = 0;
|
||||
pEVar7 = (GHIDRA_CAST<Game *>((g_game)))->Game::Spawn(1000,0xf,&this->_pos,&g_vectorZero,GHIDRA_CAST<Entity *>(this),uVar4,uVar13);
|
||||
pEVar7 = Game::Spawn(g_game,1000,0xf,&this->_pos,&g_vectorZero,GHIDRA_CAST<Entity *>(this),uVar4,uVar13);
|
||||
pRVar10 = GHIDRA_CAST<Room *>(__RTDynamicCast(pEVar7,uVar28,pTVar29,pTVar30,uVar33));
|
||||
local_288 = pRVar10;
|
||||
(GHIDRA_CAST<Entity *>((GHIDRA_CAST<Entity *>(pRVar10))))->Entity::SetPositionOffset(&this->_posOffset);
|
||||
@@ -6110,7 +6110,7 @@ LAB_006c5752:
|
||||
if (iVar16 == 0x395) {
|
||||
bVar2 = (GHIDRA_CAST<Sprite *>((GHIDRA_CAST<Sprite *>(&this->_sprite))))->Sprite::IsEventTriggered(s_Land);
|
||||
if (bVar2 != 0) {
|
||||
(GHIDRA_CAST<Game *>((g_game)))->Game::ShakeScreen(8);
|
||||
Game::ShakeScreen(g_game,8);
|
||||
this->_entityCollisionClass = 4;
|
||||
(GHIDRA_CAST<Entity *>((GHIDRA_CAST<Entity *>(this))))->Entity::MakeBloodPoofAtPos(&this->_splatColor,1.0);
|
||||
tmpVec = (GHIDRA_CAST<Vector *>((&local_2e0)))->Vector::Vector(100.0,60.0);
|
||||
@@ -6339,7 +6339,7 @@ LAB_006c5c89:
|
||||
(local_2a4 = (GHIDRA_CAST<Sprite *>((GHIDRA_CAST<Sprite *>(&this->_sprite))))->Sprite::GetNullFrame(GHIDRA_CAST<uint8_t *>("BloodGuide")),
|
||||
local_2a4 != GHIDRA_CAST<Entity_Effect *>(0x0))) {
|
||||
uVar4 = Random();
|
||||
(GHIDRA_CAST<Game *>((g_game)))->Game::Spawn(1000,2,&this->_pos,&g_vectorZero,GHIDRA_CAST<Entity *>(0x0),2,uVar4);
|
||||
Game::Spawn(g_game,1000,2,&this->_pos,&g_vectorZero,GHIDRA_CAST<Entity *>(0x0),2,uVar4);
|
||||
piVar14 = GHIDRA_CAST<int *>(FUN_004a2920());
|
||||
FUN_004563c0(local_2a4);
|
||||
(**(code **)(*piVar14 + 0x3c))(&this->_splatColor,0xffffffff,0xff,0,1);
|
||||
@@ -6350,7 +6350,7 @@ LAB_006c5c89:
|
||||
if (iVar16 + -1 <= iVar15) {
|
||||
SoundEffects::PlayWithFartOverride(0x105,1.0,2,0,1.0);
|
||||
uVar4 = Random();
|
||||
(GHIDRA_CAST<Game *>((g_game)))->Game::Spawn(1000,0xf,&this->_pos,&g_vectorZero,GHIDRA_CAST<Entity *>(0x0),0,uVar4);
|
||||
Game::Spawn(g_game,1000,0xf,&this->_pos,&g_vectorZero,GHIDRA_CAST<Entity *>(0x0),0,uVar4);
|
||||
FUN_004563c0(local_2a4);
|
||||
in_XMM3_Da = 0.0;
|
||||
uVar32 = 0;
|
||||
@@ -6373,7 +6373,7 @@ LAB_006c5c89:
|
||||
else if (iVar16 == 0x390) {
|
||||
if ((this->_variant == 10) &&
|
||||
(bVar2 = (GHIDRA_CAST<Sprite *>((GHIDRA_CAST<Sprite *>(&this->_sprite))))->Sprite::IsEventTriggered("Shoot"), bVar2 != 0)) {
|
||||
(GHIDRA_CAST<Game *>((g_game)))->Game::ShakeScreen(0x14);
|
||||
Game::ShakeScreen(g_game,0x14);
|
||||
play_sound_with_fart_seed(0x1d,1.0,2,0,0.5);
|
||||
}
|
||||
}
|
||||
@@ -6381,7 +6381,7 @@ LAB_006c5c89:
|
||||
(bVar2 = (GHIDRA_CAST<Sprite *>((GHIDRA_CAST<Sprite *>(&this->_sprite))))->Sprite::IsEventTriggered("Explosion"), bVar2 != 0))
|
||||
{
|
||||
uVar4 = Random();
|
||||
pEVar7 = (GHIDRA_CAST<Game *>((g_game)))->Game::Spawn(1000,0x90,&this->_pos,&g_vectorZero,GHIDRA_CAST<Entity *>(0x0),3,uVar4);
|
||||
pEVar7 = Game::Spawn(g_game,1000,0x90,&this->_pos,&g_vectorZero,GHIDRA_CAST<Entity *>(0x0),3,uVar4);
|
||||
tmpVec = (GHIDRA_CAST<Vector *>((&local_2e0)))->Vector::Vector(0.0,-20.0);
|
||||
(GHIDRA_CAST<Entity *>((pEVar7)))->Entity::SetPositionOffset(tmpVec);
|
||||
sprite = GHIDRA_CAST<Sprite *>((GHIDRA_CAST<Entity *>((pEVar7)))->Entity)::GetSprite();
|
||||
@@ -6398,7 +6398,7 @@ LAB_006c5c89:
|
||||
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(auVar23)) + 0x0))) = fVar20 * 0.2 + 0.9;
|
||||
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(auVar23)) + 0x4))) = extraout_var_00;
|
||||
play_sound_with_fart_seed(0x1dd,1.25,2,0,(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(auVar23)) + 0x0))));
|
||||
(GHIDRA_CAST<Game *>((g_game)))->Game::ShakeScreen(0xe);
|
||||
Game::ShakeScreen(g_game,0xe);
|
||||
}
|
||||
}
|
||||
sprite = GHIDRA_CAST<Sprite *>(&this->_sprite);
|
||||
@@ -6422,7 +6422,7 @@ LAB_006c5c89:
|
||||
_empty_check_0x34();
|
||||
if ((float)iVar16 < (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(auVar23)) + 0x0))) + (float)local_288 + 10.0) {
|
||||
uVar4 = Random();
|
||||
pEVar7 = (GHIDRA_CAST<Game *>((g_game)))->Game::Spawn(1000,0xf,&this->_pos,&g_vectorZero,GHIDRA_CAST<Entity *>(0x0),0xb,uVar4);
|
||||
pEVar7 = Game::Spawn(g_game,1000,0xf,&this->_pos,&g_vectorZero,GHIDRA_CAST<Entity *>(0x0),0xb,uVar4);
|
||||
pAVar18 = GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<Entity *>((pEVar7)))->Entity)::GetSprite();
|
||||
msvc::string::string_from_cstr
|
||||
(local_4c + 0x10,GHIDRA_CAST<uint8_t *>("gfx/promo/gfuel/effects/explosion_delayed.anm2"));
|
||||
@@ -6470,7 +6470,7 @@ LAB_006c5c89:
|
||||
pTVar30 = &IsaacRepentancePlus::Entity_Effect::RTTI_Type_Descriptor;
|
||||
pTVar29 = &IsaacRepentancePlus::Entity::RTTI_Type_Descriptor;
|
||||
uVar28 = 0;
|
||||
pEVar7 = (GHIDRA_CAST<Game *>((g_game)))->Game::Spawn(1000,2,&this->_pos,&g_vectorZero,GHIDRA_CAST<Entity *>(0x0),uVar4,uVar13)
|
||||
pEVar7 = Game::Spawn(g_game,1000,2,&this->_pos,&g_vectorZero,GHIDRA_CAST<Entity *>(0x0),uVar4,uVar13)
|
||||
;
|
||||
piVar14 = GHIDRA_CAST<int *>(__RTDynamicCast(pEVar7,uVar28,pTVar29,pTVar30,uVar33));
|
||||
FUN_004563c0(local_29c);
|
||||
@@ -6483,7 +6483,8 @@ LAB_006c5c89:
|
||||
pTVar30 = &IsaacRepentancePlus::Entity_Effect::RTTI_Type_Descriptor;
|
||||
pTVar29 = &IsaacRepentancePlus::Entity::RTTI_Type_Descriptor;
|
||||
uVar28 = 0;
|
||||
pEVar7 = (GHIDRA_CAST<Game *>((g_game)))->Game::Spawn(1000,0x4d,&this->_pos,&g_vectorZero,GHIDRA_CAST<Entity *>(this),0,uVar4);
|
||||
pEVar7 = Game::Spawn(g_game,1000,0x4d,&this->_pos,&g_vectorZero,GHIDRA_CAST<Entity *>(this),0,uVar4
|
||||
);
|
||||
piVar14 = GHIDRA_CAST<int *>(__RTDynamicCast(pEVar7,uVar28,pTVar29,pTVar30,uVar33));
|
||||
(**(code **)(*piVar14 + 0x3c))(&this->_splatColor,0xffffffff,0xff,0,1);
|
||||
}
|
||||
@@ -6530,7 +6531,7 @@ LAB_006c5c89:
|
||||
pTVar30 = &IsaacRepentancePlus::Entity_Effect::RTTI_Type_Descriptor;
|
||||
pTVar29 = &IsaacRepentancePlus::Entity::RTTI_Type_Descriptor;
|
||||
uVar28 = 0;
|
||||
pEVar7 = (GHIDRA_CAST<Game *>((g_game)))->Game::Spawn(1000,0x3b,tmpVec,&local_298,GHIDRA_CAST<Entity *>(npc),0,
|
||||
pEVar7 = Game::Spawn(g_game,1000,0x3b,tmpVec,&local_298,GHIDRA_CAST<Entity *>(npc),0,
|
||||
GHIDRA_UINT(local_2c0));
|
||||
local_2a4 = GHIDRA_CAST<Entity_Effect *>(__RTDynamicCast(pEVar7,uVar28,pTVar29,pTVar30,uVar33));
|
||||
local_2b0 = GHIDRA_CAST<Entity *>(0x3f800000);
|
||||
@@ -6570,11 +6571,11 @@ LAB_006c5c89:
|
||||
(bVar2 = (GHIDRA_CAST<Sprite *>((sprite)))->Sprite::IsEventTriggered(&DAT_00b6774c), bVar2 != 0)) &&
|
||||
(bVar2 = (GHIDRA_CAST<Entity *>((GHIDRA_CAST<Entity *>(this))))->Entity::HasEntityFlags(0x1000000000000000), bVar2 == 0)) {
|
||||
uVar4 = Random();
|
||||
pEVar7 = (GHIDRA_CAST<Game *>((g_game)))->Game::Spawn(1000,100,&this->_pos,&g_vectorZero,GHIDRA_CAST<Entity *>(this),0,uVar4);
|
||||
pEVar7 = Game::Spawn(g_game,1000,100,&this->_pos,&g_vectorZero,GHIDRA_CAST<Entity *>(this),0,uVar4);
|
||||
if (pEVar7 != GHIDRA_CAST<Entity *>(0x0)) {
|
||||
pEVar7->Update();
|
||||
}
|
||||
(GHIDRA_CAST<Game *>((g_game)))->Game::ShakeScreen(0x1e);
|
||||
Game::ShakeScreen(g_game,0x1e);
|
||||
SoundEffects::PlayWithFartOverride(0x10a,1.0,2,0,1.0);
|
||||
}
|
||||
bVar2 = ANM2::IsFinishedImpl(GHIDRA_CAST<ANM2 *>(sprite),&s_empty);
|
||||
@@ -6640,7 +6641,7 @@ LAB_006c87a7:
|
||||
pTVar30 = &IsaacRepentancePlus::Entity_Effect::RTTI_Type_Descriptor;
|
||||
pTVar29 = &IsaacRepentancePlus::Entity::RTTI_Type_Descriptor;
|
||||
uVar28 = 0;
|
||||
pEVar7 = (GHIDRA_CAST<Game *>((g_game)))->Game::Spawn(1000,0x17,&this->_pos,&g_vectorZero,GHIDRA_CAST<Entity *>(this),0,uVar4);
|
||||
pEVar7 = Game::Spawn(g_game,1000,0x17,&this->_pos,&g_vectorZero,GHIDRA_CAST<Entity *>(this),0,uVar4);
|
||||
pEVar9 = GHIDRA_CAST<Entity_Effect *>(__RTDynamicCast(pEVar7,uVar28,pTVar29,pTVar30,uVar33));
|
||||
(GHIDRA_CAST<Entity_Effect *>((pEVar9)))->Entity_Effect::SetTimeout(0x1e);
|
||||
pEVar9->Update();
|
||||
@@ -7038,7 +7039,7 @@ LAB_006c8133:
|
||||
pTVar30 = &IsaacRepentancePlus::Entity_Effect::RTTI_Type_Descriptor;
|
||||
pTVar29 = &IsaacRepentancePlus::Entity::RTTI_Type_Descriptor;
|
||||
uVar28 = 0;
|
||||
pEVar7 = (GHIDRA_CAST<Game *>((g_game)))->Game::Spawn(1000,0x31,tmpVec,&g_vectorZero,GHIDRA_CAST<Entity *>(0x0),0
|
||||
pEVar7 = Game::Spawn(g_game,1000,0x31,tmpVec,&g_vectorZero,GHIDRA_CAST<Entity *>(0x0),0
|
||||
,uVar4);
|
||||
__RTDynamicCast(pEVar7,uVar28,pTVar29,pTVar30,uVar33);
|
||||
pAVar18 = local_2a0;
|
||||
@@ -7085,7 +7086,7 @@ LAB_006c8133:
|
||||
fVar20 = random_float();
|
||||
local_320.y = fVar20 * 0.5 + 0.5;
|
||||
tmpVec = (GHIDRA_CAST<Vector *>((&local_2d0)))->Vector::__mul(&local_32c,&local_320.y);
|
||||
pEVar7 = (GHIDRA_CAST<Game *>((g_game)))->Game::Spawn(1000,0x6f,&local_2e0,tmpVec,GHIDRA_CAST<Entity *>(0x0),
|
||||
pEVar7 = Game::Spawn(g_game,1000,0x6f,&local_2e0,tmpVec,GHIDRA_CAST<Entity *>(0x0),
|
||||
0,uVar4);
|
||||
pcVar1 = *(code **)(*GHIDRA_CAST<int *>(pEVar7) + 0x3c);
|
||||
uVar28 = (GHIDRA_CAST<Color *>((0x3f800000)))->Color::Color(0,0,0,0,0x3e99999a,0,0);
|
||||
@@ -7256,15 +7257,15 @@ LAB_006c8136:
|
||||
pRVar10 = GHIDRA_CAST<Room *>((GHIDRA_CAST<Level *>((GHIDRA_CAST<Level *>(g_game))))->Level)::GetCurrentRoom();
|
||||
bVar2 = (GHIDRA_CAST<Room *>((pRVar10)))->Room::IsClear();
|
||||
if (bVar2 == 0) {
|
||||
(GHIDRA_CAST<Game *>((g_game)))->Game::GetPlayerManager();
|
||||
Game::GetPlayerManager(g_game);
|
||||
cVar3 = FUN_009be9c0();
|
||||
if (cVar3 == '\0') {
|
||||
pRVar10 = GHIDRA_CAST<Room *>(0x0);
|
||||
local_29c = GHIDRA_CAST<Room *>(0x0);
|
||||
iVar16 = (GHIDRA_CAST<Game *>((g_game)))->Game::GetNumPlayers();
|
||||
iVar16 = Game::GetNumPlayers(g_game);
|
||||
if (iVar16 != 0) {
|
||||
do {
|
||||
player = (GHIDRA_CAST<Game *>((g_game)))->Game::GetPlayer(GHIDRA_UINT(pRVar10));
|
||||
player = Game::GetPlayer(g_game,GHIDRA_UINT(pRVar10));
|
||||
local_298.y = (float)player;
|
||||
bVar2 = (GHIDRA_CAST<Entity *>((GHIDRA_CAST<Entity *>(player))))->Entity::IsFlying();
|
||||
if (bVar2 == 0) {
|
||||
@@ -7276,7 +7277,7 @@ LAB_006c8136:
|
||||
}
|
||||
pRVar10 = GHIDRA_CAST<Room *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((pRVar10)) + 0x1))));
|
||||
local_29c = pRVar10;
|
||||
puVar17 = GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<Game *>((g_game)))->Game)::GetNumPlayers();
|
||||
puVar17 = GHIDRA_CAST<uint8_t *>(Game)::GetNumPlayers(g_game);
|
||||
} while (pRVar10 < puVar17);
|
||||
}
|
||||
if (this->_isUnreachableOnce == 0) {
|
||||
@@ -7316,7 +7317,7 @@ LAB_006c8453:
|
||||
fVar20 = random_float();
|
||||
local_298.y = fVar20 * 3.0;
|
||||
tmpVec = (GHIDRA_CAST<Vector *>((tmpVec)))->Vector::__mul(GHIDRA_CAST<Vector *>((local_318 + 8)),&local_298.y);
|
||||
(GHIDRA_CAST<Game *>((g_game)))->Game::Spawn(5,0x14,GHIDRA_CAST<Vector *>(local_2b8.y),tmpVec,GHIDRA_CAST<Entity *>(0x0),1,uVar4);
|
||||
Game::Spawn(g_game,5,0x14,GHIDRA_CAST<Vector *>(local_2b8.y),tmpVec,GHIDRA_CAST<Entity *>(0x0),1,uVar4);
|
||||
local_2a4 = GHIDRA_CAST<Entity_Effect *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_2a4[-1])) + 0x4bf))));
|
||||
} while (local_2a4 != GHIDRA_CAST<Entity_Effect *>(0x0));
|
||||
local_2a4 = GHIDRA_CAST<Entity_Effect *>(0x0);
|
||||
@@ -7328,13 +7329,13 @@ LAB_006c8453:
|
||||
if (bVar2 == 0) {
|
||||
(GHIDRA_CAST<Entity_Pickup *>((GHIDRA_CAST<Entity_Pickup *>(this))))->Entity_Pickup::Update();
|
||||
uVar4 = 0;
|
||||
iVar16 = (GHIDRA_CAST<Game *>((g_game)))->Game::GetNumPlayers();
|
||||
iVar16 = Game::GetNumPlayers(g_game);
|
||||
if (iVar16 != 0) {
|
||||
do {
|
||||
player = (GHIDRA_CAST<Game *>((g_game)))->Game::GetPlayer(uVar4);
|
||||
player = Game::GetPlayer(g_game,uVar4);
|
||||
(GHIDRA_CAST<Entity_Player *>((player)))->Entity_Player::trigger_npc_death(GHIDRA_CAST<Entity *>(this));
|
||||
uVar4 = uVar4 + 1;
|
||||
uVar13 = (GHIDRA_CAST<Game *>((g_game)))->Game::GetNumPlayers();
|
||||
uVar13 = Game::GetNumPlayers(g_game);
|
||||
} while (uVar4 < uVar13);
|
||||
}
|
||||
}
|
||||
@@ -7396,10 +7397,10 @@ LAB_006c87b4:
|
||||
local_29c = GHIDRA_CAST<Room *>(0x0);
|
||||
local_2ac = GHIDRA_CAST<Room *>(0x0);
|
||||
local_2c0 = local_2d8;
|
||||
iVar16 = (GHIDRA_CAST<Game *>((g_game)))->Game::GetNumPlayers();
|
||||
iVar16 = Game::GetNumPlayers(g_game);
|
||||
if (iVar16 != 0) {
|
||||
do {
|
||||
pRVar10 = GHIDRA_CAST<Room *>((GHIDRA_CAST<Game *>((g_game)))->Game)::GetPlayer(GHIDRA_UINT(puVar17));
|
||||
pRVar10 = GHIDRA_CAST<Room *>(Game)::GetPlayer(g_game,GHIDRA_UINT(puVar17));
|
||||
FUN_0042a020();
|
||||
bVar2 = (GHIDRA_CAST<Entity_Player *>((GHIDRA_CAST<Entity_Player *>(pRVar10))))->Entity_Player::HasCollectible(0x14f,0);
|
||||
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_298.y)) + 0x0))) = bVar2;
|
||||
@@ -7478,7 +7479,7 @@ LAB_006c8ae8:
|
||||
}
|
||||
puVar17 = &(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((local_2ac)) + 0x1)));
|
||||
local_2ac = GHIDRA_CAST<Room *>(puVar17);
|
||||
puVar11 = GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<Game *>((g_game)))->Game)::GetNumPlayers();
|
||||
puVar11 = GHIDRA_CAST<uint8_t *>(Game)::GetNumPlayers(g_game);
|
||||
} while (puVar17 < puVar11);
|
||||
if ((local_2c4 != GHIDRA_CAST<Room *>(0x0)) && (iVar16 = Isaac::Random(3), iVar16 == 0)) {
|
||||
tmpVec = (GHIDRA_CAST<Entity *>((GHIDRA_CAST<Entity *>(local_2c4))))->Entity::Position(&local_32c);
|
||||
@@ -7504,7 +7505,7 @@ LAB_006c8ae8:
|
||||
iVar16 = EntityPtr::Ref();
|
||||
if (iVar16 == 0) {
|
||||
uVar4 = Random();
|
||||
pEVar7 = (GHIDRA_CAST<Game *>((g_game)))->Game::Spawn(1000,0x13,&this->_pos,&g_vectorZero,GHIDRA_CAST<Entity *>(pRVar10),3,
|
||||
pEVar7 = Game::Spawn(g_game,1000,0x13,&this->_pos,&g_vectorZero,GHIDRA_CAST<Entity *>(pRVar10),3,
|
||||
uVar4);
|
||||
(GHIDRA_CAST<Entity *>((pEVar7)))->Entity::SetTarget(GHIDRA_CAST<Entity *>(this));
|
||||
(GHIDRA_CAST<Entity *>((pEVar7)))->Entity::SetParent(GHIDRA_CAST<Entity *>(local_29c));
|
||||
@@ -7525,13 +7526,13 @@ LAB_006c8ae8:
|
||||
iVar16 = (GHIDRA_CAST<Room *>((pRVar10)))->Room::GetFrameCount();
|
||||
if ((iVar16 == 0) && (bVar2 = (GHIDRA_CAST<Entity *>((GHIDRA_CAST<Entity *>(this))))->Entity::IsVulnerableEnemy(GHIDRA_CAST<Entity *>(0x0)), bVar2 != 0)
|
||||
) {
|
||||
playerManager = GHIDRA_CAST<PlayerManager *>((GHIDRA_CAST<Game *>((g_game)))->Game)::GetPlayerManager();
|
||||
playerManager = GHIDRA_CAST<PlayerManager *>(Game)::GetPlayerManager(g_game);
|
||||
local_2b8.y = (float)PlayerManager::FirstCollectibleOwner(playerManager,0x15e,GHIDRA_CAST<RNG **>(0x0),0);
|
||||
if (GHIDRA_CAST<Entity_Player *>(local_2b8.y) != GHIDRA_CAST<Entity_Player *>(0x0)) {
|
||||
::(GHIDRA_CAST<EntityRef *>((GHIDRA_CAST<EntityRef *>(local_4c))))->EntityRef::constructor(GHIDRA_CAST<Entity *>(local_2b8.y));
|
||||
(GHIDRA_CAST<Entity *>((GHIDRA_CAST<Entity *>(this))))->Entity::AddPoison(GHIDRA_CAST<EntityRef *>(local_4c),-0x28,0.0,0);
|
||||
}
|
||||
playerManager = GHIDRA_CAST<PlayerManager *>((GHIDRA_CAST<Game *>((g_game)))->Game)::GetPlayerManager();
|
||||
playerManager = GHIDRA_CAST<PlayerManager *>(Game)::GetPlayerManager(g_game);
|
||||
player = (GHIDRA_CAST<PlayerManager *>((playerManager)))->PlayerManager::FirstTrinketOwner(0x87);
|
||||
if (player != GHIDRA_CAST<Entity_Player *>(0x0)) {
|
||||
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(auVar25)) + 0x0))) = ZEXT812(0x3e4ccccd);
|
||||
@@ -7562,7 +7563,7 @@ LAB_006c8df9:
|
||||
(GHIDRA_CAST<Entity *>((GHIDRA_CAST<Entity *>(this))))->Entity::AddBurn(GHIDRA_CAST<EntityRef *>(local_4c),-0x5a,0.0,0);
|
||||
}
|
||||
}
|
||||
playerManager = GHIDRA_CAST<PlayerManager *>((GHIDRA_CAST<Game *>((g_game)))->Game)::GetPlayerManager();
|
||||
playerManager = GHIDRA_CAST<PlayerManager *>(Game)::GetPlayerManager(g_game);
|
||||
player = (GHIDRA_CAST<PlayerManager *>((playerManager)))->PlayerManager::FirstTrinketOwner(0xbc);
|
||||
if (player != GHIDRA_CAST<Entity_Player *>(0x0)) {
|
||||
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(auVar26)) + 0x0))) = ZEXT812(0x3e4ccccd);
|
||||
@@ -7604,10 +7605,10 @@ LAB_006c8edb:
|
||||
::(GHIDRA_CAST<EntityRef *>((GHIDRA_CAST<EntityRef *>(local_4c))))->EntityRef::constructor(GHIDRA_CAST<Entity *>(this));
|
||||
(GHIDRA_CAST<Entity *>((GHIDRA_CAST<Entity *>(this))))->Entity::AddConfusion(GHIDRA_CAST<EntityRef *>(local_4c),-2,0);
|
||||
}
|
||||
playerManager = GHIDRA_CAST<PlayerManager *>((GHIDRA_CAST<Game *>((g_game)))->Game)::GetPlayerManager();
|
||||
playerManager = GHIDRA_CAST<PlayerManager *>(Game)::GetPlayerManager(g_game);
|
||||
player = PlayerManager::FirstCollectibleOwner(playerManager,0x202,GHIDRA_CAST<RNG **>(0x0),0);
|
||||
if (player != GHIDRA_CAST<Entity_Player *>(0x0)) {
|
||||
playerManager = GHIDRA_CAST<PlayerManager *>((GHIDRA_CAST<Game *>((g_game)))->Game)::GetPlayerManager();
|
||||
playerManager = GHIDRA_CAST<PlayerManager *>(Game)::GetPlayerManager(g_game);
|
||||
fVar20 = PlayerManager::get_total_luck(playerManager);
|
||||
local_2b8.y = 5.32493e-44;
|
||||
local_298.y = (float)(0x37 - GHIDRA_INT(fVar20));
|
||||
@@ -7659,11 +7660,11 @@ LAB_006c8edb:
|
||||
if (bVar2 == 0) {
|
||||
uVar4 = 0;
|
||||
local_29c = GHIDRA_CAST<Room *>(CONCAT31(extraout_var,bVar2));
|
||||
pvVar8 = (void *)(GHIDRA_CAST<Game *>((g_game)))->Game::GetPlayerManager();
|
||||
pvVar8 = (void *)Game::GetPlayerManager(g_game);
|
||||
iVar16 = (GHIDRA_CAST<msvc::vector *>((pvVar8)))->msvc::vector::size();
|
||||
if (iVar16 != 0) {
|
||||
do {
|
||||
player = (GHIDRA_CAST<Game *>((g_game)))->Game::GetPlayer(uVar4);
|
||||
player = Game::GetPlayer(g_game,uVar4);
|
||||
tempEffects = GHIDRA_CAST<TemporaryEffects *>((GHIDRA_CAST<Entity_Player *>((player)))->Entity_Player)::GetEffects();
|
||||
bVar2 = (GHIDRA_CAST<TemporaryEffects *>((tempEffects)))->TemporaryEffects::HasCollectibleEffect(0x5d);
|
||||
local_29c = GHIDRA_CAST<Room *>((GHIDRA_UINT(local_29c) & 0xff));
|
||||
@@ -7671,7 +7672,7 @@ LAB_006c8edb:
|
||||
local_29c = GHIDRA_CAST<Room *>(0x1);
|
||||
}
|
||||
uVar4 = uVar4 + 1;
|
||||
pvVar8 = (void *)(GHIDRA_CAST<Game *>((g_game)))->Game::GetPlayerManager();
|
||||
pvVar8 = (void *)Game::GetPlayerManager(g_game);
|
||||
uVar13 = (GHIDRA_CAST<msvc::vector *>((pvVar8)))->msvc::vector::size();
|
||||
this = npc;
|
||||
} while (uVar4 < uVar13);
|
||||
@@ -7727,7 +7728,7 @@ LAB_006c930b:
|
||||
pTVar30 = &IsaacRepentancePlus::Entity_Effect::RTTI_Type_Descriptor;
|
||||
pTVar29 = &IsaacRepentancePlus::Entity::RTTI_Type_Descriptor;
|
||||
uVar28 = 0;
|
||||
pEVar7 = (GHIDRA_CAST<Game *>((g_game)))->Game::Spawn(1000,0x10,&this->_pos,&g_vectorZero,GHIDRA_CAST<Entity *>(0x0),0,uVar4);
|
||||
pEVar7 = Game::Spawn(g_game,1000,0x10,&this->_pos,&g_vectorZero,GHIDRA_CAST<Entity *>(0x0),0,uVar4);
|
||||
pEVar7 = GHIDRA_CAST<Entity *>(__RTDynamicCast(pEVar7,uVar28,pTVar29,pTVar30,uVar33));
|
||||
FUN_004563c0(pvVar8);
|
||||
tmpVec = (GHIDRA_CAST<Vector *>((&local_54)))->Vector::Vector(0.3,0.3);
|
||||
@@ -7829,7 +7830,7 @@ LAB_006c930b:
|
||||
Entity_NPC_UpdateAI_dispatch(this);
|
||||
this->_aiCallPhase = 0;
|
||||
}
|
||||
bVar2 = (GHIDRA_CAST<Game *>((g_game)))->Game::IsInTimedSet(0xf);
|
||||
bVar2 = Game::IsInTimedSet(g_game,0xf);
|
||||
if (bVar2 != 0) {
|
||||
pcVar1 = *(code **)(*GHIDRA_CAST<int *>(this) + 0x3c);
|
||||
uVar28 = (GHIDRA_CAST<Color *>((0)))->Color::Color(0,0,0);
|
||||
@@ -7839,8 +7840,8 @@ LAB_006c930b:
|
||||
(GHIDRA_CAST<Sprite *>((sprite)))->Sprite::SetColor(tmpColor);
|
||||
this->_shadowSize = 0.0;
|
||||
}
|
||||
bVar2 = (GHIDRA_CAST<Game *>((g_game)))->Game::IsInTimedSet(4);
|
||||
if ((bVar2 != 0) || (bVar2 = (GHIDRA_CAST<Game *>((g_game)))->Game::IsInTimedSet(6), bVar2 != 0)) {
|
||||
bVar2 = Game::IsInTimedSet(g_game,4);
|
||||
if ((bVar2 != 0) || (bVar2 = Game::IsInTimedSet(g_game,6), bVar2 != 0)) {
|
||||
local_298.y = (float)&this->_pos;
|
||||
iVar16 = (GHIDRA_CAST<Entity *>((GHIDRA_CAST<Entity *>(this))))->Entity::FrameCount();
|
||||
if (iVar16 < 2) {
|
||||
@@ -7867,7 +7868,7 @@ LAB_006c930b:
|
||||
sprite = GHIDRA_CAST<Sprite *>(&this->_sprite);
|
||||
(GHIDRA_CAST<Sprite *>((sprite)))->Sprite::SetColor(tmpColor);
|
||||
}
|
||||
iVar16 = (GHIDRA_CAST<Game *>((g_game)))->Game::GetFrameCount();
|
||||
iVar16 = Game::GetFrameCount(g_game);
|
||||
if (GHIDRA_UINT((iVar16 + this->_index)) % 0x1e < 2) {
|
||||
Isaac::GetRenderPosition(&local_2d0,&this->_pos,1);
|
||||
pRVar10 = GHIDRA_CAST<Room *>((GHIDRA_CAST<Level *>((GHIDRA_CAST<Level *>(g_game))))->Level)::GetCurrentRoom();
|
||||
@@ -7905,12 +7906,12 @@ LAB_006c930b:
|
||||
(GHIDRA_CAST<Color *>((GHIDRA_CAST<Color *>(local_cc))))->Color::SetTint(0.02,0.02,0.02,1.0);
|
||||
(GHIDRA_CAST<Sprite *>((sprite)))->Sprite::SetColor(GHIDRA_CAST<ColorMod *>(local_cc));
|
||||
}
|
||||
bVar2 = (GHIDRA_CAST<Game *>((g_game)))->Game::IsInTimedSet(0x19);
|
||||
if (((bVar2 != 0) || (bVar2 = (GHIDRA_CAST<Game *>((g_game)))->Game::GetDebugFlag(9), bVar2 != 0)) &&
|
||||
bVar2 = Game::IsInTimedSet(g_game,0x19);
|
||||
if (((bVar2 != 0) || (bVar2 = Game::GetDebugFlag(g_game,9), bVar2 != 0)) &&
|
||||
(bVar2 = (GHIDRA_CAST<Entity *>((GHIDRA_CAST<Entity *>(this))))->Entity::IsActiveEnemy(0), bVar2 != 0)) {
|
||||
pEVar9 = GHIDRA_CAST<Entity_Effect *>(((this->_maxHitPoints / 30.0) / 30.0));
|
||||
local_28c = pEVar9;
|
||||
bVar2 = (GHIDRA_CAST<Game *>((g_game)))->Game::IsInTimedSet(0x19);
|
||||
bVar2 = Game::IsInTimedSet(g_game,0x19);
|
||||
if (bVar2 != 0) {
|
||||
this->_isInvicible = 1;
|
||||
}
|
||||
@@ -7969,13 +7970,13 @@ LAB_006c9ee0:
|
||||
goto LAB_006c9ee0;
|
||||
}
|
||||
}
|
||||
bVar2 = (GHIDRA_CAST<Game *>((g_game)))->Game::GetDebugFlag(9);
|
||||
bVar2 = Game::GetDebugFlag(g_game,9);
|
||||
if (bVar2 != 0) {
|
||||
pEVar9 = GHIDRA_CAST<Entity_Effect *>(((float)local_28c * 100.0));
|
||||
local_28c = pEVar9;
|
||||
}
|
||||
cVar3 = this->IsBoss();
|
||||
if ((cVar3 == '\0') && (bVar2 = (GHIDRA_CAST<Game *>((g_game)))->Game::GetDebugFlag(9), bVar2 == 0)) {
|
||||
if ((cVar3 == '\0') && (bVar2 = Game::GetDebugFlag(g_game,9), bVar2 == 0)) {
|
||||
pRVar10 = GHIDRA_CAST<Room *>((GHIDRA_CAST<Level *>((GHIDRA_CAST<Level *>(g_game))))->Level)::GetCurrentRoom();
|
||||
iVar16 = (GHIDRA_CAST<Room *>((pRVar10)))->Room::GetAliveBossesCount();
|
||||
if (iVar16 < 1) {
|
||||
@@ -7999,7 +8000,7 @@ LAB_006ca08e:
|
||||
this->_health = (float)pEVar9;
|
||||
}
|
||||
else {
|
||||
bVar2 = (GHIDRA_CAST<Game *>((g_game)))->Game::GetDebugFlag(9);
|
||||
bVar2 = Game::GetDebugFlag(g_game,9);
|
||||
if ((((bVar2 == 0) && (iVar16 = this->_type, iVar16 != 0x24)) &&
|
||||
((iVar16 != 0x106 &&
|
||||
((((iVar16 != 0x107 && (iVar16 != 0x4e)) && (iVar16 != 0x47)) &&
|
||||
@@ -8050,7 +8051,7 @@ LAB_006ca09e:
|
||||
pTVar30 = &IsaacRepentancePlus::Entity_Effect::RTTI_Type_Descriptor;
|
||||
pTVar29 = &IsaacRepentancePlus::Entity::RTTI_Type_Descriptor;
|
||||
uVar28 = 0;
|
||||
pEVar7 = (GHIDRA_CAST<Game *>((g_game)))->Game::Spawn(1000,99,tmpVec,&g_vectorZero,GHIDRA_CAST<Entity *>(this),0,uVar4);
|
||||
pEVar7 = Game::Spawn(g_game,1000,99,tmpVec,&g_vectorZero,GHIDRA_CAST<Entity *>(this),0,uVar4);
|
||||
pEVar7 = GHIDRA_CAST<Entity *>(__RTDynamicCast(pEVar7,uVar28,pTVar29,pTVar30,uVar33));
|
||||
pEVar9 = GHIDRA_CAST<Entity_Effect *>((this->_size * 0.05 * this->_scale));
|
||||
local_298.y = (float)pEVar9;
|
||||
@@ -8135,7 +8136,7 @@ LAB_006ca2e9:
|
||||
uVar4 = Random();
|
||||
tmpVec = (GHIDRA_CAST<Vector *>((GHIDRA_CAST<Vector *>(local_2b8.y))))->Vector::__add(GHIDRA_CAST<Vector *>((local_318 + 8)),&local_2d0);
|
||||
projectile = (Entity_Projectile *)
|
||||
(GHIDRA_CAST<Game *>((g_game)))->Game::Spawn(1000,99,tmpVec,&local_2e0,GHIDRA_CAST<Entity *>(0x0),1,uVar4);
|
||||
Game::Spawn(g_game,1000,99,tmpVec,&local_2e0,GHIDRA_CAST<Entity *>(0x0),1,uVar4);
|
||||
tmpVec = GHIDRA_CAST<Vector *>((GHIDRA_CAST<Entity *>((GHIDRA_CAST<Entity *>(projectile))))->Entity)::SpriteScale();
|
||||
local_2f0.y = 2.0;
|
||||
tmpVec = (GHIDRA_CAST<Vector *>((tmpVec)))->Vector::__mul(&local_334,&local_2f0.y);
|
||||
@@ -8157,13 +8158,13 @@ LAB_006ca2e9:
|
||||
(bVar2 = (GHIDRA_CAST<Entity *>((GHIDRA_CAST<Entity *>(this))))->Entity::HasEntityFlags(0x4000000000000), bVar2 != 0)) {
|
||||
(GHIDRA_CAST<Entity_Pickup *>((GHIDRA_CAST<Entity_Pickup *>(this))))->Entity_Pickup::Update();
|
||||
uVar4 = 0;
|
||||
iVar16 = (GHIDRA_CAST<Game *>((g_game)))->Game::GetNumPlayers();
|
||||
iVar16 = Game::GetNumPlayers(g_game);
|
||||
if (iVar16 != 0) {
|
||||
do {
|
||||
player = (GHIDRA_CAST<Game *>((g_game)))->Game::GetPlayer(uVar4);
|
||||
player = Game::GetPlayer(g_game,uVar4);
|
||||
(GHIDRA_CAST<Entity_Player *>((player)))->Entity_Player::trigger_npc_death(GHIDRA_CAST<Entity *>(this));
|
||||
uVar4 = uVar4 + 1;
|
||||
uVar13 = (GHIDRA_CAST<Game *>((g_game)))->Game::GetNumPlayers();
|
||||
uVar13 = Game::GetNumPlayers(g_game);
|
||||
} while (uVar4 < uVar13);
|
||||
}
|
||||
FUN_006d5350();
|
||||
@@ -8317,7 +8318,7 @@ LAB_006ca9aa:
|
||||
rngResult = Random();
|
||||
if ((rngResult & 1) == 0) {
|
||||
rngResult = Random();
|
||||
effect = (GHIDRA_CAST<Game *>((g_game)))->Game::SpawnEx(1000,0x36,&this->_pos,&g_vectorZero,GHIDRA_CAST<Entity *>(0x0),0,rngResult,0)
|
||||
effect = Game::SpawnEx(g_game,1000,0x36,&this->_pos,&g_vectorZero,GHIDRA_CAST<Entity *>(0x0),0,rngResult,0)
|
||||
;
|
||||
rngResult = Random();
|
||||
damageEvent = *GHIDRA_CAST<int *>(effect);
|
||||
@@ -8332,7 +8333,7 @@ LAB_006ca9aa:
|
||||
rngResult = Random();
|
||||
VStack_6c.x = (this->_velocity).x * 0.14;
|
||||
VStack_6c.y = (this->_velocity).y * 0.14;
|
||||
effect = (GHIDRA_CAST<Game *>((g_game)))->Game::SpawnEx(1000,0x3b,&this->_pos,&VStack_6c,GHIDRA_CAST<Entity *>(0x0),0,rngResult,0);
|
||||
effect = Game::SpawnEx(g_game,1000,0x3b,&this->_pos,&VStack_6c,GHIDRA_CAST<Entity *>(0x0),0,rngResult,0);
|
||||
rngResult = Random();
|
||||
*GHIDRA_CAST<float *>((effect[1]._sprite._animDefaultName._buf + 4)) =
|
||||
(float)((double)GHIDRA_INT(rngResult) + __uint_to_double_fixup[-(GHIDRA_INT(rngResult) >> 0x1f)]) *
|
||||
@@ -8394,7 +8395,7 @@ LAB_006ca9aa:
|
||||
VStack_58.y = VStack_58.y * 16.0;
|
||||
rngResult = Random();
|
||||
iceTear = (Entity_Tear *)
|
||||
(GHIDRA_CAST<Game *>((g_game)))->Game::SpawnEx(2,0x29,&this->_pos,&VStack_58,GHIDRA_CAST<Entity *>(0x0),0,rngResult,0);
|
||||
Game::SpawnEx(g_game,2,0x29,&this->_pos,&VStack_58,GHIDRA_CAST<Entity *>(0x0),0,rngResult,0);
|
||||
iceTear->SetCollisionDamage(fStack_5c);
|
||||
uStack_50 = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(g_tearFlagIce._l)) + 0x4))) | (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(g_tearFlagSlow._l)) + 0x4)));
|
||||
VStack_58.y = (float)(GHIDRA_UINT(g_tearFlagIce._l) | GHIDRA_UINT(g_tearFlagSlow._l));
|
||||
@@ -8618,7 +8619,7 @@ LAB_006d0647:
|
||||
break;
|
||||
case 0xb:
|
||||
uVar3 = Random();
|
||||
spawnedChild = (GHIDRA_CAST<Game *>((g_game)))->Game::Spawn(1000,0x39,&this->_pos,&g_vectorZero,GHIDRA_CAST<Entity *>(this),0,uVar3);
|
||||
spawnedChild = Game::Spawn(g_game,1000,0x39,&this->_pos,&g_vectorZero,GHIDRA_CAST<Entity *>(this),0,uVar3);
|
||||
parentRef = &spawnedChild->_parent;
|
||||
if (spawnedChild->_parent != 0) {
|
||||
local_3c = GHIDRA_CAST<Entity *>(parentRef);
|
||||
@@ -8629,7 +8630,7 @@ LAB_006d0647:
|
||||
break;
|
||||
case 0x10:
|
||||
uVar3 = Random();
|
||||
spawnedChild = (GHIDRA_CAST<Game *>((g_game)))->Game::Spawn(1000,0x39,&this->_pos,&g_vectorZero,GHIDRA_CAST<Entity *>(this),1,uVar3);
|
||||
spawnedChild = Game::Spawn(g_game,1000,0x39,&this->_pos,&g_vectorZero,GHIDRA_CAST<Entity *>(this),1,uVar3);
|
||||
parentRef = &spawnedChild->_parent;
|
||||
if (spawnedChild->_parent != 0) {
|
||||
local_3c = GHIDRA_CAST<Entity *>(parentRef);
|
||||
@@ -8641,7 +8642,7 @@ LAB_006d0647:
|
||||
case 0x11:
|
||||
if (isInit != 0) goto LAB_006d0b75;
|
||||
uVar3 = Random();
|
||||
local_3c = (GHIDRA_CAST<Game *>((g_game)))->Game::Spawn(0x60,0,&this->_pos,&g_vectorZero,GHIDRA_CAST<Entity *>(this),0,uVar3);
|
||||
local_3c = Game::Spawn(g_game,0x60,0,&this->_pos,&g_vectorZero,GHIDRA_CAST<Entity *>(this),0,uVar3);
|
||||
parentRef = &local_3c->_parent;
|
||||
if (local_3c->_parent != 0) {
|
||||
local_40 = GHIDRA_CAST<Entity *>(parentRef);
|
||||
@@ -8667,7 +8668,7 @@ LAB_006d0647:
|
||||
goto LAB_006d0b75;
|
||||
case 0x14:
|
||||
uVar3 = Random();
|
||||
local_40 = (GHIDRA_CAST<Game *>((g_game)))->Game::Spawn(1000,0x39,&this->_pos,&g_vectorZero,GHIDRA_CAST<Entity *>(this),2,uVar3);
|
||||
local_40 = Game::Spawn(g_game,1000,0x39,&this->_pos,&g_vectorZero,GHIDRA_CAST<Entity *>(this),2,uVar3);
|
||||
parentRef = &local_40->_parent;
|
||||
if (local_40->_parent != 0) {
|
||||
local_3c = GHIDRA_CAST<Entity *>(parentRef);
|
||||
@@ -8687,7 +8688,7 @@ LAB_006d0647:
|
||||
uVar3 = Random();
|
||||
this->_championTimer = uVar3 % 0x14 + 0x28;
|
||||
uVar3 = Random();
|
||||
spawnedChild = (GHIDRA_CAST<Game *>((g_game)))->Game::Spawn(1000,0x39,&this->_pos,&g_vectorZero,GHIDRA_CAST<Entity *>(this),0,uVar3);
|
||||
spawnedChild = Game::Spawn(g_game,1000,0x39,&this->_pos,&g_vectorZero,GHIDRA_CAST<Entity *>(this),0,uVar3);
|
||||
parentRef = &spawnedChild->_parent;
|
||||
if (spawnedChild->_parent != 0) {
|
||||
local_40 = GHIDRA_CAST<Entity *>(parentRef);
|
||||
@@ -8697,7 +8698,7 @@ LAB_006d0647:
|
||||
msvc::multiset<unsigned_int>::insert(parentRef);
|
||||
if (isInit == 0) {
|
||||
uVar3 = Random();
|
||||
spawnedChild = (GHIDRA_CAST<Game *>((g_game)))->Game::Spawn(0x60,0,&this->_pos,&g_vectorZero,GHIDRA_CAST<Entity *>(this),0,uVar3);
|
||||
spawnedChild = Game::Spawn(g_game,0x60,0,&this->_pos,&g_vectorZero,GHIDRA_CAST<Entity *>(this),0,uVar3);
|
||||
parentRef = &spawnedChild->_parent;
|
||||
if (spawnedChild->_parent != 0) {
|
||||
local_40 = GHIDRA_CAST<Entity *>(parentRef);
|
||||
@@ -9272,7 +9273,7 @@ LAB_006d3040:
|
||||
if (((iVar6 != 0) && (*GHIDRA_CAST<int *>((iVar6 + 0x28)) == 1)) &&
|
||||
(laterAnimState = GHIDRA_CAST<uint8_t *>(&g_manager->_netplayManager),
|
||||
*GHIDRA_CAST<int *>(laterAnimState) != *GHIDRA_CAST<int *>((g_manager + 1)))) {
|
||||
bVar3 = (GHIDRA_CAST<NetplayManager *>((GHIDRA_CAST<NetplayManager *>(laterAnimState))))->NetplayManager::IsIdxLocalPlayer(*GHIDRA_CAST<uint32_t *>((iVar6 + 0x1618)));
|
||||
bVar3 = NetplayManager::IsIdxLocalPlayer(GHIDRA_CAST<NetplayManager *>(laterAnimState),*GHIDRA_CAST<uint32_t *>((iVar6 + 0x1618)));
|
||||
laterAnimState = extraout_ECX_02;
|
||||
if (bVar3 == 0) {
|
||||
FUN_00925df0();
|
||||
@@ -9503,7 +9504,7 @@ LAB_006d3907:
|
||||
if (GHIDRA_INT((g_game->_playerManager)._playerList._end) -
|
||||
GHIDRA_INT((g_game->_playerManager)._playerList._begin) >> 2 != 0) {
|
||||
do {
|
||||
player = (GHIDRA_CAST<Game *>((g_game)))->Game::GetPlayer(uVar4);
|
||||
player = Game::GetPlayer(g_game,uVar4);
|
||||
if (GHIDRA_CAST<Entity_NPC *>(player->_minecart) == this) {
|
||||
fStack_94 = (player->_minecartOffset).y;
|
||||
local_90 = player;
|
||||
@@ -10160,7 +10161,7 @@ LAB_006d4f7c:
|
||||
uVar2 = 4;
|
||||
}
|
||||
seed = Random();
|
||||
effect = (GHIDRA_CAST<Game *>((g_game)))->Game::SpawnEx(1000,2,&this->_pos,&g_vectorZero,GHIDRA_CAST<Entity *>(0x0),uVar2,seed,0);
|
||||
effect = Game::SpawnEx(g_game,1000,2,&this->_pos,&g_vectorZero,GHIDRA_CAST<Entity *>(0x0),uVar2,seed,0);
|
||||
bloodEffect = GHIDRA_CAST<int *>(__RTDynamicCast(effect,0,&IsaacRepentancePlus::Entity::
|
||||
RTTI_Type_Descriptor,
|
||||
&IsaacRepentancePlus::Entity_Effect::
|
||||
@@ -10178,12 +10179,12 @@ LAB_006d51b2:
|
||||
seed = Random();
|
||||
local_10.x = splatOffset.x + (this->_pos).x;
|
||||
local_10.y = splatOffset.y + (this->_pos).y;
|
||||
effect = (GHIDRA_CAST<Game *>((g_game)))->Game::SpawnEx(1000,uVar2,&local_10,&g_vectorZero,GHIDRA_CAST<Entity *>(0x0),0,seed,0);
|
||||
effect = Game::SpawnEx(g_game,1000,uVar2,&local_10,&g_vectorZero,GHIDRA_CAST<Entity *>(0x0),0,seed,0);
|
||||
effect->SetColor(&this->_splatColor,0xffffffff,0xff,0,1);
|
||||
LAB_006d505b:
|
||||
if (this->_type == 0x372) {
|
||||
uVar2 = Random();
|
||||
effect = (GHIDRA_CAST<Game *>((g_game)))->Game::SpawnEx(1000,0x12,&this->_pos,&g_vectorZero,GHIDRA_CAST<Entity *>(0x0),0,uVar2,0);
|
||||
effect = Game::SpawnEx(g_game,1000,0x12,&this->_pos,&g_vectorZero,GHIDRA_CAST<Entity *>(0x0),0,uVar2,0);
|
||||
iVar1 = *GHIDRA_CAST<int *>(effect);
|
||||
(effect->_sprite)._color._colorize[0] = 5.0;
|
||||
(effect->_sprite)._color._colorize[1] = 5.0;
|
||||
@@ -10191,7 +10192,7 @@ LAB_006d505b:
|
||||
(effect->_sprite)._color._colorize[3] = 1.0;
|
||||
(**(code **)(iVar1 + 0xc))();
|
||||
uVar2 = Random();
|
||||
effect = (GHIDRA_CAST<Game *>((g_game)))->Game::SpawnEx(1000,0x10,&this->_pos,&g_vectorZero,GHIDRA_CAST<Entity *>(this),1,uVar2,0);
|
||||
effect = Game::SpawnEx(g_game,1000,0x10,&this->_pos,&g_vectorZero,GHIDRA_CAST<Entity *>(this),1,uVar2,0);
|
||||
fVar3 = g_vectorOne.y * 0.6;
|
||||
(effect->_sprite)._scale.x = g_vectorOne.x * 0.6;
|
||||
(effect->_sprite)._scale.y = fVar3;
|
||||
@@ -10297,7 +10298,7 @@ void Entity_NPC::trigger_kill_item_effects()
|
||||
}
|
||||
if (iVar6 != 0) {
|
||||
do {
|
||||
itemOwner = (GHIDRA_CAST<Game *>((g_game)))->Game::GetNearestPlayer(&this->_pos);
|
||||
itemOwner = Game::GetNearestPlayer(g_game,&this->_pos);
|
||||
itemOwner->_numBlueSpiders = itemOwner->_numBlueSpiders + 1;
|
||||
spawn_blue_spider(&this->_pos,GHIDRA_CAST<Entity *>(itemOwner),&g_vectorZero);
|
||||
iVar6 = iVar6 + -1;
|
||||
@@ -10328,7 +10329,7 @@ void Entity_NPC::trigger_kill_item_effects()
|
||||
in_stack_fffffce4 = GHIDRA_CAST<Vector *>(0xa);
|
||||
in_stack_fffffce0 = 5;
|
||||
in_stack_fffffcdc = 0x6d55be;
|
||||
(GHIDRA_CAST<Game *>((game)))->Game::Spawn(5,10,in_stack_fffffce8,&g_vectorZero,GHIDRA_CAST<Entity *>(0x0),6,uVar3);
|
||||
Game::Spawn(game,5,10,in_stack_fffffce8,&g_vectorZero,GHIDRA_CAST<Entity *>(0x0),6,uVar3);
|
||||
}
|
||||
}
|
||||
game = g_game;
|
||||
@@ -10390,7 +10391,7 @@ void Entity_NPC::trigger_kill_item_effects()
|
||||
fartColor._offset[2] = 0.0;
|
||||
in_stack_fffffce0 = 0x6d573a;
|
||||
in_stack_fffffce4 = pos;
|
||||
(GHIDRA_CAST<Game *>((g_game)))->Game::Fart(pos,85.0,GHIDRA_CAST<Entity *>(itemOwner),1.0,1,&fartColor);
|
||||
Game::Fart(g_game,pos,85.0,GHIDRA_CAST<Entity *>(itemOwner),1.0,1,&fartColor);
|
||||
EntityList::QueryRadius
|
||||
(GHIDRA_CAST<EntityList *>((GHIDRA_INT(g_game->_room) + 0x1218)),&contagionEnemies,pos,85.0,8);
|
||||
uVar3 = 0;
|
||||
@@ -10891,7 +10892,7 @@ void Entity_NPC::room_enter()
|
||||
(isBirthright = (GHIDRA_CAST<Entity_Player *>((jacob)))->Entity_Player::HasCollectible(0x26b,0), isBirthright == 0)))))) {
|
||||
this->Remove();
|
||||
doorSlot = Random();
|
||||
(GHIDRA_CAST<Game *>((g_game)))->Game::Spawn(1000,0xf,position,&g_vectorZero,GHIDRA_CAST<Entity *>(this),0,doorSlot);
|
||||
Game::Spawn(g_game,1000,0xf,position,&g_vectorZero,GHIDRA_CAST<Entity *>(this),0,doorSlot);
|
||||
(GHIDRA_CAST<Color *>((&color)))->Color::Color();
|
||||
(*extraout_EDX)(extraout_EAX,0xffffffff,0xff,0,1);
|
||||
}
|
||||
@@ -10945,7 +10946,7 @@ void Entity_NPC::spawn_damage_numbers()
|
||||
local_50.y = -3.0 - (maxHitPoints + maxHitPoints);
|
||||
spawnPos.x = (this->_pos).x - 0.0;
|
||||
spawnPos.y = (this->_pos).y - 20.0;
|
||||
damageNumber = (GHIDRA_CAST<Game *>((g_game)))->Game::SpawnEx(0x2329,1,&spawnPos,&local_50,GHIDRA_CAST<Entity *>(0x0),0,seed,0);
|
||||
damageNumber = Game::SpawnEx(g_game,0x2329,1,&spawnPos,&local_50,GHIDRA_CAST<Entity *>(0x0),0,seed,0);
|
||||
dVar2 = floor((double)(*damageEvent * 10.0 + 0.5));
|
||||
maxHitPoints = 9999.0;
|
||||
if ((float)dVar2 / 10.0 <= 9999.0) {
|
||||
@@ -11165,7 +11166,7 @@ void Entity_NPC::update_blood_guide_gibs(float *nullFrame)
|
||||
((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(bloodEffect->_config) + 0x60)) >> 0xd & 1) != 0)) {
|
||||
iVar3 = (GHIDRA_CAST<Entity *>((GHIDRA_CAST<Entity *>(bloodEffect))))->Entity::GetIntervalTicks(3.0,0.0);
|
||||
if (iVar3 != 0) {
|
||||
(GHIDRA_CAST<Game *>((g_game)))->Game::ShakeScreen(5);
|
||||
Game::ShakeScreen(g_game,5);
|
||||
}
|
||||
iVar3 = (GHIDRA_CAST<Entity *>((GHIDRA_CAST<Entity *>(bloodEffect))))->Entity::GetIntervalTicks(10.0,0.0);
|
||||
if (iVar3 != 0) {
|
||||
@@ -11206,7 +11207,7 @@ LAB_006d7a90:
|
||||
pTVar9 = &IsaacRepentancePlus::Entity_Effect::RTTI_Type_Descriptor;
|
||||
pTVar8 = &IsaacRepentancePlus::Entity::RTTI_Type_Descriptor;
|
||||
uVar7 = 0;
|
||||
spawned = (GHIDRA_CAST<Game *>((g_game)))->Game::Spawn(1000,0x11,&bloodEffect->_pos,&g_vectorZero,GHIDRA_CAST<Entity *>(bloodEffect),0,
|
||||
spawned = Game::Spawn(g_game,1000,0x11,&bloodEffect->_pos,&g_vectorZero,GHIDRA_CAST<Entity *>(bloodEffect),0,
|
||||
rngResult);
|
||||
local_20 = GHIDRA_CAST<int *>(__RTDynamicCast(spawned,uVar7,pTVar8,pTVar9,uVar10));
|
||||
randomDir = MusicManager::RandomVector(&local_30);
|
||||
@@ -11294,7 +11295,7 @@ LAB_006d7a90:
|
||||
pTVar9 = &IsaacRepentancePlus::Entity_Effect::RTTI_Type_Descriptor;
|
||||
pTVar8 = &IsaacRepentancePlus::Entity::RTTI_Type_Descriptor;
|
||||
uVar7 = 0;
|
||||
spawned = (GHIDRA_CAST<Game *>((g_game)))->Game::Spawn(1000,0x2a,&bloodEffect->_pos,&g_vectorZero,GHIDRA_CAST<Entity *>(bloodEffect),0,rngResult);
|
||||
spawned = Game::Spawn(g_game,1000,0x2a,&bloodEffect->_pos,&g_vectorZero,GHIDRA_CAST<Entity *>(bloodEffect),0,rngResult);
|
||||
bloodEffect = GHIDRA_CAST<Entity_Effect *>(__RTDynamicCast(spawned,uVar7,pTVar8,pTVar9,uVar10));
|
||||
(GHIDRA_CAST<Entity_Effect *>((bloodEffect)))->Entity_Effect::FollowParent(GHIDRA_CAST<Entity *>(bloodEffect));
|
||||
rngResult = Random();
|
||||
@@ -11559,7 +11560,7 @@ LAB_006d8761:
|
||||
inputX = rawInput.x;
|
||||
}
|
||||
else {
|
||||
bVar1 = (GHIDRA_CAST<Game *>((game)))->Game::IsInTimedSet(0x4b);
|
||||
bVar1 = Game::IsInTimedSet(game,0x4b);
|
||||
if (bVar1 != 0) {
|
||||
pVVar2 = GetControllerInput(this,&local_28,0.0);
|
||||
rawInput.x = pVVar2->x * -1.0;
|
||||
@@ -11592,7 +11593,7 @@ LAB_006d8761:
|
||||
game = g_game;
|
||||
rawInput.y = fVar4;
|
||||
local_10 = fVar4;
|
||||
bVar1 = (GHIDRA_CAST<Game *>((g_game)))->Game::IsInTimedSet(0xc);
|
||||
bVar1 = Game::IsInTimedSet(g_game,0xc);
|
||||
if (bVar1 != 0) {
|
||||
rawInput.x = inputX * -1.0;
|
||||
fVar4 = fVar4 * -1.0;
|
||||
@@ -11725,7 +11726,7 @@ void Entity_NPC::SpawnControlTarget(int inputMode, float rotation)
|
||||
return;
|
||||
}
|
||||
seed = Random();
|
||||
targetEffect = (GHIDRA_CAST<Game *>((g_game)))->Game::Spawn(1000,0x1e,&this->_pos,&g_vectorZero,GHIDRA_CAST<Entity *>(this),0,seed);
|
||||
targetEffect = Game::Spawn(g_game,1000,0x1e,&this->_pos,&g_vectorZero,GHIDRA_CAST<Entity *>(this),0,seed);
|
||||
iVar1 = *GHIDRA_CAST<int *>(targetEffect);
|
||||
pAVar2 = &targetEffect[1]._sprite;
|
||||
(pAVar2->_filename)._buf[4] = '\0';
|
||||
@@ -12250,7 +12251,7 @@ LAB_006d9b71:
|
||||
rngState = rngState << ((uint8_t)((uint64_t)rngShifts >> 0x20) & 0x1f) ^ rngState;
|
||||
local_20 = (float)(rngState >> ((uint8_t)local_14 & 0x1f) ^ rngState);
|
||||
half = (Entity_NPC *)
|
||||
(GHIDRA_CAST<Game *>((g_game)))->Game::Spawn(GHIDRA_UINT(source),uVar5,&spawnPos,&g_vectorZero,GHIDRA_CAST<Entity *>(this),
|
||||
Game::Spawn(g_game,GHIDRA_UINT(source),uVar5,&spawnPos,&g_vectorZero,GHIDRA_CAST<Entity *>(this),
|
||||
this->_subtype,GHIDRA_UINT(local_20));
|
||||
if (this->_isChampion != 0) {
|
||||
Morph(half,GHIDRA_INT(source),uVar5,this->_subtype,this->_championColorIdx);
|
||||
@@ -12592,7 +12593,7 @@ LAB_006d9a2b:
|
||||
this->TakeDamage(fVar8,0,0,source,0x1e,uVar5);
|
||||
LAB_006d9a4d:
|
||||
if (isPlaySound != 0) {
|
||||
(GHIDRA_CAST<Game *>((g_game)))->Game::ShakeScreen(0xf);
|
||||
Game::ShakeScreen(g_game,0xf);
|
||||
}
|
||||
ExceptionList = local_10;
|
||||
return 1;
|
||||
|
||||
Reference in new issue
Block a user