Files
isaac-port/generated-src/isaac_repentance_plus/weapon.cpp
T
shweetandClaude Opus 5.5 b85591bdf4 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>
2026-11-20 05:33:11 -05:00

38 lines
1.2 KiB
C++

#include "classes.h"
// 009f3290
IsaacRepentancePlus::Weapon::~Weapon()
{
Entity_Player *pEVar1;
Entity_Player *ownerPlayer;
uint32_t *technology2LaserRef;
Weapon *local_14;
void *local_10;
uint8_t *puStack_c;
uint32_t uStack_8;
uStack_8 = 0xffffffff;
puStack_c = &LAB_00af09f0;
local_10 = ExceptionList;
ExceptionList = &local_10;
pEVar1 = *GHIDRA_CAST<Entity_Player **>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x4))));
*GHIDRA_CAST<uint8_t ***>(this) = vftable;
if ((((pEVar1 == GHIDRA_CAST<Entity_Player *>(0x0)) || (ownerPlayer = pEVar1, pEVar1->_type != 1)) &&
(ownerPlayer = GHIDRA_CAST<Entity_Player *>(0x0), pEVar1 != GHIDRA_CAST<Entity_Player *>(0x0))) && (pEVar1->_type == 3))
{
pEVar1->_chargeBarSprites[5]._numEvents = 0;
}
else if (ownerPlayer != GHIDRA_CAST<Entity_Player *>(0x0)) {
local_14 = this;
::Entity_Player::stop_costume_item_anims(ownerPlayer);
}
technology2LaserRef = &this->_technology2Laser;
if (*technology2LaserRef != 0) {
local_14 = GHIDRA_CAST<Weapon *>(technology2LaserRef);
msvc::multiset<unsigned_int>::erase(&local_14);
*technology2LaserRef = 0;
}
ExceptionList = local_10;
return;
}