Curation round 7: Game::Start, level generation, Room, Camera, the Entity hierarchy, Entity_Player, the run frame
Six agents took over Game::Start, Level::SetNextStage, BossPool, save_game_state, level generation to the first room (place_special_rooms, RoomDescriptor, load_room), Room, Camera, Entity/EntityList/EntityRef with a curated skeleton of every Entity_* subclass, Entity_Player, Game::Render, Manager::Update's run branch, RoomTransition, ItemInfoHUD and StatHUD. Integration wrote FirstTrinketOwner and room_shape_get_door_grid_index (checked against the decompile for every shape and slot) and folded the duplicated constants. A run now generates its floor, loads the start room and draws the HUD (under gdb); Isaac renders correctly when drawn, the room itself waits for Room::Render. 2479 functions taken over. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
addd027977
commit
b85591bdf4
146 files changed
+20124
-200863
No files matched your search
+63
-63
@@ -93,9 +93,9 @@ uint8_t Weapon::IsAxisAligned()
|
||||
(player = *GHIDRA_CAST<Entity_Player **>(&player->_isControlsEnabled), player != GHIDRA_CAST<Entity_Player *>(0x0))))
|
||||
) && (*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x28)))) == g_vectorZero.x)))) &&
|
||||
(*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x2c)))) == g_vectorZero.y)) {
|
||||
isHasItem = (GHIDRA_CAST<Entity_Player *>((player)))->Entity_Player::HasCollectible(0x1d1,0);
|
||||
isHasItem = Entity_Player::HasCollectible(player,0x1d1,0);
|
||||
if (isHasItem == 0) {
|
||||
isHasItem = (GHIDRA_CAST<Entity_Player *>((player)))->Entity_Player::HasCollectible(0x18a,0);
|
||||
isHasItem = Entity_Player::HasCollectible(player,0x18a,0);
|
||||
if (isHasItem == 0) {
|
||||
return 1;
|
||||
}
|
||||
@@ -118,7 +118,7 @@ Vector * Weapon::get_aim_direction(Vector *outDir, Vector *defaultDir)
|
||||
((this_00->_type == 3 &&
|
||||
(this_00 = *GHIDRA_CAST<Entity_Player **>(&this_00->_isControlsEnabled), this_00 != GHIDRA_CAST<Entity_Player *>(0x0))
|
||||
))))) && ((this->_modifiers & 0x40000000U) == 0)) {
|
||||
isHasMarked = (GHIDRA_CAST<Entity_Player *>((this_00)))->Entity_Player::HasCollectible(0x18a,0);
|
||||
isHasMarked = Entity_Player::HasCollectible(this_00,0x18a,0);
|
||||
if ((((isHasMarked == 0) || (this_00->_markedTarget == (void *)0x0)) &&
|
||||
(*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x28)))) == g_vectorZero.x)) &&
|
||||
(*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x2c)))) == g_vectorZero.y)) {
|
||||
@@ -257,8 +257,8 @@ LAB_009f3b99:
|
||||
}
|
||||
return;
|
||||
}
|
||||
(GHIDRA_CAST<Entity_Player *>((player2)))->Entity_Player::HasCollectible(0x18a,0);
|
||||
bVar5 = (GHIDRA_CAST<Entity_Player *>((ownerPlayer)))->Entity_Player::HasCollectible(0x98,0);
|
||||
Entity_Player::HasCollectible(player2,0x18a,0);
|
||||
bVar5 = Entity_Player::HasCollectible(ownerPlayer,0x98,0);
|
||||
if ((bVar5 == 0) || (*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x30)))) == 0xf)) goto LAB_009f3b99;
|
||||
local_64 = *GHIDRA_CAST<Entity_Laser **>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((local_54)) + 0x0))));
|
||||
aimDirY = *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((local_54)) + 0x4))));
|
||||
@@ -333,7 +333,7 @@ LAB_009f3b99:
|
||||
}
|
||||
local_64->_damageMultiplier = 0.13;
|
||||
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((local_64)) + 0x517))) = 1;
|
||||
local_64->Update();
|
||||
(**(code **)(*GHIDRA_CAST<int *>(local_64) + 0xc))();
|
||||
aimDirY = local_50.y;
|
||||
local_64 = GHIDRA_CAST<Entity_Laser *>(local_50.x);
|
||||
player = player2;
|
||||
@@ -343,7 +343,7 @@ LAB_009f39d5:
|
||||
}
|
||||
else if (isInterpolated == 0) {
|
||||
fVar12 = atan2f(aimDirY,(float)local_64);
|
||||
(GHIDRA_CAST<Entity_NPC *>((local_5c)))->Entity_NPC::SetAimAngle(fVar12 * 57.295776);
|
||||
Entity_NPC::SetAimAngle(local_5c,fVar12 * 57.295776);
|
||||
GetOwnerLaserOffset(this,&scratchVec,1,&local_50);
|
||||
player = player2;
|
||||
(local_5c->_posOffset).y = scratchVec.y;
|
||||
@@ -361,9 +361,9 @@ LAB_009f39d5:
|
||||
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&((local_5c->_pathfinder))) + 0x18)))) = notExplosiveLoHi & uVar9;
|
||||
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&((local_5c->_pathfinder))) + 0x1c)))) = notExplosiveHiLo & GHIDRA_UINT(qVar3);
|
||||
(local_5c->_pathfinder)._gridIndex = notExplosiveHiHi & uVar2;
|
||||
laserColorPtr = (GHIDRA_CAST<Entity_Player *>((player2)))->Entity_Player::get_laser_color_copy(&laserColor);
|
||||
laserColorPtr = Entity_Player::get_laser_color_copy(player2,&laserColor);
|
||||
pEVar10 = local_5c;
|
||||
local_5c->SetColor(laserColorPtr,0xffffffff,0xff,0,1);
|
||||
(**(code **)(*GHIDRA_CAST<int *>(local_5c) + 0x3c))(laserColorPtr,0xffffffff,0xff,0,1);
|
||||
if ((aimDirY <= -0.5) || ((float)local_64 <= -0.5)) {
|
||||
pEVar10->_renderDepthOffset = -10.0;
|
||||
}
|
||||
@@ -375,10 +375,10 @@ LAB_009f39d5:
|
||||
cVar6 = FUN_0097e7c0();
|
||||
iVar8 = extraout_ECX;
|
||||
if (cVar6 == '\0') goto LAB_009f3b6a;
|
||||
bVar5 = (GHIDRA_CAST<Entity_Player *>((ownerPlayer)))->Entity_Player::HasCollectible(0x37,0);
|
||||
bVar5 = Entity_Player::HasCollectible(ownerPlayer,0x37,0);
|
||||
if (bVar5 == 0) {
|
||||
LAB_009f3a27:
|
||||
bVar5 = (GHIDRA_CAST<Entity_Player *>((ownerPlayer)))->Entity_Player::HasCollectible(0x57,0);
|
||||
bVar5 = Entity_Player::HasCollectible(ownerPlayer,0x57,0);
|
||||
iVar8 = extraout_ECX_00;
|
||||
if (bVar5 == 0) goto LAB_009f3b6a;
|
||||
iVar8 = 0x50 - GHIDRA_INT(((float)local_3c * 5.0));
|
||||
@@ -403,20 +403,20 @@ LAB_009f3a27:
|
||||
local_3c = GHIDRA_CAST<Weapon *>(scratchVec.x);
|
||||
pVVar7 = get_owner_position(this,&local_50);
|
||||
laser = fire_laser(this,pVVar7,5,&scratchVec,0,1,0.13);
|
||||
laser->Update();
|
||||
bVar5 = (GHIDRA_CAST<Entity_Player *>((ownerPlayer)))->Entity_Player::HasCollectible(0x57,0);
|
||||
(**(code **)(*GHIDRA_CAST<int *>(laser) + 0xc))();
|
||||
bVar5 = Entity_Player::HasCollectible(ownerPlayer,0x57,0);
|
||||
iVar8 = extraout_ECX_02;
|
||||
if (bVar5 != 0) {
|
||||
scratchVec.x = aimDirY;
|
||||
scratchVec.y = (float)local_3c;
|
||||
pVVar7 = get_owner_position(this,&local_50);
|
||||
laser = fire_laser(this,pVVar7,5,&scratchVec,0,1,0.13);
|
||||
laser->Update();
|
||||
(**(code **)(*GHIDRA_CAST<int *>(laser) + 0xc))();
|
||||
scratchVec.x = (float)local_40;
|
||||
scratchVec.y = (float)local_64;
|
||||
pVVar7 = get_owner_position(this,&local_50);
|
||||
laser = fire_laser(this,pVVar7,5,&scratchVec,0,1,0.13);
|
||||
laser->Update();
|
||||
(**(code **)(*GHIDRA_CAST<int *>(laser) + 0xc))();
|
||||
iVar8 = extraout_ECX_03;
|
||||
}
|
||||
LAB_009f3b6a:
|
||||
@@ -462,7 +462,7 @@ float Weapon::get_damage()
|
||||
if (this_00->_playerType != 0xd) {
|
||||
damage = damage * 0.5;
|
||||
}
|
||||
isHasBffs = (GHIDRA_CAST<Entity_Player *>((this_00)))->Entity_Player::HasCollectible(0xf7,0);
|
||||
isHasBffs = Entity_Player::HasCollectible(this_00,0xf7,0);
|
||||
if (isHasBffs == 0) {
|
||||
return damage;
|
||||
}
|
||||
@@ -514,7 +514,7 @@ LAB_009f3d36:
|
||||
*GHIDRA_CAST<int *>(&outFlags->_h) = GHIDRA_INT(highFlags);
|
||||
*GHIDRA_CAST<uint32_t *>((GHIDRA_INT(&outFlags->_h) + 4)) = highFlagsHigh;
|
||||
if (familiarOwner != GHIDRA_CAST<Entity_Player *>(0x0)) {
|
||||
isBabyBender = (GHIDRA_CAST<Entity_Player *>((this_00)))->Entity_Player::HasTrinket(0x7f,0);
|
||||
isBabyBender = Entity_Player::HasTrinket(this_00,0x7f,0);
|
||||
if (isBabyBender != 0) {
|
||||
*GHIDRA_CAST<uint32_t *>(&outFlags->_l) = GHIDRA_UINT(outFlags->_l) | GHIDRA_UINT(g_tearFlagHoming._l);
|
||||
flagsDword = GHIDRA_CAST<uint32_t *>((GHIDRA_INT(&outFlags->_l) + 4));
|
||||
@@ -599,7 +599,7 @@ LAB_009f3de7:
|
||||
outColor->_colorize[3] = colorizeA;
|
||||
}
|
||||
if (pEVar2 != GHIDRA_CAST<Entity_Player *>(0x0)) {
|
||||
bVar1 = (GHIDRA_CAST<Entity_Player *>((this_00)))->Entity_Player::HasTrinket(0x7f,0);
|
||||
bVar1 = Entity_Player::HasTrinket(this_00,0x7f,0);
|
||||
if (bVar1 == 0) {
|
||||
if ((char)pEVar2->_chargeBarSprites[5]._shadowLayerIndex != '\0') {
|
||||
outColor->_colorize[0] = 2.4;
|
||||
@@ -716,7 +716,7 @@ LAB_009f3f9a:
|
||||
outColor->_colorize[3] = fVar8;
|
||||
}
|
||||
if (GHIDRA_CAST<Entity_Player *>(ownerFamiliar) != GHIDRA_CAST<Entity_Player *>(0x0)) {
|
||||
bVar9 = (GHIDRA_CAST<Entity_Player *>((this_00)))->Entity_Player::HasTrinket(0x7f,0);
|
||||
bVar9 = Entity_Player::HasTrinket(this_00,0x7f,0);
|
||||
if (bVar9 == 0) {
|
||||
if ((char)(GHIDRA_CAST<Entity_Player *>(ownerFamiliar))->_chargeBarSprites[5]._shadowLayerIndex != '\0')
|
||||
{
|
||||
@@ -1193,7 +1193,7 @@ Vector * Weapon::get_tear_movement_inheritance(Vector *outResult, Vector *direct
|
||||
}
|
||||
if (pEVar1->_type == 3) {
|
||||
pEVar1 = *GHIDRA_CAST<Entity_Player **>(&pEVar1->_isControlsEnabled);
|
||||
isHasMarked = (GHIDRA_CAST<Entity_Player *>((pEVar1)))->Entity_Player::HasCollectible(0x18a,0);
|
||||
isHasMarked = Entity_Player::HasCollectible(pEVar1,0x18a,0);
|
||||
if ((isHasMarked == 0) || (pEVar1->_markedTarget == (void *)0x0)) {
|
||||
familiarPlayer = *GHIDRA_CAST<int *>((*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x4)))) + 0x410));
|
||||
inheritX = *GHIDRA_CAST<float *>((familiarPlayer + 0x360)) * 0.6;
|
||||
@@ -1291,7 +1291,7 @@ LAB_009f5b91:
|
||||
randomValue = Random();
|
||||
shooter = (Entity_Tear *)
|
||||
Game::SpawnEx(g_game,2,0,position,velocity,*GHIDRA_CAST<Entity **>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x4)))),0,randomValue,0);
|
||||
shooter->SetCollisionDamage(damageMultiplier * shooter->_collisionDamage);
|
||||
(**(code **)(*GHIDRA_CAST<int *>(shooter) + 0x40))(damageMultiplier * shooter->_collisionDamage);
|
||||
local_14 = *GHIDRA_CAST<Weapon **>((iStack_18 + 4));
|
||||
if (shooter->_parent != 0) {
|
||||
local_10 = &shooter->_parent;
|
||||
@@ -1301,11 +1301,11 @@ LAB_009f5b91:
|
||||
if (local_14 != GHIDRA_CAST<Weapon *>(0x0)) {
|
||||
msvc::multiset<unsigned_int>::insert(&shooter->_parent);
|
||||
}
|
||||
shooter->Update();
|
||||
(**(code **)(*GHIDRA_CAST<int *>(shooter) + 0xc))();
|
||||
LAB_009f5c1f:
|
||||
shooter = *GHIDRA_CAST<Entity_Player **>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((local_14)) + 0x4))));
|
||||
if ((shooter != GHIDRA_CAST<Entity_Player *>(0x0)) && (shooter->_type == 1)) {
|
||||
seededVariant = (GHIDRA_CAST<Entity_Player *>((shooter)))->Entity_Player::get_seeded_variant();
|
||||
seededVariant = Entity_Player::get_seeded_variant(shooter);
|
||||
if (seededVariant == 2) {
|
||||
local_c = (shooter->_velocity).x;
|
||||
local_10 = GHIDRA_CAST<uint32_t *>((shooter->_velocity).y);
|
||||
@@ -1363,7 +1363,7 @@ Entity_Bomb * Weapon::fire_bomb(Weapon *weapon, Vector *position, Vector *veloci
|
||||
if (source->_type != 3) goto LAB_009f5eb6;
|
||||
player = *GHIDRA_CAST<Entity_Player **>(&source->_isControlsEnabled);
|
||||
}
|
||||
pEVar3 = (GHIDRA_CAST<Entity_Player *>((player)))->Entity_Player::FireBomb(position,velocity,GHIDRA_CAST<Entity *>(source));
|
||||
pEVar3 = Entity_Player::FireBomb(player,position,velocity,GHIDRA_CAST<Entity *>(source));
|
||||
manager = g_manager;
|
||||
if (pEVar3 != GHIDRA_CAST<Entity_Bomb *>(0x0)) {
|
||||
if ((pEVar3->_variant == 0x13) || (pEVar3->_variant == 0x14)) {
|
||||
@@ -1406,7 +1406,7 @@ LAB_009f5eb6:
|
||||
if (iVar2 != 0) {
|
||||
msvc::multiset<unsigned_int>::insert(parentSlot);
|
||||
}
|
||||
pEVar3->Update();
|
||||
(**(code **)(*GHIDRA_CAST<int *>(pEVar3) + 0xc))();
|
||||
return pEVar3;
|
||||
}
|
||||
|
||||
@@ -1550,7 +1550,7 @@ Entity_Laser * Weapon::fire_laser(Vector *position, uint32_t offsetId, Vector *d
|
||||
uVar5 = Random();
|
||||
Entity_Player::GetTearHitParams
|
||||
(local_e4,&TStack_a8,3,savedDamageScale,(uVar5 & 1) * 2 + -1,pEVar3);
|
||||
pEVar4->SetCollisionDamage(TStack_a8._tearDamage);
|
||||
(**(code **)(*GHIDRA_CAST<int *>(pEVar4) + 0x40))(TStack_a8._tearDamage);
|
||||
pEVar4->_mass = fStack_54 * pEVar4->_mass;
|
||||
}
|
||||
}
|
||||
@@ -1691,7 +1691,7 @@ Entity_Knife * Weapon::FireSword(Entity *param_2, uint32_t param_3, float param_
|
||||
randomValue = Random();
|
||||
Entity_Player::GetTearHitParams
|
||||
(parentRef,&hitParams,0xd,1.0,(randomValue & 1) * 2 + -1,GHIDRA_CAST<Entity *>(source));
|
||||
knife->SetColor(&hitParams._tearColor,0xffffffff,0xff,0,1);
|
||||
(**(code **)(*GHIDRA_CAST<int *>(knife) + 0x3c))(&hitParams._tearColor,0xffffffff,0xff,0,1);
|
||||
owner = *GHIDRA_CAST<int *>(knife);
|
||||
*GHIDRA_CAST<float *>(&(knife->_tearFlags)._l) = hitParams._tearColor._colorize[3];
|
||||
*GHIDRA_CAST<float *>((GHIDRA_INT(&(knife->_tearFlags)._l) + 4)) = hitParams._tearColor._offset[0];
|
||||
@@ -1901,7 +1901,7 @@ LAB_009f8615:
|
||||
}
|
||||
trigger_set_dispatch
|
||||
((void *)(GHIDRA_INT(player) + 0x1fc8),1,GHIDRA_CAST<Entity *>(0x0),&triggerPos,GHIDRA_CAST<Vector *>(local_238));
|
||||
isHasCollectible = (GHIDRA_CAST<Entity_Player *>((player)))->Entity_Player::HasCollectible(0xd9,0);
|
||||
isHasCollectible = Entity_Player::HasCollectible(player,0xd9,0);
|
||||
if (isHasCollectible != 0) {
|
||||
FUN_009f3c10();
|
||||
fVar6 = fVar6 + fVar6;
|
||||
@@ -1912,7 +1912,7 @@ LAB_009f8615:
|
||||
if (((local_2ac == (EntityPtr)0x0) || (uVar3 = Random(), uVar3 % GHIDRA_UINT(local_2ac) == 0)) &&
|
||||
((local_2ac = *GHIDRA_CAST<EntityPtr *>((GHIDRA_CAST<char *>(player) + 0x1370)),
|
||||
GHIDRA_UINT(local_2ac) <= GHIDRA_CAST<Entity *>(&DAT_00000004) ||
|
||||
(((isHasCollectible = (GHIDRA_CAST<Entity_Player *>((player)))->Entity_Player::HasCollectible(0xf8,0),
|
||||
(((isHasCollectible = Entity_Player::HasCollectible(player,0xf8,0),
|
||||
isHasCollectible != 0 ||
|
||||
(isHasCollectible =
|
||||
TemporaryEffects::HasCollectibleEffect
|
||||
@@ -1933,7 +1933,7 @@ LAB_009f8615:
|
||||
spawn_blue_spider(&spiderPos,GHIDRA_CAST<Entity *>(player),&g_vectorZero);
|
||||
}
|
||||
}
|
||||
isHasCollectible = (GHIDRA_CAST<Entity_Player *>((player)))->Entity_Player::HasCollectible(0x23d,0);
|
||||
isHasCollectible = Entity_Player::HasCollectible(player,0x23d,0);
|
||||
if (isHasCollectible != 0) {
|
||||
uVar3 = Random();
|
||||
if ((uVar3 & 3) == 0) {
|
||||
@@ -2007,7 +2007,7 @@ LAB_009f7c88:
|
||||
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(flags_02._h)) + 0x0))) = uStack_208;
|
||||
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(flags_02._h)) + 0x4))) = uStack_204;
|
||||
local_2a0 = tear;
|
||||
(GHIDRA_CAST<Entity_Tear *>((tear)))->Entity_Tear::SetTearFlags(flags_02);
|
||||
Entity_Tear::SetTearFlags(tear,flags_02);
|
||||
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_1c0)) + 0x28))) = (tear->_sprite)._color._offset[2];
|
||||
tearTint._colorize[0] = 0.0;
|
||||
tearTint._colorize[1] = 0.0;
|
||||
@@ -2042,12 +2042,12 @@ LAB_009f7c88:
|
||||
heartOffset0 = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&((float)local_1c0)) + 0x20)));
|
||||
heartOffset1 = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&((float)local_1c0)) + 0x24)));
|
||||
fVar6 = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&((float)local_1c0)) + 0x20)));
|
||||
tear->SetColor();
|
||||
(**(code **)(*GHIDRA_CAST<int *>(tear) + 0x3c))();
|
||||
player = GHIDRA_CAST<Entity_Player *>(VStack_290.y);
|
||||
}
|
||||
}
|
||||
if ((*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(player) + 0x2ef8)) == 0) || (*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(player) + 0x2ef8)) != 0x9d)) {
|
||||
iVar9 = (GHIDRA_CAST<Entity_Player *>((player)))->Entity_Player::GetTrinketMultiplier(0x9d);
|
||||
iVar9 = Entity_Player::GetTrinketMultiplier(player,0x9d);
|
||||
bVar5 = false;
|
||||
bVar4 = iVar9 == 0;
|
||||
LAB_009f7fe7:
|
||||
@@ -2055,7 +2055,7 @@ LAB_009f7fe7:
|
||||
}
|
||||
else {
|
||||
if (*GHIDRA_CAST<char *>((GHIDRA_CAST<char *>(player) + 0x2ef0)) == '\0') {
|
||||
iVar1 = (GHIDRA_CAST<Entity_Player *>((player)))->Entity_Player::GetTrinketMultiplier(0x9d);
|
||||
iVar1 = Entity_Player::GetTrinketMultiplier(player,0x9d);
|
||||
bVar5 = SBORROW4(iVar1,1);
|
||||
iVar9 = iVar1 + -1;
|
||||
bVar4 = iVar1 == 1;
|
||||
@@ -2063,7 +2063,7 @@ LAB_009f7fe7:
|
||||
}
|
||||
LAB_009f7ff2:
|
||||
local_2a8.y = 2.10195e-44;
|
||||
iVar9 = (GHIDRA_CAST<Entity_Player *>((player)))->Entity_Player::GetTrinketMultiplier(0x9d);
|
||||
iVar9 = Entity_Player::GetTrinketMultiplier(player,0x9d);
|
||||
if (iVar9 == 2) {
|
||||
local_2a8.y = 1.4013e-44;
|
||||
}
|
||||
@@ -2072,7 +2072,7 @@ LAB_009f7ff2:
|
||||
}
|
||||
if (*GHIDRA_CAST<uint32_t *>(((uint32_t)weapon + 1)) % GHIDRA_UINT(local_2a8.y) == 0) {
|
||||
Entity_Player::GetTearHitParams();
|
||||
isHasCollectible = (GHIDRA_CAST<Entity_Player *>((player)))->Entity_Player::HasCollectible(0x95,0);
|
||||
isHasCollectible = Entity_Player::HasCollectible(player,0x95,0);
|
||||
if (isHasCollectible == 0) {
|
||||
fStack_10c = fStack_10c + 40.0;
|
||||
fStack_108 = fStack_108 + 0.3;
|
||||
@@ -2123,27 +2123,27 @@ LAB_009f7ff2:
|
||||
Game::SpawnEx(g_game,2,tornCardVariant,GHIDRA_CAST<Vector *>((auStack_248 + 4)),&local_2a8,
|
||||
GHIDRA_CAST<Entity *>(player),0,uVar3,0);
|
||||
tear->_height = tornCardHeight;
|
||||
fVar6 = (GHIDRA_CAST<Entity_Tear *>((tear)))->Entity_Tear::get_height_offset_y(tornCardHeight);
|
||||
fVar6 = Entity_Tear::get_height_offset_y(tear,tornCardHeight);
|
||||
game = g_game;
|
||||
(tear->_posOffset).y = fVar6;
|
||||
if ((*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(game->_room) + 8)) == 0x10) &&
|
||||
(fVar6 = tear->_height, (tear->_posOffset).y = -18.0, -5.1 < fVar6)) {
|
||||
tear->_height = -5.1;
|
||||
}
|
||||
tear->SetCollisionDamage();
|
||||
(**(code **)(*GHIDRA_CAST<int *>(tear) + 0x40))();
|
||||
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(flags._l)) + 0x4))) = uStack_11c;
|
||||
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(flags._l)) + 0x0))) = uStack_120;
|
||||
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(flags._h)) + 0x0))) = uStack_118;
|
||||
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(flags._h)) + 0x4))) = uStack_114;
|
||||
(GHIDRA_CAST<Entity_Tear *>((tear)))->Entity_Tear::SetTearFlags(flags);
|
||||
Entity_Tear::SetTearFlags(tear,flags);
|
||||
fVar6 = fStack_10c;
|
||||
if (fStack_10c <= 0.01) {
|
||||
fVar6 = 0.01;
|
||||
}
|
||||
tear->_baseScale = fVar6;
|
||||
tear->_fScale = fVar6;
|
||||
(GHIDRA_CAST<Entity_Tear *>((tear)))->Entity_Tear::ResetSpriteScale();
|
||||
tear->SetColor(tornCardColor,0xffffffff,0xff,0,1);
|
||||
Entity_Tear::ResetSpriteScale(tear);
|
||||
(**(code **)(*GHIDRA_CAST<int *>(tear) + 0x3c))(tornCardColor,0xffffffff,0xff,0,1);
|
||||
if (tear->_parent != (EntityPtr)0x0) {
|
||||
msvc::multiset<unsigned_int>::erase(auStackY_374 + 0x9c);
|
||||
}
|
||||
@@ -2159,7 +2159,7 @@ LAB_009f7ff2:
|
||||
fVar6 = 0.01;
|
||||
}
|
||||
tear->_fallingSpeed = ((-5.0 - tear->_height) - (50.0 - fVar6) * 9.0) / fVar6;
|
||||
tear->Update();
|
||||
(**(code **)(*GHIDRA_CAST<int *>(tear) + 0xc))();
|
||||
fVar6 = (tear->_pos).x - (tear->_velocity).x;
|
||||
fVar8 = (tear->_velocity).y;
|
||||
(tear->_pos).x = fVar6;
|
||||
@@ -2185,11 +2185,11 @@ LAB_009f7ff2:
|
||||
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(auStack_248)) + 0x0))) = *GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(owner) + 0x33c));
|
||||
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(auStack_248)) + 0x4))) = *GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(owner) + 0x340));
|
||||
}
|
||||
(GHIDRA_CAST<Entity_Player *>((player)))->Entity_Player::AddBlueFlies(1,GHIDRA_CAST<Vector *>(auStack_248),GHIDRA_CAST<Entity *>(0x0));
|
||||
Entity_Player::AddBlueFlies(player,1,GHIDRA_CAST<Vector *>(auStack_248),GHIDRA_CAST<Entity *>(0x0));
|
||||
}
|
||||
}
|
||||
isBirdsEye = (GHIDRA_CAST<Entity_Player *>((player)))->Entity_Player::HasCollectible(0x268,0);
|
||||
isGhostPepper = (GHIDRA_CAST<Entity_Player *>((player)))->Entity_Player::HasCollectible(0x1ef,0);
|
||||
isBirdsEye = Entity_Player::HasCollectible(player,0x268,0);
|
||||
isGhostPepper = Entity_Player::HasCollectible(player,0x1ef,0);
|
||||
if ((isBirdsEye == 0) || (isGhostPepper == 0)) {
|
||||
local_2a8.x = 2.8026e-45;
|
||||
if (isBirdsEye == 0) {
|
||||
@@ -2222,7 +2222,7 @@ LAB_009f84ed:
|
||||
if (isBirdsEye == 0) {
|
||||
if (isGhostPepper != 0) {
|
||||
LAB_009f858f:
|
||||
local_2ac = (EntityPtr)(GHIDRA_CAST<Entity_Player *>((player)))->Entity_Player::ShootBlueCandle(GHIDRA_CAST<Vector *>(auStack_240));
|
||||
local_2ac = (EntityPtr)Entity_Player::ShootBlueCandle(player,GHIDRA_CAST<Vector *>(auStack_240));
|
||||
if (1 < *GHIDRA_CAST<int *>(&g_game->_deathmatchManager)) {
|
||||
Random();
|
||||
Entity_Player::GetTearHitParams();
|
||||
@@ -2239,10 +2239,10 @@ LAB_009f858f:
|
||||
uVar3 = Random();
|
||||
if ((uVar3 & 1) != 0) goto LAB_009f858f;
|
||||
}
|
||||
(GHIDRA_CAST<Entity_Player *>((player)))->Entity_Player::ShootRedCandle(GHIDRA_CAST<Vector *>(auStack_240));
|
||||
Entity_Player::ShootRedCandle(player,GHIDRA_CAST<Vector *>(auStack_240));
|
||||
*GHIDRA_CAST<int *>((weapon + 1)) = *GHIDRA_CAST<int *>((weapon + 1)) + 1;
|
||||
LAB_009f8620:
|
||||
isHasCollectible = (GHIDRA_CAST<Entity_Player *>((player)))->Entity_Player::HasCollectible(0x1c2,0);
|
||||
isHasCollectible = Entity_Player::HasCollectible(player,0x1c2,0);
|
||||
if (isHasCollectible != 0) {
|
||||
if (*GHIDRA_CAST<uint32_t *>((weapon + 1)) % 0x14 == 0) {
|
||||
Entity_Player::GetTearHitParams();
|
||||
@@ -2291,7 +2291,7 @@ LAB_009f8620:
|
||||
Game::SpawnEx(g_game,2,0x14,GHIDRA_CAST<Vector *>((auStack_240 + 4)),&VStack_290,
|
||||
GHIDRA_CAST<Entity *>(player),0,uVar3,0);
|
||||
tear->_height = hitParamsHeight;
|
||||
fVar6 = (GHIDRA_CAST<Entity_Tear *>((tear)))->Entity_Tear::get_height_offset_y(hitParamsHeight);
|
||||
fVar6 = Entity_Tear::get_height_offset_y(tear,hitParamsHeight);
|
||||
game = g_game;
|
||||
(tear->_posOffset).y = fVar6;
|
||||
if ((*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(game->_room) + 8)) == 0x10) &&
|
||||
@@ -2299,7 +2299,7 @@ LAB_009f8620:
|
||||
tear->_height = -5.1;
|
||||
}
|
||||
if (*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(player) + 0x1368)) < 1) {
|
||||
tear->SetCollisionDamage();
|
||||
(**(code **)(*GHIDRA_CAST<int *>(tear) + 0x40))();
|
||||
greedFlags0 = hitParamsFlags0 | GHIDRA_UINT(g_tearFlagMidas._l);
|
||||
uVar3 = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(g_tearFlagMidas._l)) + 0x4))) | hitParamsFlags1;
|
||||
greedFlags2 = hitParamsFlags2 | GHIDRA_UINT(g_tearFlagMidas._h);
|
||||
@@ -2310,8 +2310,8 @@ LAB_009f8620:
|
||||
uStack_1fc = uVar2;
|
||||
}
|
||||
else {
|
||||
(GHIDRA_CAST<Entity_Player *>((player)))->Entity_Player::AddCoins(-1);
|
||||
tear->SetCollisionDamage();
|
||||
Entity_Player::AddCoins(player,-1);
|
||||
(**(code **)(*GHIDRA_CAST<int *>(tear) + 0x40))();
|
||||
greedFlags0 = hitParamsFlags0 | GHIDRA_UINT(g_tearFlagMidas._l) | GHIDRA_UINT(g_tearFlagCoinDrop._l);
|
||||
uVar3 = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(g_tearFlagMidas._l)) + 0x4))) | hitParamsFlags1 | (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(g_tearFlagCoinDrop._l)) + 0x4)));
|
||||
greedFlags2 = hitParamsFlags2 | GHIDRA_UINT(g_tearFlagMidas._h) | GHIDRA_UINT(g_tearFlagCoinDrop._h);
|
||||
@@ -2325,7 +2325,7 @@ LAB_009f8620:
|
||||
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(flags_00._l)) + 0x0))) = greedFlags0;
|
||||
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(flags_00._h)) + 0x0))) = greedFlags2;
|
||||
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(flags_00._h)) + 0x4))) = uVar2;
|
||||
(GHIDRA_CAST<Entity_Tear *>((tear)))->Entity_Tear::SetTearFlags(flags_00);
|
||||
Entity_Tear::SetTearFlags(tear,flags_00);
|
||||
if (tear->_parent != (EntityPtr)0x0) {
|
||||
msvc::multiset<unsigned_int>::erase(auStackY_374 + 0xb0);
|
||||
}
|
||||
@@ -2339,7 +2339,7 @@ LAB_009f8620:
|
||||
((float)((double)GHIDRA_INT(uVar3) + __uint_to_double_fixup[-(GHIDRA_INT(uVar3) >> 0x1f)]) *
|
||||
2.3283064e-10 * 0.2 - *GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(player) + 0x1478))) - 7.0;
|
||||
tear->_fallingAccel = *GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(player) + 0x147c)) * 0.01;
|
||||
tear->Update();
|
||||
(**(code **)(*GHIDRA_CAST<int *>(tear) + 0xc))();
|
||||
manager = g_manager;
|
||||
fVar6 = (tear->_pos).x - (tear->_velocity).x;
|
||||
fVar8 = (tear->_velocity).y;
|
||||
@@ -2352,7 +2352,7 @@ LAB_009f8620:
|
||||
weapon = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<Weapon *>(local_288))) + 0x0)));
|
||||
}
|
||||
}
|
||||
isHasCollectible = (GHIDRA_CAST<Entity_Player *>((player)))->Entity_Player::HasCollectible(0x1bc,0);
|
||||
isHasCollectible = Entity_Player::HasCollectible(player,0x1bc,0);
|
||||
if ((isHasCollectible != 0) && (*GHIDRA_CAST<uint32_t *>((weapon + 1)) % 0xf == 0)) {
|
||||
local_2ac = (EntityPtr)0xc;
|
||||
do {
|
||||
@@ -2400,19 +2400,19 @@ LAB_009f8620:
|
||||
Game::SpawnEx(g_game,2,hitParamsVariant,pencilSpawnPos,GHIDRA_CAST<Vector *>((local_238 + 4)),
|
||||
GHIDRA_CAST<Entity *>(player),0,uVar3,0);
|
||||
tear->_height = hitParamsHeight;
|
||||
fVar6 = (GHIDRA_CAST<Entity_Tear *>((tear)))->Entity_Tear::get_height_offset_y(hitParamsHeight);
|
||||
fVar6 = Entity_Tear::get_height_offset_y(tear,hitParamsHeight);
|
||||
game = g_game;
|
||||
(tear->_posOffset).y = fVar6;
|
||||
if ((*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(game->_room) + 8)) == 0x10) &&
|
||||
(fVar6 = tear->_height, (tear->_posOffset).y = -18.0, -5.1 < fVar6)) {
|
||||
tear->_height = -5.1;
|
||||
}
|
||||
tear->SetCollisionDamage();
|
||||
(**(code **)(*GHIDRA_CAST<int *>(tear) + 0x40))();
|
||||
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(flags_01._l)) + 0x4))) = hitParamsFlags1;
|
||||
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(flags_01._l)) + 0x0))) = hitParamsFlags0;
|
||||
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(flags_01._h)) + 0x0))) = hitParamsFlags2;
|
||||
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(flags_01._h)) + 0x4))) = hitParamsFlags3;
|
||||
(GHIDRA_CAST<Entity_Tear *>((tear)))->Entity_Tear::SetTearFlags(flags_01);
|
||||
Entity_Tear::SetTearFlags(tear,flags_01);
|
||||
uVar3 = Random();
|
||||
uVar2 = Random();
|
||||
fVar6 = (((float)(uVar3 & 1) + 0.0) * 0.4 + 0.9 +
|
||||
@@ -2423,8 +2423,8 @@ LAB_009f8620:
|
||||
}
|
||||
tear->_baseScale = fVar6;
|
||||
tear->_fScale = fVar6;
|
||||
(GHIDRA_CAST<Entity_Tear *>((tear)))->Entity_Tear::ResetSpriteScale();
|
||||
tear->SetColor(hitParamsColor,0xffffffff,0xff,0,1);
|
||||
Entity_Tear::ResetSpriteScale(tear);
|
||||
(**(code **)(*GHIDRA_CAST<int *>(tear) + 0x3c))(hitParamsColor,0xffffffff,0xff,0,1);
|
||||
if (tear->_parent != (EntityPtr)0x0) {
|
||||
msvc::multiset<unsigned_int>::erase(auStackY_374 + 0xa8);
|
||||
}
|
||||
@@ -2439,7 +2439,7 @@ LAB_009f8620:
|
||||
(float)((double)GHIDRA_INT(uVar3) + __uint_to_double_fixup[-(GHIDRA_INT(uVar3) >> 0x1f)]) *
|
||||
2.3283064e-10 * 0.2 - *GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(player) + 0x1478));
|
||||
tear->_fallingAccel = *GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(player) + 0x147c));
|
||||
tear->Update();
|
||||
(**(code **)(*GHIDRA_CAST<int *>(tear) + 0xc))();
|
||||
game = g_game;
|
||||
fVar6 = (tear->_pos).x - (tear->_velocity).x;
|
||||
fVar8 = (tear->_velocity).y;
|
||||
@@ -2455,9 +2455,9 @@ LAB_009f8620:
|
||||
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(flags_03._h)) + 0x0))) = pvpFlags2;
|
||||
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(flags_03._h)) + 0x4))) = pvpFlags3;
|
||||
pvpFlags0 = fVar6;
|
||||
(GHIDRA_CAST<Entity_Tear *>((tear)))->Entity_Tear::SetTearFlags(flags_03);
|
||||
Entity_Tear::SetTearFlags(tear,flags_03);
|
||||
}
|
||||
isHasCollectible = (GHIDRA_CAST<Entity_Player *>((player)))->Entity_Player::HasCollectible(0x95,0);
|
||||
isHasCollectible = Entity_Player::HasCollectible(player,0x95,0);
|
||||
if (isHasCollectible == 0) {
|
||||
tear->_fallingAccel = *GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(player) + 0x147c)) + 0.5;
|
||||
uVar3 = Random();
|
||||
|
||||
Reference in new issue
Block a user