diff --git a/README.md b/README.md index 3fe4204..cc12b19 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ so parallel live calls work too. Set `DECOMP_TIMEOUT=secs` for big functions (de | prefix | source | trust | |---|---|---| -| `NpcAI::ENTITY_` | NPC AI dispatch table, named by the first entity type that uses it | high | +| `NpcAI::ENTITY_` | NPC AI dispatch table, named by the first entity type that uses it | high, but it is the first call in the case block: if one has many callers it is a shared helper (that is how ProjectileParams::ProjectileParams got called ENTITY_GEMINI) | | `Entity_Player::UseActiveItem`, `Sprite::Play`, `Game::GetRoom` ... with comment `ZHL [lua]` | the game's own Lua API registration (method name -> C++ function) | high, but see the ICF note | | comment `ZHL [exact]` | REPENTOGON byte signature, exact unique match | high for long sigs; short sigs can hit the wrong function; where the Lua table disagrees, db/names.tsv records the Lua name (e.g. 007ab380 is `Entity_Player::AnimateCollectible`, not HasCollectible) | | comment `ZHL [prefixN/M]` | the sig failed (version drift); the longest unique prefix of N of M bytes matched | medium | diff --git a/db/names.tsv b/db/names.tsv index c6ecd44..a9d06d4 100644 --- a/db/names.tsv +++ b/db/names.tsv @@ -390,3 +390,341 @@ 009be670 PlayerManager::are_all_players_tainted_blue_baby loops players: false if any non-twin is not type 0x19; Pickup_PickVariant/Init turn bombs into poop nuggets (characters-8) 007729d0 Entity_Player::take_damage_impl player damage: hallowed ground 50% block (RandomInt(2)), then LuaEngine::EntityTakeDamage (characters-8) 007db330 Game::damage_cooldown_scale returns ticks, or ticks>>3 (min 1) when game field 0x26614 >= 2 (characters-8) +# +# NpcTable takes the first call in a dispatcher case; for these two that call is a shared helper, not the AI (157/146 callers) +0043ef30 ProjectileParams::ProjectileParams inits scale 1, TargetPosition Vector at +0x68 (Lua ProjectileParams field+0x68); Gemini case builds params first +0041af60 EntityList::QuerySublist ? EL: copy/push_back strings, 157 callers on Room+0x1218; Mask case calls it first (Mask AI not identified) +# +# Tier 2: helpers called 2-4 times from named gameplay code (6 subagents, 2026-10-24). "?" note = best guess +00a1dfd0 render_color_shader_pass binds "KAGE_ColorShader" when avg of 4 color components nonzero, used by Game::Render overlays +009586f0 string_table_translate if text starts with '#' looks key up in string table (e.g. "#YOU_FEEL_BLESSED"), else returns as-is +007cf8c0 Entity_Player::IsLocalPlayer true when no netplay else NetplayManager::IsIdxLocalPlayer(this+0x1618) +00705b90 Game::AttractEntities loops room entities in radius, pulls velocity toward pos with optional filter callback; Game::UpdateStrangeAttractor(pos,0,0) +006827a0 angle_lerp_shortest ? wraps two angles to [-180,180] and handles shortest-direction difference; used by Laser::RotateToAngle +0060dc40 Entity_Familiar::apply_tear_modifiers ? checks collectibles 247/248 (BFFS/Hive Mind) and trinket 89 when familiar fires tears +004cf1d0 EntityPtr::Set swaps held entity pointer, erase/insert into refcount multiset +00436220 Entity::SetVisibleFlag ? sets this+0xc3c=1 unless arg false or flag 0x20000000 (FLAG_FRIENDLY/charmed) +00428910 Entity::SetVelocity copies Vector to this+0x360/0x364 (velocity) +00417160 sinf_wrapper ? body only calls sin(); ICF-foldable +00a10d00 render_quad_set_uniform_color ? fills quad vertex struct with same color (5 dwords per corner); Game/Room render +009bea40 vector_iterate_noop ? empty loop over vector, ICF-foldable +00959130 Game::DeleteSaveState non-netplay: GameState::Delete(manager+0xfa4), clears flag; called from End/Exit/FinishChallenge +00780ec0 Entity_Player::check_bomb_tearflags ? HasCollectible 106 (Mr Mega) / 420 or tearflags mask test +00707370 Game::GetNearestEnemy ? scans room entities for nearest valid vulnerable target in radius, skipping friendly/descendants; used by GetPlayerTarget +006b68c0 spawn_rock_particles spawns 8-13 EffectVariant 99 particles around pos scaled by dir, if room flag >0.2; Fissure/Big Horn +006a89d0 Entity::GetLastSpawner walks this+0x3c8 (_spawnerEntity) chain to root +00665c20 Entity_Player::GetTearHitParams_copy ? copies 0x2c bytes from player+0x14c4 (tear/weapon params) into out +00557b00 std::set::find set find_node, returns end if not found; used by HasCollectible +004bb830 NpcHelper::hornfel_set_anim ? if state==3 sets/rewinds animation DAT_00b1d644 if not current +004561a0 std::iterator_copy ? *out=*this, ICF-foldable +00435db0 Entity::GetHitPointsLost ? (int)maxHP(0x3a4) - (int)HP(0x3a0) +0042a250 Entity::IsFamiliar type (this+0x28)==3 ENTITY_FAMILIAR +0040bbf0 AnimationState::copy_assign ? 0x40+ byte struct copy; used by Effect/Laser render +00a1af90 Font::DrawString ? builds text layout then draws with color param_2; Console::RenderHistory +009f7930 Weapon::TriggerTearEffects ? spawns synergy tears/candles/coins/flies per tick along dir; Brimstone::Fire and other weapons +009dcc70 ItemPool::CreateGlitchedCollectible TMTRAINER (721) path in GetCollectible; "initialized with %d effects (score: %g)", cap 0x400 reuse +009adaf0 RoomDescriptor::Init ? sets defaults (-1 grid arrays, 0x900000005 rng shifts); Level::generate_dungeon +009807a0 Game::ShowFortuneText picks random line of string category ("Fortune_General") via string table RNG and shows it; ShowFortune/ShowRule +009680d0 Entity_Knife::SetAttackAnimation ? picks AttackUp/Down/Left/Right / Swing by rotation (this+0x440) for variants 10/11 +009305c0 vector_contains_int ? returns true if param in this+4..+8 vector unless this+0x11 set; UsePill/EvaluateItems +00866060 Entity::ReleaseLuaRef luaL_unref of entity's lua object on remove when lua enabled +0082c600 Level::GetCurseNameByIdx looks up curse name string, translating '#' keys in "Curses" table +007ef420 Entity_Pickup::RestoreState applies saved pickup data (charge, price, shopItemId, touched); Room::RestoreState +007df690 Music::SetPitchAll ? sets pitch float on main + 6 layer tracks if playing; Music::ResetPitch +007d7740 Entity_Player::UpdateFamiliarCounts ? counts familiars (type 3 var 0xed etc.) in std::set; ResetPlayer / Familiar::Kill +007cbb90 Entity_Player::GetGreedDonationJamChance ? from greed donation count *0.023, capped 100; Slot::Update, GetGreedDonationBreakChance +00772260 Entity_Player::TryRemoveSmeltedTrinket "Removing smelted trinket %d (%s) from player %d (%s)" +007596a0 Entity_Player::SyncConsumables copies coins/keys/bombs/golden key/bomb/soul charge from shared source by mask bits +0074c540 Level::GetNeighborRoomIdx ? computes neighbour room index for door slot, -1 if door not allowed; generate_greed +00724af0 PocketItemConfig::GetName translates '#' names in "PocketItems" table +006f0070 Game::IsRoomTransitionActive ? returns this[0]!=0 && this[0x8e]!=0 +006dae40 Entity_Pickup::GetChestLoot chest content picker with trinket modifiers (0x16,0x2d,0x2c), WeightedOutcomePicker; TryOpenChest +006d8cf0 Entity_NPC::ClearChild kills/clears EntityPtr at this+0xf28; Para-Bite, Baby +006c15c0 NpcHelper::charger_update_move_anim sets move animation by velocity direction (Charger L2, Revenant) +006b82b0 Entity::SetColor copies KColor (0x2c bytes) to this+0xd4 +006a0d30 std::vector::reserve_clear vector reallocate (clears and allocates capacity) +006836c0 pop_render_target "PopRenderTarget: stack is empty!" +006668c0 Entity_Tear::apply_wiggle ? sinusoidal offset perpendicular to velocity (wiggle worm style), flag 0x450&1 phase +00651990 map_find_value ? returns found node +0x14 (map value) +006393a0 spawn_dip_at ? spawns friendly dip (via FUN_00639000) with jump velocity toward pos, random pos if null; Poop, ThrowFriendlyDip +0062a8f0 Entity_Familiar::CanPlayerFire ? player not dead/frozen and room flag clear; Blood Clot, Familiar::Update +005cd460 Entity::AddFlagsLow ? this+0x110 |= flags, ICF-foldable +00589f90 Room::CanSpawnObstacleAtPos converts pos to grid xy (40px, top 120) and calls Room::CanSpawnObstacleAtPosition; Singe, Wormwood +00505b50 set_byte_0x101 ? ICF-foldable setter this+0x101 +004cee90 NpcHelper::minecart_break plays sound 481, spawns particles, clears EntityPtr at +0x3c0; Minecart/Hornfel +00499da0 Entity::ToPlayer returns this if type==1 else null +00447720 set_field_0x37c ? ICF-foldable setter this+0x37c +00435e40 Entity::ToTear returns this if type==2 else null +00431540 Entity::IsProjectile type==9 check +0042b560 ItemPool::ReplaceBlacklistedPickup ? for pickup variant 300/350 rerolls card/trinket until not blocked; SpawnEx, Pickup::Morph +0041d030 std::map::destroy_subtree recursive red-black tree node free +0040cdd0 std_min_ptr min of two uint pointers, ICF-foldable +00945130 ring_buffer_push circular buffer of 8-byte elems, overwrites oldest +006e17c0 Entity_Pickup::UpdateLootPreview Guppys Eye 665 on chest/sack, CreateLootPreview at +0x590 +005cc070 RNG::Shuffle Fisher-Yates over int range with xorshift RNG in ECX +004b0f50 std::deque::push_back deque 8-byte elems, _Growmap +004360f0 _get_index_plus_one_if_kind_4_5 ? ? returns [0]+1 when [1] is 4 or 5 +004288f0 Entity::SetPosition writes Vector to +0x33c (_pos) +00407380 _string_holder_c_str ? c_str of std::string* at +4 or empty fallback +00a105d0 Vector::__div_assign divides x,y in place by float +009ba000 PlayerManager::RemoveCoPlayer ZHL name; 'Clearing player color assignment', removes from player list ECX[0x34], baby skins +00816250 _Room::ResolveHeartSubType ? ? remaps negative pseudo heart subtypes by health type/Keeper/trinket multiplier; pickup Init/Morph +0075e320 Entity_Player::IncrementPlayerFormCounter ZHL sig shape; +0x17dc[16] form counts, form costumes, TryUnlock +007069a0 Game::GetNearestTargetPlayer ? iterates players, decoys/friendly checks; used by Entity_NPC::GetPlayerTarget +006b66a0 Entity::MakeGroundPoofAtSelf MakeGroundPoof(this,&this->_pos,arg) +00684b90 hsv_to_rgb hue/60 sextant switch, chroma*value +00652a90 _has_flag_0x110 ? ? (this+0x110 & mask)!=0 +00505b80 _Entity_NPC::GetColorWithFlash ? ? copies Color, multiplies when +0xc>0; NPC ResetColor/Update +004b6a90 std::deque::push_front 4-per-block deque front insertion +00452be0 _ptr_deref_or_minus1 ? ? returns *ptr or -1 +00435d60 Entity::SetTargetPosition writes +0x334/+0x338 (_targetPosition) +00426980 std::vector::_Tidy frees 8-byte element vector +0040a7c0 _empty_check_0x34 ? ? empty body, ICF +00a19180 _glfw_context_reset ? ? GLFW context.c, resets hints +009f5a30 Weapon::GetOwnerLaserOffset owner player GetLaserOffset or familiar(type 3) variant +009bfa00 PlayerManager::GetNumAlivePlayers ? counts main non-ghost non-twin players without +0x20a9 +009a90b0 _player_hud_set_heart_anim_state ? ? finds player in 8 entries stride 0x6dc, sets byte 4 +00980430 std::vector::_Insert_n grow/insert 8-byte elems; laser render +00967180 Entity_Knife::UpdateHomingPath ? knife homing path, InitHomingPath, spawns +0092aea0 PersistentGameData::TryAddBestiaryEncounter ? GetBestiaryConfig, encounter set, Steam achievement +00857220 ScoreSheet::LoadAnm2 ? loads ScoreMenu/LeaderboardMenu anm2 in LoadConfigXmls +0082c310 Game::LoadMinibossesXml ? 'minibosses'/'miniboss' xml parse +007eeeb0 Entity_Pickup::CanFlip ? flip validity checks, used by TryFlip/HandleCollision +007dc2d0 _Entity_Player::SpawnTrinketRandomPickup ? ? trinket RNG +0x177c, random of 5 variants, SpawnEx pickup +007d2000 Entity_Player::InitTwin SpawnCoPlayer, sets _otherTwin +0x1e68, offsets positions +-20 +007c8050 Entity_Player::AddImmaculateConceptionCounter Immaculate Conception 413 counter +0x1930, spawn heart +007716c0 is_trinket_unpickable_id ? trinket id&0x7fff ==41 or 135 +007525e0 std::vector::assign memmove copy-assign 4-byte vector +0074bae0 _RoomDescriptor::GetShapeGridCount ? ? greed mode check, shape 4/5 branches +0070c000 Entity::DestroyRockGridAt ? rubble anm, RegisterRockDestroyed, PlayBreakSound; tear/projectile +006eed30 Entity_Pickup::AssignOptionsIndex ? max +0x528 over pickups +1 +006dac30 log_precise libm log wrapper +006d81c0 Entity_NPC::ClearDequeRefs ? clears EntityPtr deque at +0xbf0 +006baa70 _NpcHelper::spider_load_graphics ? ? load_graphics + anm path redirect, spider AIs +006b7d20 _Entity::GetAncestorField ? ? lookup +0x14 +0069f990 Color::copy_constructor_ext ? copies Color + 3 strings; ICF-ish +0067a720 Entity::GetRootParent walks +0x3c8 parent chain, checks type 1 +006518f0 set_iterator_post_increment tree iterator ++ +00634a40 Entity_Familiar::ResolveOrbitConflict ? +0xda4 orbit, compares +0x410 +0060d180 Entity_Familiar::GetPlayerSlot ? matches player +0x1618 controller in 4 slots +00499270 _range_to_span ? ? builds {start,0,count} +004476a0 Color::Color sets white then copies tint +00435d20 Entity::SetField380 ? stores +0x380 +00431530 Entity::IsTear type==2 +00428940 Seeds::Init3 ? draws seeds into +0x58.. via xorshift +0041c770 shared_ptr::assign refcount vtable acquire/release +00407320 _get_name_string ? ? copies std::string at *this+8 +007bc740 Entity_Player::InitPostLevelInitStats own log string names it; challenge/daily starting items +0067d1f0 get_tear_flags_from_player ? builds TearFlags from bitmasks, Dead Eye-ish 0x97 chance, ancestor player +004bb550 NpcHelper::hornfel_get_rail_direction Room rail byte grid +0x746c -> direction vector +00505b40 pow_wrapper calls pow +00a10e70 render_quad_set_rect 4 verts from pos+size, 3x5 color floats +0085bed0 EntitySpawner::Spawn advances RNG then Game::Spawn with stored type/variant; shopkeeper/fireplace/chest loot +007911f0 Entity_Player::GetCollectibleMaxCharge per-item charge overrides then ItemConfig MaxCharges; caller GetActiveMaxCharge +006da850 std::deque::clear deque of 0x14 blocks freed +0064bb70 Entity::convert_shot_for_enemy_owner ? if owner chain has flag 0x100, respawns tear as projectile/attack fly/spider +005cbd20 std::vector::erase 0x130-byte ANM2 elements, costume add/remove +004b0e40 std::deque::assign 8-byte element deque copy +0041b4f0 EntityList::AddPersistentEntity "persistent list is full" log +00a1d710 render_color_quad KAGE_ColorShader, KColor::SetFromARGB +00a10510 Vector::Mul out = a * this componentwise +009b9480 PlayerManager::count_main_players ? skips players whose +0x1e68 sibling has lower controller idx +008151e0 Room::GetShopItemPrice log string +00753da0 Entity_Player::constructor sets Entity_Player vftable +006eee10 EntitySaveStateRef::Set ReferenceCount alloc +006b5f10 Entity::GetDebugShape DebugRenderer::Get(this+0x20) +00682f50 KColor::FromRGBA255 ints * 1/255 +006470c0 Entity_Familiar::get_item_config_entry ? calls ItemConfig collectible 0xd0 vector lookup +004f88a0 rng_pair_init ? two 0x16a9de81 seeds +00499230 std::deque::front deque index math +004174c0 buffer_init ? alloc param bytes +00a55d60 std::vector<12byte>::clear stride 0xc +00a18300 KAGE_Graphics::SetRenderTarget glBindFramebuffer + status logs +009f4280 Weapon::UpdateHeadChargeAnimation ? HeadDownCharge/FloatChargeSide anim names +009bea10 entity_vector_set_flag_410 sets byte +0x410 on each element +009a3410 PlayerHUD::show_pill_name ? pill use / pickup, netplay branch +009803e0 std::vector::erase 8-byte elements +009666c0 Entity_Knife::GetRootParent walks +0x3bc while type 8 +009294f0 PersistentGameData::Save "no filename supplied" +00838380 VictoryRunPrompt::Load ? Prompt_VictoryRun.png, LoadConfigXmls +007ebe20 ItemPool::get_pool_from_room_entities ? GetPoolForRoom, scans room spawns +007dbd70 Entity_Player::ModelingClay_roll seeded collectible stored +0x1fb8, costume; trinket added/new room +007cf8f0 Entity_Player::IsLocalPlayer ? NetplayManager::IsIdxLocalPlayer +007c2d50 get_tear_trinket_multiplier ? tear variant -> trinket multiplier +00771200 Entity_Player::IsInnateCollectible player-type specific item ids; caller HasCollectible +007523e0 Level::boss_count_adjust ? stage-type based counters; extra boss room +0073da40 Level::GetTargetSlot log "Level::get_target_slot" +0070bf80 is_grid_type_floor_special ? grid types 17/18/20/23 +006eea30 Entity_Pickup::MakeShopItem sets ShopItemId +0x53c, Price +0x534 via GetShopItemPrice +006d9320 Entity_NPC::apply_controller_movement GetControllerInput velocity; hopper/fat sack +006d5400 Entity_NPC::trigger_kill_item_effects ? Contagion/Athame/Friendly Ball/Book of Virtues owners +006b84e0 std::deque::push_back 0x14 entries, shopkeeper/fireplace loot +006b7250 Entity::GetLastParent walks +0x3c8 +0069dac0 std::vector<12byte>::_Tidy stride 0xc free +00678060 Entity_Tear::is_not_familiar_spawned ? +0x3bc type != 2... returns true +00665b00 Entity_Tear::GetRootPlayer walks +0x3c8, returns if type 1 +00651810 apply_forgotten_lullaby trinket 141 divides fire delay +00634260 Entity_Familiar::UpdateFollowPosition ? follower +0xd90..0xda4, GetFollowerPriority +0060d140 Entity_NPC::set_entity_ptr_f54 ? multiset EntityPtr at +0xf54; cage/tarboy +0060c620 Entity_Effect::ExtraDataRef::Set ReferenceCount +00558070 NpcHelper::willo_get_target_pos parent pos or player average +004f84a0 str_ne !str_eq +004b8a30 NpcHelper::hornfel_ride_minecart SetMinecartPosVel, state 10 +0041ab50 EntityList::query_player_capsule_hits ? Capsule::Collide over players +00a104b0 Vector::operator__ body: this.xy -= arg.xy +00833420 Ambush::StartChallenge closes doors unless Door Stop, plays challenge/bossrush music, room types 11/17 +007592a0 Entity_Player::UpdateBlackHeartMask repacks _blackHearts bitmask 0x1350 against _soulHearts 0x134c +006d7df0 Entity_NPC::FollowParentSegment ? worm segment: follows ParentNPC position history deque 0xc04, pushes own pos (max 64) +0063b4a0 Entity_Familiar::GetFollowTargetPosition ? out vec; orbit pos if 0xd70>=0, variant 120 free pickup spawn pos +004e8fa0 Entity_NPC::UpdateCordChain ? Evis/Vis Fatty/Dogma/Peeper Fatty cord points deque 0xc08 +00499960 EntityRef::operator_ ? copies 10 dwords; used by TakeDamage/AddBleeding/AddBaited +00a10350 Vector::FromAngle deg*pi/180 -> cos,sin +00a1aec0 Font::DrawStringScaled ? builds string, draws at scale 1,1 with KColor +009a1a30 HUD::LoadGraphics loads ui_hearts/hudpickups/chargebar anm2 and fonts +007db860 is_achievement_79_unlocked ? std::set find key 0x4f, byte vec 0x1fd4[0x8f]; called by GFuel/EvaluateItems +0074b830 Level::IsStageWithinEnd ? stage < 8 in greed, challenge EndStage 0x40, shovel 550/552 checks +006ee750 Entity_Pickup::RemoveOtherOptions pickups with same OptionsPickupIndex 0x528 poof (1000.15) and vanish +00682b90 string_scramble_seeded ? std::string by value + RNG; used by curse name, UsePill, pickup collision +00639000 Entity_Familiar::ThrowDip own assert string; spawns 3.201 dip +004d8b50 spawn_small_maggot Game::Spawn 853 at this pos, sets height/velocity +00498fd0 std::deque::erase deque of 8-byte elems range erase +0097baa0 Entity_Laser::UpdateHits ? laser Update/Interpolate: QueryRadius, IsVulnerableEnemy, flag bitset tests +006b2210 Entity::IsCollisionIgnored ? player vs type 9 projectile with effect 625, collectible 276, null 59, PlayerType 35 +0043eca0 std::vector::copy_constructor alloc+memmove of 4-byte elems +00a288a0 std::shared_ptr::assign ? swap two dwords then release old via vfunc 0xc +00a18230 RenderTarget::Clear glClear 0x4100 with clear color +009f41c0 Weapon::GetMultiShotParams player/familiar owner -> Entity_Player::GetMultiShotParams else default +009be990 NpcHelper::big_horn_is_any_hole_busy ? scans entity ptr vector for field 0x3fc not 0/3; Big/Little Horn +00960a20 Entity_Knife::GetBaseVariant maps variant 2/3/4/8/9->1, 5->0, 11->10 +007b9f60 Entity_Player::GetMouseAimTarget ? NetInputDevice cursor 0x398 or GetFocusEntity pos +0075e050 Entity_Player::SetQueuedItem FlushQueueItem then writes QueuedItem fields 0x17c4..0x17d4 +0074f820 Level::InitStageSeeds ? requires Game Start Seed; stage seed table 0x1bb9c; Init/RestoreGameState +007376c0 ItemPool::GetCardImpl ? RNG; Pickup::Init and AddItemCard +00708e20 std::vector::_Tidy ? frees vector of 0x78 elems; RoomDescriptor dtor, reset_room_list +006e84d0 Entity_Pickup::CollectTrinket ? param player; 0x534 trinket id, Trinket ID out of bounds +006d90e0 Entity_NPC::UpdateChildEffectPosition ? effect at 0xf28 (type 1000) placed relative to npc size 0x38c.. +006d4e00 Entity_NPC::PlayDeathEffects ? gfuel, layer-frame pos, death sfx; NPC Update and Rock Spider +006b6810 Entity::MakeBloodPoofAtPos MakeBloodPoof(this,&_pos,arg) +0069ba90 EntityConfig::PreloadResources AnmCache::Preload + Preload sound %d +00676be0 Entity_Tear::UpdateBoneTear ? uses tears_brokenbone.png +00665500 Entity_Slot::SetPrizeType ? writes 0x540, reloads graphics per variant 15/16 +0064bab0 Entity_Familiar::RemoveFromPlayer ? clears owner 0x414/0x410 slots, Siren/ClearReferences +00634000 Entity_Familiar::TryFireTear ? Forgotten Lullaby 127 multiplier +006075a0 TearParams::operator_ struct copy; Brimstone/ApplyTearFlagEffects +0059bed0 Entity_NPC::RenderSegmentLink ? NPC Render/RenderShadowLayer, parent 0x3c0 I2 checks +00557ce0 collect_npcs_with_same_parent ? npcs with matching 0x3bc parent; Min-Min/Willo +004f83a0 std::deque::resize Growmap/new(0x10) loop +004b39b0 std::vector::_Emplace_reallocate 16-byte element realloc +00435bf0 BitSet128::operator__ 4 dword OR +0042f150 std::vector::operator__ ? base+i*8 +00421680 std::string::concat alloc + 2 memcpy +00417630 EntityList_EL::push_back EL: not enough space for push_back +009292c0 Manager::BackupSaveFile %s/save_backups/ + time-stamped name; Game::Exit, ChangeRoom +00823080 Room::ClearGreedWaveSpawns ? removes 1000.120 effects tagged with wave index param; greed wave/pressure plate +007eb870 Level::UpdateBackwardsPathStages ? Invalid backwards path stage ID; stage bitmask +007dbc80 Entity_Player::AddRandomMomItemEffect ? RNG pick from list 29,30,31,55,110,114,217,228,355,508,732 +007ce270 Entity_Player::GetMainPlayer ? parent 0x3bc if player else player 0 for variant 1 +00838210 is_screen_transition_active ? 0x34!=0 && byte 0x44; Game::Update/IsPaused +00a101c0 vector_lerp out=a+(b-a)*t, optional clamp t to [0,1] +00813460 Room::get_random_pickup_position ? random point in rect +0x14..0x20 then FindFreePickupSpawnPosition +0071f600 Level::filter_curses ~prevented & (forced|game|level curses) & mask +006cb2a0 Entity_NPC::fire_projectile_from_params ? calls FUN_006cb010 with fields 0x168/0x16c, per-projectile loop in FireProjectiles +00612b50 Entity_Familiar::get_incubus_umbilical_whip Lilith birthright incubus, dyncast Weapon_UmbilicalWhip, returns entity type 3 +004e46d0 Color::apply_to_kcolor tint*kcolor, colorize via luma 0.2126/0.7152/0.0722, add offset +00a14050 shader_cache_find ? path hash lower_bound lookup, sets current shader global +00a0f690 KColor::KColor r,g,b in xmm, a param, ECX[4]=0 +00732d00 ItemPool::is_collectible_available bitsets 0x67c/0x68c removed/blocked, trinket No! (88) blocks actives +0067d430 tear_flags_area_apply QueryRadius, damage vulnerable enemies, ApplyTearFlagEffects +006348d0 Entity_Familiar::reset_follow_target ? resets 0xd90..0xda4 to zero vector, 0xda4=0xff +004d3130 EntitySaveState::copy field-by-field copy + two vector copies; Pickup TryFlip/Level::Init +00456380 Color::assign 11-dword copy into +0x1e4 (entity color) with self check +004362a0 ItemConfig::get_wisp_config collectible+0xcc or modded table, error Book of Virtues missing default wisp +0042c850 std::vector::push_back emplace_reallocate fallback +0040d0c0 std::string::c_str SSO cap<16 check +00a26af0 StringTable::get_string returns StringTable::InvalidCategory on miss +00a14c00 Shader::set_uniform ? "unknown shader uniform type" +009f33e0 Weapon::get_aim_direction Marked (394) target override for player/familiar owner else default dir +009b7650 is_single_player ? player vector at 0x4b3d8 size<=1 +0090ac70 InputManager::GetDeviceByPlayerEntity log string +00802670 Room::update_door_targets MakeDoor for each slot bit, set target room idx + room types +007e86b0 std::vector<8byte>::reserve _Xlen guard +007dbba0 Entity_Player::add_random_drug_item_effect ? picks one of 13,14,240,70,143,345,493,496, TemporaryEffects::AddEffect +0075a2b0 Weapon::is_held_item ? compares held item 0x114 vs Brimstone 118 / trinket 162 cases +006d8e10 is_local_player_owned netplay idx 0xf1c IsIdxLocalPlayer, Effect/Game render +006b8410 Room::has_room_config_flag descriptor->config+0x4c & mask +006a80f0 LuaRef::push lua_rawgeti registry ref ECX+4 +009960b0 Game::start_poop_cloud_screen_effect ? loads gfx/backdrop/pooclouds.png, called from UsePill/bomb tearflags with colors +007bebb0 Entity_Player::update_player_skin NiceLilith/ghost spritesheet replace + costumes, after ANM2 load in ChangePlayerType +006e2570 Entity_Pickup::update_price_sprite ShopIdle/NumbersRed/Hearts/SummonPayment, called with _price in Init/Morph +006a9c90 Entity::CollideWithGrid GetGridCollision, bridges, clamped position, from Interpolate +00993a70 Camera::Update ? LerpAngleDeg/atan2, Room::Update and generate_greed +00973c60 Entity_Laser::update_laser Droplets/Fade, non variant 1-3 path in Update +0095a7b0 PlayerManager::unlock_completion_mark ? param ending id (14 mega satan/3 ...), TryUnlock per player +008318a0 Game::update_pending_pickup_animations ? Pickup/PlayerPickupSparkle AnimateCollectible across players +007cc200 Entity_Player::init_player_type_state ? ChangePlayerType/MorphToCoopGhost, costumes, wisp config, temp effects +006e83a0 Entity_Pickup::can_player_buy price 0x534 vs coins, -10 free, health type checks, coop ghost rejects +006470f0 ItemConfig::get_wisp_entry ? collectible+0xd0 vector of 0xb8 entries indexed by EDX, default item fallback +006c20e0 LootList::LootList ? zeroes 5 dwords + list sentinel; shopkeeper/fireplace get_loot +00435f80 TemporaryEffect::TemporaryEffect {config,0,config+0x78,0}, same layout as AddEffect arg +007afc20 Entity_Player::try_trigger_astral_projection ? zero-hearts check, collectible effect 677, AddNullEffect +0074d920 Level::update_treasure_room_doors_for_trinket ? trinket 146 check over treasure rooms, door LoadSprite, from trinket add/remove +00737380 ItemPool::get_available_collectibles ? static init, removed bitsets 0x67c/0x68c, Bumbino/GetCollectible +006f8d60 GameState::copy_room_list ? memmove vector copy, SaveBackwardsStage/RestoreGameState +006856c0 std::vector::resize ? memset/memmove realloc +00666ba0 Entity_Tear::update_wiggle sin/cos lateral offset over frame count, Update/Interpolate +00663aa0 Entity_Slot::spawn_break_drops RNG pickups/spiders/gibs, Slot Update/TakeDamage +00631850 Entity_Familiar::move_to_parent_offset pos = parent pos + offset, velocity capped 100 +00557bd0 std::string::find memchr substring search +004e9b10 Entity_NPC::render_overlay ? called from NPC Render/RenderShadowLayer, static init +004357e0 Entity_Familiar::set_extra_data ReferenceCount +00417540 EntityList::sublist_init "EL: invalid sublist" +009bfae0 PlayerManager::revive_player_ghosts loops players, RevivePlayerGhost if player+0x20a9 set; room clear/slot callers +007db8d0 Entity_Player::get_seeded_variant ? switch on FUN_007db860 (set 79 + player vec byte 0x8f) else seed-derived 2..5 +00705ee0 Game::save_rewind_state ? two 0x8198-stride state slots, frame<15 guard; room/stage transition, door callers +006ac8d0 Entity::get_velocity_direction returns 0..3 dir from velocity 0x360/0x364 +00612890 Entity_Familiar::is_detached_from_follow ? per-variant checks (0x3b,0x19,0x68,0x82...) used by FollowParent +004d8910 spawn_small_maggot_jump Game::Spawn(853 SMALL_MAGGOT) toward target, sets grid; Mama Fly/Pustule/Scourge +0042eef0 push_shape_points ? appends Vector pairs into vector at +0x24; Big Horn/Bumbino/Whipper +00417220 Entity::IsType compares type/variant/subtype with -1 wildcards +00a13510 set_blend_mode BlendMode::SetMode result copied to +0x20..0x30 +009f3bd0 Weapon::get_owner_position owner(+4)->_pos or zero vector +0096ce30 Entity_Laser::is_thick_variant ? variants 1,3,6,9,11-15 true; laser update/render +007910f0 Entity_Player::GetTotalActiveCharge charge+battery of slot plus Bethany soul/blood charge 0x1da8/0x1dac +00722140 std::vector::erase 28-byte elem erase; History::RemoveHistoryItemByIndex +006dae20 Game::IsChallengeOrDaily Game _challenge 0x26584 or _dailyChallenge 0x26630 nonzero +006a8f20 Entity::is_valid_boss_enemy ? type 10..999 active, not 866, no flag 0x20000000; Hush/Mega Satan/Ultra Greed +0067a080 Entity_Projectile::Deflect clears flags, sets velocity, new spawner multiset; ButterBeanFart/familiar collision +00612330 Entity_Familiar::get_orbit_parent ? Init/Kill/RecalculateOrbitOffset; type 0x2b/0xce special +00456240 ColorParams::set_from_bytes ints *1/255 into tint/offset floats +0040ccc0 std::string::_Xlen "string too long" throw +00a10dd0 set_quad_corner_colors ? copies 5-dword color into 4 corners; Laser render +009e04b0 collectible_set_has ? set find with count>0; HasCollectible +009b5840 PauseScreen::Init loads PauseScreen/Death Screen anm2; LoadConfigXmls +0098b5e0 Minimap::refresh_room_icons Icon* room strings; Minimap::Refresh +00968430 Entity_Knife::SpinAttack "Tried to use spin attack..." Spin* anims +0093da00 Backdrop::load_details gfx/backdrop *_details anm2; Backdrop::Init/Dogma +008ef560 RevivePlayerMenu::Init gfx/ui/Menu_RevivePlayer.anm2 +0082ee40 log_room_transition "[Frame %d] Starting room transition" +007f20e0 room_shape_get_door_grid_index ? shape/slot -> grid index; greed gen, UncoverHiddenDoor +007e31a0 PathFinder::Init sets owner, Reset; NPC/Familiar constructors +007d9b70 Entity_Player::reset_body_sprite loads entity 1.0.0 anm2, replaces sheets per player type +007cbcd0 Entity_Player::init_forgotten_twin ? player types 16/17, allocs 0x2f00 sub-player at 0x1d98 +007911c0 Entity_Player::GetActiveItemSlot scans 4 active slots at 0x1580 stride 0x20 +00759950 Entity_Player::restore_curse_mist_backup restores consumables; Add/RemoveCurseMistEffect +0074cb50 Level::get_door_neighbor_room ? neighbor room by door; CanSpawnDoorOutline/MakeRedRoomDoor +007307b0 ItemConfig_Item::is_mom_item ids 29,30,31,55,110,114,199,200,217,228,355,508,732 +006f43b0 Game::reset_run_state zeroes Game fields + ResetState; LoadConfigXmls/Exit +006e1e90 Entity_Pickup::load_collectible_gfx questionmark.png, collectible gfx; UpdateSprite +006d8d80 Entity_NPC::is_controller_input_idle controller input zero via 0xf28 player +006c1870 Entity_NPC::anim_walk_frame_4dir 4 anim names by velocity, threshold; Gutted/Peeper Fatty +006b8320 EntityList::assign "EL: not enough space for copy" +006a6f10 Entity_Bomb::update_sparks ? "sparks"; Bomb Update/Render +00684f30 std::deque::back deque back element +00666a00 Entity_Tear::apply_wiggle sin/cos offset perpendicular to velocity; Update/Interpolate +0065b490 TearParams::copy ? 0x64-byte struct copy; Tear/Projectile Update +0063b340 Entity_Familiar::update_idle_anim_by_size "Idle%d" from player scale thresholds +0062e620 Entity_Familiar::update_weapon Create/DestroyWeapon matching player weapon 0xdc4 +00547040 npc_distribute_orbit_angles spreads V1 angles 2pi/n among siblings; Matriarch/Fistuloid +004cf350 std::set::clear tree erase+reset +004aab30 std::vector::assign_0x38 0x38-elem vector assign; Delirium/Kill +00414870 std::string::append_n append n chars (memset) diff --git a/dump/all.c b/dump/all.c index f8a9ba1..f278912 100644 --- a/dump/all.c +++ b/dump/all.c @@ -3874,9 +3874,9 @@ void FUN_004072e0(undefined4 param_1,undefined4 param_2,undefined4 param_3,undef } -//@@ 00407320 FUN_00407320 +//@@ 00407320 _get_name_string -undefined4 * FUN_00407320(undefined4 *param_1) +undefined4 * _get_name_string(undefined4 *param_1) { int *in_ECX; @@ -3904,9 +3904,9 @@ void FUN_00407370(void) } -//@@ 00407380 FUN_00407380 +//@@ 00407380 _string_holder_c_str -undefined4 * FUN_00407380(void) +undefined4 * _string_holder_c_str(void) { undefined4 *puVar1; @@ -5865,7 +5865,7 @@ void AnimationLayer::RenderFrame LayerState::GetTexture(&puStack_21c); apply_sprite_shader_params(1); puStack_21c = (undefined1 *)(local_104 + 0xd4); - FUN_00a14c00("ChampionColor",0xb); + Shader::set_uniform("ChampionColor",0xb); pfStack_218 = (float *)local_12c; puStack_21c = (undefined1 *)0x4095d6; puVar8 = (undefined4 *)LayerState::GetTexture(); @@ -5976,7 +5976,7 @@ LAB_0040983b: DAT_00c7990c = uStack_18c; DAT_00c79910 = local_170; puStack_21c = (undefined1 *)0x409878; - FUN_00a14050(); + shader_cache_find(); ExceptionList = local_1c; return; } @@ -6202,7 +6202,7 @@ FUN_00409cb0(undefined4 param_1,float *param_2,int param_3,int param_4,undefined local_48 = local_30 - local_48; fVar1 = local_28; KColor::SetFromARGB(0xffffffff); - FUN_00a10d00((local_48 + *(float *)(param_3 + 0xc)) - *(float *)(param_6 + 4) / fVar1,extraout_ECX + render_quad_set_uniform_color((local_48 + *(float *)(param_3 + 0xc)) - *(float *)(param_6 + 4) / fVar1,extraout_ECX ); FUN_00a10950(&local_34,&local_2c); FUN_00a10950(&local_44,&local_24); @@ -6859,9 +6859,9 @@ int __thiscall ANM2::GetFrame(ANM2 *this) } -//@@ 0040a7c0 FUN_0040a7c0 +//@@ 0040a7c0 _empty_check_0x34 -void FUN_0040a7c0(void) +void _empty_check_0x34(void) { int in_ECX; @@ -8166,7 +8166,7 @@ FUN_0040b600(undefined4 *param_1,int param_2,float param_3,float param_4,undefin if (-1 < param_2) { if (iVar4 != param_2) goto LAB_0040baac; } - FUN_0040bbf0(*(int *)(local_a4[2] + local_b4 * 4) * 0x6c + iVar1); + AnimationState::copy_assign(*(int *)(local_a4[2] + local_b4 * 4) * 0x6c + iVar1); piVar2 = local_a4; iVar4 = ANM2::GetLayer((ANM2 *)*local_a4,iVar4); if (local_6c != '\0') { @@ -8308,9 +8308,9 @@ LAB_0040baac: } -//@@ 0040bbf0 FUN_0040bbf0 +//@@ 0040bbf0 AnimationState::copy_assign -void FUN_0040bbf0(undefined4 *param_1) +void AnimationState::copy_assign(undefined4 *param_1) { undefined4 uVar1; @@ -9582,9 +9582,9 @@ void FUN_0040cca0(void) } -//@@ 0040ccc0 FUN_0040ccc0 +//@@ 0040ccc0 std::string::_Xlen -void FUN_0040ccc0(void) +void std::string::_Xlen(void) { /* WARNING: Subroutine does not return */ @@ -9621,7 +9621,7 @@ void std::string::assign(void *param_1,uint param_2) } if (0x7fffffff < param_2) { /* WARNING: Subroutine does not return */ - FUN_0040ccc0(); + std::string::_Xlen(); } uVar5 = param_2 | 0xf; if (uVar5 < 0x80000000) { @@ -9676,9 +9676,9 @@ uint * FUN_0040cdc0(void) } -//@@ 0040cdd0 FUN_0040cdd0 +//@@ 0040cdd0 std_min_ptr -uint * FUN_0040cdd0(void) +uint * std_min_ptr(void) { uint *in_ECX; @@ -9938,9 +9938,9 @@ void FUN_0040d090(int param_1) } -//@@ 0040d0c0 FUN_0040d0c0 +//@@ 0040d0c0 std::string::c_str -undefined4 * FUN_0040d0c0(void) +undefined4 * std::string::c_str(void) { undefined4 *in_ECX; @@ -13449,7 +13449,7 @@ LAB_004122bc: else { do { if (&DAT_0000003f < ppppppuStack_2668c) { - uVar43 = FUN_0040d0c0(); + uVar43 = std::string::c_str(); /* WARNING: Subroutine does not return */ KAGE_LogMessage(0x10,"%s: too many animation layers\n",uVar43); } @@ -13574,7 +13574,7 @@ LAB_0041103a: ppppppuStack_26680 = ppppppuVar39, ppppppuStack_26654 != (undefined4 ******)0x0; ppppppuStack_26654 = (undefined4 ******)ppppppuStack_26654[0xb]) { if ((undefined4 ******)0x1387 < ppppppuStack_2667c) { - uVar43 = FUN_0040d0c0(); + uVar43 = std::string::c_str(); /* WARNING: Subroutine does not return */ KAGE_LogMessage(0x10,"%s: too many animation frames\n",uVar43); } @@ -14416,7 +14416,7 @@ LAB_00411eb2: ppppppuStack_26654 = (undefined4 ******)((int)ppppppuVar39 * 0x54 + iStack_266a8); if ((undefined4 ******)0x1387 < ppppppuStack_26650) { - uVar43 = FUN_0040d0c0(); + uVar43 = std::string::c_str(); /* WARNING: Subroutine does not return */ KAGE_LogMessage(0x10, "%s: too many frames after interpolation/root frame adjustment\n" @@ -14633,7 +14633,7 @@ LAB_00413466: else { do { if (&DAT_0000003f < ppppppuStack_2668c) { - uVar43 = FUN_0040d0c0(); + uVar43 = std::string::c_str(); /* WARNING: Subroutine does not return */ KAGE_LogMessage(0x10,"%s: too many null layers\n",uVar43); } @@ -14756,7 +14756,7 @@ LAB_00412512: iStack_266ac = iVar16, ppppppuStack_2667c != (undefined4 ******)0x0; ppppppuStack_2667c = (undefined4 ******)ppppppuStack_2667c[0xb]) { if ((undefined4 ******)0x1387 < ppppppuStack_26688) { - uVar43 = FUN_0040d0c0(); + uVar43 = std::string::c_str(); /* WARNING: Subroutine does not return */ KAGE_LogMessage(0x10,"%s: too many null frames\n",uVar43); } @@ -15390,7 +15390,7 @@ LAB_004130d3: ppppppuStack_26658 = (undefined4 ******)((int)ppppppuVar37 * 0x54 + iStack_266a8); if ((undefined4 ******)0x1387 < ppppppuStack_26650) { - uVar43 = FUN_0040d0c0(); + uVar43 = std::string::c_str(); /* WARNING: Subroutine does not return */ KAGE_LogMessage(0x10, "%s: too many frames after interpolation/root frame adjustment\n" @@ -15586,7 +15586,7 @@ LAB_004134e1: ppppppuVar39 = &local_28b0; do { if ((undefined4 ******)0x7f < ppppppuStack_26690) { - uVar43 = FUN_0040d0c0(); + uVar43 = std::string::c_str(); /* WARNING: Subroutine does not return */ KAGE_LogMessage(0x10,"%s: too many triggers\n",uVar43); } @@ -16380,7 +16380,7 @@ void FUN_00414520(uint param_1) puVar1 = in_ECX + 4; if (*puVar1 < param_1) { - FUN_00414870(); + std::string::append_n(); return; } if (0xf < (uint)in_ECX[5]) { @@ -16635,9 +16635,9 @@ void FUN_004147f0(void) } -//@@ 00414870 FUN_00414870 +//@@ 00414870 std::string::append_n -void FUN_00414870(uint param_1,char param_2) +void std::string::append_n(uint param_1,char param_2) { uint uVar1; @@ -16662,7 +16662,7 @@ void FUN_00414870(uint param_1,char param_2) } if (0x7fffffff - _Size < param_1) { /* WARNING: Subroutine does not return */ - FUN_0040ccc0(); + std::string::_Xlen(); } uVar3 = _Size + param_1 | 0xf; if (uVar3 < 0x80000000) { @@ -19316,9 +19316,9 @@ void FUN_00417150(void) } -//@@ 00417160 FUN_00417160 +//@@ 00417160 sinf_wrapper -void FUN_00417160(void) +void sinf_wrapper(void) { sin(); @@ -19417,9 +19417,9 @@ float10 Sprite::Rotation(void) } -//@@ 00417220 FUN_00417220 +//@@ 00417220 Entity::IsType -undefined4 FUN_00417220(int param_1,int param_2,int param_3) +undefined4 Entity::IsType(int param_1,int param_2,int param_3) { int in_ECX; @@ -19827,9 +19827,9 @@ int Entity::GetDropRNG(void) } -//@@ 004174c0 FUN_004174c0 +//@@ 004174c0 buffer_init -void FUN_004174c0(int param_1) +void buffer_init(int param_1) { undefined4 uVar1; @@ -19865,9 +19865,9 @@ void EntityList_EL::constructor(int param_1) } -//@@ 00417540 FUN_00417540 +//@@ 00417540 EntityList::sublist_init -void FUN_00417540(int param_1,int param_2) +void EntityList::sublist_init(int param_1,int param_2) { int iVar1; @@ -19940,9 +19940,9 @@ int std::vector::operator_index(int param_1) return *(int *)(in_ECX + 4) + param_1 * 4; } -//@@ 00417630 FUN_00417630 +//@@ 00417630 EntityList_EL::push_back -void FUN_00417630(undefined4 param_1) +void EntityList_EL::push_back(undefined4 param_1) { int in_ECX; @@ -20082,7 +20082,7 @@ undefined4 FUN_004177e0(undefined4 param_1) { int in_ECX; - FUN_0041c770(in_ECX + 0x1bc8); + shared_ptr::assign(in_ECX + 0x1bc8); return param_1; } @@ -20445,7 +20445,7 @@ void FUN_00417dd0(void) { int *in_ECX; - FUN_0041d030(in_ECX,*(undefined4 *)(*in_ECX + 4)); + std::map::destroy_subtree(in_ECX,*(undefined4 *)(*in_ECX + 4)); operator_delete(*in_ECX,0x2c); return; } @@ -20601,7 +20601,7 @@ void EntityList::Reset(void) *(undefined4 *)(in_ECX + 0xb8) = 0; *(undefined4 *)(in_ECX + 0xbc) = 0; *(undefined4 *)(in_ECX + 0xc0) = 0; - FUN_0041d030(in_ECX + 0xe0,*(undefined4 *)(iVar3 + 4)); + std::map::destroy_subtree(in_ECX + 0xe0,*(undefined4 *)(iVar3 + 4)); iVar1 = DAT_00c7169c; *(int *)(iVar3 + 4) = iVar3; *(int *)iVar3 = iVar3; @@ -20649,7 +20649,7 @@ void EntityList::AddEntity(int *param_1) *(int *)(in_ECX + 0x3c) = *(int *)(in_ECX + 0x3c) + 1; } else { - FUN_00417630(param_1); + EntityList_EL::push_back(param_1); } cVar4 = (**(code **)(*param_1 + 0x48))(); if ((cVar4 != '\0') && (param_1[10] != 0x362)) { @@ -20815,7 +20815,7 @@ void FUN_004186c0(char param_1) } iVar18 = *(int *)(in_ECX + 0xe0); local_50 = in_ECX; - local_58 = FUN_0041d030(in_ECX + 0xe0,*(undefined4 *)(iVar18 + 4)); + local_58 = std::map::destroy_subtree(in_ECX + 0xe0,*(undefined4 *)(iVar18 + 4)); *(int *)(iVar18 + 4) = iVar18; local_58 = local_58 & 0xffffff00; *(int *)iVar18 = iVar18; @@ -21173,8 +21173,8 @@ LAB_00418ba8: LAB_0041915c: local_70.x = 0.0; local_70.y = 0.0; - FUN_006856c0(); - puVar11 = (undefined4 *)FUN_00684f30(); + std::vector::resize(); + puVar11 = (undefined4 *)std::deque::back(); if ((byte *)(puVar11 + 1) != (byte *)0x0) { *(byte *)(puVar11 + 1) = (byte)(DAT_00c798e4 >> 5) & 1; } @@ -21190,9 +21190,9 @@ LAB_0041915c: DAT_00c79910 = 7; DAT_00c798e4 = uVar6; if (local_21 != false) { - FUN_0041c770(); + shared_ptr::assign(); local_14 = (Entity *)0x0; - FUN_00a18300(local_30,0); + KAGE_Graphics::SetRenderTarget(local_30,0); local_14 = (Entity *)0x1; if (((local_2c[0] != (Entity *)0x0) && (cVar5 = (**(code **)(*(int *)local_2c[0] + 0xc))(), cVar5 != '\0')) && @@ -21216,12 +21216,12 @@ LAB_0041915c: local_34 = (float)((int)local_34 + 1); } while ((uint)local_34 < *(uint *)(iVar18 + 0x5c)); } - FUN_00a19180(); + _glfw_context_reset(); } if (local_22 != false) { - FUN_0041c770(); + shared_ptr::assign(); local_14 = (Entity *)0x2; - FUN_00a18300(local_30,0); + KAGE_Graphics::SetRenderTarget(local_30,0); local_14 = (Entity *)0x3; if (((local_2c[0] != (Entity *)0x0) && (cVar5 = (**(code **)(*(int *)local_2c[0] + 0xc))(), cVar5 != '\0')) && @@ -21244,7 +21244,7 @@ LAB_0041915c: local_34 = (float)((int)local_34 + 1); } while ((uint)local_34 < *(uint *)(iVar18 + 0x5c)); } - FUN_00a19180(); + _glfw_context_reset(); } if ((local_21 != false) || (local_22 != false)) { DAT_00c798e4 = DAT_00c798e4 | 2; @@ -21252,8 +21252,8 @@ LAB_0041915c: /* WARNING: Subroutine does not return */ KAGE_LogMessage(0x10,"PopRenderTarget: stack is empty!\n"); } - puVar11 = (undefined4 *)FUN_00684f30(); - FUN_00a18300(*puVar11,*(undefined1 *)(puVar11 + 1)); + puVar11 = (undefined4 *)std::deque::back(); + KAGE_Graphics::SetRenderTarget(*puVar11,*(undefined1 *)(puVar11 + 1)); DAT_00c79790 = DAT_00c79790 + -1; if (DAT_00c79790 == 0) { DAT_00c7978c = 0; @@ -21756,7 +21756,7 @@ void FUN_00419b50(float *param_1) KColor::SetFromARGB(); local_78 = (local_48 + *local_40 + *(float *)(iVar1 + 0x2650c)) - fVar7 * 0.5; local_74 = (fVar8 + local_40[1] + *(float *)(iVar1 + 0x26510)) - fVar9 * 0.5; - FUN_00a10e70(&local_78,&local_70,extraout_ECX); + render_quad_set_rect(&local_78,&local_70,extraout_ECX); local_58 = 0; local_68 = local_38; uStack_64 = uStack_34; @@ -21768,7 +21768,7 @@ void FUN_00419b50(float *param_1) uVar6 = uVar6 + 1; } while (uVar6 < *(uint *)(in_ECX + 0x5c)); } - FUN_00a14050(); + shader_cache_find(); return; } @@ -22047,7 +22047,7 @@ LAB_0041a727: FUN_006ab440(0); } else { - FUN_006a9c90(0); + Entity::CollideWithGrid(0); } } uVar9 = uVar9 + 1; @@ -22191,7 +22191,7 @@ int EntityList::QueryRadius(int param_1,float *param_2,uint param_3) } while (uVar10 < *(uint *)((int)fVar4 + 0x6c)); iVar9 = *(int *)((int)fVar4 + 0x7c); } - FUN_00417540((int)fVar4 + 0x80,iVar9); + EntityList::sublist_init((int)fVar4 + 0x80,iVar9); local_8 = 0; if (*(uint *)(param_1 + 8) < *(uint *)((int)fVar4 + 0x7c)) { /* WARNING: Subroutine does not return */ @@ -22217,9 +22217,9 @@ int EntityList::QueryRadius(int param_1,float *param_2,uint param_3) return param_1; } -//@@ 0041ab50 FUN_0041ab50 +//@@ 0041ab50 EntityList::query_player_capsule_hits -int FUN_0041ab50(int param_1,undefined4 param_2,uint param_3) +int EntityList::query_player_capsule_hits(int param_1,undefined4 param_2,uint param_3) { longlong lVar1; @@ -22349,7 +22349,7 @@ int FUN_0041ab50(int param_1,undefined4 param_2,uint param_3) } while (uVar6 < *(uint *)((int)fVar3 + 0x6c)); iVar10 = *(int *)((int)fVar3 + 0x7c); } - FUN_00417540((int)fVar3 + 0x80,iVar10); + EntityList::sublist_init((int)fVar3 + 0x80,iVar10); local_8 = 0; local_28 = 1; if (*(uint *)(param_1 + 8) < *(uint *)((int)fVar3 + 0x7c)) { @@ -22377,11 +22377,11 @@ int FUN_0041ab50(int param_1,undefined4 param_2,uint param_3) } -//@@ 0041af60 NpcAI::ENTITY_MASK +//@@ 0041af60 EntityList::QuerySublist /* NPC AI for entity type 93 (from dispatcher 006c2990) */ -undefined1 * __fastcall NpcAI::ENTITY_MASK(Entity_NPC *npc) +undefined1 * __fastcall EntityList::QuerySublist(Entity_NPC *npc) { int iVar1; @@ -22450,7 +22450,7 @@ undefined1 * __fastcall NpcAI::ENTITY_MASK(Entity_NPC *npc) uVar10 = uVar10 + 1; } while (uVar10 < *(uint *)&npc->field_0x9c); } - FUN_00417540(&npc->field_0x80,uVar5); + EntityList::sublist_init(&npc->field_0x80,uVar5); local_8 = 0; if (local_34 < *(uint *)&npc->field_0x7c) { /* WARNING: Subroutine does not return */ @@ -22588,7 +22588,7 @@ undefined1 * __fastcall NpcAI::ENTITY_MASK(Entity_NPC *npc) } while (uVar10 < *(uint *)&npc->field_0x4c); } } - FUN_00417540(&npc->field_0x80,*(undefined4 *)&npc->field_0x7c); + EntityList::sublist_init(&npc->field_0x80,*(undefined4 *)&npc->field_0x7c); pvVar4 = local_28; local_8 = 2; if (local_24 < *(uint *)&npc->field_0x7c) { @@ -22647,9 +22647,9 @@ undefined1 * __fastcall NpcAI::ENTITY_MASK(Entity_NPC *npc) } -//@@ 0041b4f0 FUN_0041b4f0 +//@@ 0041b4f0 EntityList::AddPersistentEntity -void FUN_0041b4f0(int param_1) +void EntityList::AddPersistentEntity(int param_1) { uint uVar1; @@ -23577,9 +23577,9 @@ void FUN_0041c710(void) } -//@@ 0041c770 FUN_0041c770 +//@@ 0041c770 shared_ptr::assign -void FUN_0041c770(undefined4 *param_1) +void shared_ptr::assign(undefined4 *param_1) { int *piVar1; @@ -24159,9 +24159,9 @@ LAB_0041cfaa: } -//@@ 0041d030 FUN_0041d030 +//@@ 0041d030 std::map::destroy_subtree -void FUN_0041d030(undefined4 param_1,int *param_2) +void std::map::destroy_subtree(undefined4 param_1,int *param_2) { uint uVar1; @@ -24183,7 +24183,7 @@ void FUN_0041d030(undefined4 param_1,int *param_2) ppvVar6 = &local_10; local_10 = ExceptionList; while (ExceptionList = ppvVar6, cVar2 == '\0') { - FUN_0041d030(param_1,param_2[2]); + std::map::destroy_subtree(param_1,param_2[2]); piVar3 = (int *)*param_2; if ((char)param_2[7] == '\0') { iVar4 = param_2[8]; @@ -25739,7 +25739,7 @@ LAB_0041eca3: local_1f4 = *pfVar8 + local_b4; local_1e8 = pfVar8[1] - local_b0; local_1f0 = local_b0 + pfVar8[1]; - FUN_00a10dd0(&local_1f4,&local_1ec,&local_1e4); + set_quad_corner_colors(&local_1f4,&local_1ec,&local_1e4); if (DAT_00c7f6e8 == DAT_00c7f6ec) { local_20c = DAT_00c7f6e8; FUN_0041fa30(); @@ -26035,7 +26035,7 @@ LAB_0041ef71: DAT_00c7990c = uStack_1c0; DAT_00c79910 = local_164; local_20c = (float *)0x41f6b6; - FUN_00a14050(); + shader_cache_find(); } } local_14 = 1; @@ -27403,13 +27403,13 @@ LAB_00420df5: uVar5 = (int)pcVar13 - (int)(pcVar15 + 1); if (0x7fffffffU - local_44 < uVar5) { /* WARNING: Subroutine does not return */ - FUN_0040ccc0(); + std::string::_Xlen(); } ppppuVar10 = local_54; if (0xf < local_40) { ppppuVar10 = local_54[0]; } - FUN_00421680(in_ECX,uVar5,ppppuVar10,local_44,pcVar15,uVar5); + std::string::concat(in_ECX,uVar5,ppppuVar10,local_44,pcVar15,uVar5); if (0xf < uStack_100c0) { uVar5 = uStack_100c0 + 1; ppppiVar11 = ppppiStack_100d4; @@ -27696,7 +27696,7 @@ void FUN_004212c0(void) } *(undefined4 *)(iVar1 + 0x2a338) = 0x3ba3d70a; Game::StartRoomTransition(0xfffffff6,0xffffffff,1,0,0xffffffff); - FUN_008318a0(); + Game::update_pending_pickup_animations(); return; } if ((in_ECX[0xf] != 0) && ((char)in_ECX[0x13] != '\0')) { @@ -27882,19 +27882,19 @@ void FUN_00421620(char *param_1) uVar4 = (int)pcVar3 - (int)(param_1 + 1); if (0x7fffffffU - iVar2 < uVar4) { /* WARNING: Subroutine does not return */ - FUN_0040ccc0(); + std::string::_Xlen(); } if (0xf < (uint)in_EDX[5]) { in_EDX = (undefined4 *)*in_EDX; } - FUN_00421680(param_1 + 1,iVar2,in_EDX,iVar2,param_1,uVar4); + std::string::concat(param_1 + 1,iVar2,in_EDX,iVar2,param_1,uVar4); return; } -//@@ 00421680 FUN_00421680 +//@@ 00421680 std::string::concat -void FUN_00421680(undefined4 param_1,undefined4 param_2,void *param_3,size_t param_4,void *param_5, +void std::string::concat(undefined4 param_1,undefined4 param_2,void *param_3,size_t param_4,void *param_5, size_t param_6) { @@ -30984,7 +30984,7 @@ int FUN_004253d0(void) void FUN_00425410(void) { - FUN_00426980(); + std::vector::_Tidy(); std::string::_Tidy_deallocate(); return; } @@ -31219,7 +31219,7 @@ void FUN_004257b0(void) iVar5 = DAT_00c71678; if (*(int *)(DAT_00c71678 + 0x26614) < 2) { local_18 = in_ECX; - local_10 = FUN_009b9480(); + local_10 = PlayerManager::count_main_players(); local_14 = 0; if (local_10 != 0) { do { @@ -31453,7 +31453,7 @@ void FUN_00425b70(void) if (0xf < DAT_00c78f1c) { puVar4 = DAT_00c78f08; } - pcVar3 = (char *)FUN_009586f0(DAT_00c7169c + 0x4a920,puVar4); + pcVar3 = (char *)string_table_translate(DAT_00c7169c + 0x4a920,puVar4); pcVar5 = pcVar3; do { cVar1 = *pcVar5; @@ -31469,7 +31469,7 @@ void FUN_00425b70(void) if (0xf < DAT_00c78f34) { puVar4 = DAT_00c78f20; } - pcVar3 = (char *)FUN_009586f0(iVar2 + 0x4a920,puVar4); + pcVar3 = (char *)string_table_translate(iVar2 + 0x4a920,puVar4); pcVar5 = pcVar3; do { cVar1 = *pcVar5; @@ -31485,7 +31485,7 @@ void FUN_00425b70(void) if (0xf < DAT_00c78f4c) { puVar4 = DAT_00c78f38; } - pcVar3 = (char *)FUN_009586f0(iVar2 + 0x4a920,puVar4); + pcVar3 = (char *)string_table_translate(iVar2 + 0x4a920,puVar4); pcVar5 = pcVar3; do { cVar1 = *pcVar5; @@ -31501,7 +31501,7 @@ void FUN_00425b70(void) if (0xf < DAT_00c78f64) { puVar4 = DAT_00c78f50; } - pcVar3 = (char *)FUN_009586f0(iVar2 + 0x4a920,puVar4); + pcVar3 = (char *)string_table_translate(iVar2 + 0x4a920,puVar4); pcVar5 = pcVar3; do { cVar1 = *pcVar5; @@ -31517,7 +31517,7 @@ void FUN_00425b70(void) if (0xf < DAT_00c78f7c) { puVar4 = DAT_00c78f68; } - pcVar3 = (char *)FUN_009586f0(iVar2 + 0x4a920,puVar4); + pcVar3 = (char *)string_table_translate(iVar2 + 0x4a920,puVar4); pcVar5 = pcVar3; do { cVar1 = *pcVar5; @@ -31533,7 +31533,7 @@ void FUN_00425b70(void) if (0xf < DAT_00c78f94) { puVar4 = DAT_00c78f80; } - pcVar3 = (char *)FUN_009586f0(iVar2 + 0x4a920,puVar4); + pcVar3 = (char *)string_table_translate(iVar2 + 0x4a920,puVar4); pcVar5 = pcVar3; do { cVar1 = *pcVar5; @@ -31549,7 +31549,7 @@ void FUN_00425b70(void) if (0xf < DAT_00c78fac) { puVar4 = DAT_00c78f98; } - pcVar3 = (char *)FUN_009586f0(iVar2 + 0x4a920,puVar4); + pcVar3 = (char *)string_table_translate(iVar2 + 0x4a920,puVar4); pcVar5 = pcVar3; do { cVar1 = *pcVar5; @@ -31565,7 +31565,7 @@ void FUN_00425b70(void) if (0xf < DAT_00c78fc4) { puVar4 = DAT_00c78fb0; } - pcVar3 = (char *)FUN_009586f0(iVar2 + 0x4a920,puVar4); + pcVar3 = (char *)string_table_translate(iVar2 + 0x4a920,puVar4); pcVar5 = pcVar3; do { cVar1 = *pcVar5; @@ -31581,7 +31581,7 @@ void FUN_00425b70(void) if (0xf < DAT_00c78fdc) { puVar4 = DAT_00c78fc8; } - pcVar3 = (char *)FUN_009586f0(iVar2 + 0x4a920,puVar4); + pcVar3 = (char *)string_table_translate(iVar2 + 0x4a920,puVar4); pcVar5 = pcVar3; do { cVar1 = *pcVar5; @@ -31597,7 +31597,7 @@ void FUN_00425b70(void) if (0xf < DAT_00c78ff4) { puVar4 = DAT_00c78fe0; } - pcVar3 = (char *)FUN_009586f0(iVar2 + 0x4a920,puVar4); + pcVar3 = (char *)string_table_translate(iVar2 + 0x4a920,puVar4); pcVar5 = pcVar3; do { cVar1 = *pcVar5; @@ -31613,7 +31613,7 @@ void FUN_00425b70(void) if (0xf < DAT_00c7900c) { puVar4 = DAT_00c78ff8; } - pcVar3 = (char *)FUN_009586f0(iVar2 + 0x4a920,puVar4); + pcVar3 = (char *)string_table_translate(iVar2 + 0x4a920,puVar4); pcVar5 = pcVar3; do { cVar1 = *pcVar5; @@ -31629,7 +31629,7 @@ void FUN_00425b70(void) if (0xf < DAT_00c79024) { puVar4 = DAT_00c79010; } - pcVar3 = (char *)FUN_009586f0(iVar2 + 0x4a920,puVar4); + pcVar3 = (char *)string_table_translate(iVar2 + 0x4a920,puVar4); pcVar5 = pcVar3; do { cVar1 = *pcVar5; @@ -31645,7 +31645,7 @@ void FUN_00425b70(void) if (0xf < DAT_00c7903c) { puVar4 = DAT_00c79028; } - pcVar3 = (char *)FUN_009586f0(iVar2 + 0x4a920,puVar4); + pcVar3 = (char *)string_table_translate(iVar2 + 0x4a920,puVar4); pcVar5 = pcVar3; do { cVar1 = *pcVar5; @@ -31661,7 +31661,7 @@ void FUN_00425b70(void) if (0xf < DAT_00c79054) { puVar4 = DAT_00c79040; } - pcVar3 = (char *)FUN_009586f0(iVar2 + 0x4a920,puVar4); + pcVar3 = (char *)string_table_translate(iVar2 + 0x4a920,puVar4); pcVar5 = pcVar3; do { cVar1 = *pcVar5; @@ -31677,7 +31677,7 @@ void FUN_00425b70(void) if (0xf < DAT_00c7906c) { puVar4 = DAT_00c79058; } - pcVar3 = (char *)FUN_009586f0(iVar2 + 0x4a920,puVar4); + pcVar3 = (char *)string_table_translate(iVar2 + 0x4a920,puVar4); pcVar5 = pcVar3; do { cVar1 = *pcVar5; @@ -31693,7 +31693,7 @@ void FUN_00425b70(void) if (0xf < DAT_00c79084) { puVar4 = DAT_00c79070; } - pcVar3 = (char *)FUN_009586f0(iVar2 + 0x4a920,puVar4); + pcVar3 = (char *)string_table_translate(iVar2 + 0x4a920,puVar4); pcVar5 = pcVar3; do { cVar1 = *pcVar5; @@ -31709,7 +31709,7 @@ void FUN_00425b70(void) if (0xf < DAT_00c7909c) { puVar4 = DAT_00c79088; } - pcVar3 = (char *)FUN_009586f0(iVar2 + 0x4a920,puVar4); + pcVar3 = (char *)string_table_translate(iVar2 + 0x4a920,puVar4); pcVar5 = pcVar3; do { cVar1 = *pcVar5; @@ -31725,7 +31725,7 @@ void FUN_00425b70(void) if (0xf < DAT_00c790b4) { puVar4 = DAT_00c790a0; } - pcVar3 = (char *)FUN_009586f0(iVar2 + 0x4a920,puVar4); + pcVar3 = (char *)string_table_translate(iVar2 + 0x4a920,puVar4); pcVar5 = pcVar3; do { cVar1 = *pcVar5; @@ -31741,7 +31741,7 @@ void FUN_00425b70(void) if (0xf < DAT_00c790cc) { puVar4 = DAT_00c790b8; } - pcVar3 = (char *)FUN_009586f0(iVar2 + 0x4a920,puVar4); + pcVar3 = (char *)string_table_translate(iVar2 + 0x4a920,puVar4); pcVar5 = pcVar3; do { cVar1 = *pcVar5; @@ -31757,7 +31757,7 @@ void FUN_00425b70(void) if (0xf < DAT_00c790e4) { puVar4 = DAT_00c790d0; } - pcVar3 = (char *)FUN_009586f0(iVar2 + 0x4a920,puVar4); + pcVar3 = (char *)string_table_translate(iVar2 + 0x4a920,puVar4); pcVar5 = pcVar3; do { cVar1 = *pcVar5; @@ -31773,7 +31773,7 @@ void FUN_00425b70(void) if (0xf < DAT_00c790fc) { puVar4 = DAT_00c790e8; } - pcVar3 = (char *)FUN_009586f0(iVar2 + 0x4a920,puVar4); + pcVar3 = (char *)string_table_translate(iVar2 + 0x4a920,puVar4); pcVar5 = pcVar3; do { cVar1 = *pcVar5; @@ -31803,7 +31803,7 @@ ulonglong FUN_004264c0(int param_1) (*(int *)(param_1 + 0x161c) <= *(int *)(iVar1 + 0x161c))) { iVar1 = param_1; } - iVar1 = FUN_0090ac70(iVar1); + iVar1 = InputManager::GetDeviceByPlayerEntity(iVar1); if (iVar1 == 0) { return 0xffffffffffffffff; } @@ -32147,9 +32147,9 @@ void deallocate(int param_1,int param_2) } -//@@ 00426980 FUN_00426980 +//@@ 00426980 std::vector::_Tidy -void FUN_00426980(void) +void std::vector::_Tidy(void) { int iVar1; @@ -33342,9 +33342,9 @@ int * std::set::find_node(int *param_1,int *param_2) return param_1; } -//@@ 004288f0 FUN_004288f0 +//@@ 004288f0 Entity::SetPosition -void FUN_004288f0(undefined4 *param_1) +void Entity::SetPosition(undefined4 *param_1) { int in_ECX; @@ -33355,9 +33355,9 @@ void FUN_004288f0(undefined4 *param_1) } -//@@ 00428910 FUN_00428910 +//@@ 00428910 Entity::SetVelocity -void FUN_00428910(undefined4 *param_1) +void Entity::SetVelocity(undefined4 *param_1) { int in_ECX; @@ -33381,9 +33381,9 @@ int GridEntity::GetSprite(void) } -//@@ 00428940 FUN_00428940 +//@@ 00428940 Seeds::Init3 -void FUN_00428940(uint *param_1) +void Seeds::Init3(uint *param_1) { int in_ECX; @@ -33711,7 +33711,7 @@ uint FUN_00428d30(void) ppvVar2 = &local_1c; if (*in_ECX == 0) { ExceptionList = ppvVar2; - ppvVar2 = (void **)FUN_009b9480(DAT_00bf93b4 ^ (int)register0x00000010 - 0x10U); + ppvVar2 = (void **)PlayerManager::count_main_players(DAT_00bf93b4 ^ (int)register0x00000010 - 0x10U); if (((void **)0x1 < ppvVar2) && (*(int *)(iVar1 + 0x26584) == 0)) { FUN_00919440(); /* WARNING: Subroutine does not return */ @@ -33812,7 +33812,7 @@ void FUN_004291c0(void) if (*(float *)(DAT_00c71678 + 0x26598) <= 0.0) { *in_ECX = 4; in_ECX[1] = 0; - FUN_009bea10(1); + entity_vector_set_flag_410(1); ExceptionList = local_10; return; } @@ -33989,7 +33989,7 @@ void FUN_00429570(void) } while (uVar2 < *(uint *)(iVar5 + 0x1264)); } Game::StartRoomTransition(0xffffffed,0xffffffff,0x15,0,0xffffffff); - FUN_008318a0(); + Game::update_pending_pickup_animations(); iVar5 = DAT_00c71678; iVar3 = 0; local_1c = 0; @@ -34074,12 +34074,12 @@ void FUN_00429810(undefined4 param_1) case 4: uVar3 = 1; LAB_0042985e: - FUN_009bea10(uVar3); + entity_vector_set_flag_410(uVar3); break; case 5: uStack_c0 = (**(code **)(*(int *)in_ECX[3] + 0x20))(local_18); if (uStack_c0 == 0) { - uVar3 = FUN_009586f0(DAT_00c7169c + 0x4a920,"#Online/DEATHMATCH_DRAW"); + uVar3 = string_table_translate(DAT_00c7169c + 0x4a920,"#Online/DEATHMATCH_DRAW"); uVar4 = 0x429b26; std::string::string_from_cstr(uVar3); uStack_8 = 3; @@ -34109,7 +34109,7 @@ LAB_0042985e: } uStack_8 = 1; uVar3 = (*(code *)ppuStack_b8[1])(); - uVar4 = FUN_009586f0(DAT_00c7169c + 0x4a920,"#Online/DEATHMATCH_WINNER"); + uVar4 = string_table_translate(DAT_00c7169c + 0x4a920,"#Online/DEATHMATCH_WINNER"); sprintf(acStack_98,uVar4,uVar3); uStack_8 = 0xffffffff; pcVar6 = acStack_98; @@ -34570,9 +34570,9 @@ void FUN_0042a230(void) } -//@@ 0042a250 FUN_0042a250 +//@@ 0042a250 Entity::IsFamiliar -bool FUN_0042a250(void) +bool Entity::IsFamiliar(void) { int in_ECX; @@ -35192,7 +35192,7 @@ void FUN_0042aca0(void) local_6c = 0; local_5c = local_5c - (float)((double)iVar1 + (double)(&DAT_00bacb00)[-(iVar1 >> 0x1f)]) * fVar4; local_8 = 0; - FUN_00a1aec0(local_54,&local_5c,&local_98,&local_84); + Font::DrawStringScaled(local_54,&local_5c,&local_98,&local_84); ExceptionList = local_10; return; } @@ -35209,7 +35209,7 @@ bool FUN_0042ae90(void) uint uVar4; uVar4 = 0; - uVar1 = FUN_009b9480(); + uVar1 = PlayerManager::count_main_players(); uVar3 = 0; if (uVar1 != 0) { do { @@ -35248,7 +35248,7 @@ undefined8 FUN_0042af00(void) local_10 = ExceptionList; ExceptionList = &local_10; uVar4 = 0; - uVar2 = FUN_009b9480(DAT_00bf93b4 ^ (int)register0x00000010 - 4U); + uVar2 = PlayerManager::count_main_players(DAT_00bf93b4 ^ (int)register0x00000010 - 4U); if (uVar2 != 0) { do { iVar3 = FUN_009b9310(uVar4); @@ -35506,7 +35506,7 @@ undefined4 FUN_0042b520(void) int iVar1; undefined4 uVar2; - iVar1 = FUN_009b9480(); + iVar1 = PlayerManager::count_main_players(); uVar2 = 8; if (iVar1 == 2) { uVar2 = 1; @@ -35526,11 +35526,11 @@ int FUN_0042b550(void) } -//@@ 0042b560 FUN_0042b560 +//@@ 0042b560 ItemPool::ReplaceBlacklistedPickup /* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */ -void FUN_0042b560(int *param_1,uint *param_2,uint *param_3) +void ItemPool::ReplaceBlacklistedPickup(int *param_1,uint *param_2,uint *param_3) { code *pcVar1; @@ -36134,7 +36134,7 @@ void FUN_0042c070(Entity_Player *param_1,undefined4 param_2) (param_1->_pos).y = fVar2; iVar6 = FUN_0090abf0(param_2); Entity_Player::SetControllerIndex(param_1,*(undefined4 *)(iVar6 + 0xc),uVar7); - FUN_007bc740(); + Entity_Player::InitPostLevelInitStats(); Entity_Player::AddMaxHearts(param_1,0x50 - param_1->_maxHearts,1); Entity_Player::SetFullHearts(); return; @@ -36182,7 +36182,7 @@ undefined4 FUN_0042c170(void) local_10 = ExceptionList; uVar2 = DAT_00bf93b4 ^ (uint)(local_2c + 0x28); ExceptionList = &local_10; - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); uVar7 = 0; uVar11 = 0; uVar8 = uVar7; @@ -36599,9 +36599,9 @@ void FUN_0042c820(uint param_1) } -//@@ 0042c850 FUN_0042c850 +//@@ 0042c850 std::vector::push_back -void FUN_0042c850(undefined4 *param_1) +void std::vector::push_back(undefined4 *param_1) { undefined4 *puVar1; @@ -37364,7 +37364,7 @@ void FUN_0042d1c0(int param_1) fStack_114 = fStack_10c; } fStack_114 = fStack_114 - fVar4 * 0.5; - FUN_00a10e70(&fStack_118,&fStack_124,extraout_ECX); + render_quad_set_rect(&fStack_118,&fStack_124,extraout_ECX); fStack_fc = fStack_11c; uStack_f8 = 0; uStack_60 = 0; @@ -37511,12 +37511,12 @@ undefined1 FUN_0042d7f0(void) } in_ECX[1] = in_ECX[1] | 1; uVar4 = 0; - iVar2 = FUN_009b9480(); + iVar2 = PlayerManager::count_main_players(); if (iVar2 != 0) { do { (**(code **)(*in_ECX + 0x3c))(); uVar4 = uVar4 + 1; - uVar3 = FUN_009b9480(); + uVar3 = PlayerManager::count_main_players(); } while (uVar4 < uVar3); } return 1; @@ -37828,7 +37828,7 @@ void FUN_0042dbb0(void) if (0xf < (uint)local_28[5]) { puVar2 = (undefined4 *)*local_28; } - FUN_00a1af90(puVar2,local_7c,&local_11c); + Font::DrawString(puVar2,local_7c,&local_11c); local_14 = 0xffffffff; break; case 0xfffa: @@ -37882,12 +37882,12 @@ void FUN_0042dbb0(void) local_3c = local_e0; local_30 = local_d4; local_24 = local_d8; - FUN_00a1d710(&local_e0,&local_d8,local_7c,local_7c,0x3f800000); + render_color_quad(&local_e0,&local_d8,local_7c,local_7c,0x3f800000); local_e8 = (local_5c - local_34) * 0.65 + local_64; local_e4 = (local_60 - local_54) * 0.65 + local_68; local_f0 = (local_48 - local_34) * 0.65 + local_64; local_ec = ((float)local_28 - local_54) * 0.65 + local_68; - FUN_00a1d710(&local_f0,&local_e8,local_7c,local_7c,0x3f800000); + render_color_quad(&local_f0,&local_e8,local_7c,local_7c,0x3f800000); local_8c = local_24; local_88 = local_30; local_94 = local_3c; @@ -37920,8 +37920,8 @@ void FUN_0042dbb0(void) local_68; local_40 = local_100; local_30 = local_fc; - FUN_00a1d710(&local_8c,&local_f8,local_7c,local_7c,0x3f800000); - FUN_00a1d710(&local_94,&local_100,local_7c,local_7c,0x3f800000); + render_color_quad(&local_8c,&local_f8,local_7c,local_7c,0x3f800000); + render_color_quad(&local_94,&local_100,local_7c,local_7c,0x3f800000); iVar7 = iVar7 + 1; local_8c = local_44; iVar5 = iVar5 + -1; @@ -37979,7 +37979,7 @@ void FUN_0042dbb0(void) sin(); local_cc = local_24 * local_34 * 0.65 + local_3c; local_24 = local_cc; - FUN_00a1d710(&local_84,&local_d0,local_7c,local_7c,0x3f800000); + render_color_quad(&local_84,&local_d0,local_7c,local_7c,0x3f800000); iVar7 = iVar7 + 1; local_84 = local_2c; local_80 = local_24; @@ -38008,8 +38008,8 @@ void FUN_0042dbb0(void) local_24 = (float)dVar13; local_c8 = local_48 + local_4c; local_c4 = local_50 + local_24 / (float)local_38; - FUN_00a10e70(&local_c8,&local_c0,local_7c); - FUN_00a1dfd0(); + render_quad_set_rect(&local_c8,&local_c0,local_7c); + render_color_shader_pass(); puVar6 = puVar4 + 2; break; case 0xfffd: @@ -38032,7 +38032,7 @@ void FUN_0042dbb0(void) local_24 = (float)dVar13; local_b8 = local_4c + local_48; local_b4 = local_50 + local_24 / (float)local_38; - FUN_00a10e70(&local_b8,&local_b0,local_7c); + render_quad_set_rect(&local_b8,&local_b0,local_7c); FUN_00a1d8f0(); puVar6 = puVar4 + 2; break; @@ -38061,7 +38061,7 @@ void FUN_0042dbb0(void) local_24 = (float)dVar13; local_a8 = local_4c + local_2c; local_a4 = local_50 + local_24 / local_34; - FUN_00a1d710(&local_a8,&local_a0,local_7c,local_7c,0x3f800000); + render_color_quad(&local_a8,&local_a0,local_7c,local_7c,0x3f800000); break; case 0xffff: local_7c = *(undefined1 (*) [16])(piVar8[7] + (uint)puVar4[1] * 0x14); @@ -38257,7 +38257,7 @@ void FUN_0042edb0(void) int in_ECX; FUN_004147f0(); - FUN_00426980(); + std::vector::_Tidy(); FID_conflict__Tidy((void *)(in_ECX + 0x14)); FUN_0042f240(); return; @@ -38332,9 +38332,9 @@ void FUN_0042ede0(undefined4 *param_1) } -//@@ 0042eef0 FUN_0042eef0 +//@@ 0042eef0 push_shape_points -void FUN_0042eef0(undefined4 *param_1) +void push_shape_points(undefined4 *param_1) { undefined4 *puVar1; @@ -38447,7 +38447,7 @@ void FUN_0042f060(void) while (puVar1 != (undefined4 *)0x0) { puVar2 = (undefined4 *)*puVar1; FUN_004147f0(); - FUN_00426980(); + std::vector::_Tidy(); FID_conflict__Tidy(puVar1 + 7); FUN_0042f240(); operator_delete(puVar1,0x40); @@ -38517,9 +38517,9 @@ void FUN_0042f0f0(undefined4 *param_1) } -//@@ 0042f150 FUN_0042f150 +//@@ 0042f150 std::vector::operator__ -int FUN_0042f150(int param_1) +int std::vector::operator__(int param_1) { int *in_ECX; @@ -39821,20 +39821,20 @@ LAB_0043061e: if (lVar3 < 0x1400000000) { local_8 = 0; KColor::SetFromARGB(0xffffffff); - FUN_00a1aec0(&DAT_00b1cebc,&local_1c,extraout_ECX,uVar2); + Font::DrawStringScaled(&DAT_00b1cebc,&local_1c,extraout_ECX,uVar2); ExceptionList = local_10; return; } if (lVar3 < 0x2800000000) { local_8 = 1; KColor::SetFromARGB(0xffffffff); - FUN_00a1aec0(&DAT_00b1ceb8,&local_1c,extraout_ECX_00,uVar2); + Font::DrawStringScaled(&DAT_00b1ceb8,&local_1c,extraout_ECX_00,uVar2); ExceptionList = local_10; return; } local_8 = 2; KColor::SetFromARGB(0xffffffff); - FUN_00a1aec0(&DAT_00b1cec0,&local_1c,extraout_ECX_01,uVar2); + Font::DrawStringScaled(&DAT_00b1cec0,&local_1c,extraout_ECX_01,uVar2); ExceptionList = local_10; return; } @@ -40079,7 +40079,7 @@ void FUN_00431070(undefined4 param_1,undefined4 *param_2,undefined4 *param_3) } if (0x7fffffff - _Size < uVar2) { /* WARNING: Subroutine does not return */ - FUN_0040ccc0(); + std::string::_Xlen(); } uVar6 = uVar1 | 0xf; if (uVar6 < 0x80000000) { @@ -40366,9 +40366,9 @@ float10 Entity::Mass(void) } -//@@ 00431530 FUN_00431530 +//@@ 00431530 Entity::IsTear -bool FUN_00431530(void) +bool Entity::IsTear(void) { int in_ECX; @@ -40377,9 +40377,9 @@ bool FUN_00431530(void) } -//@@ 00431540 FUN_00431540 +//@@ 00431540 Entity::IsProjectile -bool FUN_00431540(void) +bool Entity::IsProjectile(void) { int in_ECX; @@ -41036,7 +41036,7 @@ void FUN_00431be0(undefined4 param_1) in_ECX = local_e8; } local_14 = 0xffffffff; - FUN_004357e0(); + Entity_Familiar::set_extra_data(); std::string::string(); local_14 = 3; ANM2::Load((ANM2 *)(puVar8 + 6),&local_50._vec3,1); @@ -41122,7 +41122,7 @@ LAB_00431f23: pfVar12 = (float *)Entity_Player::GetBodyMoveDirection(); local_d0 = local_d0 + *pfVar12 * 6.0; local_d8 = (Vector *)((float)local_d8 + pfVar12[1] + pfVar12[1]); - cVar7 = FUN_0062a8f0(); + cVar7 = Entity_Familiar::CanPlayerFire(); if ((cVar7 != '\0') && (in_ECX->_state != 2)) { local_c0 = (Entity_Projectile *)0x0; local_128 = (undefined4 *)0x0; @@ -41463,7 +41463,7 @@ LAB_00431f23: if ((*(uint *)(DAT_00c71678 + 0x26544) >> 5 & 1) != 0) { DebugRenderer::Get(in_ECX->_index,1); Capsule::constructor2(&local_20c,&local_154,&local_124); - FUN_0042eef0(); + push_shape_points(); } local_c0 = *(Entity_Projectile **)(DAT_00c71678 + 0x18300); local_d0 = 18.0; @@ -41542,7 +41542,7 @@ LAB_00431f23: local_118 = 0.0; local_11c = 0.0; local_b9 = '\0'; - FUN_0041ab50(local_1cc,&local_50,uVar10); + EntityList::query_player_capsule_hits(local_1cc,&local_50,uVar10); local_14 = 4; local_c4 = (Vector *)0x0; if (local_1c0 != 0) { @@ -42524,9 +42524,9 @@ void FUN_00435740(void) } -//@@ 004357e0 FUN_004357e0 +//@@ 004357e0 Entity_Familiar::set_extra_data -void FUN_004357e0(undefined4 param_1) +void Entity_Familiar::set_extra_data(undefined4 param_1) { char cVar1; @@ -42775,9 +42775,9 @@ void FUN_00435bc0(undefined4 param_1,undefined4 param_2) } -//@@ 00435bf0 FUN_00435bf0 +//@@ 00435bf0 BitSet128::operator__ -void FUN_00435bf0(uint *param_1) +void BitSet128::operator__(uint *param_1) { uint *in_ECX; @@ -42900,9 +42900,9 @@ float10 Entity::DepthOffset(void) } -//@@ 00435d20 FUN_00435d20 +//@@ 00435d20 Entity::SetField380 -void FUN_00435d20(undefined4 param_1) +void Entity::SetField380(undefined4 param_1) { int in_ECX; @@ -42924,9 +42924,9 @@ void FUN_00435d40(undefined4 param_1) } -//@@ 00435d60 FUN_00435d60 +//@@ 00435d60 Entity::SetTargetPosition -void FUN_00435d60(undefined4 param_1,undefined4 param_2) +void Entity::SetTargetPosition(undefined4 param_1,undefined4 param_2) { int in_ECX; @@ -42960,9 +42960,9 @@ bool FUN_00435da0(void) } -//@@ 00435db0 FUN_00435db0 +//@@ 00435db0 Entity::GetHitPointsLost -int FUN_00435db0(void) +int Entity::GetHitPointsLost(void) { int in_ECX; @@ -43042,9 +43042,9 @@ int FUN_00435e30(void) } -//@@ 00435e40 FUN_00435e40 +//@@ 00435e40 Entity::ToTear -int FUN_00435e40(void) +int Entity::ToTear(void) { int in_ECX; @@ -43207,9 +43207,9 @@ void FUN_00435f70(undefined1 param_1) } -//@@ 00435f80 FUN_00435f80 +//@@ 00435f80 TemporaryEffect::TemporaryEffect -void FUN_00435f80(int param_1) +void TemporaryEffect::TemporaryEffect(int param_1) { int *in_ECX; @@ -43411,11 +43411,11 @@ undefined4 Level::GetCurrentRoomIndex(void) } -//@@ 004360f0 FUN_004360f0 +//@@ 004360f0 _get_index_plus_one_if_kind_4_5 /* WARNING: Removing unreachable block (ram,0x00436113) */ -int FUN_004360f0(void) +int _get_index_plus_one_if_kind_4_5(void) { int *in_ECX; @@ -43597,9 +43597,9 @@ void FUN_00436210(undefined4 param_1) } -//@@ 00436220 FUN_00436220 +//@@ 00436220 Entity::SetVisibleFlag -void FUN_00436220(char param_1) +void Entity::SetVisibleFlag(char param_1) { int in_ECX; @@ -43621,21 +43621,21 @@ void FUN_00436260(void) int in_ECX; if (*(int *)(in_ECX + 0x2c) == 0xed) { - FUN_004362a0(); + ItemConfig::get_wisp_config(); return; } if (*(int *)(in_ECX + 0x2c) == 0xce) { - FUN_004362a0(); + ItemConfig::get_wisp_config(); return; } - FUN_004362a0(); + ItemConfig::get_wisp_config(); return; } -//@@ 004362a0 FUN_004362a0 +//@@ 004362a0 ItemConfig::get_wisp_config -void FUN_004362a0(void) +void ItemConfig::get_wisp_config(void) { int iVar1; @@ -43904,7 +43904,7 @@ LAB_00436776: } } switchD_00436422_caseD_67: - local_58 = (undefined4 *)FUN_004362a0(); + local_58 = (undefined4 *)ItemConfig::get_wisp_config(); uVar8 = *local_58; *(undefined4 *)(in_ECX + 900) = uVar8; *(undefined4 *)(in_ECX + 0x380) = uVar8; @@ -44033,7 +44033,7 @@ LAB_0043680d: uVar6 = uVar6 >> 9 ^ uVar6; uVar6 = uVar6 << 0xb ^ uVar6; uVar6 = uVar6 >> 0x13 ^ uVar6; - FUN_00684b90(0x3f800000); + hsv_to_rgb(0x3f800000); local_50 = local_90 * 2.0; local_30 = 0; uStack_2c = 0; @@ -44079,7 +44079,7 @@ LAB_0043680d: /* WARNING: Subroutine does not return */ KAGE_LogMessage(0x10,"RNG Seed is zero!\n"); } - pfVar11 = (float *)FUN_00684b90(0x3f800000); + pfVar11 = (float *)hsv_to_rgb(0x3f800000); local_30 = 0; uStack_2c = 0; local_28 = 0.0; @@ -44108,7 +44108,7 @@ LAB_00436ceb: } } if (*(int *)(in_ECX + 0x2c) == 0xed) { - FUN_007d7740(in_ECX); + Entity_Player::UpdateFamiliarCounts(in_ECX); } Game::UpdateVisibility(DAT_00c71678); ExceptionList = local_1c; @@ -44219,7 +44219,7 @@ undefined4 __thiscall Entity_Familiar::wisp_kill(Entity_Familiar *this) local_24 = DAT_00bf93b4 ^ (uint)(apEStack_74 + 0x19); ExceptionList = &local_1c; uStack_64 = this; - iStack_8c = FUN_004362a0(local_24); + iStack_8c = ItemConfig::get_wisp_config(local_24); pEVar9 = (Entity *)this->_subtype; apEStack_74[0] = pEVar9; if ((Entity *)0x11f < pEVar9) { @@ -44255,7 +44255,7 @@ undefined4 __thiscall Entity_Familiar::wisp_kill(Entity_Familiar *this) uVar10 = EntityRef::EntityRef(0xffffffff,0,0); Entity::AddCharmed(pEVar9,uVar10,uVar18,uVar19,uVar21); (**(code **)(*(int *)pEVar9 + 0xc))(); - FUN_00436220(0); + Entity::SetVisibleFlag(0); fVar15 = *(float *)&pEVar9->field_0x384 + *(float *)&pEVar9->field_0x384; pEStack_68 = (Entity_Familiar *)0x109; *(float *)&pEVar9->field_0x384 = fVar15; @@ -44288,7 +44288,7 @@ undefined4 __thiscall Entity_Familiar::wisp_kill(Entity_Familiar *this) case (Entity *)0x125: pvVar7 = (void *)FUN_00436260(); pvStack_84 = pvVar7; - iVar11 = FUN_004360f0(); + iVar11 = _get_index_plus_one_if_kind_4_5(); pEStack_68 = (Entity_Familiar *)0x0; apEStack_74[0] = (Entity *) @@ -44316,7 +44316,7 @@ LAB_0043785e: } break; case (Entity *)0x15c: - NpcAI::ENTITY_MASK((Entity_NPC *)((int)DAT_00c71678->_room + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)((int)DAT_00c71678->_room + 0x1218)); uVar8 = 0; pEStack_14 = (Entity *)0x2; if (apEStack_74[0] != (Entity *)0x0) { @@ -44366,7 +44366,7 @@ LAB_0043785e: case (Entity *)0x160: if (DAT_00c7e83c == '\0') { DAT_00c7e83c = 1; - NpcAI::ENTITY_MASK((Entity_NPC *)((int)DAT_00c71678->_room + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)((int)DAT_00c71678->_room + 0x1218)); pEStack_14 = (Entity *)0x1; pEStack_68 = (Entity_Familiar *)0x0; if (puStack_28 != (undefined1 *)0x0) { @@ -44470,7 +44470,7 @@ LAB_0043785e: DAT_00c7e83d = 1; iVar11 = RNG::RandomInt(2); if (iVar11 == 0) { - NpcAI::ENTITY_MASK((Entity_NPC *)((int)DAT_00c71678->_room + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)((int)DAT_00c71678->_room + 0x1218)); uVar8 = 0; pEStack_14 = (Entity *)0x3; if (puStack_28 != (undefined1 *)0x0) { @@ -44487,7 +44487,7 @@ LAB_0043785e: } } else { - NpcAI::ENTITY_MASK((Entity_NPC *)((int)DAT_00c71678->_room + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)((int)DAT_00c71678->_room + 0x1218)); pEStack_14 = (Entity *)0x4; if (puStack_28 != (undefined1 *)0x0) { uVar8 = 0; @@ -44879,7 +44879,7 @@ Entity_Tear * FUN_004386f0(int *param_1,int *param_2) local_14 = DAT_00bf93b4 ^ (int)register0x00000010 - 0x10U; local_c4 = in_ECX; - piVar3 = (int *)FUN_004362a0(); + piVar3 = (int *)ItemConfig::get_wisp_config(); iVar6 = *(int *)((int)in_ECX + 0x30); local_b0 = piVar3; if (iVar6 == 0x10004) { @@ -44955,10 +44955,10 @@ LAB_00438842: piVar3[0xd3] = (int)((float)local_78 * 7.0); piVar3[0xd4] = (int)fVar11; pcVar1 = *(code **)(*piVar3 + 0x40); - FUN_0060dc40(); + Entity_Familiar::apply_tear_modifiers(); (*pcVar1)(fVar11 * 3.5); FUN_006341a0(piVar3); - FUN_0064bb70(piVar3); + Entity::convert_shot_for_enemy_owner(piVar3); (**(code **)(*piVar3 + 0xc))(); fVar10 = (float10)copysignf(0x40a00000,piVar3[0xd6]); piVar3[0xd6] = (int)(float)fVar10; @@ -45066,7 +45066,7 @@ LAB_00438842: } local_c8 = 0.0; Color::Color(); - iVar6 = FUN_004360f0(); + iVar6 = _get_index_plus_one_if_kind_4_5(); local_a0 = (int *)((float)(iVar6 + -1) * *(float *)((int)piVar3 + 8) + *(float *)((int)piVar3 + 4) ); iVar6 = Random(); @@ -45565,7 +45565,7 @@ switchD_00438fa0_caseD_27: pEVar9->_tearIdx = uVar5 & 1; cVar2 = Entity_Player::HasTrinket(0x7f,0); if (cVar2 != '\0') { - FUN_00634000(pEVar9); + Entity_Familiar::TryFireTear(pEVar9); } } uVar4 = Random(); @@ -45586,7 +45586,7 @@ switchD_00438fa0_caseD_27: pEVar9->_tearIdx = uVar5 & 1; cVar2 = Entity_Player::HasTrinket(0x7f,0); if (cVar2 != '\0') { - FUN_00634000(pEVar9); + Entity_Familiar::TryFireTear(pEVar9); } return pEVar9; } @@ -45676,7 +45676,7 @@ undefined4 FUN_0043a5e0(float *param_1,uint *param_2,int *param_3) goto LAB_0043a7f7; case 0x5d: if (((in_ECX[0xf1] == 0) && ((iVar2 < 10 || (iVar2 == 1000)))) && (param_3[9] != 0)) { - pEVar5 = (Entity *)FUN_006a89d0(); + pEVar5 = (Entity *)Entity::GetLastSpawner(); cVar4 = Entity::IsVulnerableEnemy(0); if (cVar4 != '\0') { local_30 = in_ECX[10]; @@ -45937,7 +45937,7 @@ void FUN_0043aa90(void) local_14 = DAT_00bf93b4 ^ (int)register0x00000010 - 4U; ExceptionList = &local_10; local_1b4[0] = in_ECX; - local_1c8 = (Vector *)FUN_004362a0(local_14); + local_1c8 = (Vector *)ItemConfig::get_wisp_config(local_14); local_1b5 = *(char *)&local_1c8[2].y; local_1f4 = (int)*(float *)&in_ECX->field_0x3a4 - (int)*(float *)&in_ECX->field_0x3a0; if ((*(int *)&in_ECX->field_0x2c == 0xce) && (*(int *)&in_ECX->field_0x30 == 0x28a)) { @@ -45990,7 +45990,7 @@ LAB_0043ac23: } } else { - iVar7 = FUN_00612330(); + iVar7 = Entity_Familiar::get_orbit_parent(); local_1bc = *(int **)(iVar7 + 0x33c); local_1cc = *(Vector **)(iVar7 + 0x364); local_1d0 = *(float *)(iVar7 + 0x340); @@ -46138,7 +46138,7 @@ LAB_0043bfef: *(int *)&in_ECX->field_0x328) + *(int *)&in_ECX->field_0x3ec) % 0x1e) + 0.0) / 30.0); } - FUN_00684b90(0x3f800000); + hsv_to_rgb(0x3f800000); puVar9 = (undefined4 *)Color::Color(); iVar7 = ANM2::GetLayer((ANM2 *)&in_ECX->field_0x48,0); if ((undefined4 *)(iVar7 + 0x48) != puVar9) { @@ -46159,7 +46159,7 @@ LAB_0043bfef: *(undefined8 *)(iVar7 + 0x68) = *(undefined8 *)(puVar9 + 8); *(undefined4 *)(iVar7 + 0x70) = puVar9[10]; } - FUN_00684b90(0x3f800000); + hsv_to_rgb(0x3f800000); puVar9 = (undefined4 *)Color::Color(); iVar7 = ANM2::GetLayer((ANM2 *)&in_ECX->field_0x48,1); if ((undefined4 *)(iVar7 + 0x48) != puVar9) { @@ -47280,7 +47280,7 @@ void FUN_0043db20(void) in_ECX[0xce] = (int)((float)(iVar8 / iVar5) * 40.0 + 120.0); } if (in_ECX[0x361] == 0) { - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)(iVar10 + 0x18300) + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)(iVar10 + 0x18300) + 0x1218)); local_8 = 0; local_18 = 0.0; if (local_24 != 0) { @@ -47394,7 +47394,7 @@ LAB_0043df18: ExceptionList = local_10; return; } - iVar5 = FUN_004362a0(); + iVar5 = ItemConfig::get_wisp_config(); in_ECX[0xdb] = 0x3f333333; iVar10 = in_ECX[0x104]; local_1c = (int *)(*(short *)(iVar5 + 0x18c) + 7); @@ -47669,7 +47669,7 @@ void FUN_0043e4a0(void) *(undefined4 *)(iVar4 + 0x4c4) = 0; local_18 = ABS(fVar6 * 57.295776); fVar6 = *(float *)(iVar4 + 0x41c); - FUN_006827a0(); + angle_lerp_shortest(); *(float *)(iVar4 + 0x4c8) = fVar6; if (fVar6 < 0.0) { local_18 = -local_18; @@ -47797,7 +47797,7 @@ undefined4 Entity_Familiar::GetRandomWisp(void) uVar1 = DAT_00bf93b4 ^ (int)register0x00000010 - 4U; ExceptionList = &local_10; uVar2 = ItemConfig::GetTaggedItems(0x4000000,0); - FUN_0043eca0(uVar2); + std::vector::copy_constructor(uVar2); piVar5 = (int *)0x0; local_18 = 0; piVar6 = (int *)0x0; @@ -47869,9 +47869,9 @@ undefined4 Entity_Familiar::GetRandomWisp(void) } -//@@ 0043eca0 FUN_0043eca0 +//@@ 0043eca0 std::vector::copy_constructor -void FUN_0043eca0(undefined4 *param_1) +void std::vector::copy_constructor(undefined4 *param_1) { int iVar1; @@ -48056,11 +48056,11 @@ undefined4 Room::GetBossID(void) } -//@@ 0043ef30 NpcAI::ENTITY_GEMINI +//@@ 0043ef30 ProjectileParams::ProjectileParams /* NPC AI for entity type 79 (from dispatcher 006c2990) */ -Entity_NPC * __fastcall NpcAI::ENTITY_GEMINI(Entity_NPC *npc) +Entity_NPC * __fastcall ProjectileParams::ProjectileParams(Entity_NPC *npc) { int iVar1; @@ -50234,9 +50234,9 @@ LAB_00442e5d: } if ((*(char *)((int)in_ECX + 0x171) != '\0') && (Entity::GetNullCapsule(), 0.0 < local_2c)) { if ((*(uint *)(DAT_00c71678 + 0x26544) >> 5 & 1) != 0) { - iVar7 = FUN_006b5f10(1); + iVar7 = Entity::GetDebugShape(1); *(undefined4 *)(iVar7 + 4) = 1; - FUN_0042eef0(&uStack_4c); + push_shape_points(&uStack_4c); } EntityList::QueryRadius(local_120,&uStack_4c,0xffffffff); local_14 = (int *)0x3; @@ -51012,7 +51012,7 @@ void FUN_00444900(void) uStack_5c = 0; uStack_58 = 0; uStack_54 = 0x3f800000; - FUN_009960b0(&local_60); + Game::start_poop_cloud_screen_effect(&local_60); return; } @@ -51587,7 +51587,7 @@ LAB_00446626: fStack_150 = *(float *)(in_ECX + 0x340) - 50.0; Color::Color(0x3f4ccccd); Entity_NPC::MakeBloodCloud(); - NpcAI::ENTITY_GEMINI((Entity_NPC *)auStack_b8); + ProjectileParams::ProjectileParams((Entity_NPC *)auStack_b8); fStack_a4 = 1.5; iVar11 = Entity_NPC::GetPlayerTarget(); pcStack_13c = (code *)(*(float *)(iVar11 + 0x33c) - (float)pcStack_154); @@ -51881,7 +51881,7 @@ LAB_00446626: else { local_164 = (code *)0x41f00000; } - NpcAI::ENTITY_GEMINI((Entity_NPC *)auStack_b8); + ProjectileParams::ProjectileParams((Entity_NPC *)auStack_b8); uStack_60 = 0x20; uStack_5c = 0; local_160 = (code *)0x0; @@ -51927,7 +51927,7 @@ LAB_00446626: SoundEffects::Play(local_164,0x3f800000,2,0,0x3f800000,0); } else { - NpcAI::ENTITY_GEMINI((Entity_NPC *)auStack_b8); + ProjectileParams::ProjectileParams((Entity_NPC *)auStack_b8); iVar11 = -1; do { pcVar19 = (code *)(((float)iVar11 * 25.0 + *(float *)(in_ECX + 0xbb4)) * 0.017453292 @@ -52171,9 +52171,9 @@ LAB_004475d1: } -//@@ 004476a0 FUN_004476a0 +//@@ 004476a0 Color::Color -void FUN_004476a0(undefined4 *param_1) +void Color::Color(undefined4 *param_1) { undefined4 uVar1; @@ -52203,9 +52203,9 @@ void FUN_004476a0(undefined4 *param_1) } -//@@ 00447720 FUN_00447720 +//@@ 00447720 set_field_0x37c -void FUN_00447720(undefined4 param_1) +void set_field_0x37c(undefined4 param_1) { int in_ECX; @@ -52455,7 +52455,7 @@ void FUN_004477b0(void) 2.3283064e-10 * 4.0) + (float)local_20c; local_1f4 = (float)local_20c + (float)local_20c + (in_ECX->_pos).y; local_1f8 = (code *)((float)local_1dc + (float)local_1dc + (in_ECX->_pos).x); - iVar8 = FUN_004d8b50(&local_208,0xc1000000); + iVar8 = spawn_small_maggot(&local_208,0xc1000000); *(undefined4 *)(iVar8 + 0x188) = 0; iVar9 = Random(); local_1fc = local_1fc + -1; @@ -53080,7 +53080,7 @@ LAB_00448f04: pfVar15 = (float *)Entity::GetNullOffset((Entity *)in_ECX,&local_1e4,"ShootPos"); local_1d4 = (code *)((in_ECX->_pos).x + *pfVar15); fStack_1d0 = pfVar15[1] + (in_ECX->_pos).y; - NpcAI::ENTITY_GEMINI((Entity_NPC *)auStack_160); + ProjectileParams::ProjectileParams((Entity_NPC *)auStack_160); uStack_10c = DAT_00c34f00; iStack_134 = _DAT_00c34ed8; iStack_130 = iRam00c34edc; @@ -53224,7 +53224,7 @@ LAB_00449f55: fStack_170 = local_1a4; local_16c = local_1a0; Entity_NPC::MakeBloodCloud(in_ECX,&local_1f8,&local_18c); - NpcAI::ENTITY_GEMINI((Entity_NPC *)auStack_b8); + ProjectileParams::ProjectileParams((Entity_NPC *)auStack_b8); uStack_a4 = 0x40400000; iStack_8c = _DAT_00c34eac; iStack_88 = iRam00c34eb0; @@ -53357,7 +53357,7 @@ LAB_00449f55: pcVar22 = local_20c; sin(); local_1c8 = (float)pcVar22 * 6.0 * (float)local_208 + local_1f4; - iVar9 = FUN_004d8b50(&local_1e4,0xc1000000); + iVar9 = spawn_small_maggot(&local_1e4,0xc1000000); *(undefined4 *)(iVar9 + 0x188) = 0; *(undefined4 *)(iVar9 + 0x37c) = 0x41700000; iVar8 = iVar8 + -1; @@ -54086,7 +54086,7 @@ void FUN_0044aad0(void) } iVar11 = DAT_00c71678; in_ECX[0xdf] = 0x41000000; - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)(iVar11 + 0x18300) + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)(iVar11 + 0x18300) + 0x1218)); uVar8 = 0; if (local_30 != (code *)0x0) { do { @@ -55703,7 +55703,7 @@ LAB_0044d03a: sin(); local_160 = (int *)((float)local_158 * 16.0 - (float)piVar7 * 0.0); local_140 = (float)piVar7 * 16.0 + (float)local_158 * 0.0; - NpcAI::ENTITY_GEMINI((Entity_NPC *)auStack_b8); + ProjectileParams::ProjectileParams((Entity_NPC *)auStack_b8); uStack_24 = 2; iVar13 = Random(); uStack_ac = 0xbe4ccccd; @@ -56245,7 +56245,7 @@ void FUN_0044f2b0(void) local_168._4_4_ = local_168._4_4_ + 1; } while (local_168._4_4_ < 10); if (in_ECX[0xc] == 0) { - NpcAI::ENTITY_GEMINI((Entity_NPC *)local_b8); + ProjectileParams::ProjectileParams((Entity_NPC *)local_b8); local_f4 = 0x40000000; uStack_f0 = 0x40000000; uStack_ec = 0x40000000; @@ -56576,7 +56576,7 @@ LAB_0044fbc1: bVar17 = true; } if (bVar17) { - NpcAI::ENTITY_GEMINI((Entity_NPC *)local_b8); + ProjectileParams::ProjectileParams((Entity_NPC *)local_b8); local_24 = 0xe; local_60 = 0x2000; local_5c = 0; @@ -57842,9 +57842,9 @@ switchD_00450eaa_caseD_1: } -//@@ 00452be0 FUN_00452be0 +//@@ 00452be0 _ptr_deref_or_minus1 -undefined4 FUN_00452be0(void) +undefined4 _ptr_deref_or_minus1(void) { int *in_ECX; @@ -57953,7 +57953,7 @@ int FUN_00452d40(void) uVar2 = DAT_00bf93b4 ^ (int)register0x00000010 - 4U; ExceptionList = &local_10; iVar5 = 0; - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); local_8 = 0; uVar6 = 0; if (local_1c != 0) { @@ -58026,7 +58026,7 @@ void FUN_00452eb0(void) local_10 = ExceptionList; uVar2 = DAT_00bf93b4 ^ (int)register0x00000010 - 4U; ExceptionList = &local_10; - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); local_8 = 0; uVar3 = 0; if (local_1c != 0) { @@ -58203,7 +58203,7 @@ void __fastcall NpcAI::ENTITY_BIG_HORN(Entity_NPC *npc) fVar16 = (float)((int)*(float *)&npc->field_0x3a4 - (int)*(float *)&npc->field_0x3a0); local_cc = npc; local_a0 = fVar16; - local_a1 = FUN_009be990(local_24); + local_a1 = NpcHelper::big_horn_is_any_hole_busy(local_24); if (npc->_state == 0) { local_98 = (Entity_NPC *)0x0; std::deque::resize(1,&local_98); @@ -58531,9 +58531,9 @@ LAB_00455d86: Entity::GetNullCapsule((Entity *)npc,local_4c,&DAT_00b1d710); if (0.0 < local_2c) { if (((uint)DAT_00c71678->_debugFlags >> 5 & 1) != 0) { - iVar12 = FUN_006b5f10(1); + iVar12 = Entity::GetDebugShape(1); *(undefined4 *)(iVar12 + 4) = 1; - FUN_0042eef0(local_4c); + push_shape_points(local_4c); } EntityList::QueryRadius(&local_60,local_4c,0xffffffff); local_14 = 4; @@ -58605,7 +58605,7 @@ LAB_00455d86: Entity::MakeGroundPoof((Entity *)npc,local_4c,&local_94); local_b0 = 60.0; local_ac = 40.0; - FUN_006b68c0(local_4c,&local_b0); + spawn_rock_particles(local_4c,&local_b0); Game::ShakeScreen(6); Entity_NPC::PlaySound(npc,0x30,0x3f800000,2,0,0x3f800000); } @@ -59744,9 +59744,9 @@ void FUN_00456190(undefined4 *param_1) } -//@@ 004561a0 FUN_004561a0 +//@@ 004561a0 std::iterator_copy -void FUN_004561a0(undefined4 *param_1) +void std::iterator_copy(undefined4 *param_1) { undefined4 *in_ECX; @@ -59802,9 +59802,9 @@ void FUN_00456230(void) } -//@@ 00456240 FUN_00456240 +//@@ 00456240 ColorParams::set_from_bytes -void FUN_00456240(int param_1,int param_2,int param_3,int param_4,int param_5,int param_6, +void ColorParams::set_from_bytes(int param_1,int param_2,int param_3,int param_4,int param_5,int param_6, int param_7) { @@ -59885,9 +59885,9 @@ undefined4 PathFinder::GetGridIndex(void) } -//@@ 00456380 FUN_00456380 +//@@ 00456380 Color::assign -void FUN_00456380(undefined4 *param_1) +void Color::assign(undefined4 *param_1) { undefined4 uVar1; @@ -60509,7 +60509,7 @@ void FUN_004568d0(void) local_1c = ExceptionList; uVar1 = DAT_00bf93b4 ^ (int)register0x00000010 - 0x10U; ExceptionList = &local_1c; - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); if (local_3c == 0) { *(undefined4 *)(in_ECX + 0x34) = 0; uVar2 = 3; @@ -61966,7 +61966,7 @@ LAB_00458cdf: (**(code **)(*piVar11 + 0xc))(); } else { - pfVar10 = (float *)FUN_00813460(&local_2c,0,0); + pfVar10 = (float *)Room::get_random_pickup_position(&local_2c,0,0); local_12c = *pfVar10; local_128 = pfVar10[1]; if (npc->_subtype == 0) { @@ -72044,7 +72044,7 @@ LAB_0046b893: npc->_projectileCooldown = iVar6 - ((int)*(float *)&npc->field_0x3a4 - (int)*(float *)&npc->field_0x3a0); } - iVar11 = FUN_006ac8d0(); + iVar11 = Entity::get_velocity_direction(); iVar6 = npc->_type; if ((iVar6 == 0x13) || (iVar6 == 0xef)) { local_34[0] = (Entity_NPC *)0xb1e09c; @@ -72120,7 +72120,7 @@ LAB_0046bfa5: local_fc = (Entity_NPC *)0x41900000; } Entity::GetLastParent(); - FUN_006d7df0(1); + Entity_NPC::FollowParentSegment(1); *(float *)&npc->field_0x36c = *(float *)&npc->field_0x36c * 0.8; ExceptionList = local_1c; return; @@ -73683,20 +73683,20 @@ LAB_0046f4e4: if (0 < iVar13) { uVar12 = Random(); uVar12 = Game::Spawn(0x12,0,&local_268,&DAT_00c7b640,npc,0,uVar12); - FUN_00417630(uVar12); + EntityList_EL::push_back(uVar12); } local_268 = local_268 + 10.0; if (1 < iVar13) { uVar12 = Random(); uVar12 = Game::Spawn(0x12,0,&local_268,&DAT_00c7b640,npc,0,uVar12); - FUN_00417630(uVar12); + EntityList_EL::push_back(uVar12); } if (npc->_variant == 0) { local_268 = local_268 - 20.0; if (2 < iVar13) { uVar12 = Random(); uVar12 = Game::Spawn(0x12,0,&local_268,&DAT_00c7b640,npc,0,uVar12); - FUN_00417630(uVar12); + EntityList_EL::push_back(uVar12); } } else if ((npc->_variant == 1) && (2 < iVar13)) { @@ -75031,7 +75031,7 @@ LAB_0047167f: local_40 = (int *)0x0; local_14 = 4; if (*(int *)(in_ECX + 0x2c) == 0) { - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); local_44 = local_2c; uStack_4c = CONCAT31(uStack_4c._1_3_,1); local_48 = local_30; @@ -75615,7 +75615,7 @@ LAB_00472a35: if (cVar2 != '\0') { Entity_NPC::PlaySound(); Entity_NPC::PlaySound(); - NpcAI::ENTITY_GEMINI((Entity_NPC *)local_e8); + ProjectileParams::ProjectileParams((Entity_NPC *)local_e8); local_e0 = 0x40400000; local_e4 = 0xc1700000; local_d8 = 0x3f99999a; @@ -78495,7 +78495,7 @@ LAB_00478eb0: if (iVar14 == 4) { puVar20 = &(pMVar16->_GreedDecoOverlaySprite).field_0xd4; uVar32 = 0x4781d4; - pfVar31 = (float *)FUN_00499230(uVar15); + pfVar31 = (float *)std::deque::front(uVar15); fVar28 = *(float *)&(pMVar16->_GreedDecoOverlaySprite).field_0xd8 - pfVar31[1]; fVar30 = *(float *)puVar20 - *pfVar31; fVar28 = fVar28 * fVar28 + fVar30 * fVar30; @@ -78512,19 +78512,19 @@ LAB_00478eb0: local_5c = *(float *)&(pMVar16->_CharacterPortraitsSprite).field_0xe4; local_54 = (float)(*(int *)&(pMVar16->_CharacterPortraitsSprite).field_0xf0 + 0x1e); local_58 = 0.0; - uVar15 = FUN_00499270(local_394); + uVar15 = _range_to_span(local_394); uVar35 = 0x478280; FUN_00479d50(uVar15); FUN_00479d50(&local_5c); - FUN_00498fd0(&local_5c,in_stack_fffffc1c,uVar35,uVar15,pTVar33,uVar32,puVar36); + std::deque::erase(&local_5c,in_stack_fffffc1c,uVar35,uVar15,pTVar33,uVar32,puVar36); local_5c = *(float *)&(pMVar16->_CharacterPortraitsSprite).field_0xf8; local_54 = (float)((int)(pMVar16->_CharacterPortraitsSprite)._playbackSpeed + 0x1e); local_58 = 0.0; - uVar15 = FUN_00499270(local_394); + uVar15 = _range_to_span(local_394); uVar35 = 0x4782d8; FUN_00479d50(uVar15); FUN_00479d50(&local_5c); - FUN_00498fd0(&local_5c,in_stack_fffffc1c,uVar35,uVar15,pTVar33,uVar32,puVar36); + std::deque::erase(&local_5c,in_stack_fffffc1c,uVar35,uVar15,pTVar33,uVar32,puVar36); } puVar36 = &(pMVar16->_GreedDecoOverlaySprite).field_0xd4; puVar20 = &(pMVar16->_GreedDecoOverlaySprite).field_0xe8; @@ -79746,7 +79746,7 @@ LAB_0047a28c: else if ((iVar7 == 1) && ((int)pEVar10 < 10)) { LAB_0047a2cf: local_11c = pEVar4; - FUN_00813460(&local_124,0,0); + Room::get_random_pickup_position(&local_124,0,0); uVar5 = Room::GetGridIndex(&local_124); Room::SetGridPath(uVar5,900); uVar5 = Random(); @@ -80327,7 +80327,7 @@ LAB_0047ad6b: (npc->_pos).y = *(float *)(iVar10 + 4 + uVar23 * 8); if (*(int *)&npc->field_0xc14 != 0) { local_164 = (TypeDescriptor *)0x47ae0a; - pfVar13 = (float *)FUN_00499230(); + pfVar13 = (float *)std::deque::front(); fVar30 = (npc->_pos).y - pfVar13[1]; fVar33 = (npc->_pos).x - *pfVar13; fVar30 = fVar30 * fVar30 + fVar33 * fVar33; @@ -81192,7 +81192,7 @@ LAB_0047c55f: } puVar27 = &pEVar18->field_0xc04; local_164 = (TypeDescriptor *)0x47c588; - pfVar13 = (float *)FUN_00499230(); + pfVar13 = (float *)std::deque::front(); local_98 = (Entity_NPC *)((pEVar18->_pos).x - *pfVar13); local_b4 = (Entity_NPC *)((pEVar18->_pos).y - pfVar13[1]); fVar30 = (float)local_98 * (float)local_98 + (float)local_b4 * (float)local_b4; @@ -81707,7 +81707,7 @@ LAB_0047c75c: pEStack_178 = (Entity_NPC *)local_b0; pfStack_17c = (float *)0x47c7a9; pEStack_168 = pEStack_174; - FUN_00498fd0(); + std::deque::erase(); } if (npc->_variant == 0) { if (npc->_subtype == 1) { @@ -83970,7 +83970,7 @@ LAB_00480a54: } Game::SetShockwaveParams(uVar7,&fStack_134); uVar9 = Color::Color(0x3f4ccccd); - piVar8 = (int *)FUN_006b66a0(uVar9); + piVar8 = (int *)Entity::MakeGroundPoofAtSelf(uVar9); } if ((*(int *)&npc->field_0x7c == 0) || (npc->field_0x8c == '\0')) { npc->_visible = 0; @@ -84863,7 +84863,7 @@ void NpcHelper::the_lamb_pattern(int param_1,uint param_2) undefined4 local_8; local_8 = DAT_00bf93b4 ^ (uint)(local_78 + 0x74); - NpcAI::ENTITY_GEMINI((Entity_NPC *)local_b4); + ProjectileParams::ProjectileParams((Entity_NPC *)local_b4); local_b0 = 0x40a00000; local_a0 = 0x3fe66666; local_a8 = 0xbd75c28f; @@ -88931,7 +88931,7 @@ LAB_0048996a: pEVar26->_health = pEVar26->_health * local_318[0x3d1]; cVar12 = (**(code **)(*(int *)pEVar26 + 0x4c))(); if (cVar12 != '\0') { - FUN_0060d140(local_318[0x3d5]); + Entity_NPC::set_entity_ptr_f54(local_318[0x3d5]); } } } @@ -93494,7 +93494,7 @@ LAB_004910c5: if ((local_64 != (Entity_NPC *)0x1) || (uVar9 = Random(), 9 < uVar9 % 100)) goto LAB_004910c5; LAB_0049117e: - cVar7 = FUN_009be990(); + cVar7 = NpcHelper::big_horn_is_any_hole_busy(); if ((cVar7 != '\0') || (((npc->_subtype == 2 || (npc->_subtype == 1)) || (cVar7 = Entity::HasEntityFlags(0,0x10000000), cVar7 != '\0')))) goto LAB_004910c5; @@ -94302,7 +94302,7 @@ void __fastcall NpcAI::ENTITY_RAG_MAN(Entity_NPC *npc) (npc->_velocity).x = ((float)pEVar18 - (npc->_velocity).x) * (1.0 - fVar21) + (npc->_velocity).x ; (npc->_velocity).y = ((float)pEVar4 - local_fc) * (1.0 - fVar21) + local_fc; - uVar9 = FUN_006ac8d0(); + uVar9 = Entity::get_velocity_direction(); switch(uVar9) { case 0: pcVar14 = "RollLeft"; @@ -97691,9 +97691,9 @@ void FUN_00498f80(void) } -//@@ 00498fd0 FUN_00498fd0 +//@@ 00498fd0 std::deque::erase -void FUN_00498fd0(undefined4 *param_1,undefined4 param_2,undefined4 param_3,uint param_4, +void std::deque::erase(undefined4 *param_1,undefined4 param_2,undefined4 param_3,uint param_4, undefined4 param_5,undefined4 param_6,uint param_7) { @@ -97832,9 +97832,9 @@ void std::deque::push_back(undefined4 *param_1) return; } -//@@ 00499230 FUN_00499230 +//@@ 00499230 std::deque::front -int FUN_00499230(void) +int std::deque::front(void) { code *pcVar1; @@ -97858,9 +97858,9 @@ int FUN_00499230(void) } -//@@ 00499270 FUN_00499270 +//@@ 00499270 _range_to_span -void FUN_00499270(undefined4 *param_1) +void _range_to_span(undefined4 *param_1) { int iVar1; @@ -98167,7 +98167,7 @@ void FUN_00499580(undefined4 *param_1,uint param_2,void *param_3,uint param_4) } if (0x7fffffff - uVar6 < uVar2) { /* WARNING: Subroutine does not return */ - FUN_0040ccc0(); + std::string::_Xlen(); } uVar5 = uVar6 + uVar2 | 0xf; if (uVar5 < 0x80000000) { @@ -98244,7 +98244,7 @@ void std::string::append(void *param_1,uint param_2) } if (0x7fffffff - _Size < param_2) { /* WARNING: Subroutine does not return */ - FUN_0040ccc0(); + std::string::_Xlen(); } uVar3 = _Size + param_2 | 0xf; if (uVar3 < 0x80000000) { @@ -98301,9 +98301,9 @@ void FUN_00499950(void) } -//@@ 00499960 FUN_00499960 +//@@ 00499960 EntityRef::operator_ -void FUN_00499960(undefined4 *param_1) +void EntityRef::operator_(undefined4 *param_1) { undefined4 *in_ECX; @@ -98501,9 +98501,9 @@ void atan2f(void) return; } -//@@ 00499da0 FUN_00499da0 +//@@ 00499da0 Entity::ToPlayer -int FUN_00499da0(void) +int Entity::ToPlayer(void) { int in_ECX; @@ -99079,9 +99079,9 @@ LAB_0049a8fb: Entity::GetNullCapsule((Entity *)npc,local_300,"Hitbox"); if (0.0 < local_2e0) { if ((*(uint *)(DAT_00c71678 + 0x26544) >> 5 & 1) != 0) { - iVar15 = FUN_006b5f10(1); + iVar15 = Entity::GetDebugShape(1); *(undefined4 *)(iVar15 + 4) = 1; - FUN_0042eef0(local_300); + push_shape_points(local_300); } EntityList::QueryRadius(local_2d8,local_300,0xffffffff); local_14 = 2.8026e-45; @@ -99478,7 +99478,7 @@ switchD_00499f10_caseD_1: *(float *)&npc->field_0x36c = *(float *)&npc->field_0x36c * 0.5; cVar3 = Sprite::IsEventTriggered("Shoot"); if (cVar3 != '\0') { - uVar10 = FUN_00737380(&DAT_00b1e620,0xc,npc->_initSeed,0x24,1,0); + uVar10 = ItemPool::get_available_collectibles(&DAT_00b1e620,0xc,npc->_initSeed,0x24,1,0); uVar8 = RNG::Next(); uVar9 = Isaac::GetCollectibleSpawnPosition(); iVar15 = Game::Spawn(5,100,uVar9,&DAT_00c7b640,0,uVar10,uVar8); @@ -99994,7 +99994,7 @@ void FUN_0049cd90(void) local_18 = 1.0 - (float)(int)((uVar8 ^ (int)uVar8 >> 0x1f) - ((int)uVar8 >> 0x1f)) * 0.2; local_1c = (local_8 * local_14 - local_c * fVar9) * 8.0 * local_18; local_18 = (local_8 * fVar9 + local_c * local_14) * 8.0 * local_18; - FUN_004d8b50(&local_1c,0xc1000000); + spawn_small_maggot(&local_1c,0xc1000000); uVar8 = uVar8 + 1; } while ((int)uVar8 < 3); iVar5 = ANM2::GetLayer((ANM2 *)(in_ECX + 0x48),1); @@ -102787,7 +102787,7 @@ float * FUN_004a2940(float *param_1,undefined1 *param_2) ExceptionList = &local_10; local_14 = uVar4; memset(local_714,0,0x700); - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); local_8 = 0; uVar9 = 0; if (local_724 != 0) { @@ -103456,7 +103456,7 @@ LAB_004a4ba4: cVar3 = Sprite::IsEventTriggered(&DAT_00b1d574); if (cVar3 != '\0') { Entity_NPC::PlaySound(npc,0xe2,0x3f800000,2,0,0x3f800000); - FUN_006b6810(&npc->field_0x1e4); + Entity::MakeBloodPoofAtPos(&npc->field_0x1e4); ENTITY_GEMINI((Entity_NPC *)local_128); local_94 = 3; uStack_140 = CONCAT44(0x41200000,(undefined4)uStack_140); @@ -103969,7 +103969,7 @@ LAB_004a4020: if (cVar3 != '\0') { Entity_NPC::PlaySound(npc,0x25,0x3f800000,2,0,0x3f800000); uVar11 = Color::Color(0x3f19999a); - FUN_006b66a0(uVar11); + Entity::MakeGroundPoofAtSelf(uVar11); uVar6 = 0; do { iVar10 = Random(); @@ -104481,7 +104481,7 @@ LAB_004a609a: } if (0x7fffffff - local_2c < uVar8) { /* WARNING: Subroutine does not return */ - FUN_0040ccc0(); + std::string::_Xlen(); } uVar8 = uVar8 + local_2c; uVar16 = uVar8 | 0xf; @@ -104679,7 +104679,7 @@ LAB_004a62df: } while (uVar9 < *(uint *)(iVar1 + 0x1264)); } if (in_ECX == 0x4f) { - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); local_8 = 0; uVar5 = 0; if (local_1c != 0) { @@ -104709,7 +104709,7 @@ joined_r0x004a63ae: } } else if (in_ECX == 0x197) { - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); local_8 = 2; uVar5 = 0; if (local_1c != 0) { @@ -104720,7 +104720,7 @@ joined_r0x004a63ae: } goto joined_r0x004a63ae; } - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); local_8 = 4; uVar5 = 0; if (local_2c != 0) { @@ -104732,7 +104732,7 @@ joined_r0x004a63ae: uVar5 = uVar5 + 1; } while (uVar5 < local_2c); } - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); local_8 = CONCAT31(local_8._1_3_,5); uVar5 = 0; if (local_1c != 0) { @@ -105345,7 +105345,7 @@ LAB_004a7bc5: npc->_health = (float)local_48; *(Entity_NPC **)&npc->field_0x384 = local_9c; if ((byte ********)puVar20 != &local_b4) { - FUN_004aab30(local_50,pppppppbVar23,local_60); + std::vector::assign_0x38(local_50,pppppppbVar23,local_60); } cVar6 = local_41; *(byte *************)&npc->field_0x18 = local_68; @@ -106754,9 +106754,9 @@ void FUN_004aaaf0(undefined4 *param_1,undefined4 *param_2,undefined4 *param_3) } -//@@ 004aab30 FUN_004aab30 +//@@ 004aab30 std::vector::assign_0x38 -void FUN_004aab30(int param_1,int param_2) +void std::vector::assign_0x38(int param_1,int param_2) { uint uVar1; @@ -107327,16 +107327,16 @@ Game * __fastcall NpcAI::ENTITY_DOGMA(Entity_NPC *npc) fVar19 = (npc->_pos).y; local_128 = (Game *)((((npc->_targetPosition).y + 0.0) - fVar19) * (float)local_fc + fVar19 + 0.0); - FUN_004b0f50(&local_12c); + std::deque::push_back(&local_12c); local_13c = 0; local_138 = (Game *)0x0; - FUN_004b0f50(&local_13c); + std::deque::push_back(&local_13c); local_134 = 0xc1f00000; local_130 = (int *)0x0; - FUN_004b0f50(&local_134); + std::deque::push_back(&local_134); uVar6 = uVar6 + 1; } while (uVar6 < 10); - FUN_004b0e40(&npc->field_0xc04); + std::deque::assign(&npc->field_0xc04); } iVar11 = *(int *)&npc->field_0x3bc; if (iVar11 == 0) { @@ -107386,7 +107386,7 @@ Game * __fastcall NpcAI::ENTITY_DOGMA(Entity_NPC *npc) (uVar6 >> 1 & *(int *)&npc->field_0xc0c - 1U) * 4); *(undefined4 *)(iVar11 + uVar17 * 8) = 0xc1f00000; *(undefined4 *)(iVar11 + 4 + uVar17 * 8) = 0; - FUN_004e8fa0(local_150); + Entity_NPC::UpdateCordChain(local_150); } local_110 = (Game *)((float)local_110 - (npc->_pos).y); local_104 = (Game *)((float)local_104 - (npc->_pos).x); @@ -107453,7 +107453,7 @@ Game * __fastcall NpcAI::ENTITY_DOGMA(Entity_NPC *npc) puVar1 = (uint *)(pGVar15->_stageType + 0x44); *puVar1 = *puVar1 | 0x8000; FUN_007f1380(); - FUN_0093da00(); + Backdrop::load_details(); Game::SetColorModifier(); npc = (Entity_NPC *)local_104; } @@ -107525,7 +107525,7 @@ Game * __fastcall NpcAI::ENTITY_DOGMA(Entity_NPC *npc) puVar1 = (uint *)(pGVar15->_stageType + 0x44); *puVar1 = *puVar1 & 0xfffffffe; FUN_007f1380(); - FUN_0093da00(); + Backdrop::load_details(); local_118 = (int *)0x0; local_114 = 0.0; if (*(int *)&pGVar15->field_0x1264 != 0) { @@ -107835,7 +107835,7 @@ LAB_004ab524: iVar11 = *(int *)&pGVar15->field_0x11f8; pGVar14 = local_110; if (*(char *)(iVar11 + 0x8c) == '\0') { - pGVar14 = (Game *)FUN_00945130(&((Game *)npc)->field_0x33c); + pGVar14 = (Game *)ring_buffer_push(&((Game *)npc)->field_0x33c); *(undefined1 *)(iVar11 + 0x8c) = 1; } break; @@ -109005,7 +109005,7 @@ LAB_004ae898: } } else { - NpcAI::ENTITY_GEMINI((Entity_NPC *)local_d0); + ProjectileParams::ProjectileParams((Entity_NPC *)local_d0); uVar8 = 0; local_dc = (int *)((float)local_d8 - 10.0); local_3c = 0xd; @@ -109285,7 +109285,7 @@ LAB_004af666: in_ECX[0x2f0] = 0; Entity_NPC::PlaySound(); Entity_NPC::PlaySound(); - NpcAI::ENTITY_GEMINI((Entity_NPC *)local_d0); + ProjectileParams::ProjectileParams((Entity_NPC *)local_d0); local_c4 = 0xbda3d70a; local_3c = 0xd; local_bc = 0.6; @@ -109474,7 +109474,7 @@ LAB_004afc59: } } else { - cVar1 = FUN_006a8f20(pAVar9); + cVar1 = Entity::is_valid_boss_enemy(pAVar9); pAVar9 = extraout_ECX_17; if (cVar1 != '\0') { cVar1 = (**(code **)(*piVar14 + 0x4c))(); @@ -109958,9 +109958,9 @@ LAB_004b0e0c: } -//@@ 004b0e40 FUN_004b0e40 +//@@ 004b0e40 std::deque::assign -int FUN_004b0e40(int param_1) +int std::deque::assign(int param_1) { int *piVar1; @@ -109980,7 +109980,7 @@ int FUN_004b0e40(int param_1) for (; uVar7 != uVar6; uVar7 = uVar7 + 1) { if (uVar5 == uVar3) { do { - FUN_004b0f50(*(int *)(*(int *)(param_1 + 4) + + std::deque::push_back(*(int *)(*(int *)(param_1 + 4) + (uVar7 >> 1 & *(int *)(param_1 + 8) - 1U) * 4) + (uVar7 & 1) * 8); uVar7 = uVar7 + 1; } while (uVar7 != uVar6); @@ -110004,9 +110004,9 @@ int FUN_004b0e40(int param_1) } -//@@ 004b0f50 FUN_004b0f50 +//@@ 004b0f50 std::deque::push_back -void FUN_004b0f50(undefined4 *param_1) +void std::deque::push_back(undefined4 *param_1) { uint uVar1; @@ -110085,7 +110085,7 @@ void FUN_004b0fe0(void) local_28[3] = 0x1b; local_28[1] = 1; local_28[2] = 0x1b; - FUN_00428940(local_28); + Seeds::Init3(local_28); local_18 = (Room *)(DAT_00c71678 + 0x18910); local_14 = 0; if (local_28[0] == 0) { @@ -110709,7 +110709,7 @@ LAB_004b1ace: local_40[6] = local_40[0]; local_40[3] = iVar6; if (local_68 == local_74) { - FUN_004b39b0(local_68,local_40 + 3); + std::vector::_Emplace_reallocate(local_68,local_40 + 3); local_74 = local_64; } else { @@ -110974,7 +110974,7 @@ LAB_004b228c: uVar15 = *(undefined4 *)((int)&npc->_flags + 4); *(uint *)&npc->_flags = (uint)npc->_flags | 0x80100000; *(undefined4 *)((int)&npc->_flags + 4) = uVar15; - FUN_00436220(0); + Entity::SetVisibleFlag(0); } if (local_1e0[0] == '\0') { local_14 = 1.4013e-45; @@ -111688,9 +111688,9 @@ void FUN_004b3950(void) } -//@@ 004b39b0 FUN_004b39b0 +//@@ 004b39b0 std::vector::_Emplace_reallocate -undefined4 * FUN_004b39b0(undefined4 *param_1,undefined4 *param_2) +undefined4 * std::vector::_Emplace_reallocate(undefined4 *param_1,undefined4 *param_2) { uint uVar1; @@ -112047,7 +112047,7 @@ void FUN_004b3f10(void) undefined4 *local_10; float local_c; - FUN_006d81c0(); + Entity_NPC::ClearDequeRefs(); uVar4 = 0; do { local_10 = (undefined4 *)((float)(&DAT_00c33c88)[uVar4 * 2] + *(float *)(in_ECX + 0x33c)); @@ -112246,7 +112246,7 @@ LAB_004b42a6: *(undefined2 *)(local_34 + 0x410) = 0xffff; *(int *)(local_34 + 0xb64) = iVar3; if (iVar3 == 7) { - FUN_006d81c0(); + Entity_NPC::ClearDequeRefs(); if (*(int *)(local_34 + 0x3c0) != 0) { local_38 = (undefined4 *)(local_34 + 0x3c0); std::multiset::erase(&local_38); @@ -112518,7 +112518,7 @@ LAB_004b44fe: } while (uVar16 < *(uint *)&npc->field_0xc00); if (fVar29 != 0.0) break; } - FUN_006d81c0(); + Entity_NPC::ClearDequeRefs(); npc->_state = 5; break; case 5: @@ -112791,7 +112791,7 @@ LAB_004b5198: piVar14[0x2d9] = 9; (**(code **)(*piVar14 + 0xc))(); pfStack_130 = (float *)0x0; - FUN_004b6a90(&pfStack_130); + std::deque::push_front(&pfStack_130); apfStack_104[0] = *(float **)&npc->field_0x3c0; uVar16 = (*(int *)&npc->field_0xc00 + *(int *)&npc->field_0xbfc) - 1; uVar17 = uVar16 & 3; @@ -112889,13 +112889,13 @@ LAB_004b5593: if ((fVar29 < npc->_health || fVar29 == npc->_health) || (cVar6 != '\x01')) { (npc->_targetPosition).x = DAT_00c7b640; (npc->_targetPosition).y = DAT_00c7b644; - FUN_006d81c0(); + Entity_NPC::ClearDequeRefs(); *(undefined1 *)((int)&npc->_projectileDelay + 3) = 0xc; *(undefined2 *)((int)&npc->_stateFrame + 2) = 0; npc->_state = 3; } else { - FUN_006d81c0(); + Entity_NPC::ClearDequeRefs(); npc->_state = 7; } } @@ -113287,7 +113287,7 @@ LAB_004b5919: Game::ShakeScreen(0xc); Entity_NPC::PlaySound(npc,0x30,0x3f800000,2,0,0x3f800000); uVar9 = Color::Color(0x3f4ccccd); - FUN_006b66a0(uVar9); + Entity::MakeGroundPoofAtSelf(uVar9); Entity_NPC::PlaySound(npc,0x1e3,0x3f800000,0x2d,0,0x3f800000); iVar10 = 0; do { @@ -113449,9 +113449,9 @@ LAB_004b67fd: } -//@@ 004b6a90 FUN_004b6a90 +//@@ 004b6a90 std::deque::push_front -void FUN_004b6a90(undefined4 *param_1) +void std::deque::push_front(undefined4 *param_1) { uint uVar1; @@ -114473,7 +114473,7 @@ void FUN_004b7c30(int param_1,undefined4 param_2) (iVar2 = *(int *)(*(int *)(in_ECX + 0x80) + iVar1 * 4), -1 < iVar2)) && (iVar4 = iVar1 * 0x10 + *(int *)(iVar4 + 0x18), iVar2 < *(int *)(iVar4 + 8))))))) && (iVar2 * 0x6c + *(int *)(iVar4 + 4) != 0)) { - FUN_0040bbf0(iVar3); + AnimationState::copy_assign(iVar3); pAVar5 = (ANM2 *)(in_ECX + 0x48); iVar3 = ANM2::GetLayer(pAVar5,4); *(undefined1 *)(iVar3 + 0x74) = 1; @@ -114793,7 +114793,7 @@ LAB_004b8675: KAGE_LogMessage(4,"no doors to enter from!\n"); } } - uVar3 = FUN_004bb550(&local_50); + uVar3 = NpcHelper::hornfel_get_rail_direction(&local_50); if ((local_50 == DAT_00c7b640) && ((float)local_4c == DAT_00c7b644)) { /* WARNING: Subroutine does not return */ KAGE_LogMessage(0x10,"exit velocity is zero\n"); @@ -114856,7 +114856,7 @@ LAB_004b8675: *(undefined4 *)((int)&pEVar9->_flags + 4) = uVar8; local_48 = pEVar9; (**(code **)(iVar7 + 0xc))(); - uVar8 = FUN_004bb550(local_68); + uVar8 = NpcHelper::hornfel_get_rail_direction(local_68); local_4c = (Entity *)Entity::GiveMinecart(pEVar9,local_5c + 0xcd,uVar8); local_2c = 0; puVar1 = &local_4c->field_0x48; @@ -115035,9 +115035,9 @@ LAB_004b8a06: return piVar6; } -//@@ 004b8a30 FUN_004b8a30 +//@@ 004b8a30 NpcHelper::hornfel_ride_minecart -void FUN_004b8a30(void) +void NpcHelper::hornfel_ride_minecart(void) { undefined4 *puVar1; @@ -115068,7 +115068,7 @@ void FUN_004b8a30(void) if ((*(int *)(in_ECX + 0xb64) == 10) && (iVar4 = *(int *)(in_ECX + 0xbec), iVar4 != 0)) { if ('\0' < *(char *)(in_ECX + 0xba6)) { ExceptionList = &local_10; - FUN_004bb550(local_1c); + NpcHelper::hornfel_get_rail_direction(local_1c); Entity_NPC::SetMinecartPosVel(pEVar3,iVar4 + 0x334,local_1c); fVar2 = (pEVar3->_pos).x; fVar10 = (pEVar3->_pos).y; @@ -115104,7 +115104,7 @@ void FUN_004b8a30(void) iVar4 = DAT_00c71678; *(undefined4 *)(in_ECX + 0x15c) = 0; pEVar3->_shadowSize = 0.0; - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)(iVar4 + 0x18300) + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)(iVar4 + 0x18300) + 0x1218)); uVar9 = 0; if (local_20 != 0) { do { @@ -115611,7 +115611,7 @@ void __thiscall Entity_NPC::Hornfel_UpdateAI(Entity_NPC *this) } local_12c = *(int *)&this->field_0x3d4; } - FUN_004b8a30(); + NpcHelper::hornfel_ride_minecart(); *(undefined2 *)((int)&this->_projectileCooldown + 1) = 0x1e1e; puVar3 = puStack_20; } @@ -115837,12 +115837,12 @@ LAB_004ba6b2: } else { this->_entityGridCollisionClass = 0; - pfVar12 = (float *)FUN_004bb550(local_140); + pfVar12 = (float *)NpcHelper::hornfel_get_rail_direction(local_140); fVar21 = this->_speedMultiplier; fVar22 = pfVar12[1]; (this->_velocity).x = -*pfVar12 * fVar21 + (this->_velocity).x; (this->_velocity).y = -fVar22 * fVar21 + (this->_velocity).y; - FUN_004bb830(5); + NpcHelper::hornfel_set_anim(5); iVar11 = Room::GetGridIndex(&this->_pos); if (iVar11 < 0) { FUN_007fec00(this); @@ -116124,7 +116124,7 @@ LAB_004b9d9e: ANM2::Play((ANM2 *)&this->field_0x48,"ChargeFinish",0); cVar4 = Sprite::IsEventTriggered("Shoot"); if (cVar4 != '\0') { - NpcAI::ENTITY_GEMINI((Entity_NPC *)local_f8); + ProjectileParams::ProjectileParams((Entity_NPC *)local_f8); local_9c = local_9c | 8; local_50 = 0x3f800000; uStack_4c = 0x3f800000; @@ -116382,7 +116382,7 @@ LAB_004baae3: *(undefined4 *)pEVar20 = 0; } } - FUN_004cee90(); + NpcHelper::minecart_break(); this->_state = 0xd; ANM2::Play((ANM2 *)&this->field_0x48,&DAT_00b1cdf8,0); puVar3 = &this->field_0xbec; @@ -116418,8 +116418,8 @@ void __thiscall Entity_NPC::Hornfel_UpdateFrame(Entity_NPC *this) npc = *(Entity_NPC **)&this->field_0x3d4; if (((this->_state == 10) && (*(int *)&this->field_0xbec != 0)) && - (FUN_004bb830(10), *(int *)(*(int *)&this->field_0xbec + 0x3bc) != 0)) { - FUN_004bb830(10); + (NpcHelper::hornfel_set_anim(10), *(int *)(*(int *)&this->field_0xbec + 0x3bc) != 0)) { + NpcHelper::hornfel_set_anim(10); } if (npc == (Entity_NPC *)0x0) { return; @@ -116458,7 +116458,7 @@ LAB_004bb1a9: return; } LAB_004bb1bb: - FUN_004b8a30(); + NpcHelper::hornfel_ride_minecart(); return; } @@ -116590,9 +116590,9 @@ LAB_004bb4af: } -//@@ 004bb550 FUN_004bb550 +//@@ 004bb550 NpcHelper::hornfel_get_rail_direction -void FUN_004bb550(undefined4 *param_1) +void NpcHelper::hornfel_get_rail_direction(undefined4 *param_1) { byte bVar1; @@ -116715,9 +116715,9 @@ undefined4 FUN_004bb6b0(void) } -//@@ 004bb830 FUN_004bb830 +//@@ 004bb830 NpcHelper::hornfel_set_anim -void FUN_004bb830(undefined4 param_1) +void NpcHelper::hornfel_set_anim(undefined4 param_1) { byte bVar1; @@ -116900,7 +116900,7 @@ void __fastcall NpcAI::ENTITY_HORNFEL_DOOR(Entity_NPC *npc) if ((iVar11 == local_c) || ((cVar4 = FUN_009e3450(iVar11,local_c), cVar4 != '\0' && (0.2 < local_10 * fVar13 + local_14 * fVar15)))) { - FUN_004bb830(0xf); + NpcHelper::hornfel_set_anim(0xf); } } local_18 = local_18 + 1; @@ -117176,7 +117176,7 @@ uint FUN_004bc460(void) if ((0 < (int)uVar2) && (*(char *)((int)in_ECX + 0x173) != '\0')) { iVar6 = FUN_004bb350(); if (iVar6 != 0) { - FUN_004bb550(&fStack_4c); + NpcHelper::hornfel_get_rail_direction(&fStack_4c); if ((fStack_4c != DAT_00c7b640) || (fStack_48 != DAT_00c7b644)) { auStack_44[0] = 0x337; auStack_44[1] = 0; @@ -117792,7 +117792,7 @@ void __fastcall NpcAI::ENTITY_HORNY_BOYS(Entity_NPC *npc) switch(npc->_state) { case 0: npc->_state = 3; - FUN_006d81c0(); + Entity_NPC::ClearDequeRefs(); local_f4 = 0.0; std::deque::resize(3,&local_f4); npc->_entityGridCollisionClass = 3; @@ -118291,9 +118291,9 @@ LAB_004be326: } -//@@ 004be670 FUN_004be670 +//@@ 004be670 NpcHelper::query_nearest_other -int FUN_004be670(int param_1,float param_2,float param_3) +int NpcHelper::query_nearest_other(int param_1,float param_2,float param_3) { int iVar1; @@ -119032,7 +119032,7 @@ void __fastcall NpcAI::ENTITY_HUSH_FLY(Entity_NPC *npc) pTVar24 = &IsaacRepentancePlus::Entity_NPC::RTTI_Type_Descriptor; pTVar23 = &IsaacRepentancePlus::Entity::RTTI_Type_Descriptor; uVar22 = 0; - uVar12 = FUN_004be670(piVar11,piVar11[0xcf],piVar11[0xd0]); + uVar12 = NpcHelper::query_nearest_other(piVar11,piVar11[0xcf],piVar11[0xd0]); piVar13 = (int *)__RTDynamicCast(uVar12,uVar22,pTVar23,pTVar24,uVar25); if ((piVar13 != (int *)0x0) && (piVar13 != piVar11)) { iVar10 = piVar11[0x2f0]; @@ -119053,7 +119053,7 @@ void __fastcall NpcAI::ENTITY_HUSH_FLY(Entity_NPC *npc) piVar11[0x2f0] = iVar7 + iVar10; } local_48 = (float)piVar11[0x2f0] * 0.001; - pfVar8 = (float *)NpcHelper::hush_fly_shape_point(local_80); + pfVar8 = (float *)NpcHelper::path_point_at(local_80); fVar19 = local_58 * 0.017453292; local_3c = fVar19; cos(); @@ -119063,7 +119063,7 @@ void __fastcall NpcAI::ENTITY_HUSH_FLY(Entity_NPC *npc) fVar19 = pfVar8[1] * local_40; local_40 = (*pfVar8 * local_40 - pfVar8[1] * fVar9) + (npc->_v1).x; local_4c = (fVar19 + *pfVar8 * fVar9) * 0.7 + (npc->_v1).y; - pfVar8 = (float *)NpcHelper::hush_fly_shape_point(local_20 + 1); + pfVar8 = (float *)NpcHelper::path_point_at(local_20 + 1); fVar9 = local_3c; cos(); local_48 = fVar9; @@ -119587,7 +119587,7 @@ LAB_004bff1a: ppuStack_20 = ppuVar5; local_28cc = *(ANM2 **)(*(int *)(DAT_00c71678 + 0x18300) + 0x11f8); if (*(char *)((int)local_28cc + 0x8c) == '\0') { - FUN_00945130(); + ring_buffer_push(); *(undefined1 *)((int)local_28cc + 0x8c) = 1; } ppuVar5 = ppuStack_20; @@ -119664,7 +119664,7 @@ LAB_004c0016: local_28c4 = pfVar33; if ((cVar6 == '\0') || ((((uint)pfVar33[0x5b] & 0x10000000) != 0 && (pfVar33[10] != 4.17587e-43)))) { - cVar6 = FUN_006a8f20(); + cVar6 = Entity::is_valid_boss_enemy(); if (cVar6 != '\0') { pcVar2 = *(code **)((int)*pfVar33 + 0x24); EntityRef::constructor(); @@ -121622,7 +121622,7 @@ LAB_004c216c: npc->_stateFrame = 0x1e; } else { - uVar36 = FUN_00407380(); + uVar36 = _string_holder_c_str(); do { pbVar8 = (byte *)((ulonglong)uVar36 >> 0x20); pbVar9 = (byte *)uVar36; @@ -121851,7 +121851,7 @@ LAB_004c269b: SoundEffects::PlayWithFartOverride(0x1a9,0x1e,0,0x3f800000); } if ((*(int *)&npc->field_0x7c != 0) && (npc->field_0x8c == '\0')) { - uVar36 = FUN_00407380(); + uVar36 = _string_holder_c_str(); do { pbVar8 = (byte *)((ulonglong)uVar36 >> 0x20); pbVar9 = (byte *)uVar36; @@ -123170,7 +123170,7 @@ LAB_004c6745: std::multiset::insert(pfVar24); *(uint *)(iVar8 + 0x168) = *(uint *)(iVar8 + 0x168) & 0xfffffffb; *(undefined4 *)(iVar8 + 0x16c) = *(undefined4 *)(iVar8 + 0x16c); - FUN_00547040(); + npc_distribute_orbit_angles(); uVar10 = Random(); Game::Spawn(1000,0xf,&fStack_f8,&DAT_00c7b640,0,0,uVar10); local_118 = *(float *)(iVar8 + 0x360) * 0.3; @@ -123575,7 +123575,7 @@ LAB_004c6e65: std::multiset::insert((undefined4 *)(iVar17 + 0x3bc)); *(uint *)(iVar17 + 0x168) = *(uint *)(iVar17 + 0x168) & 0xfffffffb; *(undefined4 *)(iVar17 + 0x16c) = *(undefined4 *)(iVar17 + 0x16c); - FUN_00547040(); + npc_distribute_orbit_angles(); local_f0 = *(float **)&npc->field_0x384; Entity::RemoveStatusEffects(); Entity_NPC::Morph(npc,0x1c,0,1000,0xffffffff); @@ -123752,7 +123752,7 @@ LAB_004c605b: if (local_f4 != (float *)0x0) { std::multiset::insert(puVar14); } - pEVar13 = (Entity_NPC *)FUN_00547040(); + pEVar13 = (Entity_NPC *)npc_distribute_orbit_angles(); } if (puVar5 != (uint *)0x0) { pEVar13 = (Entity_NPC *)deallocate(puVar5,(int)local_100 - (int)puVar5 >> 2); @@ -126410,7 +126410,7 @@ LAB_004cc351: Game::ShakeScreen(); iVar3 = *(int *)(*(int *)(DAT_00c71678 + 0x18300) + 0x11f8); if (*(char *)(iVar3 + 0x8c) == '\0') { - FUN_00945130(); + ring_buffer_push(); *(undefined1 *)(iVar3 + 0x8c) = 1; } local_25c = (undefined4 *)0x0; @@ -126418,7 +126418,7 @@ LAB_004cc351: if (*(int *)&local_244[1].field_0x310 != 0) { do { puVar24 = local_25c; - cVar1 = FUN_006a8f20(); + cVar1 = Entity::is_valid_boss_enemy(); if (cVar1 != '\0') { local_260 = *(Entity_NPC **)((int)local_244[1]._knockbackDirection.x + (int)puVar24 * 4) ; @@ -126556,7 +126556,7 @@ LAB_004cc7c5: uVar2 = 0; LAB_004cc7ca: if (uVar2 == 0) { - FUN_006d5400(); + Entity_NPC::trigger_kill_item_effects(); } } } @@ -128186,7 +128186,7 @@ LAB_004cec87: if ((*(int *)&npc->field_0x3c0 == 0) && (iVar4 != 10)) { npc->_stateFrame = npc->_stateFrame + 1; if (2 < npc->_stateFrame) { - FUN_004cee90(); + NpcHelper::minecart_break(); } } else { @@ -128258,11 +128258,11 @@ LAB_004cee6b: } -//@@ 004cee90 FUN_004cee90 +//@@ 004cee90 NpcHelper::minecart_break /* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */ -void FUN_004cee90(void) +void NpcHelper::minecart_break(void) { int iVar1; @@ -128413,9 +128413,9 @@ void __thiscall Entity_NPC::MinecartUpdateChild(Entity_NPC *this,undefined4 *par } -//@@ 004cf1d0 FUN_004cf1d0 +//@@ 004cf1d0 EntityPtr::Set -void FUN_004cf1d0(int *param_1) +void EntityPtr::Set(int *param_1) { int *piVar1; @@ -128545,9 +128545,9 @@ int std::multiset::erase(uint *param_1) return local_10; } -//@@ 004cf350 FUN_004cf350 +//@@ 004cf350 std::set::clear -void FUN_004cf350(void) +void std::set::clear(void) { int iVar1; @@ -128734,7 +128734,7 @@ void FUN_004cf5b0(int *param_1) puStack_c = &LAB_00af1690; local_10 = ExceptionList; ExceptionList = &local_10; - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); uVar2 = 0; *in_EDX = local_18; *param_1 = 0; @@ -129441,7 +129441,7 @@ LAB_004d0e81: if (((*(int *)(iVar11 + 0x30) == 0) && (*(Entity_NPC **)(iVar11 + 0x3bc) == npc)) && (*(int *)(iVar11 + 0xb64) == 0xd)) { *(undefined4 *)(iVar11 + 0xb64) = 6; - FUN_00558070(&local_64,0); + NpcHelper::willo_get_target_pos(&local_64,0); pfVar9 = (float *)NpcHelper::willo_slot(local_d8,0xc); local_38 = (Entity_NPC *)(*pfVar9 - local_64); local_3c = (Entity_NPC *)(pfVar9[1] - (float)local_60); @@ -129624,7 +129624,7 @@ LAB_004d01f3: fVar14 = *(float *)&local_3c->field_0x384 * 1.5; *(float *)&local_3c->field_0x384 = fVar14; local_3c->_health = fVar14; - FUN_00557ce0(); + collect_npcs_with_same_parent(); iVar5 = Entity_NPC::GetPlayerTarget(npc); local_64 = *(float *)(iVar5 + 0x33c) - (npc->_pos).x; local_60 = (Entity_NPC *)(*(float *)(iVar5 + 0x340) - (npc->_pos).y); @@ -129680,11 +129680,11 @@ LAB_004d01f3: *(float *)(iVar11 + 900) = fVar14; *(float *)(iVar11 + 0x380) = fVar14; } while (iVar5 < 4); - FUN_00557ce0(); + collect_npcs_with_same_parent(); iVar5 = 0; do { iVar11 = *(int *)(local_34 + iVar5 * 4); - FUN_00558070(&local_78,0); + NpcHelper::willo_get_target_pos(&local_78,0); pfVar9 = (float *)NpcHelper::willo_slot(&local_a0,0xc); local_3c = (Entity_NPC *)(*pfVar9 - local_78); local_44 = (Entity_NPC *)(pfVar9[1] - local_74); @@ -129997,7 +129997,7 @@ void __fastcall NpcAI::ENTITY_MOM(Entity_NPC *npc) fVar16 = (float)((int)local_2c - 4); local_14 = 2; if ((uint)local_2c < (uint)fVar16) { - FUN_00414870((int)fVar16 - (int)local_2c,0); + std::string::append_n((int)fVar16 - (int)local_2c,0); } else { pppppppppppuVar9 = &local_3c; @@ -130800,9 +130800,9 @@ EntitySaveState * __thiscall EntitySaveState::constructor(EntitySaveState *this) } -//@@ 004d3130 FUN_004d3130 +//@@ 004d3130 EntitySaveState::copy -void FUN_004d3130(undefined4 *param_1) +void EntitySaveState::copy(undefined4 *param_1) { undefined4 uVar1; @@ -131006,7 +131006,7 @@ uint FUN_004d33d0(uint param_1,uint param_2) uint local_c; local_c = DAT_00bf93b4 ^ (uint)auStack_f8; - NpcAI::ENTITY_GEMINI((Entity_NPC *)local_b8); + ProjectileParams::ProjectileParams((Entity_NPC *)local_b8); local_b4 = 0x40a00000; local_a4 = 0x3fc00000; local_ac = 0xbd75c28f; @@ -131899,7 +131899,7 @@ void __fastcall NpcAI::ENTITY_MOMS_HEART(Entity_NPC *npc) do { iVar11 = *(int *)(*(int *)((int)pvVar6 + 0x125c) + uVar12 * 4); if ((iVar11 != 0) && (*(int *)(iVar11 + 0x28) == 3)) { - puVar13 = (undefined4 *)FUN_0063b4a0(local_ac,0); + puVar13 = (undefined4 *)Entity_Familiar::GetFollowTargetPosition(local_ac,0); *(undefined4 *)(iVar11 + 0x33c) = *puVar13; *(undefined4 *)(iVar11 + 0x340) = puVar13[1]; } @@ -133046,7 +133046,7 @@ void FUN_004d64f0(void) FUN_004d7530(*(int *)(&local_48->field_0x8c + local_4c),&local_d4); } else { - FUN_004d3130(&local_d4); + EntitySaveState::copy(&local_d4); *(int *)(local_14 + 4) = *(int *)(local_14 + 4) + 0x78; } local_8 = 1; @@ -133194,7 +133194,7 @@ void FUN_004d64f0(void) FUN_004d7530(*(int *)(&local_48->field_0x8c + local_4c),&local_14c); } else { - FUN_004d3130(&local_14c); + EntitySaveState::copy(&local_14c); *(int *)(local_14 + 4) = *(int *)(local_14 + 4) + 0x78; } local_8 = 4; @@ -133359,7 +133359,7 @@ void FUN_004d7100(undefined4 param_1) FUN_004d7530(*(int *)(in_ECX + 4),param_1); return; } - FUN_004d3130(param_1); + EntitySaveState::copy(param_1); *(int *)(in_ECX + 4) = *(int *)(in_ECX + 4) + 0x78; return; } @@ -133580,7 +133580,7 @@ void FUN_004d73e0(int param_1,int param_2) ppvVar1 = &local_10; local_10 = ExceptionList; for (; ExceptionList = ppvVar1, param_1 != param_2; param_1 = param_1 + 0x78) { - FUN_004d3130(param_1); + EntitySaveState::copy(param_1); ppvVar1 = ExceptionList; } ExceptionList = local_10; @@ -133694,7 +133694,7 @@ int FUN_004d7530(int param_1,undefined4 param_2) iVar4 = std::_Allocate(); local_8 = 0; iVar2 = iVar4 + ((param_1 - iVar2) / 0x78) * 0x78; - FUN_004d3130(param_2); + EntitySaveState::copy(param_2); if (param_1 == in_ECX[1]) { FUN_004d73e0(*in_ECX,in_ECX[1],iVar4); } @@ -133754,7 +133754,7 @@ int FUN_004d76f0(int param_1,int param_2,int param_3) ppvVar1 = &local_10; local_10 = ExceptionList; for (; ExceptionList = ppvVar1, param_1 != param_2; param_1 = param_1 + 0x78) { - FUN_004d3130(param_1); + EntitySaveState::copy(param_1); param_3 = param_3 + 0x78; ppvVar1 = ExceptionList; } @@ -134516,9 +134516,9 @@ LAB_004d88cf: } -//@@ 004d8910 FUN_004d8910 +//@@ 004d8910 spawn_small_maggot_jump -int * FUN_004d8910(float *param_1) +int * spawn_small_maggot_jump(float *param_1) { float fVar1; @@ -134587,9 +134587,9 @@ int * FUN_004d8910(float *param_1) } -//@@ 004d8b50 FUN_004d8b50 +//@@ 004d8b50 spawn_small_maggot -int * FUN_004d8b50(int *param_1,float param_2) +int * spawn_small_maggot(int *param_1,float param_2) { int iVar1; @@ -137548,7 +137548,7 @@ LAB_004de654: * 15.0; local_58 = fVar16 * local_2c + (npc->_pos).y; local_5c = fVar16 * local_30 + (npc->_pos).x; - FUN_004d8910(&local_48); + spawn_small_maggot_jump(&local_48); local_34 = (float)((int)local_34 + -1); } while (local_34 != 0.0); iVar10 = Random(); @@ -137885,7 +137885,7 @@ LAB_004ded67: 2.3283064e-10 * 15.0; local_4c = fVar20 * local_28 + pVVar18->y; local_50 = fVar20 * (float)local_2c + pVVar18->x; - FUN_004d8910(&local_48); + spawn_small_maggot_jump(&local_48); local_38 = local_38 + 1; } while (local_38 < *(int *)(&UNK_00b60670 + npc->_i1 * 4)); } @@ -138033,13 +138033,13 @@ void __fastcall NpcAI::ENTITY_EVIS(Entity_NPC *npc) 6.0; local_8c = ((npc->_pos).x - local_8c) * fVar17 + local_8c; local_88 = ((npc->_pos).y - fVar13) * fVar17 + fVar13; - FUN_004b0f50(&local_8c); + std::deque::push_back(&local_8c); local_78 = 0; local_74 = 0.0; - FUN_004b0f50(&local_78); + std::deque::push_back(&local_78); local_94 = 0xc1a00000; local_90 = 0; - FUN_004b0f50(&local_94); + std::deque::push_back(&local_94); if ((uVar5 != 0) && (uVar5 != 6)) { iVar6 = Random(); local_70 = (float)(uVar5 & 1); @@ -138079,7 +138079,7 @@ void __fastcall NpcAI::ENTITY_EVIS(Entity_NPC *npc) } uVar5 = uVar5 + 1; } while (uVar5 < 7); - FUN_004b0e40(&npc->field_0xc04); + std::deque::assign(&npc->field_0xc04); *(undefined4 *)&npc->field_0xf18 = 3; npc->_state = 3; npc->_entityGridCollisionClass = 0; @@ -138145,7 +138145,7 @@ void __fastcall NpcAI::ENTITY_EVIS(Entity_NPC *npc) local_84 = *(float *)(iVar6 + uVar5 * 8) - (npc->_pos).x; local_80 = *(float *)(iVar6 + 4 + uVar5 * 8) - (npc->_pos).y; Entity::GetCollisionCapsule(local_64,&local_84); - FUN_0041ab50(local_34,local_64,0x20); + EntityList::query_player_capsule_hits(local_34,local_64,0x20); local_14 = 0; uVar5 = 0; if (local_28 != 0) { @@ -138345,7 +138345,7 @@ void __fastcall NpcAI::ENTITY_EVIS(Entity_NPC *npc) iVar6 = *(int *)(*(int *)&npc->field_0xc08 + (uVar5 >> 1 & *(int *)&npc->field_0xc0c - 1U) * 4); *(float *)(iVar6 + uVar11 * 8) = (npc->_posOffset).y; *(undefined4 *)(iVar6 + 4 + uVar11 * 8) = 0; - FUN_004e8fa0(local_88); + Entity_NPC::UpdateCordChain(local_88); ExceptionList = local_1c; return; } @@ -138545,7 +138545,7 @@ void FUN_004e07a0(float *param_1) float local_44; if (*(int *)(in_ECX + 0x2c) == 10) { - FUN_004e9b10(param_1,0); + Entity_NPC::render_overlay(param_1,0); iVar1 = *(int *)(in_ECX + 0x3c4); if (iVar1 != 0) { fVar2 = DAT_00bf941c * DAT_00bf93e8; @@ -139157,7 +139157,7 @@ LAB_004e2ae3: builtin_strncpy(local_38,"Left",4); local_34 = local_34 & 0xffffff00; local_14 = 4; - FUN_006c1870(&local_3c,&local_54,&local_6c,&local_98,0x3dcccccd); + Entity_NPC::anim_walk_frame_4dir(&local_3c,&local_54,&local_6c,&local_98,0x3dcccccd); local_14._0_1_ = 3; if (0xf < local_28) { uVar8 = local_28 + 1; @@ -139950,7 +139950,7 @@ LAB_004e3287: local_64 = fVar15 + fVar15 + 2.0; local_60 = local_64 * pfVar11[1]; local_64 = local_64 * *pfVar11; - FUN_004d8b50(&local_64,0xc1000000); + spawn_small_maggot(&local_64,0xc1000000); local_5c = 2.49431e-43; seed_fart_sound_override(); SoundEffects::Play(local_5c,0x3f800000,2,0,0x3f800000,0); @@ -140078,7 +140078,7 @@ void __fastcall NpcAI::ENTITY_CHARGER_L2(Entity_NPC *npc) local_4b = 0; local_14 = 2; ExceptionList = &local_1c; - FUN_006c15c0(&local_54,&local_3c,&local_6c,0); + NpcHelper::charger_update_move_anim(&local_54,&local_3c,&local_6c,0); local_14._0_1_ = 1; if (0xf < local_40) { uVar6 = local_40 + 1; @@ -140479,9 +140479,9 @@ void FUN_004e46c0(void) } -//@@ 004e46d0 FUN_004e46d0 +//@@ 004e46d0 Color::apply_to_kcolor -void FUN_004e46d0(float *param_1) +void Color::apply_to_kcolor(float *param_1) { float fVar1; @@ -141196,7 +141196,7 @@ LAB_004e5449: goto LAB_004e5449; } local_30 = (Entity *)((uint)local_30._1_3_ << 8); - uVar11 = FUN_00407380("HeadLaugh",9); + uVar11 = _string_holder_c_str("HeadLaugh",9); iVar8 = (*(code *)local_38)(uVar11); local_29 = '\x01'; if (iVar8 != 0) goto LAB_004e5449; @@ -141549,7 +141549,7 @@ LAB_004e5dd8: if ((*(uint *)(DAT_00c71678 + 0x26544) >> 5 & 1) != 0) { iVar8 = DebugRenderer::Get(npc->_index,1); *(undefined4 *)(iVar8 + 4) = 1; - FUN_0042eef0(&local_98); + push_shape_points(&local_98); } local_48 = 0.0; local_4c = 0.0; @@ -142535,7 +142535,7 @@ int FUN_004e7d10(char param_1) local_10 = ExceptionList; uVar1 = DAT_00bf93b4 ^ (int)register0x00000010 - 4U; ExceptionList = &local_10; - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); local_8 = 0; iVar4 = 0; fVar7 = 1e+06; @@ -143203,9 +143203,9 @@ LAB_004e8f2e: } -//@@ 004e8fa0 FUN_004e8fa0 +//@@ 004e8fa0 Entity_NPC::UpdateCordChain -void FUN_004e8fa0(char param_1) +void Entity_NPC::UpdateCordChain(char param_1) { float fVar1; @@ -143264,7 +143264,7 @@ void FUN_004e8fa0(char param_1) } local_1c = *(uint *)(in_ECX + 0xc14); if (*(uint *)(in_ECX + 0xc28) < local_1c) { - FUN_004f83a0(local_1c); + std::deque::resize(local_1c); local_1c = *(uint *)(in_ECX + 0xc14); } local_c = 0; @@ -143520,17 +143520,17 @@ void FUN_004e8fa0(char param_1) } while (uVar12 < uVar16); } if (param_1 == '\0') { - FUN_004b0e40(in_ECX + 0xc18); + std::deque::assign(in_ECX + 0xc18); } return; } -//@@ 004e9b10 FUN_004e9b10 +//@@ 004e9b10 Entity_NPC::render_overlay /* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */ -void FUN_004e9b10(float *param_1,char param_2) +void Entity_NPC::render_overlay(float *param_1,char param_2) { float *pfVar1; @@ -144112,19 +144112,19 @@ float __fastcall NpcAI::ENTITY_VIS_FATTY(Entity_NPC *npc) local_9c; local_a0 = (*(float *)(*(int *)&npc->field_0x3c0 + 0x33c) - local_a0) * fVar8 + local_a0; - FUN_004b0f50(&local_a0); + std::deque::push_back(&local_a0); local_a8 = 0.0; local_a4 = 0.0; - FUN_004b0f50(&local_a8); + std::deque::push_back(&local_a8); local_cc = -20.0; local_c8 = (Entity_Laser *)0x0; - FUN_004b0f50(&local_cc); + std::deque::push_back(&local_cc); uVar6 = uVar6 + 1; } while (uVar6 < 6); - FUN_004b0e40(&npc->field_0xc04); + std::deque::assign(&npc->field_0xc04); iVar11 = 10; do { - fVar18 = (float)FUN_004e8fa0(0); + fVar18 = (float)Entity_NPC::UpdateCordChain(0); iVar11 = iVar11 + -1; } while (iVar11 != 0); } @@ -144508,10 +144508,10 @@ float __fastcall NpcAI::ENTITY_VIS_FATTY(Entity_NPC *npc) *(undefined4 *)(iVar14 + 4 + uVar16 * 8) = 0; local_ac = (float)((int)local_ac + 3); } while ((uint)local_ac < 0x12); - FUN_004b0e40(&npc->field_0xc04); + std::deque::assign(&npc->field_0xc04); } else { - FUN_004e8fa0(*(int *)&npc->field_0xb74 == 2); + Entity_NPC::UpdateCordChain(*(int *)&npc->field_0xb74 == 2); } iVar11 = *(int *)&npc->field_0x3c0; local_a4 = *(float *)(iVar11 + 0x340) - (npc->_pos).y; @@ -145289,7 +145289,7 @@ LAB_004ecdf1: } piVar8[0xef] = (int)npc; std::multiset::insert(piVar8 + 0xef); - FUN_006cb2a0(piVar8); + Entity_NPC::fire_projectile_from_params(piVar8); (**(code **)(*piVar8 + 0xc))(); local_84 = (byte *)((int)local_84 + -1); pVVar13 = &npc->_pos; @@ -145335,7 +145335,7 @@ LAB_004ed33c: local_3c._3_1_ = 'k'; builtin_strncpy(local_38,"Hori",5); local_14 = 2; - FUN_006c15c0(&local_3c,&local_54,&local_6c,0x3dcccccd); + NpcHelper::charger_update_move_anim(&local_3c,&local_54,&local_6c,0x3dcccccd); local_14._0_1_ = 1; if (0xf < local_28) { uVar12 = local_28 + 1; @@ -147223,7 +147223,7 @@ LAB_004f007d: play_sound_with_fart_seed(0x73,2,0,0x3f800000); play_sound_with_fart_seed(0x50,2,0,0x3f800000); uVar11 = Color::Color(); - FUN_006b66a0(uVar11); + Entity::MakeGroundPoofAtSelf(uVar11); ENTITY_GEMINI((Entity_NPC *)local_130); local_9c = 1; local_158 = (Entity_NPC *)0x41200000; @@ -150878,9 +150878,9 @@ void FUN_004f8390(void) } -//@@ 004f83a0 FUN_004f83a0 +//@@ 004f83a0 std::deque::resize -void FUN_004f83a0(uint param_1) +void std::deque::resize(uint param_1) { uint uVar1; @@ -150946,9 +150946,9 @@ void FUN_004f8460(int *param_1,int *param_2) } -//@@ 004f84a0 FUN_004f84a0 +//@@ 004f84a0 str_ne -uint FUN_004f84a0(void) +uint str_ne(void) { char cVar1; @@ -151171,9 +151171,9 @@ LAB_004f881a: } -//@@ 004f88a0 FUN_004f88a0 +//@@ 004f88a0 rng_pair_init -void FUN_004f88a0(void) +void rng_pair_init(void) { undefined4 *in_ECX; @@ -152384,7 +152384,7 @@ switchD_004f9b60_caseD_1: 2.3283064e-10); } else { - FUN_006d4e00(); + Entity_NPC::PlayDeathEffects(); Entity_NPC::Morph(npc,0x55,0,0,0xffffffff); npc->_state = 0; npc->_health = *(float *)&npc->field_0x384; @@ -152420,7 +152420,7 @@ LAB_004faa25: if (((uint)pfVar6[2] & 2) != 0) { *(float *)&npc->field_0x14 = *(float *)&npc->field_0x14 - *pfVar6; *pfVar6 = 0.0; - uVar5 = FUN_00417220(0x332,0,0xffffffff); + uVar5 = Entity::IsType(0x332,0,0xffffffff); if ((char)uVar5 != '\0') { uVar5 = Entity_NPC::Morph(); } @@ -154415,7 +154415,7 @@ LAB_004fe66f: local_fc = (Entity_NPC *)0x89; seed_fart_sound_override(); SoundEffects::Play(local_fc,0x3f800000,2,0,0x3f800000,0); - FUN_004f88a0(); + rng_pair_init(); local_44[0] = 0xe; uVar16 = Random(); local_3c = ((uVar16 & 1) + 1) * 0x7d; @@ -155509,7 +155509,7 @@ LAB_005008bc: if (((uint)pfVar6[2] & 2) != 0) { *(float *)&npc->field_0x14 = *(float *)&npc->field_0x14 - *pfVar6; *pfVar6 = 0.0; - cVar3 = FUN_00417220(0x338,0,0xffffffff); + cVar3 = Entity::IsType(0x338,0,0xffffffff); if (cVar3 != '\0') { Entity_NPC::Morph(); uStack_64 = 0x3e109091; @@ -156490,7 +156490,7 @@ switchD_00501f99_caseD_1: piVar10[0x10e] = 0; piVar10[0x10f] = 0x20; piVar10[0x108] = (int)((float)((double)iVar8 + dVar2) * 2.3283064e-10 * 1.1999999 + 0.6); - FUN_006cb2a0(piVar10); + Entity_NPC::fire_projectile_from_params(piVar10); uVar5 = (**(code **)(*piVar10 + 0xc))(); local_1ac = (undefined1 *)((int)local_1ac + -1); } while (local_1ac != (undefined1 *)0x0); @@ -156709,7 +156709,7 @@ void __fastcall NpcAI::ENTITY_FLESH_MAIDEN(Entity_NPC *npc) local_c = fVar9; atan2f(); fVar11 = local_18; - FUN_006827a0(); + angle_lerp_shortest(); local_c = (local_c - local_14) * local_1c + local_14; fVar11 = (fVar11 * local_1c + local_18) * 0.017453292; local_20 = fVar11; @@ -158146,7 +158146,7 @@ LAB_00505aae: } *piVar6 = (int)npc; std::multiset::insert(piVar6); - FUN_006cb2a0(piVar5); + Entity_NPC::fire_projectile_from_params(piVar5); local_44 = 0; local_40 = 0; local_54 = 0; @@ -158265,9 +158265,9 @@ LAB_00505b19: } -//@@ 00505b40 FUN_00505b40 +//@@ 00505b40 pow_wrapper -void FUN_00505b40(void) +void pow_wrapper(void) { pow(); @@ -158275,9 +158275,9 @@ void FUN_00505b40(void) } -//@@ 00505b50 FUN_00505b50 +//@@ 00505b50 set_byte_0x101 -void FUN_00505b50(undefined1 param_1) +void set_byte_0x101(undefined1 param_1) { int in_ECX; @@ -158313,11 +158313,11 @@ undefined4 Entity::InitSeed(void) } -//@@ 00505b80 FUN_00505b80 +//@@ 00505b80 _Entity_NPC::GetColorWithFlash /* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */ -undefined4 * FUN_00505b80(undefined4 *param_1) +undefined4 * _Entity_NPC::GetColorWithFlash(undefined4 *param_1) { int in_ECX; @@ -158354,7 +158354,7 @@ undefined4 * FUN_00505b80(undefined4 *param_1) local_40 = *(undefined8 *)(in_ECX + 0x34); } else { - FUN_004476a0(in_ECX); + Color::Color(in_ECX); Color::__mul(extraout_EDX); local_34 = local_60; uStack_30 = uStack_5c; @@ -163299,7 +163299,7 @@ void __fastcall NpcAI::ENTITY_GLOBIN(Entity_NPC *npc) local_88[0xd6] = (int)((npc->_posOffset).y + 1.0); if (npc->_isChampion != 0) { pcVar1 = *(code **)(*local_88 + 0x3c); - uVar8 = FUN_00505b80(&local_7c); + uVar8 = _Entity_NPC::GetColorWithFlash(&local_7c); (*pcVar1)(uVar8,0xffffffff,0xff,0,1); } (**(code **)(*local_88 + 0xc))(); @@ -166411,7 +166411,7 @@ LAB_005148ab: if (local_69 != '\0') { ANM2::GetAnimation(local_3c); local_94 = (undefined4 *)0x1; - cVar4 = FUN_004f84a0(); + cVar4 = str_ne(); if ((cVar4 != '\0') || ((fVar19 = (npc->_velocity).x, ABS((npc->_velocity).y) < ABS(fVar19) && ((bool)npc->_isFlipX != fVar19 < 0.0)))) { @@ -166794,11 +166794,11 @@ LAB_00515626: else { uVar17 = CONCAT31((int3)(uVar21 >> 8),1); } - local_150 = FUN_007069a0(uVar17,(byte)((uint)*(undefined4 *)&npc->field_0xb84 >> 0x1f) ^ 1 + local_150 = Game::GetNearestTargetPlayer(uVar17,(byte)((uint)*(undefined4 *)&npc->field_0xb84 >> 0x1f) ^ 1 ,FUN_00515290); } else { - local_150 = FUN_00707370(FUN_00515290); + local_150 = Game::GetNearestEnemy(FUN_00515290); if (local_150 == 0) { local_150 = 0; goto LAB_00515626; @@ -168654,7 +168654,7 @@ LAB_0051a9de: ExceptionList = pvVar4; return; } - FUN_006d81c0(auStack_3c[6]); + Entity_NPC::ClearDequeRefs(auStack_3c[6]); ExceptionList = local_1c; return; } @@ -169086,7 +169086,7 @@ LAB_00519d09: *(undefined4 *)(iVar6 + 0x3bc) = npc; std::multiset::insert((undefined4 *)(iVar6 + 0x3bc)); local_15c[0] = (Entity_NPC *)0x0; - FUN_004b6a90(local_15c); + std::deque::push_front(local_15c); local_15c[0] = (Entity_NPC *)(*(int *)&npc->field_0xbfc + *(int *)&npc->field_0xc00); puVar22 = (undefined1 *)((int)&local_15c[0][-1]._pickupGhostsEntity + 3); uVar9 = (uint)puVar22 & 3; @@ -169150,7 +169150,7 @@ LAB_00519d09: *(undefined4 *)(iVar6 + 0x438) = *(undefined4 *)(iVar6 + 0x438); } } - FUN_006d81c0(); + Entity_NPC::ClearDequeRefs(); } } } @@ -171057,7 +171057,7 @@ void __fastcall NpcAI::ENTITY_URIEL(Entity_NPC *npc) if ((int)pbVar5 - (int)local_12c != -1) { uVar6 = local_2c - 4; if (local_2c < uVar6) { - FUN_00414870(uVar6 - local_2c,0); + std::string::append_n(uVar6 - local_2c,0); } else { pppppppuVar19 = &pppppppuStack_3c; @@ -171791,7 +171791,7 @@ LAB_0051f797: LAB_0051fa05: cVar4 = Entity::IsFrame(0x1e,npc->_index); if (cVar4 != '\0') { - FUN_004cf350(); + std::set::clear(); } if ((npc->_pathfinder)._evadeMovementCountdown < 1) { (npc->_pathfinder)._unkFloat2 = 0.0; @@ -173887,7 +173887,7 @@ uint __fastcall NpcAI::ENTITY_PARA_BITE(Entity_NPC *npc) ANM2::Play((ANM2 *)&npc->field_0x48,"DigOut",0); (npc->_targetPosition).x = DAT_00c7b640; (npc->_targetPosition).y = DAT_00c7b644; - FUN_006d8cf0(); + Entity_NPC::ClearChild(); fVar8 = (float)npc->_state; } if (fVar8 == 2.24208e-44) { @@ -175401,7 +175401,7 @@ LAB_005271b7: (npc->_pos).x = (1.0 - fVar20) * (npc->_pos).x + fVar20 * fVar3; } else { - FUN_006d9320(); + Entity_NPC::apply_controller_movement(); (npc->_targetPosition).x = (npc->_pos).x; (npc->_targetPosition).y = (npc->_pos).y; } @@ -175439,7 +175439,7 @@ LAB_005271b7: (npc->_pos).x = (1.0 - fVar20) * (npc->_pos).x + fVar20 * fVar3; } else { - FUN_006d9320(); + Entity_NPC::apply_controller_movement(); (npc->_targetPosition).x = (npc->_pos).x; (npc->_targetPosition).y = (npc->_pos).y; } @@ -175525,7 +175525,7 @@ LAB_00527921: local_264 = (Entity_NPC *)*puVar11; } else if (((pEVar18 == (Entity_NPC *)0x0) && (10.0 < (npc->_v2).x)) || - (cVar5 = FUN_006d8d80(), cVar5 != '\0')) { + (cVar5 = Entity_NPC::is_controller_input_idle(), cVar5 != '\0')) { pfVar14 = (float *)Entity_NPC::GetAimTargetPosition((int)&uStack_2a4 + 4); pEVar18 = local_270; pEStack_29c = (Entity_NPC *)(pfVar14[1] - *(float *)&local_270->field_0x4); @@ -176812,7 +176812,7 @@ float __fastcall NpcAI::ENTITY_SPIDER(Entity_NPC *npc) local_38 = 0x7472; local_36 = 0; local_14 = 0; - FUN_006baa70(&local_3c); + _NpcHelper::spider_load_graphics(&local_3c); fVar6 = (float)(uint)local_4d; local_14 = 0xffffffff; local_4e = local_4d; @@ -176963,7 +176963,7 @@ LAB_0052a9e7: } } else { - if ((local_4d != 0) && (cVar3 = FUN_006d8d80(), cVar3 != '\0')) { + if ((local_4d != 0) && (cVar3 = Entity_NPC::is_controller_input_idle(), cVar3 != '\0')) { pfVar7 = (float *)Entity_NPC::GetAimTargetPosition(&local_70); local_58 = *pfVar7; local_54 = pfVar7[1]; @@ -177616,7 +177616,7 @@ LAB_0052b56c: (npc->_targetPosition).x = DAT_00c7b640; (npc->_targetPosition).y = DAT_00c7b644; (npc->_v1).x = 0.0; - FUN_006d8cf0(); + Entity_NPC::ClearChild(); if (npc->_type != 0x103) goto LAB_0052bd03; local_dc = 1.512e-42; LAB_0052b8bd: @@ -178075,7 +178075,7 @@ void __fastcall NpcAI::ENTITY_VIS(Entity_NPC *npc) puStack_20 = local_30 + 0x2c; iVar11 = EntityConfig::GetEntity(1000,0x32,1); if (iVar11 != 0) { - FUN_0069ba90(iVar11); + EntityConfig::PreloadResources(iVar11); iVar9 = DAT_00c7169c; } local_11c = 1.0285934e-38; @@ -178091,7 +178091,7 @@ void __fastcall NpcAI::ENTITY_VIS(Entity_NPC *npc) ExceptionList = local_1c; return; } - FUN_0069ba90(iVar9); + EntityConfig::PreloadResources(iVar9); ExceptionList = local_1c; return; } @@ -178132,11 +178132,11 @@ void __fastcall NpcAI::ENTITY_VIS(Entity_NPC *npc) *(undefined4 *)(iVar9 + 0x4c) = 0x3f028283; *(undefined4 *)(iVar9 + 0x50) = 0x3f028283; *(undefined4 *)(iVar9 + 0x54) = 0x3f800000; - uVar10 = FUN_00456240(10,0x50,10,0xff,100,100,0x50); + uVar10 = ColorParams::set_from_bytes(10,0x50,10,0xff,100,100,0x50); Color::operator_assign(uVar10); iVar9 = EntityConfig::GetEntity(1000,0x32,2); if (iVar9 != 0) { - FUN_0069ba90(iVar9); + EntityConfig::PreloadResources(iVar9); } TextureCache::Preload("gfx/Effects/Effect_018_CageLaserEffects.png"); ExceptionList = local_1c; @@ -178801,7 +178801,7 @@ void __fastcall NpcAI::ENTITY_MAGGOT(Entity_NPC *npc) uVar28 = 0; pVVar15 = &npc->_pos; local_240 = (ANM2 *)pVVar15; - uVar6 = FUN_004be670(0,pVVar15->x,(npc->_pos).y); + uVar6 = NpcHelper::query_nearest_other(0,pVVar15->x,(npc->_pos).y); local_230 = (char *)__RTDynamicCast(uVar6,uVar28,pTVar29,pTVar30,uVar31); if (local_64 == '\0') { local_14 = (char *)0x1; @@ -180073,7 +180073,7 @@ LAB_00531321: else { cVar4 = ANM2::WasEventTriggered(&DAT_00b1d3b0); if (cVar4 == '\0') { - FUN_006d9320(); + Entity_NPC::apply_controller_movement(); } else { pfVar7 = (float *)Entity_NPC::GetControllerInput(&local_108); @@ -182129,10 +182129,10 @@ undefined4 * __fastcall NpcAI::ENTITY_DIP(Entity_NPC *npc) (**(code **)(*(int *)npc + 0x28))(); if ((((npc->_type == 0xd9) && (iVar5 = npc->_variant, iVar5 != 1)) && (iVar5 != 3)) && (iVar5 == 2)) { - puVar4 = (undefined4 *)FUN_00639000(iVar3); + puVar4 = (undefined4 *)Entity_Familiar::ThrowDip(iVar3); return puVar4; } - puVar4 = (undefined4 *)FUN_00639000(iVar3); + puVar4 = (undefined4 *)Entity_Familiar::ThrowDip(iVar3); return puVar4; } iVar3 = npc->_state; @@ -190685,7 +190685,7 @@ LAB_00544793: *(Entity_NPC **)local_27c = npc; std::multiset::insert(local_27c); *(undefined4 *)&local_294->field_0x188 = 0; - FUN_00456380(&npc->field_0x1e4); + Color::assign(&npc->field_0x1e4); if (*(int *)&npc->field_0x3c0 != 0) { local_274 = (Room *)&npc->field_0x3c0; std::multiset::erase(&local_274); @@ -191163,7 +191163,7 @@ LAB_00545ca9: *(float *)&pRVar16->field_0x380 * *(float *)&local_28c->field_0xf44; cVar9 = (**(code **)(*(int *)pRVar16 + 0x4c))(); if (cVar9 != '\0') { - FUN_0060d140(*(undefined4 *)&local_28c->field_0xf54); + Entity_NPC::set_entity_ptr_f54(*(undefined4 *)&local_28c->field_0xf54); } } } @@ -191700,7 +191700,7 @@ LAB_00546aa6: } if (npc->_dead != 0) { if (local_d1 != '\0') { - FUN_00547040(); + npc_distribute_orbit_angles(); } iVar11 = *(int *)&npc->field_0x3bc; if ((iVar11 != 0) && (*(int *)(iVar11 + 0x28) == 0x19d)) { @@ -191759,14 +191759,14 @@ LAB_00546aa6: } -//@@ 00547040 FUN_00547040 +//@@ 00547040 npc_distribute_orbit_angles /* WARNING: Removing unreachable block (ram,0x005472e4) */ /* WARNING: Removing unreachable block (ram,0x005472f3) */ /* WARNING: Removing unreachable block (ram,0x00547303) */ /* WARNING: Removing unreachable block (ram,0x00547309) */ -void FUN_00547040(void) +void npc_distribute_orbit_angles(void) { int iVar1; @@ -191800,7 +191800,7 @@ void FUN_00547040(void) local_8 = 0; local_14 = 360.0; ExceptionList = &local_10; - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); local_8 = CONCAT31(local_8._1_3_,1); uVar5 = 0; if (local_30 != 0) { @@ -192844,7 +192844,7 @@ LAB_00548a4b: } local_d4 = (float)pbVar5 * 10.0; local_d0 = (int *)(fVar12 * 10.0); - NpcAI::ENTITY_GEMINI((Entity_NPC *)local_c0); + ProjectileParams::ProjectileParams((Entity_NPC *)local_c0); local_6c = 0; local_94 = 0x3f800000; iStack_90 = 0x3f800000; @@ -194062,7 +194062,7 @@ LAB_0054b9e4: } if (npc->_state != 4) goto LAB_0054bb27; ANM2::Play((ANM2 *)&npc->field_0x48,&DAT_00b1de04,0); - FUN_006d7df0(1); + Entity_NPC::FollowParentSegment(1); puVar1 = &npc->field_0x3bc; if (*(int *)&npc->field_0x3bc != 0) { if ((npc->_flags & 0x220) == 0) goto LAB_0054bb27; @@ -194893,7 +194893,7 @@ LAB_0054cfd6: local_3c = 0.0; } else { - local_3c = (float)FUN_007911f0(*(undefined4 *)(¶m_1->field_0x1580 + uVar4 * 0x20), + local_3c = (float)Entity_Player::GetCollectibleMaxCharge(*(undefined4 *)(¶m_1->field_0x1580 + uVar4 * 0x20), *(undefined4 *)(¶m_1->field_0x159c + uVar4 * 0x20),uVar2); iVar3 = DAT_00c71678; } @@ -196065,7 +196065,7 @@ void __fastcall NpcAI::ENTITY_NEEDLE(Entity_NPC *npc) pcVar8 = "IdleBack"; } ANM2::Play((ANM2 *)&npc->field_0x48,pcVar8,0); - pfVar5 = (float *)FUN_00499230(extraout_ECX); + pfVar5 = (float *)std::deque::front(extraout_ECX); fVar9 = (npc->_pos).x - *pfVar5; fVar10 = (npc->_pos).y - pfVar5[1]; fVar9 = fVar9 * fVar9 + fVar10 * fVar10; @@ -196467,7 +196467,7 @@ LAB_0054fcc5: } } else { - cVar1 = FUN_006d8d80(); + cVar1 = Entity_NPC::is_controller_input_idle(); pEVar6 = extraout_ECX_00; if (cVar1 != '\0') { pfVar3 = (float *)Entity_NPC::GetAimTargetPosition(local_d8); @@ -196511,7 +196511,7 @@ LAB_005501fc: pfVar3 = (float *)Entity_NPC::GetAimTargetPosition(local_d8); (npc->_targetPosition).x = *pfVar3; (npc->_targetPosition).y = pfVar3[1]; - FUN_006d8cf0(); + Entity_NPC::ClearChild(); fStack_c0 = (npc->_targetPosition).x; fStack_bc = (npc->_targetPosition).y; } @@ -196730,7 +196730,7 @@ void __fastcall NpcAI::ENTITY_SWARM_SPIDER(Entity_NPC *npc) local_38 = 0x7472; local_36 = 0; local_14 = 0; - FUN_006baa70(&local_3c); + _NpcHelper::spider_load_graphics(&local_3c); local_14 = 0xffffffff; if (&DAT_0000000f < local_28) { puVar14 = (undefined4 *)((int)local_28 + 1); @@ -197693,7 +197693,7 @@ LAB_00551dec: piVar13[0xce] = (int)fVar16; (**(code **)(*piVar13 + 0xc))(); pGVar7 = DAT_00c71678; - FUN_009bea10(0); + entity_vector_set_flag_410(0); pvVar4 = pGVar7->_room; uVar10 = 0; if (*(int *)((int)pvVar4 + 0x1264) != 0) { @@ -198925,7 +198925,7 @@ void __fastcall NpcAI::ENTITY_DARK_ESAU(Entity_NPC *npc) puStack_20 = (undefined1 *)((int)register0x00000010 + -4); iVar8 = Entity::GetIntervalTicks(); if (iVar8 != 0) { - iVar8 = FUN_004360f0(); + iVar8 = _get_index_plus_one_if_kind_4_5(); local_154 = (int *)((float)iVar8 + 9.0); EntityList::QueryRadius(local_190,&npc->_pos,10); local_14 = 0; @@ -199264,7 +199264,7 @@ LAB_005545e5: *(undefined4 *)((int)&npc->_flags + 4) = uVar10; *(undefined4 *)&npc->field_0xf18 = 5; npc->_isInvicible = 1; - FUN_0041b4f0(npc); + EntityList::AddPersistentEntity(npc); break; case 3: fVar18 = *(float *)&npc->field_0x36c; @@ -199502,7 +199502,7 @@ LAB_005545e5: piVar11 = (int *)0x3f800000; local_154 = (int *)0x3f800000; if (local_170 != 0) { - cVar6 = FUN_007cf8c0(); + cVar6 = Entity_Player::IsLocalPlayer(); if (cVar6 == '\0') { FUN_00925df0(); local_154 = piVar11; @@ -199628,7 +199628,7 @@ LAB_00555a07: uStack_60 = 0x3f800000; local_58 = 0; local_54 = 0; - FUN_006b66a0(&local_7c); + Entity::MakeGroundPoofAtSelf(&local_7c); Entity_NPC::PlaySound(npc,0x131,0x3f800000,2,0,0x3f800000); Entity_NPC::PlaySound(npc,0x1e3,0x3f800000,2,0,0x3f800000); Entity_NPC::PlaySound(npc,0x250,0x3f800000,2,0,0x3f19999a); @@ -199879,10 +199879,10 @@ void ** __fastcall NpcAI::ENTITY_PEEPER_FATTY(Entity_NPC *npc) local_150 = (float)((int)local_150 + 3); local_148 = (int *)((int)local_148 + 1); } while ((uint)local_150 < 0x12); - FUN_004b0e40(); + std::deque::assign(); } else { - FUN_004e8fa0(); + Entity_NPC::UpdateCordChain(); } local_148 = (int *)((*(float *)(*(int *)&npc->field_0x3bc + 0x340) + 0.0) - (npc->_pos).y); local_140 = (int *)((*(float *)(*(int *)&npc->field_0x3bc + 0x33c) + (float)local_144) - @@ -200007,7 +200007,7 @@ void ** __fastcall NpcAI::ENTITY_PEEPER_FATTY(Entity_NPC *npc) local_8._0_1_ = 2; std::string::string_from_cstr(); local_8._0_1_ = 3; - FUN_006c1870(local_3c,local_54,local_6c,local_84,0x3dcccccd); + Entity_NPC::anim_walk_frame_4dir(local_3c,local_54,local_6c,local_84,0x3dcccccd); std::string::_Tidy_deallocate(); std::string::_Tidy_deallocate(); std::string::_Tidy_deallocate(); @@ -200101,7 +200101,7 @@ LAB_00557237: local_8._0_1_ = 6; std::string::string_from_cstr(); local_8._0_1_ = 7; - FUN_006c1870(local_84,local_6c,local_54,local_3c,0); + Entity_NPC::anim_walk_frame_4dir(local_84,local_6c,local_54,local_3c,0); std::string::_Tidy_deallocate(); std::string::_Tidy_deallocate(); std::string::_Tidy_deallocate(); @@ -200161,17 +200161,17 @@ LAB_00557237: do { local_140 = (int *)((float)((double)(int)uVar9 + (double)(&DAT_00bacb00)[-((int)uVar9 >> 0x1f)]) / 5.0); - FUN_004b0f50(); - FUN_004b0f50(); + std::deque::push_back(); + std::deque::push_back(); local_18 = 0.0; local_1c = (float)local_140 * (float)local_16c + (float)local_148; - FUN_004b0f50(); + std::deque::push_back(); uVar9 = uVar9 + 1; } while (uVar9 < 6); - FUN_004b0e40(); + std::deque::assign(); iVar17 = 10; do { - ppvVar4 = (void **)FUN_004e8fa0(); + ppvVar4 = (void **)Entity_NPC::UpdateCordChain(); iVar17 = iVar17 + -1; } while (iVar17 != 0); ExceptionList = local_10; @@ -200415,7 +200415,7 @@ void FUN_005579b0(undefined4 param_1) if ((iVar2 != 0) && (((1 < *(int *)(DAT_00c71678 + 0x26614) && (*(int *)(iVar2 + 0x28) == 1)) || (*(int *)(iVar2 + 0x28) - 10U < 0x3de)))) { - FUN_004e9b10(param_1,0); + Entity_NPC::render_overlay(param_1,0); } uVar3 = uVar3 + 1; } while (uVar3 < 2); @@ -200479,9 +200479,9 @@ void FUN_00557a60(void) } -//@@ 00557b00 FUN_00557b00 +//@@ 00557b00 std::set::find -void FUN_00557b00(int *param_1,int *param_2) +void std::set::find(int *param_1,int *param_2) { int *in_ECX; @@ -200523,7 +200523,7 @@ void FUN_00557b70(char *param_1) cVar1 = *pcVar2; pcVar2 = pcVar2 + 1; } while (cVar1 != '\0'); - FUN_00557bd0(0,param_1,(int)pcVar2 - (int)(param_1 + 1)); + std::string::find(0,param_1,(int)pcVar2 - (int)(param_1 + 1)); return; } @@ -200539,9 +200539,9 @@ bool FUN_00557bb0(int *param_1) } -//@@ 00557bd0 FUN_00557bd0 +//@@ 00557bd0 std::string::find -uint FUN_00557bd0(uint param_1,byte *param_2,uint param_3) +uint std::string::find(uint param_1,byte *param_2,uint param_3) { byte bVar1; @@ -200611,14 +200611,14 @@ float10 Entity_Tear::Scale(void) } -//@@ 00557ce0 FUN_00557ce0 +//@@ 00557ce0 collect_npcs_with_same_parent /* WARNING: Removing unreachable block (ram,0x00557f14) */ /* WARNING: Removing unreachable block (ram,0x00557f26) */ /* WARNING: Removing unreachable block (ram,0x00557f36) */ /* WARNING: Removing unreachable block (ram,0x00557f3c) */ -void FUN_00557ce0(void) +void collect_npcs_with_same_parent(void) { int *piVar1; @@ -200650,7 +200650,7 @@ void FUN_00557ce0(void) local_38 = (uint *)0x0; local_14 = 0; local_24 = 360.0; - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); local_14 = CONCAT31(local_14._1_3_,1); uVar5 = 0; if (local_40 != 0) { @@ -200736,7 +200736,7 @@ float * NpcHelper::willo_slot(float *param_1,int param_2) float local_10; float local_c; - FUN_00558070(&local_10,&local_14); + NpcHelper::willo_get_target_pos(&local_10,&local_14); uVar1 = *(uint *)(DAT_00c7169c + 0x4abbc) & 0x80000001; if ((int)uVar1 < 0) { uVar1 = (uVar1 - 1 | 0xfffffffe) + 1; @@ -200758,9 +200758,9 @@ float * NpcHelper::willo_slot(float *param_1,int param_2) return param_1; } -//@@ 00558070 FUN_00558070 +//@@ 00558070 NpcHelper::willo_get_target_pos -void FUN_00558070(float *param_1,float *param_2) +void NpcHelper::willo_get_target_pos(float *param_1,float *param_2) { int *piVar1; @@ -200961,7 +200961,7 @@ void NpcHelper::willo_attack(void) seed_fart_sound_override(); SoundEffects::Play(0x99,0x3f800000,2,0,local_b8,0); Entity_NPC::GetPlayerTarget(); - NpcAI::ENTITY_GEMINI((Entity_NPC *)local_b4); + ProjectileParams::ProjectileParams((Entity_NPC *)local_b4); sqrtf(); local_60 = DAT_00c33cd8; local_20 = 4; @@ -201074,7 +201074,7 @@ float * __fastcall NpcAI::ENTITY_WILLO(Entity_NPC *npc) (npc->_v1).y = 1.0; npc->_projectileDelay = 0x28; *(int *)&npc->_flags = (int)qVar2; - FUN_00557ce0(); + collect_npcs_with_same_parent(); pfVar8 = DAT_00c71678; if ((*(char *)DAT_00c71678[0x60c0] != '\0') && (pfVar8 = (float *)((int)DAT_00c71678[0x993e] - @@ -201085,7 +201085,7 @@ float * __fastcall NpcAI::ENTITY_WILLO(Entity_NPC *npc) if (uStack_128 != 0) { do { iVar10 = *(int *)(iStack_130 + uVar4 * 4); - FUN_00558070(&fStack_124,0); + NpcHelper::willo_get_target_pos(&fStack_124,0); pfVar8 = (float *)NpcHelper::willo_slot(auStack_154,0xc); fStack_148 = fStack_124; fStack_118 = *pfVar8 - fStack_124; @@ -201265,7 +201265,7 @@ float * __fastcall NpcAI::ENTITY_WILLO(Entity_NPC *npc) if (((iVar10 == 2) || (iVar10 == 5)) || (iVar10 == 8)) { Entity_NPC::PlaySound(npc,0x99,0x3f800000,2,0,0x3f800000); pfVar8 = (float *)NpcHelper::willo_slot(auStack_154,0); - pfVar5 = (float *)FUN_00558070(auStack_144,0); + pfVar5 = (float *)NpcHelper::willo_get_target_pos(auStack_144,0); fStack_124 = *pfVar8 - *pfVar5; fStack_120 = pfVar8[1] - pfVar5[1]; pfVar8 = (float *)Vector::Normalized(auStack_14c); @@ -201309,7 +201309,7 @@ float * __fastcall NpcAI::ENTITY_WILLO(Entity_NPC *npc) } LAB_00558f6c: if (npc->_dead != 0) { - pfVar8 = (float *)FUN_00557ce0(); + pfVar8 = (float *)collect_npcs_with_same_parent(); } ExceptionList = local_10; return pfVar8; @@ -205438,7 +205438,7 @@ LAB_005607bc: npc->_visible = 1; npc->_isInvicible = 0; npc->_championColorIdx = npc->_i1; - FUN_007eb870(); + Level::UpdateBackwardsPathStages(); } } pvVar7 = (void *)(int)*(float *)&npc->field_0x3a0; @@ -207915,7 +207915,7 @@ void __fastcall NpcAI::ENTITY_FISSURE(Entity_NPC *npc) if (iVar5 == 1) { local_38 = DAT_00c3793c * 18.0; local_34 = DAT_00c37940 * 18.0; - FUN_006b68c0(&npc->_pos,&local_38); + spawn_rock_particles(&npc->_pos,&local_38); npc->_entityGridCollisionClass = 7; } else if (*(float *)&npc->field_0x3a4 <= 180.0) { @@ -207923,7 +207923,7 @@ void __fastcall NpcAI::ENTITY_FISSURE(Entity_NPC *npc) (npc->_v1).x = -5.0; local_38 = DAT_00c3793c * 18.0; local_34 = DAT_00c37940 * 18.0; - FUN_006b68c0(&npc->_pos,&local_38); + spawn_rock_particles(&npc->_pos,&local_38); Entity_NPC::PlaySound(npc,0x102,0x3f800000,2,0,0x3f800000); } else { @@ -208349,7 +208349,7 @@ void FUN_00565e00(void) *(undefined1 *)((int)in_ECX + 0x171) = 0; uVar2 = Random(); uVar2 = uVar2 % 3 + 6; - FUN_006d81c0(); + Entity_NPC::ClearDequeRefs(); local_20[0] = (int *)0x0; std::deque::resize(uVar2,local_20); uVar10 = 0; @@ -209134,7 +209134,7 @@ LAB_0056750b: local_10c = (code *)0x1c; seed_fart_sound_override(); SoundEffects::Play(local_10c,0x3f4ccccd,2,0,0x3f800000,0); - NpcAI::ENTITY_GEMINI((Entity_NPC *)auStack_b8); + ProjectileParams::ProjectileParams((Entity_NPC *)auStack_b8); uStack_ac = 0xbda3d70a; uStack_20 = 1; uStack_a4 = 0x40000000; @@ -209255,7 +209255,7 @@ void FUN_00567d50(void) if (*(int *)(in_ECX + 0x30) != 1) { if (iVar4 == 0) { iVar4 = Random(); - FUN_004d8b50(&DAT_00c7b640, + spawn_small_maggot(&DAT_00c7b640, -8.0 - (float)((double)iVar4 + (double)(&DAT_00bacb00)[-(iVar4 >> 0x1f)]) * 2.3283064e-10 * 4.0); return; @@ -209747,7 +209747,7 @@ void FUN_00568cc0(void) *(undefined1 *)(piVar3 + 0xec) = 1; piVar3[0x5a] = piVar3[0x5a] & 0xfffffffbU | 0x80100011; piVar3[0x5b] = piVar3[0x5b]; - FUN_00436220(0); + Entity::SetVisibleFlag(0); if (piVar3[0xef] != 0) { local_14 = piVar3 + 0xef; std::multiset::erase(&local_14); @@ -210020,7 +210020,7 @@ void __fastcall NpcAI::ENTITY_MOTHER(Entity_NPC *npc) local_150 = (local_180 + local_17c) * 0.5; local_14c = ((float)local_134 - (float)local_124) * 0.43 + (float)local_124; if (*(char *)((int)pvVar2 + 0x8c) == '\0') { - FUN_00945130(&local_150); + ring_buffer_push(&local_150); *(undefined1 *)((int)pvVar2 + 0x8c) = 1; } } @@ -210116,7 +210116,7 @@ void __fastcall NpcAI::ENTITY_MOTHER(Entity_NPC *npc) do { iVar9 = *(int *)(*(int *)((int)pvVar2 + 0x125c) + (int)local_140 * 4); if ((iVar9 != 0) && (*(int *)(iVar9 + 0x28) == 3)) { - puVar8 = (undefined4 *)FUN_0063b4a0(&local_2c,0); + puVar8 = (undefined4 *)Entity_Familiar::GetFollowTargetPosition(&local_2c,0); *(undefined4 *)(iVar9 + 0x33c) = *puVar8; *(undefined4 *)(iVar9 + 0x340) = puVar8[1]; } @@ -210507,7 +210507,7 @@ LAB_0056a092: if (local_128 != (Entity_NPC *)0x0) { local_150 = (float)local_164 + local_13c; local_14c = (float)local_160 + (float)local_138; - FUN_004d8b50(&local_13c,0xc1000000); + spawn_small_maggot(&local_13c,0xc1000000); } if (local_128 == (Entity_NPC *)0x0) { pEVar22 = local_124; @@ -210666,9 +210666,9 @@ LAB_0056a0b7: local_38 = local_38 + fVar25; cVar4 = Game::GetDebugFlag(DAT_00c71678,5); if (cVar4 != '\0') { - iVar9 = FUN_006b5f10(1); + iVar9 = Entity::GetDebugShape(1); *(undefined4 *)(iVar9 + 4) = 1; - FUN_0042eef0(&local_4c); + push_shape_points(&local_4c); } EntityList::QueryRadius(local_1a4,&local_4c,0xffffffff); local_14 = 3; @@ -212028,7 +212028,7 @@ LAB_0056d247: bVar21 = (uVar11 - 1 | 0xfffffffc) == 0xffffffff; } if (bVar21) { - NpcAI::ENTITY_GEMINI((Entity_NPC *)local_258); + ProjectileParams::ProjectileParams((Entity_NPC *)local_258); local_204 = DAT_00c34d1c; local_22c = _DAT_00c34cf4; iStack_228 = iRam00c34cf8; @@ -212204,7 +212204,7 @@ LAB_0056dbba: if (*(int *)&in_ECX->field_0x7c != 0) { cVar7 = AnimationState::IsEventTriggered(&DAT_00b6166c); if (cVar7 != '\0') { - NpcAI::ENTITY_MASK((Entity_NPC *)((int)local_17c + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)((int)local_17c + 0x1218)); uVar11 = 0; if (local_28 != (Entity_NPC *)0x0) { do { @@ -212228,7 +212228,7 @@ LAB_0056dbba: local_168 = (Entity_NPC *)0x1e; seed_fart_sound_override(); SoundEffects::Play(local_168,0x3f800000,2,0,0x3f800000,0); - NpcAI::ENTITY_MASK((Entity_NPC *)((int)local_17c + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)((int)local_17c + 0x1218)); local_14 = 1; local_168 = (Entity_NPC *)0x0; if (local_40 != (undefined1 *)0x0) { @@ -212611,7 +212611,7 @@ LAB_0056eb53: iVar16 = Entity_NPC::MakeBloodCloud(); *(undefined4 *)(iVar16 + 0x34c) = 0; *(undefined4 *)(iVar16 + 0x350) = 0xc1700000; - NpcAI::ENTITY_GEMINI((Entity_NPC *)local_158); + ProjectileParams::ProjectileParams((Entity_NPC *)local_158); Color::operator_assign(&DAT_00c34e80); local_100 = 0; local_fc = 2.938736e-39; @@ -213084,7 +213084,7 @@ void __fastcall NpcAI::ENTITY_MOTHERS_SHADOW(Entity_NPC *npc) ANM2::SetFrame("Appear",0); (npc->_targetPosition).x = (npc->_pos).x; (npc->_targetPosition).y = (npc->_pos).y; - FUN_0041b4f0(npc); + EntityList::AddPersistentEntity(npc); npc->_entityGridCollisionClass = 0; *(undefined4 *)&npc->field_0xf18 = 1; npc->_i1 = 0; @@ -214126,7 +214126,7 @@ LAB_0057272c: if ((local_f0 == 7.00649e-45) || ((cVar9 = PlayerManager::AnyoneHasTrinket(2), cVar9 != '\0' || (uVar10 = Random(), (uVar10 & 1) == 0)))) { - FUN_006393a0(local_100.y,&DAT_00c7b640); + spawn_dip_at(local_100.y,&DAT_00c7b640); } local_104 = (Vector *)((int)&local_104[-1].y + 3); } while (local_104 != (Vector *)0x0); @@ -214413,7 +214413,7 @@ int FUN_00572a70(void) ExceptionList = &local_10; local_18 = 0; local_1c = 0.0; - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); uVar5 = 0; iVar4 = 0; if (local_2c != 0) { @@ -214799,7 +214799,7 @@ void __fastcall NpcAI::ENTITY_CLUTCH(Entity_NPC *npc) local_128 = *(uint *)&npc->field_0xb74; local_160 = npc; if (local_128 == 4) { - FUN_004f83a0(*(undefined4 *)&npc->field_0xc28); + std::deque::resize(*(undefined4 *)&npc->field_0xc28); if (*(int *)&npc->field_0xc28 != 0) { uVar11 = *(undefined4 *)&npc->field_0xc10; uVar30 = *(undefined4 *)&npc->field_0xc04; @@ -215019,7 +215019,7 @@ LAB_00575092: } else { puVar14 = (undefined4 *) - FUN_00498fd0(local_138,piVar8,0,local_15c,piVar8,0,(int)local_15c + 3); + std::deque::erase(local_138,piVar8,0,local_15c,piVar8,0,(int)local_15c + 3); piVar8 = (int *)*puVar14; local_15c = (int *)puVar14[2]; } @@ -215110,7 +215110,7 @@ LAB_0057597a: } if (local_128 == 2) { puStack_20 = (undefined1 *)(local_3c + 0xe); - FUN_004f83a0(*(undefined4 *)&npc->field_0xc14); + std::deque::resize(*(undefined4 *)&npc->field_0xc14); if (*(int *)&npc->field_0xc14 != 0) { uVar11 = *(undefined4 *)&npc->field_0xc24; uVar30 = *(undefined4 *)&npc->field_0xc18; @@ -220015,7 +220015,7 @@ LAB_0057d023: local_e4 = 1.4013e-45; break; case 2: - FUN_004d8b50(&local_464,0xc1a00000); + spawn_small_maggot(&local_464,0xc1a00000); goto switchD_0057d0bf_default; case 3: local_e4 = 1.54143e-44; @@ -220876,7 +220876,7 @@ LAB_0057fbdc: local_2ec = local_2b0 + (float)local_2bc + pfVar6[1]; local_2f0 = (float)local_2ac + (float)local_2b8 + *pfVar6; do { - NpcAI::ENTITY_GEMINI((Entity_NPC *)local_1d0); + ProjectileParams::ProjectileParams((Entity_NPC *)local_1d0); local_1c4 = 0x3f3851ec; uVar5 = Random(); uVar10 = uVar5 % 3 + 5; @@ -220918,7 +220918,7 @@ LAB_0057fbdc: local_2e8[1] = 0.0; local_2e8[0] = -6.0 - (float)((double)iVar4 + (double)(&DAT_00bacb00)[-(iVar4 >> 0x1f)]) * 2.3283064e-10 * 4.0; - FUN_004d8b50(local_2e8,local_2b0); + spawn_small_maggot(local_2e8,local_2b0); } else { uVar5 = Random(); @@ -220980,7 +220980,7 @@ LAB_0057fbdc: if ((char)uVar5 != '\0') { Entity_NPC::PlaySound(); Entity_NPC::PlaySound(); - NpcAI::ENTITY_GEMINI((Entity_NPC *)local_1d0); + ProjectileParams::ProjectileParams((Entity_NPC *)local_1d0); local_50 = 0x3f800000; fStack_4c = 1.0; fStack_48 = 1.0; @@ -221059,7 +221059,7 @@ LAB_0057fbdc: bVar12 = (uVar5 - 1 | 0xfffffffc) == 0xffffffff; } if (bVar12) { - NpcAI::ENTITY_GEMINI((Entity_NPC *)local_128); + ProjectileParams::ProjectileParams((Entity_NPC *)local_128); local_d0 = 0x2000; local_cc = 0x40000; local_c0 = 0xc1000000; @@ -221208,7 +221208,7 @@ LAB_0057fbdc: } iVar4 = 4; do { - NpcAI::ENTITY_GEMINI((Entity_NPC *)local_278); + ProjectileParams::ProjectileParams((Entity_NPC *)local_278); local_224 = DAT_00c34f00; local_24c = _DAT_00c34ed8; iStack_248 = iRam00c34edc; @@ -221498,7 +221498,7 @@ void FUN_00581430(void) local_c4 = local_c4 + ((float)((double)iVar2 + (double)(&DAT_00bacb00)[-(iVar2 >> 0x1f)]) * 2.3283064e-10 * 30.0 - 15.0); - NpcAI::ENTITY_GEMINI((Entity_NPC *)local_c0); + ProjectileParams::ProjectileParams((Entity_NPC *)local_c0); iVar2 = 0; local_94 = _DAT_00c34ed8; iStack_90 = iRam00c34edc; @@ -224128,7 +224128,7 @@ LAB_00585691: uVar10 = Random(); if (uVar10 % 3 == 0) { uVar14 = Room::GetClampedPositionImpl(auStack_158,&local_304,0x41800000,0x41800000,0x41800000); - FUN_004d8910(uVar14); + spawn_small_maggot_jump(uVar14); } ENTITY_GEMINI((Entity_NPC *)auStack_f0); Color::operator_assign(&DAT_00c34ed8); @@ -224879,7 +224879,7 @@ void FUN_00586c40(void) local_170 = local_170 * (1.0 / fVar9); local_16c = local_16c * (1.0 / fVar9); } - NpcAI::ENTITY_GEMINI((Entity_NPC *)local_168); + ProjectileParams::ProjectileParams((Entity_NPC *)local_168); local_164 = local_164 + 10.0; local_114 = DAT_00c34cf0; local_13c = _DAT_00c34cc8; @@ -225333,7 +225333,7 @@ LAB_00587bc7: ExceptionList = &local_1c; puVar25 = (undefined1 *)((int)register0x00000010 + -4); if (*(uint *)&(this->_pathfinder).field_0x618 < 2) { - FUN_004f83a0(2); + std::deque::resize(2); puVar25 = puStack_20; } puStack_20 = puVar25; @@ -226012,7 +226012,7 @@ LAB_0058860b: *(short *)&(this->_pathfinder).field_0x5a4 = sVar5; if (((*(short *)&(this->_pathfinder).field_0x5aa == 0) && (0x1d < sVar5)) && ((int)sVar5 % 0x1e == 0)) { - NpcAI::ENTITY_GEMINI((Entity_NPC *)local_128); + ProjectileParams::ProjectileParams((Entity_NPC *)local_128); local_d4 = DAT_00c34cf0; local_fc = _DAT_00c34cc8; iStack_f8 = iRam00c34ccc; @@ -226104,7 +226104,7 @@ LAB_00588fbc: Vector::Normalize(); (this->_targetPosition).x = local_1e8 * -10.0; (this->_targetPosition).y = (float)local_1e4 * -10.0; - NpcAI::ENTITY_GEMINI((Entity_NPC *)local_1d0); + ProjectileParams::ProjectileParams((Entity_NPC *)local_1d0); Color::operator_assign(&DAT_00c34e80); local_178 = 0; local_174 = 0x200000; @@ -226201,7 +226201,7 @@ LAB_00589c49: } } if (this->_dead != 0) { - NpcAI::ENTITY_MASK((Entity_NPC *)(local_218 + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(local_218 + 0x1218)); uVar6 = 0; if (local_208 != 0) { do { @@ -226316,9 +226316,9 @@ int FUN_00589e40(int param_1,undefined4 param_2) } -//@@ 00589f90 FUN_00589f90 +//@@ 00589f90 Room::CanSpawnObstacleAtPos -void FUN_00589f90(float *param_1) +void Room::CanSpawnObstacleAtPos(float *param_1) { int in_ECX; @@ -226884,7 +226884,7 @@ void FUN_0058ac10(undefined4 param_1) uVar2 = uVar2 + 1; } while (uVar2 < local_58); } - NpcAI::ENTITY_MASK((Entity_NPC *)((int)DAT_00c71678->_room + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)((int)DAT_00c71678->_room + 0x1218)); local_8 = CONCAT31(local_8._1_3_,1); if (local_68 < *(int *)(in_ECX + 0xbc0) + 4U) { uVar3 = Random(); @@ -227875,7 +227875,7 @@ LAB_0058cd01: (DAT_00c71678,&npc->_pos,0x42c80000,0,0,0,0,uVar8,npc,0x3fa00000,1,4,0,0); Game::ButterBeanFart(&npc->_pos,0x42f00000,npc,0,0); Game::ShakeScreen(0x10); - cVar5 = FUN_00589f90(&npc->_pos,0); + cVar5 = Room::CanSpawnObstacleAtPos(&npc->_pos,0); if (cVar5 != '\0') { local_108 = (int *)Room::GetGridIndex(&npc->_pos); uVar28 = 0; @@ -228400,9 +228400,9 @@ void FUN_0058e260(int *param_1) } -//@@ 0058e490 FUN_0058e490 +//@@ 0058e490 NpcHelper::siren_familiar_counts -void FUN_0058e490(int *param_1,int *param_2,int *param_3) +void NpcHelper::siren_familiar_counts(int *param_1,int *param_2,int *param_3) { int iVar1; @@ -228428,7 +228428,7 @@ void FUN_0058e490(int *param_1,int *param_2,int *param_3) *param_1 = 0; *param_2 = 0; *param_3 = 0; - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)(iVar1 + 0x18300) + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)(iVar1 + 0x18300) + 0x1218)); uVar4 = 0; if (local_18 != 0) { do { @@ -228466,9 +228466,9 @@ void FUN_0058e490(int *param_1,int *param_2,int *param_3) } -//@@ 0058e590 FUN_0058e590 +//@@ 0058e590 NpcHelper::siren_charmed_count -int FUN_0058e590(void) +int NpcHelper::siren_charmed_count(void) { int iVar1; @@ -228493,14 +228493,14 @@ int FUN_0058e590(void) uVar3 = DAT_00bf93b4 ^ (int)register0x00000010 - 4U; ExceptionList = &local_10; iVar6 = 0; - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); uVar5 = 0; if (local_18 != 0) { do { iVar1 = *(int *)(local_20 + uVar5 * 4); if ((((iVar1 != 0) && (*(int *)(iVar1 + 0x28) == 3)) && ((*(uint *)(iVar1 + 0x168) & 0x100) != 0)) && - ((cVar2 = FUN_00612890(uVar3), uVar5 = extraout_EDX, cVar2 != '\0' && + ((cVar2 = Entity_Familiar::is_detached_from_follow(uVar3), uVar5 = extraout_EDX, cVar2 != '\0' && (*(int *)(extraout_ECX + 0x410) == *(int *)(in_ECX + 0xf40))))) { iVar6 = iVar6 + 1; } @@ -228583,10 +228583,10 @@ void NpcHelper::siren_pick(void) local_48 = (undefined4 *)0x0; local_14 = 0.0; local_24 = uVar2; - FUN_0058e490(local_40,&local_44,&fStack_58); - iVar3 = FUN_0058e590(uVar2); + NpcHelper::siren_familiar_counts(local_40,&local_44,&fStack_58); + iVar3 = NpcHelper::siren_charmed_count(uVar2); local_68 = (undefined4 *)0x0; - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); fVar7 = 0.0; puVar9 = puVar10; puVar11 = (undefined4 *)0x0; @@ -228981,7 +228981,7 @@ void __fastcall NpcAI::ENTITY_SIREN_main(Entity_NPC *npc) piVar10 = (int *)0x0; } else { - piVar10 = (int *)FUN_00753da0(); + piVar10 = (int *)Entity_Player::constructor(); } local_14 = -NAN; npc->_sirenPlayerEntity = piVar10; @@ -229083,7 +229083,7 @@ void __fastcall NpcAI::ENTITY_SIREN_main(Entity_NPC *npc) iVar14 = Vector::Normalized(); puVar4 = puStack_20; if (0.1 < *(float *)(iVar14 + 4)) { - FUN_0058e490(&local_10c,&local_104,&local_fc); + NpcHelper::siren_familiar_counts(&local_10c,&local_104,&local_fc); puVar4 = puStack_20; if (local_104 == (Entity_NPC *)0x0) { *(undefined2 *)&npc->_projectileCooldown = 0; @@ -229724,7 +229724,7 @@ LAB_0058f9a7: SoundEffects::Play(local_104,0x3f800000,2,0,0x3f800000,0); pvVar9 = (void *)Game::GetPlayer(DAT_00c71678); local_fc = pvVar9; - iVar14 = FUN_0058e590(); + iVar14 = NpcHelper::siren_charmed_count(); local_104 = (Entity_NPC *)(3 - iVar14); if (0 < (int)local_104) { do { @@ -229781,7 +229781,7 @@ LAB_0058f9a7: uVar11 = Entity_NPC::CalcTargetPosition(&local_12c,0); PathFinder::FindGridPath(uVar11,uVar26,uVar24); iVar14 = (int)(short)npc->_projectileCooldown; - if ((iVar14 / 0x1e < (local_114 + iVar14) / 0x1e) && (iVar14 = FUN_0058e590(), iVar14 == 0)) { + if ((iVar14 / 0x1e < (local_114 + iVar14) / 0x1e) && (iVar14 = NpcHelper::siren_charmed_count(), iVar14 == 0)) { ANM2::Play((ANM2 *)&npc->field_0x48,"HoverEnd",0); npc->_state = 3; *(undefined2 *)((int)&npc->_projectileCooldown + 2) = 0; @@ -229920,7 +229920,7 @@ LAB_0058f9a7: if ((((*(int *)(iVar14 + 0x28) == 3) && (*(void **)(iVar14 + 0x410) == npc->_sirenPlayerEntity)) && (*(int *)(iVar14 + 0x2c) != 0x29)) && (*(int *)(iVar14 + 0x2c) != 0x28)) { - FUN_0064bab0(); + Entity_Familiar::RemoveFromPlayer(); } uVar8 = uVar8 + 1; } while (uVar8 < *(uint *)((int)local_fc + 0x1264)); @@ -230247,7 +230247,7 @@ void __fastcall NpcAI::ENTITY_SIREN(Entity_NPC *npc) if ((float)*(int *)((int)local_f4 + 0x3bc) == fVar12) { if (*(int *)((int)local_f4 + 0x3c4) != 0) { if (((*(uint *)(*(int *)((int)local_f4 + 0x3c4) + 0x168) & 0x100) == 0) || - (cVar4 = FUN_00612890(), cVar4 == '\0')) { + (cVar4 = Entity_Familiar::is_detached_from_follow(), cVar4 == '\0')) { LAB_0059192a: fVar12 = local_fc; } @@ -230579,7 +230579,7 @@ void FUN_00592050(int param_1) if (*(int *)(param_1 + 0x3bc) != 0) { iVar2 = *(int *)(*(int *)(param_1 + 0x3bc) + 0x28); while (iVar2 == 3) { - cVar3 = FUN_00612890(); + cVar3 = Entity_Familiar::is_detached_from_follow(); if (cVar3 != '\0') { iVar6 = iVar6 + 1; } @@ -230591,7 +230591,7 @@ void FUN_00592050(int param_1) if (*(int *)(param_1 + 0x3c0) != 0) { iVar2 = *(int *)(*(int *)(param_1 + 0x3c0) + 0x28); while (iVar2 == 3) { - cVar3 = FUN_00612890(); + cVar3 = Entity_Familiar::is_detached_from_follow(); iVar4 = extraout_EDX_00; if (cVar3 != '\0') { iVar4 = extraout_EDX_00 + 1; @@ -230728,7 +230728,7 @@ void FUN_00592280(void) local_44 = *(float *)(iVar2 + 0x1c); local_30 = *(undefined4 **)(iVar2 + 0x20); local_38 = in_ECX; - FUN_006d81c0(); + Entity_NPC::ClearDequeRefs(); local_3c = 0.0; std::deque::resize(5,&local_3c); uVar3 = Random(); @@ -230924,7 +230924,7 @@ void FUN_00592460(void) puStack_20 = (undefined1 *)((int)register0x00000010 + -4); if (*(char *)(iVar3 + 0x8c) == '\0') { puStack_20 = (undefined1 *)((int)register0x00000010 + -4); - FUN_00945130(); + ring_buffer_push(); iVar4 = DAT_00c71678; *(undefined1 *)(iVar3 + 0x8c) = 1; } @@ -231505,7 +231505,7 @@ LAB_00595ea4: else { play_sound_with_fart_seed(0x2c2,2,0,0x3f800000); in_ECX[0x62] = 4; - NpcAI::ENTITY_GEMINI((Entity_NPC *)local_f8); + ProjectileParams::ProjectileParams((Entity_NPC *)local_f8); local_64 = 0xe; iVar3 = 0; local_60 = 1; @@ -231684,7 +231684,7 @@ LAB_00595371: iVar3 = in_ECX[0x104]; } if (iVar3 % 6 == 0) { - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); local_14 = 1.4013e-45; local_1ac = (int *)0x0; if (local_204 != (int *)0x0) { @@ -232080,7 +232080,7 @@ LAB_005946cc: uVar13 = in_ECX[0x104]; LAB_00594ae1: if (((int)uVar13 % 0x16 == 0) && ((int)uVar13 < 0x46)) { - NpcAI::ENTITY_GEMINI((Entity_NPC *)local_f8); + ProjectileParams::ProjectileParams((Entity_NPC *)local_f8); local_1a4 = (int *)&DAT_bf800000; local_64 = 2; local_ec = 0xbdcccccd; @@ -232119,7 +232119,7 @@ LAB_00594ae1: bVar14 = (uVar9 - 1 | 0xfffffffc) == 0xffffffff; } if (((bVar14) && (999 < (int)uVar13)) && ((int)uVar13 < 0x400)) { - NpcAI::ENTITY_GEMINI((Entity_NPC *)local_1a0); + ProjectileParams::ProjectileParams((Entity_NPC *)local_1a0); local_194 = 0xbdcccccd; local_174 = _DAT_00c33d54; iStack_170 = iRam00c33d58; @@ -232244,7 +232244,7 @@ LAB_00594ae1: uVar13 = in_ECX[0x104]; do { if ((uVar13 & 1) == 0) { - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); local_14 = 4.2039e-45; local_1a4 = (int *)0x0; if (local_204 != (int *)0x0) { @@ -233127,7 +233127,7 @@ void FUN_005971e0(void) uVar9 = in_ECX[0x305]; piVar6 = local_28; if ((uint)in_ECX[0x30a] < uVar9) { - FUN_004f83a0(uVar9); + std::deque::resize(uVar9); uVar9 = in_ECX[0x305]; piVar6 = local_28; } @@ -233227,7 +233227,7 @@ LAB_00597c51: atan2f(); in_ECX[0x3b] = (int)(fVar13 * 57.295776 + 90.0); if (local_18 != 2.8026e-45) { - FUN_004b0e40(in_ECX + 0x306); + std::deque::assign(in_ECX + 0x306); } return; switchD_00597234_caseD_8: @@ -233871,7 +233871,7 @@ LAB_00598737: } in_ECX->_projectileCooldown = iVar9; if ((iVar9 == 0) || ((0 < (int)local_fc && (iVar9 % 3 == 0)))) { - local_100 = (Room *)FUN_007069a0(0,0,0); + local_100 = (Room *)Game::GetNearestTargetPlayer(0,0,0); local_118 = (in_ECX->_targetPosition).x; fVar12 = *(float *)&local_100->field_0x33c - local_118; local_120 = (float *)(in_ECX->_targetPosition).y; @@ -233960,7 +233960,7 @@ LAB_00598737: iVar15 = iVar9 * pRVar2->_gridWidth + iVar15; } iVar9 = Room::GetGridCollision(pRVar2,iVar15); - if (((iVar9 == 0) && (iVar9 = FUN_007069a0(0,0,0), iVar9 != 0)) && + if (((iVar9 == 0) && (iVar9 = Game::GetNearestTargetPlayer(0,0,0), iVar9 != 0)) && (fVar12 = *(float *)(iVar9 + 0x33c) - local_124, fVar5 = *(float *)(iVar9 + 0x340) - (float)local_120, fVar12 = fVar5 * fVar5 + fVar12 * fVar12, 6400.0 < fVar12)) { @@ -234012,7 +234012,7 @@ LAB_00598737: Vector::Normalize(); local_11c = local_11c * 10.0; local_118 = local_118 * 10.0; - NpcAI::ENTITY_GEMINI((Entity_NPC *)local_f8); + ProjectileParams::ProjectileParams((Entity_NPC *)local_f8); local_64 = 1; Entity_NPC::FireProjectiles(); } @@ -234109,7 +234109,7 @@ LAB_00598737: in_ECX->_projectileDelay = (int)fVar5 - 1U; if (((int)fVar5 - 1U & 1) == 0) { local_120 = (float *)Entity_NPC::GetPlayerTarget(); - NpcAI::ENTITY_GEMINI((Entity_NPC *)local_f8); + ProjectileParams::ProjectileParams((Entity_NPC *)local_f8); local_64 = 1; uVar8 = Random(); pfVar13 = local_fc; @@ -234325,7 +234325,7 @@ void FUN_005999b0(char *param_1) else { if (local_1c == 0x7fffffff) { /* WARNING: Subroutine does not return */ - FUN_0040ccc0(uVar4); + std::string::_Xlen(uVar4); } uVar4 = local_1c + 1 | 0xf; if (uVar4 < 0x80000000) { @@ -235106,7 +235106,7 @@ LAB_0059a7bb: } local_1e4 = (int *)((uint)local_1e4 & 0xffffff00); } - FUN_006d7df0(); + Entity_NPC::FollowParentSegment(); } else { fVar21 = 0.0; @@ -235131,7 +235131,7 @@ LAB_0059a7bb: fVar21 = 1.8 - fVar21 * 0.79999995; (npc->_v1).x = fVar21; PathFinder::MoveRandomlyAxisAligned(fVar21,0); - FUN_006d7df0(); + Entity_NPC::FollowParentSegment(); fVar21 = (npc->_velocity).x; fVar20 = (npc->_velocity).y; if (ABS(fVar21) <= ABS(fVar20)) { @@ -235257,7 +235257,7 @@ LAB_0059bb72: local_1f8 = (int *)npc->_index; pEVar22 = npc; do { - FUN_006d7df0(); + Entity_NPC::FollowParentSegment(); iVar10 = local_1ec; *(int **)&pEVar22->field_0xc7c = local_1f8; pEVar22 = *(Entity_NPC **)&pEVar22->field_0x3c0; @@ -235555,11 +235555,11 @@ LAB_0059be72: return; } -//@@ 0059bed0 FUN_0059bed0 +//@@ 0059bed0 Entity_NPC::RenderSegmentLink /* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */ -void FUN_0059bed0(float *param_1,char param_2) +void Entity_NPC::RenderSegmentLink(float *param_1,char param_2) { int iVar1; @@ -235745,7 +235745,7 @@ void FUN_0059c4c0(undefined1 param_1) } if (uVar4 == 0x7fffffff) { /* WARNING: Subroutine does not return */ - FUN_0040ccc0(); + std::string::_Xlen(); } uVar5 = uVar4 + 1 | 0xf; if (uVar5 < 0x80000000) { @@ -236051,7 +236051,7 @@ LAB_0059e078: 2.3283064e-10 * 360.0; ANM2::PlayOverlay("HeadWalkOverlay",0); npc->_state = 4; - uVar9 = FUN_00456240(0,0,0,0xff,0x41,0x29,0x23); + uVar9 = ColorParams::set_from_bytes(0,0,0,0xff,0x41,0x29,0x23); Color::operator_assign(uVar9); iVar18 = *(int *)&npc->field_0x3bc; *(undefined4 *)&npc->field_0xf18 = 1; @@ -236122,8 +236122,8 @@ LAB_0059e078: atan2f(); local_54 = (Entity_NPC *)(fVar26 * 57.295776 - fVar24); local_28 = (Entity_NPC *)(fVar26 * 57.295776 + fVar24); - FUN_006827a0(); - FUN_006827a0(); + angle_lerp_shortest(); + angle_lerp_shortest(); fVar24 = npc->_speedMultiplier; fVar26 = (npc->_v1).x; approach_angle(); @@ -236540,12 +236540,12 @@ LAB_0059cf25: } while (local_54 != (Entity_NPC *)0x0); } LAB_0059cf9b: - FUN_006d7df0(1); + Entity_NPC::FollowParentSegment(1); puVar5 = puStack_20; break; case 0x10: *(float *)&npc->field_0x36c = *(float *)&npc->field_0x36c * 0.85; - FUN_006d7df0(1); + Entity_NPC::FollowParentSegment(1); if ((*(int *)&npc->field_0x7c == 0) || (puVar5 = puStack_20, npc->field_0x8c == '\0')) { if (*(int *)&npc->field_0x3bc != 0) goto LAB_0059de35; fVar21 = *(float *)&npc->field_0x384; @@ -237152,7 +237152,7 @@ void NpcHelper::UltraGreed_Smash(int param_1,int param_2) local_58 = 0; local_54 = 0; Game::SpawnParticles(¶m_1,0x5f,0xf,0x40a00000,&local_7c,0x47c35000,0); - NpcAI::ENTITY_MASK((Entity_NPC *)((int)DAT_00c71678->_room + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)((int)DAT_00c71678->_room + 0x1218)); local_14 = 0; if ((in_ECX->_state == 700) || (in_ECX->_state == 0x10)) { local_14 = 1; @@ -237577,7 +237577,7 @@ LAB_0059f29a: pEVar22->_dead = 1; } else { - cVar4 = FUN_006a8f20(); + cVar4 = Entity::is_valid_boss_enemy(); if (cVar4 == '\0') { if ((pEVar22->_type == 0x126) && (iVar8 = __RTDynamicCast(pEVar22,0, @@ -240197,7 +240197,7 @@ LAB_005a58d2: pTVar21 = &IsaacRepentancePlus::Entity::RTTI_Type_Descriptor; uVar20 = 0; local_14._0_1_ = 2; - uVar9 = FUN_004be670(0,(npc->_pos).x,(npc->_pos).y); + uVar9 = NpcHelper::query_nearest_other(0,(npc->_pos).x,(npc->_pos).y); iVar11 = __RTDynamicCast(uVar9,uVar20,pTVar21,pTVar22,uVar23); if (iVar11 != 0) { local_b0 = *(float *)(iVar11 + 0x33c) - (npc->_pos).x; @@ -242134,9 +242134,9 @@ void __fastcall NpcAI::ENTITY_VISAGE(Entity_NPC *npc) *(uint *)&npc->_flags = (uint)npc->_flags | 0x11; *(undefined4 *)((int)&npc->_flags + 4) = uVar10; (npc->_v1).x = 0.0; - FUN_006d81c0(); + Entity_NPC::ClearDequeRefs(); local_350[0] = (Entity_NPC *)0x0; - FUN_004b6a90(local_350); + std::deque::push_front(local_350); (npc->_v1).y = 150.0; uVar10 = Random(); pEStack_358 = (Entity_NPC *)((npc->_pos).x + 0.0); @@ -243709,7 +243709,7 @@ void __fastcall NpcAI::ENTITY_VISAGE_mask(Entity_NPC *npc) } switch(uVar11) { case 0: - FUN_006d81c0(); + Entity_NPC::ClearDequeRefs(); local_120 = (undefined1 *)0x2; do { uVar9 = Random(); @@ -243742,7 +243742,7 @@ void __fastcall NpcAI::ENTITY_VISAGE_mask(Entity_NPC *npc) *(undefined4 *)(iVar7 + 0x3bc) = npc; std::multiset::insert((undefined4 *)(iVar7 + 0x3bc)); local_10c = (int *)0x0; - FUN_004b6a90(&local_10c); + std::deque::push_front(&local_10c); local_f4 = (float)(*(int *)&npc->field_0xc00 + *(int *)&npc->field_0xbfc); uVar11 = (int)local_f4 - 1U & 3; iVar4 = *(int *)(*(int *)&npc->field_0xbf4 + @@ -245322,7 +245322,7 @@ void __thiscall Entity_Familiar::ai_buddy_inbox(Entity_Familiar *this) return; } uStack_bc = *(undefined4 *)((int)&PTR_s_HeadFrontWiggleTransition_00b6298c + iVar3); - uVar12 = FUN_00407380(); + uVar12 = _string_holder_c_str(); pbVar7 = (byte *)uVar12; do { pbVar8 = (byte *)((ulonglong)uVar12 >> 0x20); @@ -245401,7 +245401,7 @@ LAB_005ae57f: cVar2 = Sprite::IsEventTriggered("Shoot"); if (cVar2 != '\0') { Entity_NPC::PlaySound((Entity_NPC *)this,0xe2,0x3f800000,2,0,0x3f800000); - NpcAI::ENTITY_GEMINI((Entity_NPC *)auStack_b4); + ProjectileParams::ProjectileParams((Entity_NPC *)auStack_b4); cVar2 = FUN_005ae1d0(); if (cVar2 == '\0') { iVar6 = Game::GetStageID(DAT_00c71678,extraout_ECX); @@ -246450,7 +246450,7 @@ LAB_005b0e62: (*pcVar2)(1,&local_3c); } } - cVar5 = FUN_00589f90(&npc->_pos,0); + cVar5 = Room::CanSpawnObstacleAtPos(&npc->_pos,0); if (cVar5 != '\0') { local_f0 = (Entity_NPC *)Room::GetGridIndex(); local_fc = (undefined1 *)Random(); @@ -247197,7 +247197,7 @@ int Game::GetAmbush(void) void Game::ShowFortune(void) { - FUN_009807a0("Fortune_General"); + Game::ShowFortuneText("Fortune_General"); return; } @@ -249276,7 +249276,7 @@ LAB_005c72f6: iVar9 = Entity::Type(); if (iVar9 == 0x54) { EntityRef::constructor(); - FUN_00499960(); + EntityRef::operator_(); pcVar3 = *(code **)(*(int *)local_5e0 + 0x24); EntityRef::constructor(); (*pcVar3)(); @@ -249325,7 +249325,7 @@ LAB_005c72f6: puStack_19fc = (undefined4 *)0x3f19999a; pEStack_1a00 = (Entity_Player *)0x5b4225; Color::Color(); - FUN_006b66a0(); + Entity::MakeGroundPoofAtSelf(); Level::GetCurrentRoom(); local_5f8 = (Entity_Player *)Room::GetEntities(); local_5f0 = (Entity_Player *)0x0; @@ -249471,7 +249471,7 @@ LAB_005c72f6: (**(code **)(*piVar21 + 0x3c))(); pEStack_19f4 = (Entity_Player *)auStack_234; pEStack_19f8 = (Entity_Player *)0x5b45eb; - FUN_00456380(); + Color::assign(); pEStack_19f4 = (Entity_Player *)0x5b45f4; (**(code **)(*piVar21 + 0xc))(); local_5e4 = (Entity_Player *)((int)&local_5e4[-1]._replacedPlayer + 3); @@ -249518,7 +249518,7 @@ LAB_005c72f6: if (iVar9 == 0) { if (local_5e4 != (Entity_Player *)0x0) { GridEntity::GetType(); - cVar5 = FUN_0070bf80(); + cVar5 = is_grid_type_floor_special(); if (cVar5 != '\0') goto LAB_005b4907; } local_5f0 = (Entity_Player *)GetCollectibleRNG(local_5e0); @@ -249633,7 +249633,7 @@ LAB_005b4907: local_5e4 = (Entity_Player *)0x0; do { pEVar48 = local_600; - FUN_00a10350(); + Vector::FromAngle(); puVar23 = (undefined4 *)Vector::Resized(); pEStack_19ec = (Entity_Player *)puVar23[1]; pEStack_19f0 = (Entity_Player *)*puVar23; @@ -249667,7 +249667,7 @@ LAB_005b4907: (*pcVar3)(); Entity_Knife::Rotation(); pEStack_19ec = (Entity_Player *)0x5b4fbb; - puVar23 = (undefined4 *)FUN_00a10350(); + puVar23 = (undefined4 *)Vector::FromAngle(); pEStack_19ec = (Entity_Player *)*puVar23; pEStack_19f0 = (Entity_Player *)0x5b4fd4; Entity_Knife::InitHomingPath(pEVar12); @@ -249688,7 +249688,7 @@ LAB_005b4907: pEStack_19f0 = (Entity_Player *) (((float)(int)local_5e4 / 10.0 + (float)local_5f0) * 360.0); pEStack_19f8 = (Entity_Player *)0x5b4e52; - pEStack_19f0 = (Entity_Player *)FUN_00a10350(); + pEStack_19f0 = (Entity_Player *)Vector::FromAngle(); pEStack_19f4 = (Entity_Player *)0x0; puStack_19fc = (undefined4 *)0x5b4e64; pEStack_19f8 = pEVar48; @@ -249713,7 +249713,7 @@ LAB_005b4907: do { pEStack_19ec = (Entity_Player *)auStack_10d8; pEStack_19f0 = (Entity_Player *)0x5b4d5b; - FUN_00a10350(); + Vector::FromAngle(); pEStack_19ec = (Entity_Player *)0x5b4d6a; piVar21 = (int *)FireBrimstone(); pcVar3 = *(code **)(*piVar21 + 0x40); @@ -249732,7 +249732,7 @@ LAB_005b4907: local_5e4 = (Entity_Player *)((float)local_600 * 35.0); local_5ec = (Entity_Player *)&local_5e0->_pos; do { - FUN_00a10350(); + Vector::FromAngle(); pEStack_19ec = (Entity_Player *)0x5b4c8c; Vector::Resized(); pEStack_19ec = (Entity_Player *)0x5b4c99; @@ -250343,7 +250343,7 @@ switchD_005b5899_default: pEVar14 = local_5e0; *(uint *)&local_5e0->field_0x1574 = *(uint *)&local_5e0->field_0x1574 | *(uint *)((int)local_62c + 0x54); - FUN_00435f80(); + TemporaryEffect::TemporaryEffect(); Game::GetField26614(); cVar5 = FUN_00429550(); if (cVar5 != '\0') { @@ -250354,7 +250354,7 @@ switchD_005b5899_default: EvaluateItems(); Isaac::GetItemConfig(); ItemConfig::GetCollectible(); - pfVar19 = (float *)FUN_00435f80(); + pfVar19 = (float *)TemporaryEffect::TemporaryEffect(); fStack_908 = *pfVar19; fStack_904 = pfVar19[1]; fStack_900 = pfVar19[2]; @@ -250422,7 +250422,7 @@ switchD_005b5899_default: pEStack_19ec = (Entity_Player *)0x5b6bdc; TemporaryEffects::AddCollectibleEffect(); pEStack_938 = pEVar48; - FUN_0042c850(); + std::vector::push_back(); } uStack_14 = -1; guard_check_icall(); @@ -250469,10 +250469,10 @@ LAB_005b6056: ItemConfig::GetCollectible(); ItemConfig_Item::GetLocalizedName(); uStack_14 = 10; - FUN_0040d0c0(); + std::string::c_str(); pEVar14 = local_5e0; pEStack_19ec = (Entity_Player *)0x5b60fa; - FUN_009a3410(); + PlayerHUD::show_pill_name(); uStack_14 = -1; thunk_FUN_0040d040(); pEStack_19f0 = (Entity_Player *)auStack_870; @@ -250542,7 +250542,7 @@ LAB_005b6056: Vector::Normalized(); fStack_920 = 10.0; Vector::__mul(); - FUN_00428910(); + Entity::SetVelocity(); *(undefined4 *)&local_5e0->field_0x1888 = 0x3c; std::vector::clear(); pEStack_19ec = (Entity_Player *)0x77; @@ -250795,7 +250795,7 @@ LAB_005b6a39: pEStack_19f0 = (Entity_Player *)&DAT_00000005; pEStack_19f4 = (Entity_Player *)auStack_9c0; pEStack_19f8 = (Entity_Player *)0x5b5d76; - NpcAI::ENTITY_MASK(pEVar16); + EntityList::QuerySublist(pEVar16); uStack_14 = 7; pEVar48 = (Entity_Player *)0x0; local_5ec = (Entity_Player *)0x0; @@ -250958,7 +250958,7 @@ LAB_005b5f61: HasCollectible(local_5e0); pEVar48 = local_5e0; AddCoins(); - FUN_007cf8f0(); + Entity_Player::IsLocalPlayer(); pEStack_19ec = (Entity_Player *)0x382; pEStack_19f0 = (Entity_Player *)0x5b7223; SoundEffects::PlayWithFartOverride(); @@ -251341,7 +251341,7 @@ LAB_005c71f1: pEStack_19f0 = (Entity_Player *)0x3; pEStack_19f4 = (Entity_Player *)auStack_adc; pEStack_19f8 = (Entity_Player *)0x5b8e8b; - NpcAI::ENTITY_MASK(pEVar16); + EntityList::QuerySublist(pEVar16); uStack_14 = 0xf; uVar40 = 0; iVar9 = EntityList::Size(); @@ -251372,7 +251372,7 @@ LAB_005b8efd: pEStack_19f0 = (Entity_Player *)0x3; pEStack_19f4 = (Entity_Player *)auStack_aec; pEStack_19f8 = (Entity_Player *)0x5b8fc1; - NpcAI::ENTITY_MASK(pEVar16); + EntityList::QuerySublist(pEVar16); uStack_14 = 0x10; uVar40 = 0; iVar9 = EntityList::Size(); @@ -251427,13 +251427,13 @@ LAB_005b8efd: cVar5 = Entity::HasMortalDamage(); if (((cVar5 == '\0') && (cVar5 = Entity::IsDead(), cVar5 == '\0')) && (cVar5 = Entity::CanDevolve(pEStack_66c), cVar5 != '\0')) { - FUN_0042c850(); + std::vector::push_back(); } uVar40 = uVar40 + 1; uVar10 = EntityList::Size(); } while (uVar40 < uVar10); } - FUN_004561a0(); + std::iterator_copy(); FUN_00456190(); cVar5 = FUN_0042c710(); while (cVar5 != '\0') { @@ -251555,7 +251555,7 @@ LAB_005b8efd: } Isaac::GetItemConfig(); ItemConfig::GetCollectible(); - FUN_00435f80(); + TemporaryEffect::TemporaryEffect(); uStack_cac = 0x2d; Level::GetCurrentRoom(); FUN_004360d0(); @@ -251790,7 +251790,7 @@ LAB_005b9b2b: pEStack_19ec = (Entity_Player *)0x3f800000; pEStack_19f0 = (Entity_Player *)0x5b9810; Color::Color(); - FUN_00456380(); + Color::assign(); cVar5 = HasCollectible(); if ((cVar5 != '\0') && ((byte)local_610 != 0)) { pEStack_19ec = (Entity_Player *)0x123; @@ -251998,7 +251998,7 @@ LAB_005b986f: if ((*(int *)&local_5e0->field_0x13c0 == 0x11) && (*(int *)&local_5e0->field_0x1d98 != 0)) { AddBoneHearts(); if (*(int *)&local_5e0->field_0x134c < 1) { - FUN_007cc200(); + Entity_Player::init_player_type_state(); } } else { @@ -252023,7 +252023,7 @@ LAB_005b986f: goto LAB_005b3e24; case 0xe: if (local_5e0->_variant != 0) goto LAB_005bbae2; - FUN_007cf8f0(); + Entity_Player::IsLocalPlayer(); pEStack_19ec = (Entity_Player *)0x37e; pEStack_19f0 = (Entity_Player *)0x5ba8bd; SoundEffects::PlayWithFartOverride(); @@ -252124,7 +252124,7 @@ LAB_005b986f: FUN_005cbbd0(); uStack_14 = 0x15; Game::GetPlayerManager(); - iVar9 = FUN_009b9480(); + iVar9 = PlayerManager::count_main_players(); if (iVar9 != 0) { uVar40 = 0; do { @@ -252143,7 +252143,7 @@ LAB_005b986f: (**(code **)(*piVar21 + 0x38))(); uVar40 = uVar40 + 1; Game::GetPlayerManager(); - uVar10 = FUN_009b9480(); + uVar10 = PlayerManager::count_main_players(); } while (uVar40 < uVar10); pEVar14 = local_5e0; } @@ -252652,7 +252652,7 @@ switchD_005bb135_caseD_b: pEStack_19f0 = (Entity_Player *)0x8; pEStack_19f4 = (Entity_Player *)&DAT_00b62f30; pEStack_19f8 = (Entity_Player *)0x5bba4b; - uVar18 = FUN_00737380(); + uVar18 = ItemPool::get_available_collectibles(); uStack_608 = (double)CONCAT44(uVar18,(float)uStack_608); FUN_005cbd00(); uVar18 = RNG::Next(); @@ -252707,7 +252707,7 @@ LAB_005ba336: 3.1415927; pEVar17 = (Entity_Player *)(fVar46 + fVar46); local_600 = pEVar17; - FUN_00417160(); + sinf_wrapper(); local_610 = pEVar17; FUN_00417150(); Vector::Vector(); @@ -252751,7 +252751,7 @@ LAB_005ba336: pEStack_19f0 = (Entity_Player *)0x3; pEStack_19f4 = (Entity_Player *)auStack_9dc; pEStack_19f8 = (Entity_Player *)0x5ba2ba; - NpcAI::ENTITY_MASK(pEVar16); + EntityList::QuerySublist(pEVar16); uStack_14 = 0x12; uVar40 = 0; iVar9 = EntityList::Size(); @@ -252797,12 +252797,12 @@ LAB_005ba336: (((iVar22 = *(int *)((int)pfVar19[4] + 8), iVar22 == 4 || (iVar22 == 7)) || (iVar22 == 8)))) { fStack_670 = *pfVar19; - FUN_00557b00(); - FUN_004561a0(); + std::set::find(); + std::iterator_copy(); cVar5 = FUN_00557bb0(); if (cVar5 != '\0') { std::set::insert(); - FUN_0042c850(); + std::vector::push_back(); } } } @@ -252820,7 +252820,7 @@ LAB_005ba336: iVar9 = Level::GetRoomByIdx(); if (*(int *)(iVar9 + 0x10) != 0) { fStack_954 = -NAN; - FUN_0042c850(); + std::vector::push_back(); } iVar9 = RNG::RandomInt(); if (iVar9 == 0) { @@ -252828,7 +252828,7 @@ LAB_005ba336: iVar9 = Level::GetRoomByIdx(); if (*(int *)(iVar9 + 0x10) != 0) { fStack_958 = -NAN; - FUN_0042c850(); + std::vector::push_back(); } } } @@ -252927,7 +252927,7 @@ LAB_005ba336: pEStack_19f0 = (Entity_Player *)&DAT_00000005; pEStack_19f4 = (Entity_Player *)auStack_b1c; pEStack_19f8 = (Entity_Player *)0x5bbbc9; - NpcAI::ENTITY_MASK(pEVar16); + EntityList::QuerySublist(pEVar16); uStack_14 = CONCAT31(uStack_14._1_3_,0x17); local_5ec = (Entity_Player *)0x0; iVar9 = EntityList::Size(); @@ -252977,15 +252977,15 @@ LAB_005bbc3f: iVar9 = Entity_Pickup::OptionsPickupIndex(); if (0 < iVar9) { fStack_984 = (float)Entity_Pickup::OptionsPickupIndex(); - FUN_00557b00(); - FUN_004561a0(); + std::set::find(); + std::iterator_copy(); cVar5 = FUN_00557bb0(); if (cVar5 == '\0') { FUN_005cba30(); FUN_005b1970(); } else { - fStack_988 = (float)FUN_006eed30(); + fStack_988 = (float)Entity_Pickup::AssignOptionsIndex(); fStack_98c = (float)Entity_Pickup::OptionsPickupIndex(); FUN_005cbfa0(); FUN_005cbfc0(); @@ -253011,7 +253011,7 @@ LAB_005bbc3f: pEStack_19f0 = (Entity_Player *)0x3; pEStack_19f4 = (Entity_Player *)auStack_b0c; pEStack_19f8 = (Entity_Player *)0x5bbe7b; - NpcAI::ENTITY_MASK(pEVar16); + EntityList::QuerySublist(pEVar16); uStack_14 = CONCAT31(uStack_14._1_3_,0x18); uVar40 = 0; iVar9 = EntityList::Size(); @@ -253049,7 +253049,7 @@ LAB_005bbc3f: pEStack_19f0 = (Entity_Player *)0x3; pEStack_19f4 = (Entity_Player *)auStack_b2c; pEStack_19f8 = (Entity_Player *)0x5bc0ef; - NpcAI::ENTITY_MASK(pEVar16); + EntityList::QuerySublist(pEVar16); uStack_14 = 0x19; uVar40 = 0; iVar9 = EntityList::Size(); @@ -253153,7 +253153,7 @@ LAB_005bc1ec: pEStack_19f8 = (Entity_Player *)0x3e8; puStack_19fc = (undefined4 *)0x5bc285; piVar21 = (int *)Game::Spawn(); - FUN_00435d60(); + Entity::SetTargetPosition(); (**(code **)(*piVar21 + 0xc))(); cVar5 = HasCollectible(); if ((cVar5 != '\0') && ((byte)local_610 != 0)) { @@ -253224,7 +253224,7 @@ LAB_005bc473: pEStack_19f0 = (Entity_Player *)0x3; pEStack_19f4 = (Entity_Player *)auStack_b3c; pEStack_19f8 = (Entity_Player *)0x5bc4fd; - NpcAI::ENTITY_MASK(pEVar16); + EntityList::QuerySublist(pEVar16); uStack_14 = 0x1a; uVar40 = 0; iVar9 = EntityList::Size(); @@ -253269,7 +253269,7 @@ LAB_005bc473: pEStack_19f0 = (Entity_Player *)0x2; pEStack_19f4 = (Entity_Player *)auStack_918; pEStack_19f8 = (Entity_Player *)0x5bc5f0; - NpcAI::ENTITY_MASK(pEVar16); + EntityList::QuerySublist(pEVar16); uStack_14 = 0x1b; pEVar48 = (Entity_Player *)0x0; local_5ec = (Entity_Player *)0x0; @@ -253288,7 +253288,7 @@ LAB_005bc473: local_5f0 = (Entity_Player *)0x0; pEStack_614 = (Entity_Player *)((float)pEVar47 * 360.0 - 180.0); do { - FUN_00a10350(); + Vector::FromAngle(); fStack_990 = *(float *)&pEVar14->field_0x1464 * 10.0; Vector::__mul(); pEVar17 = pEStack_9e8; @@ -253308,7 +253308,7 @@ LAB_005bc473: pEVar13 = (Entity_Tear *)FireTear(); std::vector::operator_index(); Entity::Position(); - FUN_00435d60(); + Entity::SetTargetPosition(); if (local_5d9 != '\0') { Entity::Variant(); iVar9 = FUN_0067d9b0(); @@ -253449,16 +253449,16 @@ switchD_005bca27_caseD_5: do { FUN_00417610(); pEStack_19ec = (Entity_Player *)0x5bcafd; - cVar5 = FUN_00417220(); + cVar5 = Entity::IsType(); if (cVar5 == '\0') { FUN_00417610(); pEStack_19ec = (Entity_Player *)0x5bcb40; - cVar5 = FUN_00417220(); + cVar5 = Entity::IsType(); if (cVar5 == '\0') { LAB_005bcb82: FUN_00417610(); pEStack_19ec = (Entity_Player *)0x5bcb9a; - cVar5 = FUN_00417220(); + cVar5 = Entity::IsType(); if (cVar5 != '\0') { FUN_00417610(); iVar9 = Entity::EntityCollisionClass(); @@ -253494,7 +253494,7 @@ switchD_005bcb6f_caseD_0: iVar9 = Room::GetGridEntity(pRVar20); if (iVar9 != 0) { GridEntity::GetType(); - cVar5 = FUN_0070bf80(); + cVar5 = is_grid_type_floor_special(); if (cVar5 != '\0') goto switchD_005bcb6f_default; pRVar20 = (Room *)Level::GetCurrentRoom(); pEStack_19ec = (Entity_Player *)&LAB_005bcc53; @@ -253588,7 +253588,7 @@ LAB_005bcdcc: Level::GetCurrentRoom(); Room::InvalidatePickupVision(); if (local_5e8._0_1_ != '\0') { - FUN_007cf8f0(); + Entity_Player::IsLocalPlayer(); pEStack_19ec = (Entity_Player *)0x38e; pEStack_19f0 = (Entity_Player *)0x5bce83; SoundEffects::PlayWithFartOverride(); @@ -253613,7 +253613,7 @@ LAB_005bcdcc: pEStack_19ec = (Entity_Player *)0x52; pEStack_19f0 = (Entity_Player *)0x3e8; pEStack_19f8 = (Entity_Player *)0x5bcf27; - NpcAI::ENTITY_MASK(pEVar16); + EntityList::QuerySublist(pEVar16); uStack_14 = 0x1d; iVar9 = EntityList::Size(); if (iVar9 != 0) { @@ -253761,7 +253761,7 @@ LAB_005bcdcc: pEStack_19f0 = (Entity_Player *)0x3; pEStack_19f4 = (Entity_Player *)auStack_a8c; pEStack_19f8 = (Entity_Player *)0x5bd3dd; - NpcAI::ENTITY_MASK(pEVar16); + EntityList::QuerySublist(pEVar16); uStack_14 = 0x1e; iVar9 = EntityList::Size(); if (iVar9 != 0) { @@ -253782,7 +253782,7 @@ LAB_005bcdcc: } cVar5 = '\0'; if (SUB41(local_5e8,0) == '\0') goto LAB_005b3e2a; - FUN_007cf8f0(); + Entity_Player::IsLocalPlayer(); pEStack_19ec = (Entity_Player *)0x38e; pEStack_19f0 = (Entity_Player *)0x5bd48c; SoundEffects::PlayWithFartOverride(); @@ -253915,7 +253915,7 @@ LAB_005bd679: if (local_5e0->_variant == 0) { Level::GetCurrentRoom(); if (local_5e8._0_1_ != '\0') { - FUN_007cf8f0(); + Entity_Player::IsLocalPlayer(); pEStack_19ec = (Entity_Player *)0x38e; pEStack_19f0 = (Entity_Player *)0x5bd7c5; SoundEffects::PlayWithFartOverride(); @@ -254041,7 +254041,7 @@ LAB_005bd679: pEStack_19f0 = (Entity_Player *)0x3; pEStack_19f4 = (Entity_Player *)auStack_b5c; pEStack_19f8 = (Entity_Player *)0x5be0ef; - NpcAI::ENTITY_MASK(pEVar16); + EntityList::QuerySublist(pEVar16); uStack_14 = 0x21; uVar40 = 0; iVar9 = EntityList::Size(); @@ -254082,7 +254082,7 @@ LAB_005bd679: pEStack_19f0 = (Entity_Player *)&DAT_00000005; pEStack_19f4 = (Entity_Player *)auStack_a9c; pEStack_19f8 = (Entity_Player *)0x5bda04; - NpcAI::ENTITY_MASK(pEVar16); + EntityList::QuerySublist(pEVar16); uStack_14 = 0x1f; FUN_00424510(); uStack_14 = CONCAT31(uStack_14._1_3_,0x20); @@ -254096,7 +254096,7 @@ LAB_005bd679: fStack_6c0 = *pfVar19; cVar5 = Entity_Pickup::CanReroll(); if ((cVar5 != '\0') && (iVar9 = Entity::Variant(), iVar9 != 100)) { - FUN_0042c850(); + std::vector::push_back(); } uVar40 = uVar40 + 1; uVar10 = EntityList::Size(); @@ -254156,7 +254156,7 @@ LAB_005bd679: local_5ec = (Entity_Player *)0x0; } LAB_005bdbdf: - FUN_006e17c0(); + Entity_Pickup::UpdateLootPreview(); } FUN_005cbd00(); RNG::Next(); @@ -254178,7 +254178,7 @@ LAB_005bdbdf: LAB_005b8f09: cVar5 = '\0'; if (SUB41(local_5e8,0) == '\0') goto LAB_005b3e2a; - FUN_007cf8f0(); + Entity_Player::IsLocalPlayer(); pEStack_19ec = (Entity_Player *)0x38e; pEStack_19f0 = (Entity_Player *)&LAB_005b8f3d; SoundEffects::PlayWithFartOverride(); @@ -254206,7 +254206,7 @@ LAB_005b8f09: cVar5 = Entity_Pickup::CanReroll(); if (((cVar5 != '\0') && (iVar9 = Entity::Variant(), iVar9 == 100)) && (cVar5 = Entity_Pickup::IsShopItem(), cVar5 == '\0')) { - FUN_0042c850(); + std::vector::push_back(); } } } @@ -254283,7 +254283,7 @@ LAB_005b8f09: Room::FindFreePickupSpawnPosition(); FUN_0042f160(); RNG::RandomInt(); - FUN_0042f150(); + std::vector::operator__(); RNG::Next(); pEStack_19f0 = (Entity_Player *)auStack_9e4; pEStack_19ec = (Entity_Player *)&DAT_00c7b640; @@ -254313,7 +254313,7 @@ LAB_005b8f09: (cVar5 = Item::HasTags(), cVar5 == '\0')) { if ((*(int *)local_5ec == 3) && (*(float *)&local_5ec->field_0x4 != 7.32879e-43)) { fStack_99c = *(float *)&local_5ec->field_0x4; - FUN_0042c850(); + std::vector::push_back(); } else { piStack_54 = (int *)&pEVar14->field_0x1520; @@ -254369,7 +254369,7 @@ LAB_005bef93: piVar21 = (int *)ItemConfig::GetCollectible(); if ((*piVar21 == 3) && (piVar21[1] != 0x20b)) { fStack_9a0 = (float)Entity::SubType(); - FUN_0042c850(); + std::vector::push_back(); } else { piStack_6c = (int *)&pEVar14->field_0x1520; @@ -254400,12 +254400,12 @@ LAB_005bef93: Game::Spawn(); pEVar48 = local_5ec; (**(code **)(*(int *)local_5ec + 0x28))(); - FUN_006ee750(); + Entity_Pickup::RemoveOtherOptions(); iVar9 = FUN_005b1960(); uStack_608 = (double)CONCAT44(iVar9,(float)uStack_608); if (iVar9 != -1) { Game::GetPlayerManager(); - uVar40 = FUN_009bfa00(); + uVar40 = PlayerManager::GetNumAlivePlayers(); if (iVar9 + 1U < uVar40) { Entity::Position(); (**(code **)(*(int *)pEVar48 + 0x28))(); @@ -254467,7 +254467,7 @@ LAB_005bef93: if (iVar9 != 0x11) goto LAB_005bf09d; } Game::GetAmbush(); - FUN_00833420(); + Ambush::StartChallenge(); } LAB_005bf09d: uStack_14 = -1; @@ -254499,11 +254499,11 @@ LAB_005bf09d: pEStack_614 = (Entity_Player *)(uVar40 >> 0xf & 0xffffff01); Isaac::GetItemConfig(); ItemConfig::GetTrinket(); - FUN_0040d0c0(); + std::string::c_str(); uStack_608._4_4_ = (Entity_Player *)local_5e0->_headDirection; ItemConfig_Item::GetLocalizedName(); uStack_14 = 0x22; - FUN_0040d0c0(); + std::string::c_str(); pEStack_19ec = *(Entity_Player **)local_5ec; pEStack_19f0 = (Entity_Player *)0xb62b88; pEStack_19f4 = (Entity_Player *)0x1; @@ -254520,7 +254520,7 @@ LAB_005bf09d: } cVar5 = '\0'; if (SUB41(local_5e8,0) != '\0') { - FUN_007cf8f0(); + Entity_Player::IsLocalPlayer(); pEStack_19ec = (Entity_Player *)0x38c; pEStack_19f0 = (Entity_Player *)&UNK_005be386; SoundEffects::PlayWithFartOverride(); @@ -254606,7 +254606,7 @@ LAB_005bf09d: if (local_5e4 != (Entity_Player *)0x0) { (**(code **)(*(int *)local_5e4 + 0xc))(); FUN_00435d40(); - FUN_00435d20(); + Entity::SetField380(); } } } @@ -254634,7 +254634,7 @@ LAB_005bf09d: pEStack_19f0 = (Entity_Player *)&DAT_00000005; pEStack_19f4 = (Entity_Player *)auStack_798; pEStack_19f8 = (Entity_Player *)&UNK_005c01e8; - NpcAI::ENTITY_MASK(pEVar16); + EntityList::QuerySublist(pEVar16); pEVar48 = (Entity_Player *)0x0; uStack_14 = 0x2c; local_5e4 = (Entity_Player *)0x0; @@ -254656,7 +254656,7 @@ LAB_005bf09d: FUN_004074a0(); FUN_005cbd00(); RNG::Next(); - FUN_009dcc70(); + ItemPool::CreateGlitchedCollectible(); FUN_00435cd0(); pEVar48 = local_5e4; puVar23 = (undefined4 *)std::vector::operator_index(); @@ -254740,7 +254740,7 @@ code_r0x005c0308: } if (pEVar48 != local_5e4) { pEStack_998 = pEVar48; - FUN_0042c850(); + std::vector::push_back(); } } LAB_005be4fe: @@ -254767,7 +254767,7 @@ LAB_005be4fe: Config::GetCollectibles(); iVar9 = FUN_005cbe00(); if (*(char *)(iVar9 + 4) != '\0') { - FUN_00772260(); + Entity_Player::TryRemoveSmeltedTrinket(); break; } Config::GetCollectibles(); @@ -254891,7 +254891,7 @@ LAB_005be4fe: pEStack_19f0 = (Entity_Player *)&DAT_00000005; pEStack_19f4 = (Entity_Player *)auStack_788; pEStack_19f8 = (Entity_Player *)0x5bf287; - NpcAI::ENTITY_MASK(pEVar16); + EntityList::QuerySublist(pEVar16); uStack_14 = 0x28; FUN_005cbd00(); RNG::Next(); @@ -254940,15 +254940,15 @@ LAB_005be4fe: iVar9 = Entity_Pickup::OptionsPickupIndex(); if (0 < iVar9) { fStack_9a4 = (float)Entity_Pickup::OptionsPickupIndex(); - FUN_00557b00(); - FUN_004561a0(); + std::set::find(); + std::iterator_copy(); cVar5 = FUN_00557bb0(); if (cVar5 == '\0') { FUN_005cba30(); FUN_005b1970(); } else { - fStack_9a8 = (float)FUN_006eed30(); + fStack_9a8 = (float)Entity_Pickup::AssignOptionsIndex(); fStack_9ac = (float)Entity_Pickup::OptionsPickupIndex(); FUN_005cbfa0(); FUN_005cbfc0(); @@ -255096,10 +255096,10 @@ LAB_005be4fe: } while ((int)local_5e4 < (int)pEStack_614); pEVar14 = local_5e0; } - FUN_007afc20(); + Entity_Player::try_trigger_astral_projection(); Isaac::GetItemConfig(); ItemConfig::GetCollectible(); - FUN_00435f80(); + TemporaryEffect::TemporaryEffect(); Game::GetField26614(); cVar5 = FUN_00429550(); if (cVar5 != '\0') { @@ -255616,7 +255616,7 @@ LAB_005b40d0: pEStack_19f4 = (Entity_Player *)0x5c0d51; fStack_7c8 = (float)__RTDynamicCast(); if ((fStack_7c8 != 0.0) && (cVar5 = Entity_Pickup::IsShopItem(), cVar5 != '\0')) { - FUN_0042c850(); + std::vector::push_back(); } } uVar40 = uVar40 + 1; @@ -255630,7 +255630,7 @@ LAB_005b40d0: std::vector::size(); RNG::RandomInt(); FUN_0042c810(); - FUN_006e2570(); + Entity_Pickup::update_price_sprite(); pEVar14 = local_5e0; } uStack_14 = -1; @@ -255639,7 +255639,7 @@ LAB_005b40d0: goto LAB_005bc1f8; case 0x3d: if (cVar5 != '\0') { - FUN_007cf8f0(); + Entity_Player::IsLocalPlayer(); pEStack_19ec = (Entity_Player *)0x38d; pEStack_19f0 = (Entity_Player *)0x5c0e25; SoundEffects::PlayWithFartOverride(); @@ -255675,21 +255675,21 @@ LAB_005b83be: uStack_608 = (double)CONCAT44(uVar18,(float)uStack_608); Level::GetCurrentRoom(); pvVar42 = uStack_608._4_4_; - FUN_007ef420(); + Entity_Pickup::RestoreState(); pvStack_7cc = pvVar42; - FUN_0042c850(); + std::vector::push_back(); iVar9 = Entity_Pickup::OptionsPickupIndex(); if (0 < iVar9) { fStack_7d0 = (float)Entity_Pickup::OptionsPickupIndex(); - FUN_00557b00(); - FUN_004561a0(); + std::set::find(); + std::iterator_copy(); cVar5 = FUN_00557bb0(); if (cVar5 == '\0') { FUN_005cba30(); FUN_005b1970(); } else { - fStack_7d4 = (float)FUN_006eed30(); + fStack_7d4 = (float)Entity_Pickup::AssignOptionsIndex(); fStack_7d8 = (float)Entity_Pickup::OptionsPickupIndex(); FUN_005cbfa0(); FUN_005cbfc0(); @@ -255712,7 +255712,7 @@ LAB_005b83be: pEStack_19f0 = pEVar48; pEStack_19f8 = (Entity_Player *)0x5c1328; Room::FindFreePickupSpawnPosition(); - FUN_004288f0(); + Entity::SetPosition(); puVar41 = &local_5e4->field_0x1; local_5e4 = (Entity_Player *)puVar41; puVar15 = (undefined1 *)std::vector::size(); @@ -255754,7 +255754,7 @@ LAB_005b83be: ((local_609 == 0 || (iVar9 = Entity::SubType(), iVar9 != 0)))) && ((iVar9 = Entity_Pickup::Timeout(), iVar9 < 0 && (cVar5 = Entity::IsDead(), cVar5 == '\0')))) { - FUN_0042c850(); + std::vector::push_back(); } } uVar40 = uVar40 + 1; @@ -255779,7 +255779,7 @@ LAB_005b83be: uStack_14 = CONCAT31(uStack_14._1_3_,0x2f); Level::GetCurrentRoom(); pEStack_19ec = (Entity_Player *)0x5c103e; - cVar5 = FUN_007eeeb0(); + cVar5 = Entity_Pickup::CanFlip(); if (cVar5 != '\0') { FUN_004d7100(); iVar9 = Entity_Pickup::Timeout(); @@ -255793,7 +255793,7 @@ LAB_005b83be: Game::Spawn(); pEVar48 = local_5e4; } - FUN_006ee750(); + Entity_Pickup::RemoveOtherOptions(); (**(code **)(*(int *)pEVar48 + 0x28))(); } uStack_14 = CONCAT31(uStack_14._1_3_,0x2e); @@ -255811,7 +255811,7 @@ LAB_005b83be: if (iVar9 != 0x11) goto LAB_005c1127; } Game::GetAmbush(); - FUN_00833420(); + Ambush::StartChallenge(); } } LAB_005c1127: @@ -255928,12 +255928,12 @@ LAB_005c1127: iVar9 = FUN_00417490(); if ((*(uint *)(iVar9 + 0xd8) & 0x20) != 0) { piStack_7e0 = piVar21; - FUN_0042c850(); + std::vector::push_back(); } } else { piStack_7dc = piVar21; - FUN_0042c850(); + std::vector::push_back(); } goto LAB_005c1788; } @@ -255962,11 +255962,11 @@ LAB_005c1788: local_5f0 = (Entity_Player *)&pEVar14->field_0x1770; FUN_005cbd00(); FUN_00456190(); - FUN_004561a0(); - FUN_005cc070(); + std::iterator_copy(); + RNG::Shuffle(); fStack_7e4 = (float)std::vector::size(); fStack_7e8 = 2.8026e-45; - puVar23 = (undefined4 *)FUN_0040cdd0(); + puVar23 = (undefined4 *)std_min_ptr(); pEStack_614 = (Entity_Player *)*puVar23; local_600 = (Entity_Player *)0x0; if (pEStack_614 == (Entity_Player *)0x0) { @@ -256014,7 +256014,7 @@ LAB_005c1788: pEStack_19f0 = (Entity_Player *)0x28; pEStack_19f4 = (Entity_Player *)&DAT_00b62cc0; pEStack_19f8 = (Entity_Player *)0x5c1985; - uVar18 = FUN_00737380(); + uVar18 = ItemPool::get_available_collectibles(); uStack_608 = (double)CONCAT44(uVar18,(float)uStack_608); FUN_005cbd00(); uVar18 = RNG::Next(); @@ -256090,7 +256090,7 @@ LAB_005b8f47: pEStack_19f0 = (Entity_Player *)0x3; pEStack_19f4 = (Entity_Player *)auStack_b4c; pEStack_19f8 = (Entity_Player *)0x5c1b82; - NpcAI::ENTITY_MASK(pEVar16); + EntityList::QuerySublist(pEVar16); uStack_14 = 0x33; FUN_005cbb00(); uStack_14 = CONCAT31(uStack_14._1_3_,0x34); @@ -256102,7 +256102,7 @@ LAB_005b8f47: fStack_7ec = *pfVar19; pEVar48 = (Entity_Player *)Entity_Familiar::Player(); if (pEVar48 == pEVar14) { - FUN_004b6a90(); + std::deque::push_front(); } uVar40 = uVar40 + 1; uVar10 = EntityList::Size(); @@ -256116,7 +256116,7 @@ LAB_005b8f47: local_5e4 = (Entity_Player *)0x0; FUN_0042c770(); do { - FUN_004561a0(); + std::iterator_copy(); cVar5 = FUN_0042c710(); if (cVar5 == '\0') break; if (((int)pEVar48 < 1) || (iVar9 = RNG::RandomInt(), iVar9 != 0)) { @@ -256144,7 +256144,7 @@ LAB_005b8f47: iVar9 = EntityConfig::GetEntity(); iVar22 = RNG::RandomInt(); if ((iVar22 == 0) && - ((cVar5 = FUN_004f84a0(), cVar5 != '\0' || (*(int *)(iVar9 + 0x48) == 0)))) { + ((cVar5 = str_ne(), cVar5 != '\0' || (*(int *)(iVar9 + 0x48) == 0)))) { pPVar11 = (PersistentGameData *)Room::GetTopLeftPos(); iVar22 = PersistentGameData::GetBestiaryKillCount(pPVar11); if (iVar22 == 0) { @@ -256211,11 +256211,11 @@ LAB_005c1f2d: pEStack_19f0 = (Entity_Player *)0x5c1f81; Entity::AddCharmed(pEVar35); (**(code **)(*(int *)pEVar35 + 0xc))(); - FUN_00436220(); + Entity::SetVisibleFlag(); Entity::MaxHitPoints(); FUN_00435d40(); Entity::MaxHitPoints(); - FUN_00435d20(); + Entity::SetField380(); pEStack_19ec = (Entity_Player *)0x73; pEStack_19f0 = (Entity_Player *)0x5c1fde; SoundEffects::PlayWithFartOverride(); @@ -256236,9 +256236,9 @@ LAB_005c1f2d: random_float(); pEStack_7f4 = pEVar47; Vector::__mul(); - FUN_00428910(); + Entity::SetVelocity(); Entity::ClearEntityFlags(); - FUN_004b6a90(); + std::deque::push_front(); } Color::Color(); random_float(); @@ -256259,7 +256259,7 @@ LAB_005c1f2d: Random(); MusicManager::RandomVector(); Vector::Vector(); - FUN_00a10510(); + Vector::Mul(); pEStack_19ec = (Entity_Player *)Vector::__mul(); pEStack_19f0 = (Entity_Player *)&fStack_6ec; pEStack_19f4 = (Entity_Player *)&DAT_00000005; @@ -256338,7 +256338,7 @@ LAB_005c1f2d: local_5e4 = pEVar48; } RNG::Next(); - pEStack_19f0 = (Entity_Player *)FUN_0042f150(); + pEStack_19f0 = (Entity_Player *)std::vector::operator__(); pEStack_19ec = (Entity_Player *)&DAT_00c7b640; pEStack_19f4 = (Entity_Player *)0x0; pEStack_19f8 = local_5e4; @@ -256350,11 +256350,11 @@ LAB_005c1f2d: pEStack_19f0 = (Entity_Player *)0x5c23f2; Entity::AddCharmed(pEVar35); (**(code **)(*(int *)pEVar35 + 0xc))(); - FUN_00436220(); + Entity::SetVisibleFlag(); Entity::MaxHitPoints(); FUN_00435d40(); Entity::MaxHitPoints(); - FUN_00435d20(); + Entity::SetField380(); pEStack_19ec = (Entity_Player *)0x73; pEStack_19f0 = (Entity_Player *)0x5c244f; SoundEffects::PlayWithFartOverride(); @@ -256368,7 +256368,7 @@ LAB_005c1f2d: (**(code **)(*(int *)*puVar23 + 0x28))(); FUN_00499560(); } - FUN_0042f150(); + std::vector::operator__(); fStack_69c = (float)AddBoneOrbital(pEVar14); MusicManager::RandomVector(); fStack_7fc = 8.0; @@ -256376,14 +256376,14 @@ LAB_005c1f2d: random_float(); pEStack_800 = pEVar47; Vector::__mul(); - FUN_00428910(); + Entity::SetVelocity(); Entity::ClearEntityFlags(); - FUN_004b6a90(); + std::deque::push_front(); } Color::Color(); random_float(); uStack_608 = (double)CONCAT44((float)pEVar47 * 3.0 + 2.0,(float)uStack_608); - pEStack_19f8 = (Entity_Player *)FUN_0042f150(); + pEStack_19f8 = (Entity_Player *)std::vector::operator__(); pEStack_19ec = uStack_608._4_4_; pEStack_19f0 = (Entity_Player *)&DAT_00000004; pEStack_19f4 = (Entity_Player *)&DAT_00000023; @@ -256400,9 +256400,9 @@ LAB_005c1f2d: Random(); MusicManager::RandomVector(); Vector::Vector(); - FUN_00a10510(); + Vector::Mul(); pEVar48 = (Entity_Player *)Vector::__mul(); - pEStack_19f0 = (Entity_Player *)FUN_0042f150(); + pEStack_19f0 = (Entity_Player *)std::vector::operator__(); pEStack_19f4 = (Entity_Player *)&DAT_00000005; pEStack_19f8 = (Entity_Player *)0x3e8; puStack_19fc = (undefined4 *)0x5c264a; @@ -256459,7 +256459,7 @@ LAB_005b83e0: pEStack_19f0 = (Entity_Player *)0x3e8; pEStack_19f4 = (Entity_Player *)auStack_acc; pEStack_19f8 = (Entity_Player *)0x5b8455; - NpcAI::ENTITY_MASK(pEVar16); + EntityList::QuerySublist(pEVar16); uStack_14 = 0xb; pEVar48 = (Entity_Player *)0x0; local_5ec = (Entity_Player *)0x0; @@ -256728,7 +256728,7 @@ LAB_005b7f80: pEStack_19f0 = (Entity_Player *)&DAT_00000005; pEStack_19f4 = (Entity_Player *)auStack_b6c; pEStack_19f8 = (Entity_Player *)0x5b7fcc; - NpcAI::ENTITY_MASK(pEVar16); + EntityList::QuerySublist(pEVar16); uStack_14 = 4; local_5e4 = (Entity_Player *)0x0; iVar9 = EntityList::Size(); @@ -256833,7 +256833,7 @@ LAB_005b80bd: pEStack_19f0 = (Entity_Player *)0x3; pEStack_19f4 = (Entity_Player *)auStack_b9c; pEStack_19f8 = (Entity_Player *)0x5b82d1; - NpcAI::ENTITY_MASK(pEVar16); + EntityList::QuerySublist(pEVar16); uStack_14 = CONCAT31(uStack_14._1_3_,6); local_5e4 = (Entity_Player *)0x0; iVar9 = EntityList::Size(); @@ -256856,7 +256856,7 @@ LAB_005b80bd: } LAB_005b8358: if (local_5e8._0_1_ == '\0') goto LAB_005b3e24; - FUN_007cf8f0(); + Entity_Player::IsLocalPlayer(); pEStack_19ec = (Entity_Player *)0x38e; pEStack_19f0 = (Entity_Player *)0x5b838b; SoundEffects::PlayWithFartOverride(); @@ -256867,7 +256867,7 @@ LAB_005b8358: if (((((uint)local_618 & 4) != 0) && (-1 < (int)local_61c)) && (*(int *)(&local_5e0->field_0x1580 + (int)local_61c * 0x20) == 0x263)) { fStack_82c = 1.68156e-44; - pvStack_830 = (void *)FUN_007910f0(); + pvStack_830 = (void *)Entity_Player::GetTotalActiveCharge(); puVar23 = (undefined4 *)std::min(); local_5f0 = (Entity_Player *)*puVar23; if ((pEVar14->field_0x2090 == '\x02') && (*(int *)&pEVar14->field_0x2094 == 0x263)) { @@ -256919,7 +256919,7 @@ LAB_005c51d7: puStack_19fc = (undefined4 *)0x5c52f0; uVar18 = Game::Spawn(); uStack_608 = (double)CONCAT44(uVar18,(float)uStack_608); - FUN_00435d60(); + Entity::SetTargetPosition(); piVar21 = (int *)uStack_608._4_4_; Entity_Effect::SetRadii(); Game::GetField26614(); @@ -256927,7 +256927,7 @@ LAB_005c51d7: (**(code **)(*piVar21 + 0x40))(); (**(code **)(*piVar21 + 0xc))(); TemporaryEffects::RemoveCollectibleEffect(); - FUN_00435f80(); + TemporaryEffect::TemporaryEffect(); puStack_cbc = &local_5f0->field_0x8; pEStack_19ec = (Entity_Player *)0x5c53fa; TemporaryEffects::AddEffect(); @@ -256944,7 +256944,7 @@ LAB_005c51d7: FUN_00435d40(); fVar45 = (float10)Entity::HitPoints(); uStack_608 = (double)CONCAT44((float)fVar45,(float)uStack_608); - FUN_00435d20(); + Entity::SetField380(); FUN_005b18d0(); pEVar14 = local_5e0; local_5d9 = SUB41(local_5e8,0); @@ -256987,7 +256987,7 @@ LAB_005c51d7: case 0x53: Isaac::GetItemConfig(); ItemConfig::GetCollectible(); - FUN_00435f80(); + TemporaryEffect::TemporaryEffect(); Game::GetField26614(); cVar5 = FUN_00429550(); pEVar48 = local_5e0; @@ -257081,10 +257081,10 @@ LAB_005c51d7: cVar5 = (**(code **)(*(int *)pEVar48 + 0x48))(); if (cVar5 == '\0') { pEStack_19ec = (Entity_Player *)0x5c3a53; - cVar5 = FUN_00417220(); + cVar5 = Entity::IsType(); if (cVar5 == '\0') { pEStack_19ec = (Entity_Player *)0x5c3a67; - bVar8 = FUN_00417220(); + bVar8 = Entity::IsType(); goto LAB_005c3a69; } } @@ -257098,7 +257098,7 @@ LAB_005c51d7: cVar5 = Entity::IsVulnerableEnemy_lua(); if (cVar5 != '\0') { pEStack_814 = pEVar48; - FUN_0042c850(); + std::vector::push_back(); } pEVar48 = (Entity_Player *)Entity::Child(); } while (pEVar48 != (Entity_Player *)0x0); @@ -257143,7 +257143,7 @@ LAB_005c3a6f: pEStack_19f0 = (Entity_Player *)0x3; pEStack_19f4 = (Entity_Player *)auStack_abc; pEStack_19f8 = (Entity_Player *)0x5c3b50; - NpcAI::ENTITY_MASK(pEVar16); + EntityList::QuerySublist(pEVar16); uStack_14 = 0x3b; iVar9 = EntityList::Size(); if (iVar9 != 0) { @@ -257359,7 +257359,7 @@ LAB_005c3079: pEStack_19f0 = (Entity_Player *)0x5c2d7f; SoundEffects::PlayWithFartOverride(); Entity_Effect::CreateTimer(); - FUN_004288f0(); + Entity::SetPosition(); Entity::SetParent(); pEVar14 = local_5e0; local_5d9 = SUB41(local_5e8,0); @@ -257383,7 +257383,7 @@ LAB_005c3079: cVar5 = Entity::IsEnemy(); if ((cVar5 == '\0') || (cVar5 = Entity::IsDead(), cVar5 != '\0')) { pEStack_19ec = (Entity_Player *)0x5c2bc4; - cVar5 = FUN_00417220(); + cVar5 = Entity::IsType(); if (((cVar5 != '\0') && (iVar9 = Entity::FrameCount(), 1 < iVar9)) && (cVar5 = Entity::Exists(), cVar5 != '\0')) { cVar5 = HasCollectible(); @@ -257432,7 +257432,7 @@ LAB_005c3079: } else { pEStack_19ec = (Entity_Player *)0x5c2a76; - cVar5 = FUN_00417220(); + cVar5 = Entity::IsType(); if (cVar5 != '\0') { pcVar3 = *(code **)(*(int *)pEVar48 + 0x24); EntityRef::constructor(); @@ -257501,7 +257501,7 @@ LAB_005c3079: if (((piVar21 != (int *)0x0) && (*piVar21 == 3)) && ((piVar21[0x33] != 0 && (0 < *(short *)(piVar21[0x33] + 400))))) { fStack_810 = fVar46; - FUN_0042c850(); + std::vector::push_back(); } fVar46 = (float)((int)fVar46 + 1); Isaac::GetItemConfig(); @@ -257741,12 +257741,12 @@ LAB_005bc073: Entity::SubType(); Isaac::SpawnLocust(); (**(code **)(*(int *)local_5f0 + 0x28))(); - FUN_006ee750(); + Entity_Pickup::RemoveOtherOptions(); Game::GetPlayerManager(); cVar5 = PlayerManager::IsCoopPlay(); if ((cVar5 != '\0') && (iVar9 = FUN_005b1960(), iVar9 != -1)) { Game::GetPlayerManager(); - uVar40 = FUN_009bfa00(); + uVar40 = PlayerManager::GetNumAlivePlayers(); iVar9 = FUN_005b1960(); if (iVar9 + 1U < uVar40) { local_5f8 = (Entity_Player *)FUN_005b1960(); @@ -257800,7 +257800,7 @@ LAB_005bc073: if (iVar9 != 0x11) goto LAB_005bbadc; } Game::GetAmbush(); - FUN_00833420(); + Ambush::StartChallenge(); } goto LAB_005bbadc; } @@ -257829,7 +257829,7 @@ LAB_005b8b8d: Vector::Normalized(); fStack_81c = 10.0; Vector::__mul(); - FUN_00428910(); + Entity::SetVelocity(); *(undefined4 *)&pEVar14->field_0x1f2c = 1; pEVar14->_poopMana = 0x10; std::vector::clear(); @@ -257905,8 +257905,8 @@ LAB_005b8b8d: pEStack_19ec = (Entity_Player *)0x5c486c; HasCollectible(pEVar14); EntityPtr::Ref(); - FUN_00557b00(); - FUN_004561a0(); + std::set::find(); + std::iterator_copy(); cVar5 = FUN_00557bb0(); if (cVar5 == '\0') { iVar9 = FUN_005cba30(); @@ -257929,7 +257929,7 @@ LAB_005b8b8d: iVar9 = Game::GetGlowingHourglassState(DAT_00c71678); if (iVar9 != 0) { iVar22 = *(int *)&pEVar14->field_0x1620; - FUN_004561a0(); + std::iterator_copy(); FUN_00456190(); cVar5 = FUN_0042c710(); while (cVar5 != '\0') { @@ -257967,7 +257967,7 @@ LAB_005b8b8d: pEStack_19ec = (Entity_Player *)0x80; pEStack_19f0 = (Entity_Player *)0x5c4a6d; SoundEffects::PlayWithFartOverride(); - FUN_004561a0(); + std::iterator_copy(); std::vector_>::erase ((vector_> *)&pEVar14->field_0x1fa4); Game::GetHUD(); @@ -258024,7 +258024,7 @@ LAB_005c4634: puStack_19fc = (undefined4 *)0x5c458d; piVar21 = (int *)Game::Spawn(); (**(code **)(*piVar21 + 0xc))(); - FUN_007596a0(); + Entity_Player::SyncConsumables(); PlayExtraAnimation(); FUN_005b17a0(); FUN_005b17b0(); @@ -258065,7 +258065,7 @@ LAB_005c4634: pEStack_19f0 = (Entity_Player *)&DAT_00000005; pEStack_19f4 = (Entity_Player *)auStack_b7c; pEStack_19f8 = (Entity_Player *)0x5c46b3; - NpcAI::ENTITY_MASK(pEVar16); + EntityList::QuerySublist(pEVar16); uStack_14 = 0x3c; uVar40 = 0; iVar9 = EntityList::Size(); @@ -258427,7 +258427,7 @@ LAB_005c57f3: pEStack_19f8 = (Entity_Player *)0x5; puStack_19fc = (undefined4 *)0x5c585d; piVar21 = (int *)Game::Spawn(); - FUN_006eea30(); + Entity_Pickup::MakeShopItem(); (**(code **)(*piVar21 + 0xc))(); Random(); pEStack_19f0 = (Entity_Player *)Entity::Position(); @@ -258452,7 +258452,7 @@ LAB_005c57f3: if (((((uint)local_618 & 4) != 0) && (-1 < (int)local_61c)) && (*(int *)(&pEVar14->field_0x1580 + (int)local_61c * 0x20) == 0x2d0)) { pvStack_838 = (void *)0xc; - fStack_83c = (float)FUN_007910f0(); + fStack_83c = (float)Entity_Player::GetTotalActiveCharge(); puVar23 = (undefined4 *)std::min(); local_5e4 = (Entity_Player *)*puVar23; if ((pEVar14->field_0x2090 == '\x02') && (*(int *)&pEVar14->field_0x2094 == 0x2d0)) { @@ -258531,7 +258531,7 @@ LAB_005c5b0b: Entity::GetDropRNG(); RNG::Next(); RNG::SetSeed(); - FUN_004288f0(); + Entity::SetPosition(); Entity::SetParent(); (**(code **)(*piVar21 + 0xc))(); break; @@ -258582,7 +258582,7 @@ LAB_005c5b0b: pEStack_19ec = (Entity_Player *)0x5c5d81; ItemConfig::GetCollectible(); pEStack_19ec = (Entity_Player *)0x5c5d8d; - FUN_00435f80(); + TemporaryEffect::TemporaryEffect(); pEStack_19ec = (Entity_Player *)0x5c5d99; TemporaryEffects::AddEffect(); break; @@ -258595,7 +258595,7 @@ LAB_005c5b0b: Entity::GetDropRNG(); RNG::Next(); RNG::SetSeed(); - FUN_004288f0(); + Entity::SetPosition(); (**(code **)(*piVar21 + 0xc))(); break; case 9: @@ -258665,7 +258665,7 @@ LAB_005c5b0b: uStack_608 = (double)CONCAT44(uVar18,(float)uStack_608); Level::GetCurrentRoom(); FUN_0042f160(); - pEStack_19f0 = (Entity_Player *)FUN_0042f150(); + pEStack_19f0 = (Entity_Player *)std::vector::operator__(); pEStack_19ec = (Entity_Player *)0x0; pEStack_19f4 = (Entity_Player *)auStack_ff0; pEStack_19f8 = (Entity_Player *)0x5c606d; @@ -258684,7 +258684,7 @@ LAB_005c5b0b: puStack_19fc = (undefined4 *)0x5c6107; pEStack_19f0 = pEVar48; Game::Spawn(); - FUN_00435d20(); + Entity::SetField380(); pEVar47 = local_5f8; FUN_00435d40(); local_5ec = (Entity_Player *)&local_5ec->field_0x1; @@ -258781,7 +258781,7 @@ switchD_005c5a14_default: uStack_608 = (double)CONCAT44((float)(int)pEVar48 * 0.5,(float)uStack_608); FUN_00435d40(); Entity::MaxHitPoints(); - FUN_00435d20(); + Entity::SetField380(); FUN_005b1900(); pEVar14 = local_5e0; local_5d9 = SUB41(local_5e8,0); @@ -258826,14 +258826,14 @@ LAB_005b3e30: cVar5 = Entity::HasEntityFlags(); if (cVar5 == '\0') { std::vector::operator_index(); - FUN_0042c850(); + std::vector::push_back(); goto LAB_005c65e4; } } } std::vector::operator_index(); pEStack_19ec = (Entity_Player *)0x5c64f6; - cVar5 = FUN_00417220(); + cVar5 = Entity::IsType(); if (cVar5 != '\0') { std::vector::operator_index(); iVar9 = Entity::Target(); @@ -258842,7 +258842,7 @@ LAB_005b3e30: pvStack_714 = (void *)*pfVar19; pvStack_848 = (void *)Entity::Target(); FUN_005cba80(); - FUN_004561a0(); + std::iterator_copy(); cVar5 = FUN_00557bb0(); if (cVar5 == '\0') { FUN_005cba30(); @@ -258874,7 +258874,7 @@ LAB_005c65e4: uStack_608 = (double)CONCAT44((float)fVar45,(float)uStack_608); FUN_0042c810(); pEStack_19ec = (Entity_Player *)0x5c666a; - cVar5 = FUN_00417220(); + cVar5 = Entity::IsType(); if (cVar5 == '\0') { LAB_005c668f: local_5ec = uStack_608._4_4_; @@ -258887,7 +258887,7 @@ LAB_005c668f: } FUN_0042c810(); FUN_005cba80(); - FUN_004561a0(); + std::iterator_copy(); cVar5 = FUN_0042c710(); pEVar48 = local_5e4; if (cVar5 != '\0') { @@ -258930,7 +258930,7 @@ LAB_005c668f: } Entity::Position(); pEStack_19ec = (Entity_Player *)0x5c67d6; - cVar5 = FUN_00417220(); + cVar5 = Entity::IsType(); if (cVar5 != '\0') { iVar9 = Entity::Parent(); if (iVar9 == 0) { @@ -258972,7 +258972,7 @@ LAB_005c6810: Entity::SetTarget(); Entity_Effect::SetTimeout(); FUN_005cba80(); - FUN_004561a0(); + std::iterator_copy(); cVar5 = FUN_0042c710(); if (cVar5 != '\0') { FUN_005cba30(); @@ -258993,7 +258993,7 @@ LAB_005c6810: Entity::SetTarget(); Entity_Effect::SetTimeout(); FUN_005cba80(); - FUN_004561a0(); + std::iterator_copy(); cVar5 = FUN_0042c710(); if (cVar5 != '\0') { FUN_005cba30(); @@ -259028,7 +259028,7 @@ LAB_005c6810: pEStack_19f0 = (Entity_Player *)&DAT_00000005; pEStack_19f4 = (Entity_Player *)auStack_bac; pEStack_19f8 = (Entity_Player *)0x5c6bd1; - NpcAI::ENTITY_MASK(pEVar16); + EntityList::QuerySublist(pEVar16); uStack_14 = 0x42; iVar9 = EntityList::Size(); if (iVar9 != 0) { @@ -259087,7 +259087,7 @@ LAB_005c6cee: pEStack_19f0 = (Entity_Player *)0x3; pEStack_19f4 = (Entity_Player *)auStack_b8c; pEStack_19f8 = (Entity_Player *)0x5c6d8e; - NpcAI::ENTITY_MASK(pEVar16); + EntityList::QuerySublist(pEVar16); uStack_14 = CONCAT31(uStack_14._1_3_,0x43); FUN_005cbd00(); local_5e4 = (Entity_Player *)Entity_Familiar::GetRandomWisp(); @@ -259115,7 +259115,7 @@ LAB_005c6cee: } cVar5 = '\0'; if (SUB41(local_5e8,0) != '\0') { - FUN_007cf8f0(); + Entity_Player::IsLocalPlayer(); pEStack_19ec = (Entity_Player *)0x38e; pEStack_19f0 = (Entity_Player *)0x5c6e78; SoundEffects::PlayWithFartOverride(); @@ -259177,7 +259177,7 @@ LAB_005b54d1: iVar9 = *(int *)&local_5e0->field_0x1574; if (local_60a != '\0') { pEStack_19ec = (Entity_Player *)0x5c7278; - FUN_00435f80(); + TemporaryEffect::TemporaryEffect(); pEStack_19ec = (Entity_Player *)0x5c7284; TemporaryEffects::AddEffect(); iVar9 = *(int *)&local_5e0->field_0x1574; @@ -259193,7 +259193,7 @@ LAB_005b54d1: } else if (local_5f4 == (Entity_Player *)0x2c0) { Level::GetCurrentRoom(); - FUN_007eb870(); + Level::UpdateBackwardsPathStages(); } local_5e0->field_0x1826 = 1; *local_70c = local_5fc; @@ -259268,7 +259268,7 @@ LAB_005b88f4: GridEntity::GetSprite(); Sprite::GetFilename(); uStack_14 = 0xd; - FUN_0040d0c0(); + std::string::c_str(); iVar9 = FUN_00680060(); uStack_14 = -1; thunk_FUN_0040d040(); @@ -259531,7 +259531,7 @@ void FUN_005c7f20(int param_1) spawn_blue_spider(); return; } - FUN_006393a0(iVar1,&DAT_00c7b640); + spawn_dip_at(iVar1,&DAT_00c7b640); } return; } @@ -259601,7 +259601,7 @@ void FUN_005c8020(int param_1) uVar3 = uVar3 >> ((byte)*(undefined4 *)(param_1 + 0x3e0) & 0x1f) ^ uVar3; uVar3 = uVar3 << ((byte)*(undefined4 *)(param_1 + 0x3e4) & 0x1f) ^ uVar3; *(uint *)(param_1 + 0x3dc) = uVar3 >> ((byte)*(undefined4 *)(param_1 + 1000) & 0x1f) ^ uVar3; - piVar6 = (int *)FUN_00684b90(0x3f800000); + piVar6 = (int *)hsv_to_rgb(0x3f800000); iVar7 = piVar6[1]; iVar1 = piVar6[2]; iVar2 = piVar6[3]; @@ -259829,11 +259829,11 @@ int FUN_005c88a0(undefined4 param_1,char param_2) local_8 = 0; iVar3 = TemporaryEffects::GetCollectibleEffect(); if (iVar3 != 0) { - FUN_004b39b0(0,iVar3); + std::vector::_Emplace_reallocate(0,iVar3); } TemporaryEffects::ClearEffects(); Entity_Player::ClearCostumes(uVar2); - FUN_007bebb0(); + Entity_Player::update_player_skin(); *(undefined4 *)&in_ECX->field_0x1528 = 0; *(undefined4 *)&in_ECX->field_0x1524 = 0; *(undefined4 *)&in_ECX->field_0x1520 = 0; @@ -259931,7 +259931,7 @@ LAB_005c8c08: (iVar5 = *(int *)(*(int *)(DAT_00c7169c + 0x2a448) + uVar2 * 4), iVar5 != 0)) && ((*(int *)(iVar5 + 8) != 0 || *(int *)(iVar5 + 0xc) != 0 && (cVar1 = FUN_0072fe80(), cVar1 != '\0')))) { - FUN_0075e320(uVar2,0xffffffff); + Entity_Player::IncrementPlayerFormCounter(uVar2,0xffffffff); } uVar2 = uVar2 + 1; } while (uVar2 < 0x10); @@ -260169,7 +260169,7 @@ LAB_005c8f8c: do { iVar3 = *(int *)((int)local_50 + uVar2 * 4); if (0 < iVar3) { - FUN_0075e320(uVar2,iVar3); + Entity_Player::IncrementPlayerFormCounter(uVar2,iVar3); } uVar2 = uVar2 + 1; } while (uVar2 < (uint)(*(int *)(DAT_00c7169c + 0x2a44c) - *(int *)(DAT_00c7169c + 0x2a448) >> 2 @@ -260217,7 +260217,7 @@ int FUN_005c92f0(void) puStack_c = &LAB_00af5df0; local_10 = ExceptionList; ExceptionList = &local_10; - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); uVar2 = 0; if (local_14 != 0) { do { @@ -260292,7 +260292,7 @@ int * Entity_Player::AddWisp(int param_1,undefined4 param_2,char param_3,char pa ExceptionList = &local_10; local_40 = param_1; local_38[9] = uVar5; - local_48 = (float *******)FUN_004362a0(uVar5); + local_48 = (float *******)ItemConfig::get_wisp_config(uVar5); local_39 = '\x01'; uVar13 = (uint)*(short *)(local_48 + 99); if (*(short *)(local_48 + 99) < 0) goto LAB_005c9642; @@ -260307,7 +260307,7 @@ int * Entity_Player::AddWisp(int param_1,undefined4 param_2,char param_3,char pa local_38[5] = 9999; local_50 = 0; local_4c = 9999.0; - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); uVar12 = 0; local_8 = 0; if (local_54 != 0) { @@ -260323,7 +260323,7 @@ int * Entity_Player::AddWisp(int param_1,undefined4 param_2,char param_3,char pa ExceptionList = local_10; return (int *)0x0; } - iVar6 = FUN_004362a0(uVar5); + iVar6 = ItemConfig::get_wisp_config(uVar5); uVar9 = *(int *)(iVar3 + 0xd70) - 7; if (2 < uVar9) { uVar9 = 0xffffffff; @@ -260440,7 +260440,7 @@ int * Entity_Player::AddItemWisp(undefined4 param_1,undefined4 param_2,char para local_2c[9] = DAT_00bf93b4 ^ (uint)(local_2c + 10); HasCollectible(0x248,0); - iVar3 = FUN_004362a0(); + iVar3 = ItemConfig::get_wisp_config(); uVar8 = (uint)*(short *)(iVar3 + 0x18c); if (-1 < *(short *)(iVar3 + 0x18c)) { uVar7 = 0; @@ -260460,7 +260460,7 @@ int * Entity_Player::AddItemWisp(undefined4 param_1,undefined4 param_2,char para if ((((iVar1 != 0) && (*(int *)(iVar1 + 0x28) == 3)) && ((*(int *)(iVar1 + 0x2c) == 0xce || (*(int *)(iVar1 + 0x2c) == 0xed)))) && (*(int *)(iVar1 + 0x410) == in_ECX)) { - iVar4 = FUN_004362a0(); + iVar4 = ItemConfig::get_wisp_config(); iVar2 = *(int *)(iVar1 + 0xd70); uVar6 = iVar2 - 7; if ((uVar6 < 3) && (-1 < (int)uVar6)) { @@ -260949,11 +260949,11 @@ void Entity_Player::TriggerBookOfVirtues(int param_1) param_1 = *(int *)(&DAT_00b62c9c + (uVar2 % 7) * 4); if (param_1 == 0xb1) { uVar4 = 3; - FUN_004362a0(); + ItemConfig::get_wisp_config(); goto LAB_005ca50f; } } - iVar3 = FUN_004362a0(); + iVar3 = ItemConfig::get_wisp_config(); uVar4 = *(ushort *)(iVar3 + 400); LAB_005ca50f: cVar1 = HasCollectible(0x164,0); @@ -260999,7 +260999,7 @@ bool KAGE_Filesys_FileManager::OpenRead(int param_1,int param_2) if (-1 < param_2) { iVar2 = FUN_00791380(param_2); - iVar3 = FUN_007910f0(param_2); + iVar3 = Entity_Player::GetTotalActiveCharge(param_2); if (iVar3 < iVar2) { return false; } @@ -261107,7 +261107,7 @@ void FUN_005ca880(void) local_10 = ExceptionList; uVar1 = DAT_00bf93b4 ^ (int)register0x00000010 - 4U; ExceptionList = &local_10; - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); uVar7 = 0; local_8 = 0; if (local_20 != 0) { @@ -261463,7 +261463,7 @@ switchD_005cac1b_caseD_14: local_40 = pEVar6; EntityRef::constructor(local_30); Entity::AddCharmed(pEVar6,local_68,0xffffffff,0,0); - FUN_00436220(0); + Entity::SetVisibleFlag(0); pEVar6->_health = *(float *)(iVar12 + 0x10); *(undefined4 *)&pEVar6->field_0x384 = *(undefined4 *)(iVar12 + 0x10); ANM2::LoadDeliriumForm(pEVar6->_variant,1); @@ -261497,7 +261497,7 @@ switchD_005cac1b_caseD_14: uVar5 = *(undefined4 *)((int)&pEVar6->_flags + 4); *(uint *)&pEVar6->_flags = (uint)pEVar6->_flags | 0x80000000; *(undefined4 *)((int)&pEVar6->_flags + 4) = uVar5; - FUN_0041b4f0(pEVar6); + EntityList::AddPersistentEntity(pEVar6); for (pEVar7 = *(Entity **)&pEVar6->field_0x3bc; pEVar7 != (Entity *)0x0; pEVar7 = *(Entity **)&pEVar7->field_0x3bc) { pEVar6 = pEVar7; @@ -262194,9 +262194,9 @@ int FUN_005cbd10(int param_1) } -//@@ 005cbd20 FUN_005cbd20 +//@@ 005cbd20 std::vector::erase -void FUN_005cbd20(undefined4 *param_1,undefined4 param_2) +void std::vector::erase(undefined4 *param_1,undefined4 param_2) { int in_ECX; @@ -262461,9 +262461,9 @@ void FUN_005cbfe0(uint *param_1) } -//@@ 005cc070 FUN_005cc070 +//@@ 005cc070 RNG::Shuffle -void FUN_005cc070(int param_1,int param_2) +void RNG::Shuffle(int param_1,int param_2) { undefined4 uVar1; @@ -263499,7 +263499,7 @@ void FUN_005ccfc0(float *param_1) local_2c = 0; local_28 = 0; local_8 = 1; - FUN_00a1af90(iVar1,in_ECX + 0x518,&local_40); + Font::DrawString(iVar1,in_ECX + 0x518,&local_40); } ExceptionList = local_10; return; @@ -263630,9 +263630,9 @@ void FUN_005cd430(uint *param_1) } -//@@ 005cd460 FUN_005cd460 +//@@ 005cd460 Entity::AddFlagsLow -void FUN_005cd460(uint param_1) +void Entity::AddFlagsLow(uint param_1) { int in_ECX; @@ -264391,7 +264391,7 @@ Entity_Effect::Init(Entity_Effect *this,undefined4 param_2,int param_3,undefined *(undefined4 *)&this->field_0x384 = 0; if (*(int *)&this->field_0x330 != 0) { ANM2::Load((ANM2 *)&this->field_0x48,*(int *)&this->field_0x330 + 0x74,0); - uVar6 = FUN_0040d0c0(uVar5); + uVar6 = std::string::c_str(uVar5); ANM2::Play((ANM2 *)&this->field_0x48,uVar6,0); } this->_state = 0; @@ -264778,7 +264778,7 @@ LAB_005d03c8: uVar5 = Random(); local_2b4 = (ANM2 *)(uVar5 % (uint)local_2b8); } - uVar6 = FUN_0040d0c0(); + uVar6 = std::string::c_str(); ANM2::SetFrame(uVar6,local_2b4); bVar3 = Random(); this->_isFlipX = (bVar3 ^ 0xff) & 1; @@ -264993,7 +264993,7 @@ LAB_005cf680: } else if (iVar7 == 0x4c) { local_2e4 = (ANM2 *)&DAT_00000005; - piVar18 = (int *)FUN_0040cdd0(); + piVar18 = (int *)std_min_ptr(); ANM2::Play((ANM2 *)&this->field_0x48,(&PTR_DAT_00b63b70)[*piVar18],0); LAB_005cf2a4: this->_sortingLayer = 0; @@ -265059,11 +265059,11 @@ LAB_005cf2a4: if (pAVar11 != (ANM2 *)0x0) { Entity::SetParent(this); if (this->_subtype != 0) { - uVar6 = FUN_00456240(400,0xfa,0x3c,0xff,0,0,0); + uVar6 = ColorParams::set_from_bytes(400,0xfa,0x3c,0xff,0,0,0); Entity::GetSprite(); Sprite::GetLayer(0); Color::operator_assign(uVar6); - uVar6 = FUN_00456240(300,200,10,0xff,0,0,0); + uVar6 = ColorParams::set_from_bytes(300,200,10,0xff,0,0,0); Entity::GetSprite(); Sprite::GetLayer(1); Color::operator_assign(uVar6); @@ -265256,13 +265256,13 @@ LAB_005cfc0c: } else { if (iVar7 == 4) { - FUN_005cd460(0x20); + Entity::AddFlagsLow(0x20); uVar6 = BlendMode::SetMode(2,0); uVar24 = 0; goto LAB_005cfc0c; } if (iVar7 == 7) { - FUN_005cd460(0x100); + Entity::AddFlagsLow(0x100); uVar6 = BlendMode::SetMode(2,0); uVar24 = 0; goto LAB_005cfc0c; @@ -265295,7 +265295,7 @@ LAB_005cfc0c: uVar6 = FUN_005cd850(); } local_8 = 0xffffffff; - FUN_0060c620(uVar6); + Entity_Effect::ExtraDataRef::Set(uVar6); this->_state = 0; goto LAB_005d03dd; } @@ -265391,7 +265391,7 @@ LAB_005d00d8: pVVar19 = &this->_pos; uVar6 = Game::Spawn(1000,0x7a,pVVar19,&DAT_00c7b640,local_2b0,0,uVar6); Entity::SetParent(local_2b0); - uVar24 = FUN_00452be0(); + uVar24 = _ptr_deref_or_minus1(); FUN_00435e60(uVar24); Entity::SetChild(uVar6); *(undefined1 *)&local_2b8->_animData = 0; @@ -265983,7 +265983,7 @@ LAB_005d10c7: uVar6 = FUN_005d2270(); } local_8 = 0xffffffff; - FUN_0060c620(uVar6); + Entity_Effect::ExtraDataRef::Set(uVar6); *(undefined4 *)&this->field_0x454 = 0x3dcccccd; goto LAB_005d0669; case 0xa7: @@ -266044,7 +266044,7 @@ LAB_005d10c7: } else { Entity::AddEntityFlags(0x200000,0); - FUN_005cd460(0x20); + Entity::AddFlagsLow(0x20); ANM2::Play((ANM2 *)&this->field_0x48,"IdleClosed",0); this->_timeout = 0x2d; } @@ -266063,7 +266063,7 @@ LAB_005d10c7: } if (this->_subtype != 1) { Entity::AddEntityFlags(0x200000,0); - FUN_005cd460(0x20); + Entity::AddFlagsLow(0x20); BlendMode::SetMode(2,0); puVar10 = local_2d8; Sprite::GetLayer(2); @@ -266097,7 +266097,7 @@ LAB_005d10c7: cStack_2c1 = '\0'; Level::GetCurrentRoom(); npc = (Entity_NPC *)FUN_00428a60(); - NpcAI::ENTITY_MASK(npc); + EntityList::QuerySublist(npc); local_8 = 0x1a; pAVar21 = (ANM2 *)0x0; local_2b4 = (ANM2 *)0x0; @@ -266240,7 +266240,7 @@ LAB_005d0681: uVar6 = FUN_005d2300(); } local_8 = 0xffffffff; - FUN_0060c620(uVar6); + Entity_Effect::ExtraDataRef::Set(uVar6); Level::GetCurrentRoom(); cVar4 = FUN_007ea190(); pEVar16 = local_2b0; @@ -266276,7 +266276,7 @@ LAB_005d0681: break; case 200: LAB_005d049c: - FUN_005cd460(0x20); + Entity::AddFlagsLow(0x20); } LAB_005d1311: pEVar16 = local_2b0; @@ -266533,7 +266533,7 @@ LAB_005d24ab: if (this->_dead == 0) { this->_dead = 1; } - FUN_00866060(this); + Entity::ReleaseLuaRef(this); puVar3 = this->_luaBridgeRef; if (puVar3 != (undefined4 *)0x0) { luaL_unref(*puVar3,0xfff0b9d8,puVar3[1]); @@ -267195,7 +267195,7 @@ LAB_005d33d8: in_ECX[0x114] = 3; } else { - FUN_006e2570(0); + Entity_Pickup::update_price_sprite(0); } } iVar11 = local_4c; @@ -267626,9 +267626,9 @@ void FUN_00607540(void) } -//@@ 006075a0 FUN_006075a0 +//@@ 006075a0 TearParams::operator_ -void FUN_006075a0(undefined4 *param_1) +void TearParams::operator_(undefined4 *param_1) { undefined4 uVar1; @@ -267767,7 +267767,7 @@ void __thiscall Entity_Effect::Render(Entity_Effect *this,float *param_2) } local_1b8 = this; if ((((this->_variant == 0x1e) && (*(int *)&this->field_0x3c8 != 0)) && - (cVar4 = Entity::IsEnemy(), cVar4 != '\0')) && (cVar4 = FUN_006d8e10(), cVar4 == '\0')) { + (cVar4 = Entity::IsEnemy(), cVar4 != '\0')) && (cVar4 = is_local_player_owned(), cVar4 == '\0')) { return; } if (this->_visible == 0) { @@ -268497,11 +268497,11 @@ LAB_00609482: fVar16 = 1.0; local_154 = 1.0; if (*(int *)&this->field_0x3bc != 0) { - uVar7 = FUN_006b7250(0,&IsaacRepentancePlus::Entity::RTTI_Type_Descriptor, + uVar7 = Entity::GetLastParent(0,&IsaacRepentancePlus::Entity::RTTI_Type_Descriptor, &IsaacRepentancePlus::Entity_Player::RTTI_Type_Descriptor,0); iVar6 = __RTDynamicCast(uVar7); if (iVar6 != 0) { - cVar4 = FUN_007cf8c0(); + cVar4 = Entity_Player::IsLocalPlayer(); if (cVar4 == '\0') { FUN_00925df0(); local_154 = fVar16; @@ -268530,7 +268530,7 @@ LAB_00609482: if (((iVar6 == 0x1e) || (iVar6 == 0x99)) && (*(int *)&this->field_0x9c != 0)) { iVar6 = AnimationState::GetLayerFrame(); if (iVar6 != 0) { - FUN_0040bbf0(); + AnimationState::copy_assign(); LayerAnimation::LayerAnimation(); local_148 = *(float *)&this[1].field_0x14 * 0.65; local_168 = local_150; @@ -268853,7 +268853,7 @@ void __thiscall Entity_Effect::ClearReferences(Entity_Effect *this) } LAB_0060ac03: Entity::ClearReferences(); - FUN_0060c620(0); + Entity_Effect::ExtraDataRef::Set(0); return; } @@ -269248,7 +269248,7 @@ switchD_0060b3c2_caseD_0: operator_delete(iVar7,uVar5); } pppppppuVar13 = local_3c[0]; - uVar17 = FUN_00407380(); + uVar17 = _string_holder_c_str(); do { pbVar10 = (byte *)((ulonglong)uVar17 >> 0x20); pbVar8 = (byte *)uVar17; @@ -270258,9 +270258,9 @@ void FUN_0060c580(void) } -//@@ 0060c620 FUN_0060c620 +//@@ 0060c620 Entity_Effect::ExtraDataRef::Set -void FUN_0060c620(undefined4 param_1) +void Entity_Effect::ExtraDataRef::Set(undefined4 param_1) { char cVar1; @@ -271463,9 +271463,9 @@ undefined1 FUN_0060d130(void) } -//@@ 0060d140 FUN_0060d140 +//@@ 0060d140 Entity_NPC::set_entity_ptr_f54 -void FUN_0060d140(int *param_1) +void Entity_NPC::set_entity_ptr_f54(int *param_1) { int *piVar1; @@ -271488,9 +271488,9 @@ void FUN_0060d140(int *param_1) } -//@@ 0060d180 FUN_0060d180 +//@@ 0060d180 Entity_Familiar::GetPlayerSlot -undefined4 FUN_0060d180(undefined4 param_1,int param_2) +undefined4 Entity_Familiar::GetPlayerSlot(undefined4 param_1,int param_2) { int iVar1; @@ -271572,7 +271572,7 @@ Entity_Familiar * __thiscall Entity_Familiar::Constructor(Entity_Familiar *this) iVar2 = iVar2 + -1; puVar1 = puVar1 + 2; } while (iVar2 != 0); - FUN_007e31a0(this); + PathFinder::Init(this); *(undefined4 *)&this->field_0xd68 = 0; *(undefined4 *)&this->field_0xd64 = 0; *(undefined2 *)&this->field_0xd77 = 0; @@ -271779,7 +271779,7 @@ int FUN_0060d6a0(void) } iVar1 = *(int *)(in_ECX + 0x2c); if (iVar1 == 0xe7) { - iVar3 = FUN_006470f0(); + iVar3 = ItemConfig::get_wisp_entry(); return *(int *)(iVar3 + 0x7c); } if (iVar1 == 0xee) { @@ -272015,7 +272015,7 @@ LAB_0060d954: return 1; } if (iVar2 == 0xe7) { - iVar2 = FUN_006470c0(); + iVar2 = Entity_Familiar::get_item_config_entry(); cVar1 = BitSet128::IsNonZero (*(uint *)(iVar2 + 8) & DAT_00c34c60,*(uint *)(iVar2 + 0xc) & DAT_00c34c64 ,*(uint *)(iVar2 + 0x10) & DAT_00c34c68, @@ -272130,9 +272130,9 @@ switchD_0060dafd_caseD_d: } -//@@ 0060dc40 FUN_0060dc40 +//@@ 0060dc40 Entity_Familiar::apply_tear_modifiers -void FUN_0060dc40(void) +void Entity_Familiar::apply_tear_modifiers(void) { char cVar1; @@ -272185,7 +272185,7 @@ void FUN_0060ddd0(undefined4 param_1) KAGE_LogMessage(0x10,"Trying to set locust config index on something that isn\'t a locust\n"); } *(undefined4 *)(in_ECX + 0xd7c) = param_1; - iVar2 = FUN_006470f0(); + iVar2 = ItemConfig::get_wisp_entry(); FUN_0064aab0(iVar2 + 0x84,iVar2 + 0x9c,in_ECX + 0x48); *(float *)(in_ECX + 0x370) = *(float *)(*(int *)(in_ECX + 0x330) + 0x38) * *(float *)(iVar2 + 0x78); @@ -272293,7 +272293,7 @@ void Entity_Familiar::Init(undefined4 param_1,int param_2,int *param_3,undefined uVar5 = DAT_00bf93b4 ^ (uint)(local_44 + 0x10); ExceptionList = &local_10; local_14 = uVar5; - FUN_004357e0(0); + Entity_Familiar::set_extra_data(0); *(bool *)((int)in_ECX + 0xd77) = param_3 == (int *)0xd903; *(undefined1 *)(in_ECX + 0x35e) = 0; local_f8 = (int *)0x0; @@ -272427,7 +272427,7 @@ LAB_0060dfcc: in_ECX[0x365] = iVar9; in_ECX[0x368] = 0; *(undefined1 *)(in_ECX + 0x369) = 0xff; - FUN_00634260(local_10c); + Entity_Familiar::UpdateFollowPosition(local_10c); in_ECX[0x364] = in_ECX[0x366]; in_ECX[0x365] = in_ECX[0x367]; if (in_ECX[0x3bb] != 0) { @@ -272622,9 +272622,9 @@ LAB_0060e6d4: else { local_e9 = '\0'; } - NpcAI::ENTITY_MASK((Entity_NPC *)((int)DAT_00c71678->_room + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)((int)DAT_00c71678->_room + 0x1218)); local_8 = (char *)0x2; - FUN_004174c0(puStack_18 + 1); + buffer_init(puStack_18 + 1); local_8 = (char *)CONCAT31(local_8._1_3_,3); local_fc = (ANM2 *)uStack_20; local_f4 = (ANM2 *)0x0; @@ -272642,8 +272642,8 @@ LAB_0060e6d4: &IsaacRepentancePlus::Entity_Familiar:: RTTI_Type_Descriptor,0); if ((int *)local_100[0x35c] == piVar21) { - iVar6 = FUN_00612330(); - iVar9 = FUN_00612330(); + iVar6 = Entity_Familiar::get_orbit_parent(); + iVar9 = Entity_Familiar::get_orbit_parent(); if (iVar9 == iVar6) { if (((local_100[10] == 3) && (local_100[0xb] == 0xce)) && ((local_100[0xc] == 0x4d || (local_100[0xc] == 0x12a)))) { @@ -272834,7 +272834,7 @@ LAB_0060ece6: LAB_0060ed24: if ((((local_f8 == (int *)0x0) && (1 < *(int *)&DAT_00c71678->field_0x26614)) && (iVar6 = in_ECX[0xf2], iVar6 != 0)) && (*(int *)(iVar6 + 0x28) == 1)) { - FUN_0060d180(&fStack_28,iVar6); + Entity_Familiar::GetPlayerSlot(&fStack_28,iVar6); uVar26 = Color::Color(fStack_28 * 0.6,fStack_24 * 0.6,(float)(ANM2 *)uStack_20 * 0.6); (*(code *)((ulonglong)uVar26 >> 0x20))((int)uVar26,0xffffffff,0xff,0,1); } @@ -272870,7 +272870,7 @@ LAB_0060f2aa: } if (((iVar6 == 0x3d) || (iVar6 == 0x6c)) || (iVar6 == 0xe6)) { LAB_0060efe1: - iVar6 = FUN_00651810(0x1e); + iVar6 = apply_forgotten_lullaby(0x1e); in_ECX[0x353] = iVar6; } else if (iVar6 == 0x55) { @@ -272891,7 +272891,7 @@ LAB_0060ef49: else if (iVar6 == 0x83) { in_ECX[0xd6] = -0x3ee00000; in_ECX[0x35b] = 0; - FUN_0063b340(); + Entity_Familiar::update_idle_anim_by_size(); } else { if (iVar6 == 0x73) { @@ -273073,7 +273073,7 @@ LAB_0060f3c0: } else if (in_ECX[0xb] == 0x4b) goto LAB_0060f3c0; if (in_ECX[0xb] == 0xe7) { - iVar6 = FUN_006470f0(); + iVar6 = ItemConfig::get_wisp_entry(); local_108 = (int *)operator_new(0x58); if (local_108 == (int *)0x0) { piVar21 = (int *)0x0; @@ -273112,7 +273112,7 @@ LAB_0060f3c0: } local_8._0_1_ = 0xff; local_8._1_3_ = 0xffffff; - FUN_004357e0(piVar21); + Entity_Familiar::set_extra_data(piVar21); FUN_0064a830(); if ((*(uint *)(iVar6 + 0x18) & 0x40000) != 0) { std::string::string(DAT_00c7169c + 0x2a454); @@ -273177,7 +273177,7 @@ LAB_0060f5ad: _eh_vector_constructor_iterator_(piVar21 + 0x46,0x114,4,ANM2::constructor,ANM2::~ANM2); } local_8 = (char *)0xffffffff; - FUN_004357e0(piVar21); + Entity_Familiar::set_extra_data(piVar21); local_f4 = (ANM2 *)(piVar21 + 0x15a); local_fc = (ANM2 *)(piVar21 + 0x46); local_f8 = (int *)0x0; @@ -273644,7 +273644,7 @@ void __thiscall Entity_Familiar::Remove(Entity_Familiar *this) *(undefined4 *)((int)pvVar3 + 0x164c) = DAT_00c7b640; *(undefined4 *)((int)pvVar3 + 0x1650) = uVar4; } - FUN_00634a40(); + Entity_Familiar::ResolveOrbitConflict(); return; } @@ -274138,10 +274138,10 @@ LAB_00611d87: else { local_111 = '\0'; } - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); uVar17 = local_16c; local_14 = 0; - FUN_004174c0(local_16c + 1); + buffer_init(local_16c + 1); local_14 = CONCAT31(local_14._1_3_,1); local_120._0_4_ = 0.0; piVar13 = local_1ac; @@ -274159,8 +274159,8 @@ LAB_00611d87: &IsaacRepentancePlus::Entity_Familiar:: RTTI_Type_Descriptor,0); if (*(uint *)((int)local_120._4_4_ + 0xd70) == local_140) { - iVar10 = FUN_00612330(); - iVar11 = FUN_00612330(); + iVar10 = Entity_Familiar::get_orbit_parent(); + iVar11 = Entity_Familiar::get_orbit_parent(); if (iVar11 == iVar10) { if (((*(int *)((int)local_120._4_4_ + 0x28) == 3) && (*(int *)((int)local_120._4_4_ + 0x2c) == 0xce)) && @@ -274298,10 +274298,10 @@ LAB_00611d87: else { local_111 = '\0'; } - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); uVar17 = local_17c; local_14 = 4; - FUN_004174c0(local_17c + 1); + buffer_init(local_17c + 1); uVar12 = 0; local_14 = CONCAT31(local_14._1_3_,5); local_120 = local_120 & 0xffffffff; @@ -274319,8 +274319,8 @@ LAB_00611d87: &IsaacRepentancePlus::Entity_Familiar:: RTTI_Type_Descriptor,0); if ((float)local_124[0x35c] == (float)local_120) { - iVar10 = FUN_00612330(); - iVar11 = FUN_00612330(); + iVar10 = Entity_Familiar::get_orbit_parent(); + iVar11 = Entity_Familiar::get_orbit_parent(); if (iVar10 == iVar11) { if (((local_124[10] == 3) && (local_124[0xb] == 0xce)) && ((local_124[0xc] == 0x4d || (local_124[0xc] == 0x12a)))) { @@ -274422,7 +274422,7 @@ LAB_00611d87: } *(undefined4 *)&this->field_0xd70 = 0xffffffff; } - FUN_004cf1d0(0); + EntityPtr::Set(0); puVar7 = puStack_20; } else if (iVar10 == 0xe5) { @@ -274571,7 +274571,7 @@ LAB_00611d87: ExceptionList = local_1c; return; } - FUN_007d7740(0); + Entity_Player::UpdateFamiliarCounts(0); iVar10 = this->_variant; } if (((iVar10 == 0xee) && (this->_player != (void *)0x0)) && @@ -274654,7 +274654,7 @@ LAB_00612253: operator_delete(iVar4,uVar5); } } - FUN_004357e0(0); + Entity_Familiar::set_extra_data(0); if (*(int **)&this->field_0xdc4 != (int *)0x0) { (**(code **)(**(int **)&this->field_0xdc4 + 0x14))(); if (*(undefined4 **)&this->field_0xdc4 != (undefined4 *)0x0) { @@ -274666,9 +274666,9 @@ LAB_00612253: } -//@@ 00612330 FUN_00612330 +//@@ 00612330 Entity_Familiar::get_orbit_parent -int FUN_00612330(void) +int Entity_Familiar::get_orbit_parent(void) { char cVar1; @@ -274693,7 +274693,7 @@ int FUN_00612330(void) if (cVar1 != '\0') { cVar1 = Entity_Player::HasCollectible(0x2d8,0); if (cVar1 != '\0') { - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); if (local_14 != 0) { iVar3 = *local_1c; if (local_20 == '\0') { @@ -274762,9 +274762,9 @@ uint Entity_Familiar::RecalculateOrbitOffset(uint param_1,char param_2) bVar2 = false; } ExceptionList = &local_10; - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); local_8 = 0; - FUN_004174c0(local_38 + 1); + buffer_init(local_38 + 1); local_8 = CONCAT31(local_8._1_3_,1); local_24 = 0; if (local_38 != 0) { @@ -274776,8 +274776,8 @@ uint Entity_Familiar::RecalculateOrbitOffset(uint param_1,char param_2) (iVar5 = __RTDynamicCast(iVar5,0,&IsaacRepentancePlus::Entity::RTTI_Type_Descriptor, &IsaacRepentancePlus::Entity_Familiar::RTTI_Type_Descriptor,0, uVar4), *(uint *)(iVar5 + 0xd70) == param_1)) { - iVar6 = FUN_00612330(); - iVar7 = FUN_00612330(); + iVar6 = Entity_Familiar::get_orbit_parent(); + iVar7 = Entity_Familiar::get_orbit_parent(); if (iVar6 == iVar7) { if (((*(int *)(iVar5 + 0x28) == 3) && (*(int *)(iVar5 + 0x2c) == 0xce)) && ((*(int *)(iVar5 + 0x30) == 0x4d || (*(int *)(iVar5 + 0x30) == 0x12a)))) { @@ -274948,9 +274948,9 @@ void Entity_Familiar::GetOrbitDistance(undefined4 *param_1,int param_2) } -//@@ 00612890 FUN_00612890 +//@@ 00612890 Entity_Familiar::is_detached_from_follow -uint FUN_00612890(void) +uint Entity_Familiar::is_detached_from_follow(void) { uint in_EAX; @@ -275114,9 +275114,9 @@ undefined1 Entity_Familiar::IsLilithBirthrightIncubus(void) return 0; } -//@@ 00612b50 FUN_00612b50 +//@@ 00612b50 Entity_Familiar::get_incubus_umbilical_whip -int FUN_00612b50(void) +int Entity_Familiar::get_incubus_umbilical_whip(void) { char cVar1; @@ -275205,7 +275205,7 @@ void Entity_Familiar::FollowParent(void) ExceptionList = &local_1c; cVar1 = Entity_Familiar::IsLilithBirthrightIncubus(DAT_00bf93b4 ^ (uint)(local_48 + 0xe)); if (cVar1 != '\0') { - iVar2 = FUN_00612b50(); + iVar2 = Entity_Familiar::get_incubus_umbilical_whip(); local_34 = *(float *)(*(int *)(in_ECX + 0x410) + 0x33c); local_38 = *(float *)(*(int *)(in_ECX + 0x410) + 0x340); if (iVar2 != 0) { @@ -275214,7 +275214,7 @@ void Entity_Familiar::FollowParent(void) local_38 = 9.80909e-45; for (iVar4 = *(int *)(in_ECX + 0x3c0); iVar4 != 0; iVar4 = *(int *)(iVar4 + 0x3c0)) { if (*(int *)(iVar4 + 0x28) == 3) { - cVar1 = FUN_00612890(); + cVar1 = Entity_Familiar::is_detached_from_follow(); iVar4 = extraout_ECX; iVar6 = extraout_EDX; if (cVar1 != '\0') { @@ -275307,18 +275307,18 @@ void Entity_Familiar::FollowParent(void) } cVar1 = Entity_Player::HasTrinket(0x6d,0); if (cVar1 != '\0') { - FUN_00631850(); + Entity_Familiar::move_to_parent_offset(); ExceptionList = local_1c; return; } if ((*(float *)(in_ECX + 0xd90) != DAT_00c7b640) || (*(float *)(in_ECX + 0xd94) != DAT_00c7b644)) { - FUN_006348d0(); + Entity_Familiar::reset_follow_target(); } piVar7 = *(int **)(in_ECX + 0x3bc); local_22 = '\0'; if ((*(int *)(DAT_00c71678 + 0x26584) == 0x1e) && (*(int *)(in_ECX + 0x2c) == 0x3e)) { - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); if (local_38 != 0.0) { local_22 = '\x01'; piVar7 = (int *)*local_40; @@ -275342,7 +275342,7 @@ void Entity_Familiar::FollowParent(void) local_34 = (float)iVar2; break; } - cVar1 = FUN_00612890(); + cVar1 = Entity_Familiar::is_detached_from_follow(); iVar2 = extraout_ECX_00; piVar7 = extraout_EDX_00; if (cVar1 != '\0') { @@ -275360,7 +275360,7 @@ void Entity_Familiar::FollowParent(void) if (iVar2 != 0) { do { if (*(int *)(iVar2 + 0x28) == 3) { - cVar1 = FUN_00612890(); + cVar1 = Entity_Familiar::is_detached_from_follow(); iVar2 = extraout_ECX_02; piVar7 = extraout_EDX_01; if (cVar1 != '\0') { @@ -275437,7 +275437,7 @@ void Entity_Familiar::FollowParent(void) local_34 = (float)iVar2; break; } - cVar1 = FUN_00612890(); + cVar1 = Entity_Familiar::is_detached_from_follow(); iVar2 = extraout_ECX_04; if (cVar1 != '\0') { if (extraout_DL != '\0') { @@ -275512,7 +275512,7 @@ LAB_00613385: return; } if (*(int *)(iVar2 + 0x28) == 3) { - cVar1 = FUN_00612890(); + cVar1 = Entity_Familiar::is_detached_from_follow(); iVar2 = extraout_ECX_06; if (cVar1 != '\0') { if (extraout_DL_00 != '\0') { @@ -275534,14 +275534,14 @@ LAB_006133c6: iVar2 = __RTDynamicCast(piVar7,0,&IsaacRepentancePlus::Entity::RTTI_Type_Descriptor, &IsaacRepentancePlus::Entity_Familiar::RTTI_Type_Descriptor,0); if (iVar2 == 0) goto LAB_0061378a; - cVar1 = FUN_00612890(); + cVar1 = Entity_Familiar::is_detached_from_follow(); if ((cVar1 != '\0') || (((local_21 != '\0' && (iVar2 = GetFollowerPriority(), 0 < iVar2)) && (*(char *)(extraout_ECX_08 + 0xd76) == '\0')))) goto LAB_0061378a; } LAB_00613692: if (*(int *)(in_ECX + 0x2c) != 0x6d) { - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); local_14 = (int *)0x0; local_30 = (int *)0x0; if (local_38 != 0.0) { @@ -275667,14 +275667,14 @@ float * Entity_Familiar::GetOrbitPosition(float *param_1,float *param_2) } cVar1 = Entity_Player::HasTrinket(0x6d,0); if ((cVar1 != '\0') && (*(int *)(in_ECX + 0x2c) != 0x2b)) { - pfVar2 = (float *)FUN_00634260(local_10); + pfVar2 = (float *)Entity_Familiar::UpdateFollowPosition(local_10); *param_1 = *pfVar2 + *param_2; param_1[1] = pfVar2[1] + param_2[1]; return param_1; } if ((*(float *)(in_ECX + 0xd90) != DAT_00c7b640) || (*(float *)(in_ECX + 0xd94) != DAT_00c7b644)) { - FUN_006348d0(); + Entity_Familiar::reset_follow_target(); } uVar3 = *(uint *)(DAT_00c7169c + 0x4abbc) & 0x80000001; if ((int)uVar3 < 0) { @@ -275773,7 +275773,7 @@ int * FUN_00613c20(float *param_1) piVar2 = (int *)Entity_Laser::ShootAngle(2,in_ECX + 0x33c,fVar3); *(undefined1 *)((int)piVar2 + 0x515) = 1; *(undefined1 *)(piVar2 + 0x139) = 1; - FUN_0060dc40(); + Entity_Familiar::apply_tear_modifiers(); (**(code **)(*piVar2 + 0x40))(fVar3 * 3.5); if ((param_1[1] <= -0.5 && param_1[1] != -0.5) || (*param_1 <= -0.5 && *param_1 != -0.5)) { iVar4 = -0x3ee00000; @@ -275804,7 +275804,7 @@ int * FUN_00613c20(float *param_1) (**(code **)(*piVar2 + 0x3c))(&local_38,0xffffffff,0xff,0,1); (**(code **)(*piVar2 + 0xc))(); FUN_006341a0(piVar2); - FUN_0064bb70(piVar2); + Entity::convert_shot_for_enemy_owner(piVar2); return piVar2; } @@ -275990,7 +275990,7 @@ void Entity_Familiar::AddToDelayed(void) LAB_00614095: iVar2 = DAT_00c71678; *(undefined1 *)(in_ECX + 0xd75) = 1; - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)(iVar2 + 0x18300) + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)(iVar2 + 0x18300) + 0x1218)); uVar5 = 0; local_8 = 0; if (local_18 != 0) { @@ -276143,7 +276143,7 @@ int * Entity_Familiar::PlayChargeAnim(undefined4 param_1) } uVar2 = local_38[0]; iVar6 = (int)fVar8; - local_3c = FUN_00557bd0(0,"Charge",6); + local_3c = std::string::find(0,"Charge",6); if (0xf < local_38[5]) { uVar5 = local_38[5] + 1; uVar7 = uVar2; @@ -276422,7 +276422,7 @@ LAB_00614aa9: else { cVar1 = Entity_Familiar::IsLilithBirthrightIncubus(); if ((cVar1 == '\0') || - (pEVar3 = (Entity_Familiar *)FUN_00612b50(), pEVar3 == (Entity_Familiar *)0x0)) { + (pEVar3 = (Entity_Familiar *)Entity_Familiar::get_incubus_umbilical_whip(), pEVar3 == (Entity_Familiar *)0x0)) { pEVar3 = this; do { if (pEVar3->_type != 3) break; @@ -276662,7 +276662,7 @@ LAB_00614e78: std::multiset::insert((int *)(in_ECX + 0xdc0)); uVar4 = *(undefined4 *)(in_ECX + 0xdc0); } - FUN_0064bb70(uVar4); + Entity::convert_shot_for_enemy_owner(uVar4); goto LAB_00614e78; } } @@ -277251,7 +277251,7 @@ LAB_00615e6a: *(undefined4 *)(in_ECX + 0xd68) = uVar3; Entity_Familiar::RecalculateOrbitOffset(1,1); } - iVar2 = FUN_00612330(); + iVar2 = Entity_Familiar::get_orbit_parent(); local_10 = *(float *)(iVar2 + 0x33c); local_c = *(undefined4 *)(iVar2 + 0x340); pfVar5 = (float *)Entity_Familiar::GetOrbitPosition(local_18,&local_10); @@ -277815,7 +277815,7 @@ void FUN_00616db0(void) if (*(int *)(in_ECX + 0x2c) == 0x38) { iVar7 = *(int *)(in_ECX + 0x3bc); if (iVar7 == 0) { - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); local_8 = 0; uVar12 = 0; if (local_2c != 0) { @@ -277864,10 +277864,10 @@ void FUN_00616db0(void) local_8 = 0xffffffff; if ((1 < *(int *)(DAT_00c71678 + 0x26614)) && (*(int *)(in_ECX + 0x3c4) != 0)) { local_1c = *(byte **)(*(int *)(in_ECX + 0x3c4) + 0x20); - piVar4 = (int *)FUN_00651990(&local_1c); + piVar4 = (int *)map_find_value(&local_1c); if (0x1c1 < *piVar4) { local_20 = *(undefined4 *)(*(int *)(in_ECX + 0x3c4) + 0x20); - puVar5 = (undefined4 *)FUN_00651990(&local_20); + puVar5 = (undefined4 *)map_find_value(&local_20); *puVar5 = 0xfffffc7c; } } @@ -278262,7 +278262,7 @@ LAB_006189fb: Isaac::GetAxisAlignedUnitVectorFromDir(); Entity_Familiar::TryAimAtMarkedTarget(); if (in_ECX[0x353] < 0) { - if (((local_11 != '\0') && (iVar6 = FUN_00612b50(), iVar6 != 0)) && + if (((local_11 != '\0') && (iVar6 = Entity_Familiar::get_incubus_umbilical_whip(), iVar6 != 0)) && (*(int *)(iVar6 + 0xd58) != -1)) { piVar7 = (int *)Isaac::GetAxisAlignedUnitVectorFromDir(); in_ECX[0xd8] = *piVar7; @@ -278476,7 +278476,7 @@ LAB_006179e0: } *piVar7 = 0; } - iVar6 = FUN_006ac8d0(); + iVar6 = Entity::get_velocity_direction(); pAVar1 = (ANM2 *)(in_ECX + 0x12); if (iVar6 == 3) { ANM2::Play(pAVar1,"FloatDown",0); @@ -278689,7 +278689,7 @@ LAB_00618228: return; } Entity_Familiar::FollowParent(); - iVar6 = FUN_00612b50(); + iVar6 = Entity_Familiar::get_incubus_umbilical_whip(); if (iVar6 == 0) { in_ECX[0x353] = 0x1e; ExceptionList = local_10; @@ -278703,7 +278703,7 @@ LAB_00618228: if (iVar6 == 0x82) { if (4.0 < (float)in_ECX[0xd8] * (float)in_ECX[0xd8] + (float)in_ECX[0xd9] * (float)in_ECX[0xd9]) { - iVar6 = FUN_006ac8d0(); + iVar6 = Entity::get_velocity_direction(); pAVar1 = (ANM2 *)(in_ECX + 0x12); if (iVar6 == 3) { ANM2::Play(pAVar1,"FloatDown",0); @@ -278818,7 +278818,7 @@ LAB_006185e8: } local_12 = '\x01'; if (iVar6 == 0x3b) { - NpcAI::ENTITY_MASK((Entity_NPC *)((int)DAT_00c71678->_room + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)((int)DAT_00c71678->_room + 0x1218)); piVar7 = (int *)0x0; local_8 = 5; if (local_4c != (int *)0x0) { @@ -279273,7 +279273,7 @@ void FUN_00619270(void) local_10 = ExceptionList; ExceptionList = &local_10; Entity_Familiar::FollowParent(DAT_00bf93b4 ^ (uint)(local_34 + 0x30)); - uVar5 = FUN_00651810(10); + uVar5 = apply_forgotten_lullaby(10); cVar4 = Entity::IsFrame(uVar5,0); if (cVar4 != '\0') { local_14 = 0.0; @@ -279325,9 +279325,9 @@ void FUN_00619270(void) uVar5 = Game::Spawn(2,1,(float *)(in_ECX + 0x33c),&local_1c,in_ECX,0,local_20); pEVar6 = (Entity_Tear *)__RTDynamicCast(uVar5,uVar12,pTVar13,pTVar14,uVar16); pEVar6->_fallingSpeed = 1.2; - FUN_0060dc40(); + Entity_Familiar::apply_tear_modifiers(); local_20 = piVar10; - FUN_0060dc40(); + Entity_Familiar::apply_tear_modifiers(); local_18 = (int *)((float)piVar10 * 0.35 + 0.55); (**(code **)(*(int *)pEVar6 + 0x40))((float)local_20 * 3.0); local_20 = local_18; @@ -279340,8 +279340,8 @@ void FUN_00619270(void) pEVar6->_baseScale = (float)piVar10; pEVar6->_fScale = (float)piVar10; Entity_Tear::ResetSpriteScale(pEVar6); - FUN_00634000(pEVar6); - FUN_0064bb70(pEVar6); + Entity_Familiar::TryFireTear(pEVar6); + Entity::convert_shot_for_enemy_owner(pEVar6); } } FUN_0062d290(); @@ -279544,7 +279544,7 @@ void FUN_006196e0(void) if (*(int *)&DAT_00c71678->field_0x26614 < 2) { uVar5 = 10; } - iVar3 = FUN_00651810(uVar5); + iVar3 = apply_forgotten_lullaby(uVar5); if ((((*(uint *)(in_ECX + 0x168) & 0x4000) == 0) && (cVar1 = Game::IsPaused(DAT_00c71678), cVar1 == '\0')) && (DAT_00c71678->_frameCount % iVar3 == 0)) { @@ -279984,7 +279984,7 @@ void FUN_0061a4e0(void) local_18 = *(int **)(*(int *)(in_ECX + 0x410) + 0x33c); local_14 = *(int **)(*(int *)(in_ECX + 0x410) + 0x340); local_1c = 80.0; - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); local_8 = 0; uVar7 = 0; if (local_74 != 0) { @@ -280389,7 +280389,7 @@ LAB_0061b0d0: piVar17 = (int *)(*(int *)(in_ECX + 0x410) + 0x1370); *piVar17 = *piVar17 + 1; uVar8 = spawn_blue_spider(&DAT_00c7b640); - FUN_0064bb70(uVar8); + Entity::convert_shot_for_enemy_owner(uVar8); ExceptionList = local_10; return; } @@ -281273,7 +281273,7 @@ LAB_0061c740: piVar1 = (int *)(in_ECX + 0xd88); *piVar1 = *piVar1 + -1; if (-1 < *piVar1) goto LAB_0061c8a0; - FUN_0060dc40(); + Entity_Familiar::apply_tear_modifiers(); if (fVar17 <= 1.0) { uVar8 = Random(); iVar9 = uVar8 % 300 + 0x96; @@ -281332,7 +281332,7 @@ LAB_0061c8a0: iVar9 = Game::SpawnEx(3,0x49,in_ECX + 0x33c,&DAT_00c7b640,iVar9,0,uVar12,0); *(uint *)(iVar9 + 0x168) = *(uint *)(iVar9 + 0x168) & 0xfffffffb; *(undefined4 *)(iVar9 + 0x16c) = *(undefined4 *)(iVar9 + 0x16c); - FUN_0064bb70(iVar9); + Entity::convert_shot_for_enemy_owner(iVar9); } return; } @@ -282069,7 +282069,7 @@ void __thiscall Entity_Familiar::Update(Entity_Familiar *this) puVar4 = local_a4 + 0xa0; if (this->_variant == 0xe7) { __RTDynamicCast(); - iVar8 = FUN_006470c0(); + iVar8 = Entity_Familiar::get_item_config_entry(); fVar29 = *(float *)(iVar8 + 0x78); puVar4 = puStack_20; if ((fVar29 == 1.0) && (piVar21 = *(int **)&this->field_0xee8, piVar21 != (int *)0x0)) { @@ -282107,7 +282107,7 @@ void __thiscall Entity_Familiar::Update(Entity_Familiar *this) if (*(int *)&this->field_0xd70 == 0) { piVar21 = (int *)0x0; local_12c = 0.0; - NpcAI::ENTITY_MASK((Entity_NPC *)((int)pGVar20->_room + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)((int)pGVar20->_room + 0x1218)); local_14 = 0; local_118 = (char *)0x0; if (local_5c != (char *)0x0) { @@ -282179,7 +282179,7 @@ LAB_0061dc46: delirium_morph(this); } if ((this->_state == 0) && (in_XMM0_Da = *(float *)&this->field_0x3a4, in_XMM0_Da == 0.0)) { - FUN_00634a40(); + Entity_Familiar::ResolveOrbitConflict(); } uVar19 = this->_variant; if (900 < uVar19) goto switchD_0061ddf2_caseD_12; @@ -282245,7 +282245,7 @@ LAB_0061dc46: in_XMM0_Da = 1.0 - fVar29; Vector::__mul(); Vector::__add(); - FUN_00428910(); + Entity::SetVelocity(); } } local_118 = (char *)((int)local_118 + 1); @@ -282360,7 +282360,7 @@ switchD_0061ddf2_caseD_2: this->_collisionDamage = local_12c + local_12c + 3.0; Level::GetCurrentRoom(); pEVar11 = (Entity_NPC *)FUN_00428a60(); - NpcAI::ENTITY_MASK(pEVar11); + EntityList::QuerySublist(pEVar11); local_14 = 6; uVar19 = 0; iVar8 = EntityList::Size(); @@ -282495,7 +282495,7 @@ LAB_0061dea4: if (iVar8 == 0x1e) { Level::GetCurrentRoom(); pEVar11 = (Entity_NPC *)FUN_00428a60(); - NpcAI::ENTITY_MASK(pEVar11); + EntityList::QuerySublist(pEVar11); local_14 = 8; iVar8 = EntityList::Size(); if (iVar8 != 0) { @@ -282516,7 +282516,7 @@ LAB_0061dea4: if (cVar6 != '\0') { Entity_Player::GetAimDirection(); Vector::__mul(); - FUN_00a104b0(); + Vector::operator__(); } Level::GetCurrentRoom(); Vector::__sub(); @@ -282544,7 +282544,7 @@ LAB_0061dea4: if ((cVar6 != '\0') && (0x1d < *(int *)&this->field_0xd4c)) { local_12c = -NAN; } - cVar6 = FUN_0062a8f0(); + cVar6 = Entity_Familiar::CanPlayerFire(); if (cVar6 != '\0') { iVar8 = *(int *)&this->field_0xd4c; if (local_12c == -NAN) { @@ -282575,7 +282575,7 @@ LAB_0061dea4: Entity::Position(); Vector::__sub(); Vector::Length(); - FUN_00a105d0(); + Vector::__div_assign(); Entity::Mass(); if (cVar6 != '\0') { FUN_00431260(); @@ -282621,7 +282621,7 @@ LAB_0061dea4: in_XMM0_Da = (float)((double)(int)local_118 + (double)(&DAT_00bacb00)[-((int)local_118 >> 0x1f)]) * 360.0 * 0.125; - FUN_00a10350(); + Vector::FromAngle(); Random(); Vector::__mul(); piVar21 = (int *)Game::Spawn(); @@ -282781,7 +282781,7 @@ LAB_00620a2e: case 0x4c: case 0x50: FollowParent(); - FUN_0062e620(); + Entity_Familiar::update_weapon(); break; case 0x4d: FUN_0061a240(); @@ -282842,13 +282842,13 @@ LAB_0061ef12: Vector::__mul(); Vector::__mul(); Vector::__add(); - FUN_00428910(); + Entity::SetVelocity(); if (fVar29 < 400.0) { std::vector::operator_index(); - cVar6 = FUN_00431540(); + cVar6 = Entity::IsProjectile(); if (cVar6 == '\0') { std::vector::operator_index(); - cVar6 = FUN_00431530(); + cVar6 = Entity::IsTear(); if (cVar6 != '\0') { std::vector::operator_index(); std::vector::operator_index(); @@ -282856,7 +282856,7 @@ LAB_0061ef12: Vector::__mul(); Vector::__mul(); Vector::__add(); - FUN_0067a080(); + Entity_Projectile::Deflect(); } } else { @@ -283011,13 +283011,13 @@ switchD_0061ddf2_caseD_70: (uVar19 = Entity_Projectile::ProjectileFlags(), (uVar19 & 0x1000000) == 0)) { Entity::Velocity(); Vector::__mul(); - FUN_00428910(); + Entity::SetVelocity(); Entity_Projectile::AddProjectileFlags(); } } else { std::vector::operator_index(); - cVar6 = FUN_00431530(); + cVar6 = Entity::IsTear(); if (cVar6 != '\0') { std::vector::operator_index(); iVar8 = __RTDynamicCast(); @@ -283029,7 +283029,7 @@ switchD_0061ddf2_caseD_70: if ((cVar6 != '\0') && (cVar6 = Entity::IsDescendantOf(), cVar6 == '\0')) { Entity::Velocity(); Vector::__mul(); - FUN_00428910(); + Entity::SetVelocity(); FUN_00435bc0(); Entity_Tear::TearFlags(); pfVar18 = (float *)BitSet128::operator_or(); @@ -283209,10 +283209,10 @@ LAB_0061f886: cVar6 = FUN_004d7760(); if (cVar6 == '\0') { std::vector::operator_index(); - cVar6 = FUN_00431530(); + cVar6 = Entity::IsTear(); if (cVar6 != '\0') { std::vector::operator_index(); - pEVar16 = (Entity_Tear *)FUN_00435e40(); + pEVar16 = (Entity_Tear *)Entity::ToTear(); iVar8 = Entity::Variant(); if (((iVar8 != 9) && (iVar8 = Entity::Variant(), iVar8 != 0x2d)) && (iVar8 = Entity::Variant(), iVar8 != 0x28)) { @@ -283231,7 +283231,7 @@ LAB_0061f886: if (iVar8 < 1) { Entity::Velocity(); Vector::__mul(); - FUN_00428910(); + Entity::SetVelocity(); } else { FUN_0060cd40(); @@ -283246,7 +283246,7 @@ LAB_0061f886: Entity::Position(); Vector::__mul(); Vector::__sub(); - FUN_004288f0(); + Entity::SetPosition(); iVar8 = Entity::Variant(); if (((iVar8 != 0x23) && (iVar8 = Entity::Variant(), iVar8 != 0x25)) && (iVar8 = Entity::Variant(), iVar8 != 0x26)) { @@ -283259,7 +283259,7 @@ LAB_0061f886: Entity::Position(); Vector::__mul(); Vector::__add(); - FUN_004288f0(); + Entity::SetPosition(); (**(code **)(*piVar21 + 0xc))(); } } @@ -283316,7 +283316,7 @@ LAB_00620f26: pEVar12 = (Entity *)__RTDynamicCast(); EntityRef::EntityRef(); Entity::AddCharmed(pEVar12); - FUN_00436220(); + Entity::SetVisibleFlag(); (**(code **)(*(int *)pEVar12 + 0xc))(); local_118 = (char *)((int)local_118 + -1); } while (local_118 != (char *)0x0); @@ -283335,7 +283335,7 @@ LAB_00620f26: pcStack_6c = "FlyHori"; Entity::IsFlying(this->_player); MoveDelayed(); - iVar8 = FUN_006ac8d0(); + iVar8 = Entity::get_velocity_direction(); fVar25 = (float10)Vector::LengthSquared(); in_XMM0_Da = 1.0; if (1.0 <= (float)fVar25) { @@ -283380,7 +283380,7 @@ LAB_00620f26: else { Sprite::Color(); } - FUN_00682f50(); + KColor::FromRGBA255(); } Game::GetField26614(); cVar6 = FUN_00429550(); @@ -283457,7 +283457,7 @@ LAB_00620f26: } PickEnemyTarget(); } - FUN_006ac8d0(); + Entity::get_velocity_direction(); Vector::LengthSquared(); in_XMM0_Da = 1.0; PlayFloatAnim(); @@ -283480,7 +283480,7 @@ LAB_00620f26: LerpAngleDeg(); *(undefined4 *)&this->field_0xd60 = uVar13; Entity::Position(); - FUN_00a10350(); + Vector::FromAngle(); Vector::__mul(); Vector::__add(); Vector::__sub(); @@ -283511,14 +283511,14 @@ LAB_00620f26: iVar8 = Entity_Player::GetTearHitParams(); fVar26 = *(float *)(iVar8 + 0x48) * 0.1; fVar29 = fVar26; - FUN_0060dc40(); + Entity_Familiar::apply_tear_modifiers(); in_XMM0_Da = fVar29 * fVar26; (*pcVar22)(); FUN_0044bfa0(); FUN_00435bc0(); FUN_00456830(); FUN_0060cf00(); - FUN_00447720(); + set_field_0x37c(); (**(code **)(*piVar21 + 0xc))(); } break; @@ -283577,14 +283577,14 @@ LAB_00620f26: Vector::Resized(); Game::Spawn(); pEVar16 = (Entity_Tear *)__RTDynamicCast(); - FUN_0060dc40(); - FUN_0060dc40(); + Entity_Familiar::apply_tear_modifiers(); + Entity_Familiar::apply_tear_modifiers(); (**(code **)(*(int *)pEVar16 + 0x40))(); Entity_Tear::SetScale(pEVar16); FUN_00444c70(); - FUN_00634000(); + Entity_Familiar::TryFireTear(); (**(code **)(*(int *)pEVar16 + 0xc))(); - FUN_0064bb70(); + Entity::convert_shot_for_enemy_owner(); } } local_14 = 0xffffffff; @@ -283620,7 +283620,7 @@ LAB_00620f26: if (0 < *(int *)&this->field_0xd4c) { *(int *)&this->field_0xd4c = *(int *)&this->field_0xd4c + -1; } - uVar13 = FUN_00651810(); + uVar13 = apply_forgotten_lullaby(); if (*(int *)&this->field_0xd4c < 1) { local_12c = 0.0; Level::GetCurrentRoom(); @@ -283647,7 +283647,7 @@ LAB_00621e31: Vector::__sub(); Vector::Normalized(); Vector::GetAngleDegrees(); - FUN_00a10350(); + Vector::FromAngle(); fVar25 = (float10)Vector::Dot(); in_XMM0_Da = (float)fVar25; if (0.9 < in_XMM0_Da) { @@ -283668,13 +283668,13 @@ LAB_00621e31: Game::Spawn(); pEVar16 = (Entity_Tear *)__RTDynamicCast(); FUN_00444c70(); - FUN_0060dc40(); - FUN_0060dc40(); + Entity_Familiar::apply_tear_modifiers(); + Entity_Familiar::apply_tear_modifiers(); in_XMM0_Da = in_XMM0_Da * 0.35 + 0.7; (**(code **)(*(int *)pEVar16 + 0x40))(); Entity_Tear::SetScale(pEVar16); - FUN_00634000(); - FUN_0064bb70(); + Entity_Familiar::TryFireTear(); + Entity::convert_shot_for_enemy_owner(); } local_14 = 0xffffffff; *(undefined4 *)&this->field_0xd4c = uVar13; @@ -283799,11 +283799,11 @@ LAB_00621e31: else { Entity::Velocity(); in_XMM0_Da = (float)(int)local_118 * 90.0; - FUN_00a10350(); + Vector::FromAngle(); Vector::__mul(); Vector::__add(); } - FUN_00428910(); + Entity::SetVelocity(); (**(code **)(*(int *)pEVar16 + 0x3c))(); (**(code **)(*(int *)pEVar16 + 0xc))(); local_118 = (char *)((int)local_118 + 1); @@ -283857,7 +283857,7 @@ LAB_006223d9: Entity::Velocity(); fVar29 = fVar26; Vector::Rotated(); - FUN_00428910(); + Entity::SetVelocity(); FUN_0060cdf0(); in_XMM0_Da = fVar29 + fVar26; FUN_00456820(); @@ -283922,7 +283922,7 @@ LAB_006223d9: Entity::SpawnerType(); FUN_004316b0(); Entity::TargetPosition(); - FUN_00435d60(); + Entity::SetTargetPosition(); FUN_0060cee0(); Entity_Laser::SetMultidimensionalTouched(); Entity::SetParent(); @@ -283937,7 +283937,7 @@ LAB_006223d9: if (local_118 == (char *)0x0) { Entity::Velocity(); Vector::Rotated(); - FUN_00428910(); + Entity::SetVelocity(); pcVar22 = *(code **)(*piVar9 + 0x3c); Color::Color(); LAB_00622a96: @@ -283947,7 +283947,7 @@ LAB_00622a96: if (local_118 == (char *)0x1) { Entity::Velocity(); Vector::Rotated(); - FUN_00428910(); + Entity::SetVelocity(); LAB_00622a6e: pcVar22 = *(code **)(*piVar9 + 0x3c); Color::Color(); @@ -283956,13 +283956,13 @@ LAB_00622a6e: if (local_118 == (char *)0x2) { Entity::Velocity(); Vector::Rotated(); - FUN_00428910(); + Entity::SetVelocity(); goto LAB_00622a6e; } if (local_118 == (char *)0x3) { Entity::Velocity(); Vector::Rotated(); - FUN_00428910(); + Entity::SetVelocity(); pcVar22 = *(code **)(*piVar9 + 0x3c); Color::Color(); (*pcVar22)(); @@ -284023,14 +284023,14 @@ LAB_006223ba: } } Game::GetFrameCount(); - FUN_00417160(); + sinf_wrapper(); assert_lerp_range(); Vector::GetAngleDegrees(); uVar13 = *(undefined4 *)&this->field_0xd60; LerpAngleDeg(); *(undefined4 *)&this->field_0xd60 = uVar13; Entity::Position(); - FUN_00a10350(); + Vector::FromAngle(); Vector::__mul(); Vector::__add(); Vector::__sub(); @@ -284145,7 +284145,7 @@ LAB_0061e4de: } break; case 0x83: - FUN_0063b340(); + Entity_Familiar::update_idle_anim_by_size(); MoveDelayed(); break; case 200: @@ -284184,7 +284184,7 @@ LAB_00623343: SoundEffects::PlayWithFartOverride(); local_168 = Isaac::Random(); local_168 = local_168 + 4; - FUN_0060dc40(); + Entity_Familiar::apply_tear_modifiers(); fVar29 = in_XMM0_Da * 3.5; in_XMM0_Da = fVar29; if (0 < local_168) { @@ -284220,7 +284220,7 @@ LAB_00623343: in_XMM0_Da = fVar29 * 1.5; } (**(code **)(*(int *)pEVar16 + 0x40))(); - FUN_00634000(); + Entity_Familiar::TryFireTear(); } else { Random(); @@ -284250,7 +284250,7 @@ LAB_00623343: } else { ANM2::Play((ANM2 *)&this->field_0x48); - FUN_00651810(); + apply_forgotten_lullaby(); cVar6 = Entity::IsFrame(); if (cVar6 != '\0') { Level::GetCurrentRoom(); @@ -284273,7 +284273,7 @@ LAB_00623343: if ((*piVar21 != 0) && (((cVar6 = Entity::HasEntityFlags(), cVar6 == '\0' || ((cVar6 = FUN_004173b0(), cVar6 == '\0' && - ((cVar6 = FUN_0042a250(), cVar6 == '\0' || + ((cVar6 = Entity::IsFamiliar(), cVar6 == '\0' || (cVar6 = Entity::HasEntityFlags(), cVar6 != '\0')))))) && (cVar6 = Entity::HasEntityFlags(), cVar6 == '\0')))) { Entity::IsVulnerableEnemy(); @@ -284303,7 +284303,7 @@ LAB_00623343: break; case 0xd8: case 0xd9: - FUN_00642cb0(); + FamiliarAI::tinytoma(); break; case 0xda: Entity::Position(); @@ -284410,7 +284410,7 @@ LAB_00623343: } break; case 0xeb: - FUN_0062e620(); + Entity_Familiar::update_weapon(); Entity_Player::GetAimDirection(); if ((((0 < *(int *)&this->field_0xd50) || (0 < *(int *)&this->field_0xda8)) && (cVar6 = Vector::operator_eq(), cVar6 != '\0')) && @@ -284429,7 +284429,7 @@ LAB_00623343: Vector::operator_assign(); *(undefined4 *)&this->field_0xd6c = 0x40600000; Game::GetFrameCount(); - FUN_00a10350(); + Vector::FromAngle(); Vector::operator_assign(); } Vector::Rotated(); @@ -284442,7 +284442,7 @@ LAB_00623343: iVar8 = Entity::Parent(); while (iVar8 != 0) { Entity::Parent(); - cVar6 = FUN_0042a250(); + cVar6 = Entity::IsFamiliar(); if (cVar6 == '\0') break; Entity::Parent(); iVar8 = Entity::Parent(); @@ -284464,7 +284464,7 @@ LAB_00623343: } } } - if (((*(int *)&this->field_0x3bc != 0) && (cVar6 = FUN_0042a250(), cVar6 != '\0')) && + if (((*(int *)&this->field_0x3bc != 0) && (cVar6 = Entity::IsFamiliar(), cVar6 != '\0')) && (iVar8 = Entity::Parent(), iVar8 != 0)) { Entity::Parent(); } @@ -284631,7 +284631,7 @@ LAB_0062434e: (this->_variant != 0x66)) { std::vector::clear(); } - FUN_0060dc40(); + Entity_Familiar::apply_tear_modifiers(); if (1.0 < in_XMM0_Da) { iVar8 = this->_variant; if (iVar8 == 0xe7) { @@ -284688,11 +284688,11 @@ LAB_0062442e: } if (*(int *)&this->field_0x3c4 != 0) { PathFinder::GetGridIndex(); - piVar21 = (int *)FUN_00651990(); + piVar21 = (int *)map_find_value(); *piVar21 = *piVar21 + 1; } FUN_0042c770(); - FUN_004561a0(); + std::iterator_copy(); cVar6 = FUN_0042c710(); while (cVar6 != '\0') { iVar8 = FUN_005cba30(); @@ -284705,9 +284705,9 @@ LAB_0062442e: FUN_00651db0(); } else { - FUN_006518f0(); + set_iterator_post_increment(); } - FUN_004561a0(); + std::iterator_copy(); cVar6 = FUN_0042c710(); } ExceptionList = local_1c; @@ -284737,7 +284737,7 @@ void __thiscall Entity_Familiar::Interpolate(Entity_Familiar *this) FUN_0062d300(); break; case 0x50: - FUN_0062e620(1); + Entity_Familiar::update_weapon(1); break; case 0xca: FUN_00644e80(1); @@ -284758,7 +284758,7 @@ void __thiscall Entity_Familiar::Interpolate(Entity_Familiar *this) (this->_pos).x = fVar1 * fVar5 + (this->_pos).x; (this->_pos).y = fVar1 * fVar6 + (this->_pos).y; ai_blood_clot(1); - FUN_006a9c90(1); + Entity::CollideWithGrid(1); return; case 0xf0: FUN_00431be0(1); @@ -284822,7 +284822,7 @@ uint __thiscall Entity_Familiar::RenderShadowLayer(Entity_Familiar *this,undefin cVar1 = Entity_Familiar::IsLilithBirthrightIncubus(); if (cVar1 != '\0') { - uVar2 = FUN_00612b50(); + uVar2 = Entity_Familiar::get_incubus_umbilical_whip(); if ((uVar2 == 0) || (*(char *)(uVar2 + 0x171) == '\0')) { return uVar2 & 0xffffff00; } @@ -284947,7 +284947,7 @@ void __thiscall Entity_Familiar::Render(Entity_Familiar *this,float *param_2) local_f8 = param_2; cVar7 = Entity_Familiar::IsLilithBirthrightIncubus(local_14); if (cVar7 != '\0') { - iVar8 = FUN_00612b50(); + iVar8 = Entity_Familiar::get_incubus_umbilical_whip(); if (iVar8 == 0) { ExceptionList = local_10; return; @@ -285518,7 +285518,7 @@ LAB_006262e3: return 1; } LAB_006263bd: - FUN_0060dc40(); + Entity_Familiar::apply_tear_modifiers(); iVar7 = this->_variant; fStack_fc = fVar26; if (iVar7 == 0x57) { @@ -285953,7 +285953,7 @@ LAB_006266d3: ExceptionList = pvStack_1c; return 1; } - iVar7 = NpcAI::ENTITY_MASK((Entity_NPC *)((int)DAT_00c71678->_room + 0x1218)); + iVar7 = EntityList::QuerySublist((Entity_NPC *)((int)DAT_00c71678->_room + 0x1218)); uVar8 = *(uint *)(iVar7 + 0xc); EntityList_Query::~EntityList_Query(); if (0xf < uVar8) { @@ -286239,10 +286239,10 @@ LAB_00628173: fVar26 = *pfVar11 * 10.0; VStack_e0.y = pfVar11[1] * 10.0; VStack_e0.x = fVar26; - FUN_0060dc40(); + Entity_Familiar::apply_tear_modifiers(); fVar26 = fVar26 * 2.0; pEStack_c8 = (Entity_Player *)fVar26; - FUN_0060dc40(); + Entity_Familiar::apply_tear_modifiers(); pvStack_bc = (void *)(fVar26 * 0.2 + 0.8); Random(); pEVar13 = (Entity_Tear *)Game::Spawn(); @@ -286340,7 +286340,7 @@ LAB_006282d2: ((((cVar6 = Entity::IsVulnerableEnemy(), cVar6 != '\0' || (iVar7 = *piStack_cc, iVar7 == 0x21)) || ((iVar7 == 0x124 || (iVar7 == 0xf5)))) && (cVar6 = EntityList::HitListContains(), cVar6 == '\0')))) { FUN_00431620(); - fVar14 = (float)FUN_006470c0(); + fVar14 = (float)Entity_Familiar::get_item_config_entry(); fStack_104 = fVar14; pEStack_c8 = (Entity_Player *)__RTDynamicCast(); fStack_f8 = *(float *)((int)fVar14 + 8); @@ -286413,7 +286413,7 @@ LAB_0062892d: } while (pfVar11 != *(float **)((int)fVar29 + 0x6c)); if (cStack_135 == '\0') goto LAB_0062892d; } - FUN_0060dc40(); + Entity_Familiar::apply_tear_modifiers(); fStack_c0 = (fVar26 * 0.25 + 0.75) * fStack_c0; if (((uint)fStack_d0 & 2) != 0) { uVar8 = Random(); @@ -286502,7 +286502,7 @@ LAB_0062892d: (float)(byte)pEStack_c8->field_0x50 * 0.25; VStack_e0.x = 0.0; VStack_e0.y = 0.0; - FUN_0067d1f0(); + get_tear_flags_from_player(); pcVar25 = *(code **)(*(int *)pEStack_c4 + 0x20); EntityRef::constructor(); (*pcVar25)(); @@ -286528,7 +286528,7 @@ LAB_0062892d: cVar6 = Entity::HasEntityFlags(); if (cVar6 == '\0') { Vector::Normalized(); - FUN_006b2210(); + Entity::IsCollisionIgnored(); if (0.0 < fVar26) { VStack_e0.x = VStack_e0.x / fVar26; VStack_e0.y = VStack_e0.y / fVar26; @@ -286911,7 +286911,7 @@ joined_r0x00629d6f: puStack_f0 = (undefined4 *)pfVar11[2]; fStack_ec = pfVar11[3]; fStack_f8 = fVar26; - FUN_00780ec0(); + Entity_Player::check_bomb_tearflags(); if (1.5 <= fVar26) { } } @@ -287030,12 +287030,12 @@ LAB_0062a0db: iVar7 = __RTDynamicCast(); if (VStack_e0.y == 0.0) { if (iVar7 == 0) goto LAB_0062a55e; - FUN_0067a080(); + Entity_Projectile::Deflect(); } else { Entity_Projectile::Reflect(); } - FUN_007cf8f0(); + Entity_Player::IsLocalPlayer(); SoundEffects::PlayWithFartOverride(); } } @@ -287098,7 +287098,7 @@ LAB_0062a365: goto LAB_0062a365; } if (this->_variant == 0xe7) { - FUN_006470c0(); + Entity_Familiar::get_item_config_entry(); BitSet128::operator_and(); cVar6 = BitSet128::IsZero(); if (cVar6 != '\0') { @@ -287108,7 +287108,7 @@ LAB_0062a365: pEStack_c8 = (Entity_Player *)pEStack_c4->_index; piVar18 = (int *)FUN_005cba80(); if (*piVar18 == *piVar10) { - iVar7 = FUN_006470c0(); + iVar7 = Entity_Familiar::get_item_config_entry(); VStack_d8.y = (float)iVar7; pfVar11 = *(float **)(iVar7 + 0x68); if (pfVar11 == *(float **)(iVar7 + 0x6c)) { @@ -287175,9 +287175,9 @@ LAB_0062a564: } -//@@ 0062a8f0 FUN_0062a8f0 +//@@ 0062a8f0 Entity_Familiar::CanPlayerFire -uint FUN_0062a8f0(void) +uint Entity_Familiar::CanPlayerFire(void) { int iVar1; @@ -287361,7 +287361,7 @@ void FUN_0062aab0(void) piVar1 = (int *)(*(int *)(in_ECX + 0x410) + 0x1370); *piVar1 = *piVar1 + 1; uVar3 = spawn_blue_spider(&DAT_00c7b640); - FUN_0064bb70(uVar3); + Entity::convert_shot_for_enemy_owner(uVar3); iVar6 = iVar6 + -1; } while (iVar6 != 0); iVar7 = 0; @@ -287498,7 +287498,7 @@ void FUN_0062aab0(void) piVar1 = (int *)(*(int *)(in_ECX + 0x410) + 0x1370); *piVar1 = *piVar1 + 1; uVar3 = spawn_blue_spider(&DAT_00c7b640); - FUN_0064bb70(uVar3); + Entity::convert_shot_for_enemy_owner(uVar3); } } break; @@ -287719,7 +287719,7 @@ LAB_0062b462: else if (iVar9 == 0xf0) { (**(code **)(*in_ECX + 0x28))(); } - piVar10 = (int *)FUN_0063b4a0(local_18,0); + piVar10 = (int *)Entity_Familiar::GetFollowTargetPosition(local_18,0); in_ECX[0xcf] = *piVar10; in_ECX[0xd0] = piVar10[1]; iVar9 = in_ECX[0xb]; @@ -288056,7 +288056,7 @@ switchD_0062bba7_caseD_53: in_ECX[0x361] = 0; in_ECX[0xd8] = DAT_00c7b640; in_ECX[0xd9] = DAT_00c7b644; - iVar9 = FUN_004362a0(); + iVar9 = ItemConfig::get_wisp_config(); if (in_ECX[0x35c] < 0) { Entity_Familiar::AddToOrbit(*(short *)(iVar9 + 0x18c) + 7); } @@ -288515,7 +288515,7 @@ LAB_0062cbe8: local_24 = 0x3f800000; local_20 = 0; local_1c = 0x3f800000; - FUN_009960b0(&local_38); + Game::start_poop_cloud_screen_effect(&local_38); local_38 = 0x3f800000; local_34 = 0x3f800000; local_30 = 0x3f800000; @@ -288915,7 +288915,7 @@ void Entity_Familiar::AddToFollowers(void) } in_ECX->_isFollower = 1; iVar12 = GetFollowerPriority(); - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); local_8 = 2; uVar10 = 0; if (local_1c != 0) { @@ -289010,7 +289010,7 @@ LAB_0062df8f: if (in_ECX->_player != (void *)0x0) { std::multiset::insert(puVar1); } - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); local_8 = 0; uVar10 = 0; if (local_1c != 0) { @@ -289263,7 +289263,7 @@ void FUN_0062e120(void) } *(float *)(in_ECX + 0x360) = *(float *)(in_ECX + 0x360) * 0.8836; *(float *)(in_ECX + 0x364) = *(float *)(in_ECX + 0x364) * 0.8836; - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)(iVar5 + 0x18300) + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)(iVar5 + 0x18300) + 0x1218)); uVar9 = 0; if (local_44 != 0) { do { @@ -289360,9 +289360,9 @@ LAB_0062e5c3: } -//@@ 0062e620 FUN_0062e620 +//@@ 0062e620 Entity_Familiar::update_weapon -void FUN_0062e620(undefined4 param_1) +void Entity_Familiar::update_weapon(undefined4 param_1) { int iVar1; @@ -290095,7 +290095,7 @@ LAB_0062f8e5: local_18 = *(float *)(*(int *)(in_ECX + 0x410) + 0x33c); local_1c = *(int **)(*(int *)(in_ECX + 0x410) + 0x340); local_24 = (int *)0x42a00000; - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); local_8 = 0; uVar5 = 0; if (local_4c != 0) { @@ -290642,9 +290642,9 @@ void __thiscall Menu_Stats::Render(Menu_Stats *this,int param_2) else { local_41 = '\0'; } - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); local_8 = 0; - FUN_004174c0(local_60 + 1); + buffer_init(local_60 + 1); local_8 = CONCAT31(local_8._1_3_,1); local_54 = 0; local_4c = local_78; @@ -290658,8 +290658,8 @@ void __thiscall Menu_Stats::Render(Menu_Stats *this,int param_2) &IsaacRepentancePlus::Entity_Familiar:: RTTI_Type_Descriptor,0), local_70 = (uint)local_48, *(int *)(iVar7 + 0xd70) == iVar14)) { - iVar8 = FUN_00612330(); - iVar9 = FUN_00612330(); + iVar8 = Entity_Familiar::get_orbit_parent(); + iVar9 = Entity_Familiar::get_orbit_parent(); local_70 = (uint)local_48; if (iVar8 == iVar9) { if (((*(int *)(iVar7 + 0x28) == 3) && (*(int *)(iVar7 + 0x2c) == 0xce)) && @@ -290796,7 +290796,7 @@ LAB_00630acd: piVar11[0x5b] = piVar11[0x5b] | 0x80; piVar11[0xe0] = iVar7; piVar11[0x5a] = piVar11[0x5a]; - FUN_0041b4f0(piVar11); + EntityList::AddPersistentEntity(piVar11); if (*ppvVar1 != (void *)0x0) { local_50 = ppvVar1; std::multiset::erase(&local_50); @@ -291051,7 +291051,7 @@ void Entity_Familiar::MoveDelayed(int param_1) } cVar3 = Entity_Player::HasTrinket(0x6d,0); if (cVar3 != '\0') { - FUN_00631850(); + Entity_Familiar::move_to_parent_offset(); return; } if ((*(float *)(in_ECX + 0xd90) == DAT_00c7b640) && (*(float *)(in_ECX + 0xd94) == DAT_00c7b644)) @@ -291059,7 +291059,7 @@ void Entity_Familiar::MoveDelayed(int param_1) iVar7 = *(int *)(in_ECX + 0x5f8); } else { - FUN_006348d0(); + Entity_Familiar::reset_follow_target(); iVar7 = -1; } iVar5 = *(int *)(in_ECX + 0x410); @@ -291280,9 +291280,9 @@ uint Entity_Familiar::MoveDiagonally(float param_1) } -//@@ 00631850 FUN_00631850 +//@@ 00631850 Entity_Familiar::move_to_parent_offset -void FUN_00631850(void) +void Entity_Familiar::move_to_parent_offset(void) { float *pfVar1; @@ -291298,7 +291298,7 @@ void FUN_00631850(void) *(undefined4 *)(in_ECX + 0x364) = DAT_00c7b644; fVar2 = *(float *)(*(int *)(in_ECX + 0x410) + 0x33c); fVar4 = *(float *)(*(int *)(in_ECX + 0x410) + 0x340); - pfVar1 = (float *)FUN_00634260(local_10); + pfVar1 = (float *)Entity_Familiar::UpdateFollowPosition(local_10); fVar3 = pfVar1[1]; *(float *)(in_ECX + 0x33c) = fVar2 + *pfVar1; *(float *)(in_ECX + 0x340) = fVar4 + fVar3; @@ -291306,7 +291306,7 @@ void FUN_00631850(void) } fVar2 = *(float *)(*(int *)(in_ECX + 0x410) + 0x33c); fVar4 = *(float *)(*(int *)(in_ECX + 0x410) + 0x340); - pfVar1 = (float *)FUN_00634260(local_10); + pfVar1 = (float *)Entity_Familiar::UpdateFollowPosition(local_10); fVar2 = (fVar2 + *pfVar1) - *(float *)(in_ECX + 0x33c); fVar3 = (fVar4 + pfVar1[1]) - *(float *)(in_ECX + 0x340); *(float *)(in_ECX + 0x360) = fVar2; @@ -291560,7 +291560,7 @@ void __thiscall Entity_Familiar::delirium_morph(Entity_Familiar *this) if ((uint)((int)pppsStack_18 - (int)local_1c) < 0x12) { if (0x7fffffffU - (int)local_1c < 0x12) { /* WARNING: Subroutine does not return */ - FUN_0040ccc0(); + std::string::_Xlen(); } pppsVar16 = (size_t ***)((int)local_1c + 0x12U | 0xf); if (pppsVar16 < (size_t ***)0x80000000) { @@ -291936,7 +291936,7 @@ LAB_00632650: fVar5 = 0.0; } else { - iVar3 = FUN_00651810(0x1e); + iVar3 = apply_forgotten_lullaby(0x1e); fVar5 = (1.0 - (float)iVar2 / (float)iVar3) * 100.0; if (fVar5 <= 0.0) { fVar5 = 0.0; @@ -291952,9 +291952,9 @@ LAB_00632650: goto LAB_0063263a; } iVar2 = *(int *)(in_ECX + 0xd4c); - iVar3 = FUN_00651810(0x1e); + iVar3 = apply_forgotten_lullaby(0x1e); local_10 = 1.0 - (float)(iVar2 + 1) / (float)iVar3; - iVar2 = FUN_00651810(0x1e); + iVar2 = apply_forgotten_lullaby(0x1e); if (*(int *)(in_ECX + 0xd4c) == iVar2) { iVar3 = 0; goto LAB_0063263a; @@ -292074,7 +292074,7 @@ void FUN_00632820(void) ExceptionList = &local_10; local_94 = in_ECX; local_14 = uVar6; - uVar7 = FUN_00651810(0x1e); + uVar7 = apply_forgotten_lullaby(0x1e); cVar5 = Entity::IsFrame(uVar7,0); if (cVar5 != '\0') { local_8c = (int *)0x0; @@ -292241,9 +292241,9 @@ LAB_00632b80: uVar7 = Game::Spawn(2,0,in_ECX + 0x33c,&local_90,in_ECX,0,uVar7); pEVar9 = (Entity_Tear *)__RTDynamicCast(uVar7,uVar20,pTVar21,pTVar22,uVar23); pEVar9->_fallingSpeed = 1.2; - FUN_0060dc40(); + Entity_Familiar::apply_tear_modifiers(); local_84 = piVar19; - FUN_0060dc40(); + Entity_Familiar::apply_tear_modifiers(); local_80 = (float)piVar19 * 0.2 + 0.7; pcVar4 = *(code **)(*(int *)pEVar9 + 0x40); uVar6 = Random(); @@ -292256,8 +292256,8 @@ LAB_00632b80: pEVar9->_baseScale = fVar18; pEVar9->_fScale = fVar18; Entity_Tear::ResetSpriteScale(pEVar9); - FUN_00634000(pEVar9); - FUN_0064bb70(pEVar9); + Entity_Familiar::TryFireTear(pEVar9); + Entity::convert_shot_for_enemy_owner(pEVar9); in_ECX = local_94; } if ((*(int *)(in_ECX + 0x7c) != 0) && (*(char *)(*(int *)(in_ECX + 0x7c) + 0x34) != '\0')) { @@ -292633,7 +292633,7 @@ LAB_00633662: /* WARNING: Subroutine does not return */ KAGE_LogMessage(0x10,"[err] Angry Fly - Got a null target!\n"); } - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); local_8 = 1; uVar3 = 0; local_14 = (undefined4 *)0x0; @@ -293061,11 +293061,11 @@ LAB_00633f7c: } -//@@ 00634000 FUN_00634000 +//@@ 00634000 Entity_Familiar::TryFireTear /* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */ -undefined1 FUN_00634000(int *param_1) +undefined1 Entity_Familiar::TryFireTear(int *param_1) { int iVar1; @@ -293209,9 +293209,9 @@ char FUN_006341a0(int *param_1) } -//@@ 00634260 FUN_00634260 +//@@ 00634260 Entity_Familiar::UpdateFollowPosition -void FUN_00634260(float *param_1) +void Entity_Familiar::UpdateFollowPosition(float *param_1) { int iVar1; @@ -293267,7 +293267,7 @@ void FUN_00634260(float *param_1) local_24 = (undefined4 *)0x0; local_30 = puVar4; if (*(char *)(in_ECX + 0xda4) != '\0') { - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); uVar6 = 0; local_14 = CONCAT31(local_14._1_3_,1); if (local_3c != 0) { @@ -293464,9 +293464,9 @@ void FUN_00634260(float *param_1) } -//@@ 006348d0 FUN_006348d0 +//@@ 006348d0 Entity_Familiar::reset_follow_target -void FUN_006348d0(void) +void Entity_Familiar::reset_follow_target(void) { int in_ECX; @@ -293539,9 +293539,9 @@ undefined4 FUN_00634920(void) } -//@@ 00634a40 FUN_00634a40 +//@@ 00634a40 Entity_Familiar::ResolveOrbitConflict -void FUN_00634a40(void) +void Entity_Familiar::ResolveOrbitConflict(void) { char cVar1; @@ -293565,7 +293565,7 @@ void FUN_00634a40(void) if (*(char *)(in_ECX + 0xda4) != '\0') { cVar1 = FUN_00634920(uVar2); if (cVar1 == '\0') { - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); uVar3 = 0; if (local_14 != 0) { do { @@ -293727,14 +293727,14 @@ LAB_00634ca6: } else { if (iVar2 < 1) { - FUN_0060dc40(); + Entity_Familiar::apply_tear_modifiers(); local_54[4] = 0; local_60 = (undefined1 *)((fVar11 * 0.25 + 0.75) * 0.8); fVar11 = 0.0; local_8c = 0; uStack_84 = 0; FUN_00633990(local_54,local_54 + 4,&local_8c); - FUN_0060dc40(); + Entity_Familiar::apply_tear_modifiers(); local_7c = fVar11; if (local_54[0] == 0) { /* WARNING: Subroutine does not return */ @@ -293847,15 +293847,15 @@ LAB_00634ca6: (**(code **)(*(int *)pEVar4 + 0x3c))(&local_34,0xffffffff,0xff,0,1); uVar9 = Random(); pEVar4->_tearIdx = uVar9 & 1; - FUN_00634000(pEVar4); - FUN_0064bb70(pEVar4); + Entity_Familiar::TryFireTear(pEVar4); + Entity::convert_shot_for_enemy_owner(pEVar4); if (uVar10 == 0) { /* WARNING: Subroutine does not return */ KAGE_LogMessage(0x10,"RNG Seed is zero!\n"); } uVar10 = uVar10 >> ((byte)local_54[1] & 0x1f) ^ uVar10; uVar10 = uVar10 << ((byte)local_54[2] & 0x1f) ^ uVar10; - uVar3 = FUN_00651810((uVar10 >> ((byte)local_54[3] & 0x1f) ^ uVar10) % 0xc + 10); + uVar3 = apply_forgotten_lullaby((uVar10 >> ((byte)local_54[3] & 0x1f) ^ uVar10) % 0xc + 10); *(undefined4 *)(in_ECX + 0xd4c) = uVar3; *(undefined4 *)(in_ECX + 0xd50) = 0x12; } @@ -294576,7 +294576,7 @@ void FUN_00635390(void) local_60 = (float)pbVar19 * 10.0; local_5c = (float)local_4c * 10.0; FUN_009f6e60(in_ECX + 0x33c,&local_60,7,in_ECX,0x3f800000,uVar7); - FUN_00634000(); + Entity_Familiar::TryFireTear(); } } else { @@ -294604,7 +294604,7 @@ void FUN_00635390(void) local_60 = (float)pbVar19 * 10.0; local_5c = (float)local_4c * 10.0; FUN_009f6e60(in_ECX + 0x33c,&local_60,7,in_ECX,0x3f800000,uVar7); - FUN_00634000(); + Entity_Familiar::TryFireTear(); local_48 = local_48 + 1; } while ((int)local_48 < 4); } @@ -294637,7 +294637,7 @@ void FUN_00635390(void) local_60 = local_b8 + *(float *)(in_ECX + 0x33c); local_5c = local_b4 + *(float *)(in_ECX + 0x340); FUN_009f6e60(&local_60,&local_b0,7,in_ECX,0x3f800000,uVar7); - FUN_00634000(); + Entity_Familiar::TryFireTear(); local_48 = local_48 + 1; } while ((int)local_48 < (int)(short)local_a8); } @@ -294670,7 +294670,7 @@ void FUN_00635390(void) local_70 = (byte *)((float)local_4c * 10.0); local_74 = (byte *)((float)pbVar19 * 10.0); Entity_Player::FireTear(in_ECX + 0x33c,local_74,local_70,7,0,0x3f800000); - FUN_00634000(); + Entity_Familiar::TryFireTear(); } } else { @@ -294697,7 +294697,7 @@ void FUN_00635390(void) local_70 = (byte *)((float)local_4c * 10.0); local_74 = (byte *)((float)pbVar19 * 10.0); Entity_Player::FireTear(in_ECX + 0x33c,local_74,local_70,7,0,0x3f800000); - FUN_00634000(); + Entity_Familiar::TryFireTear(); local_48 = local_48 + 1; } while ((int)local_48 < 4); } @@ -294731,7 +294731,7 @@ void FUN_00635390(void) local_60 = local_b8 + *(float *)(in_ECX + 0x33c); local_5c = local_b4 + *(float *)(in_ECX + 0x340); Entity_Player::FireTear(&local_60,local_b0,local_ac,7,0,0x3f800000); - FUN_00634000(); + Entity_Familiar::TryFireTear(); local_48 = local_48 + 1; } while ((int)local_48 < (int)(short)local_a8); } @@ -294810,7 +294810,7 @@ void FUN_00635390(void) pEVar9->_baseScale = (float)pbVar19; pEVar9->_fScale = (float)pbVar19; Entity_Tear::ResetSpriteScale(pEVar9); - FUN_00634000(); + Entity_Familiar::TryFireTear(); local_84 = local_84 + -1; } while (local_84 != 0); } @@ -295282,7 +295282,7 @@ LAB_00637be3: std::multiset::insert(piVar7); uVar6 = *(undefined4 *)(in_ECX + 0xdc0); } - FUN_0064bb70(uVar6); + Entity::convert_shot_for_enemy_owner(uVar6); } if ((*(int *)(in_ECX + 0x7c) != 0) && (*(char *)(in_ECX + 0x8c) == '\0')) { pbVar11 = *(byte **)(in_ECX + 0x7c); @@ -295533,7 +295533,7 @@ void FUN_006384a0(void) FUN_0063b240(); } if ((in_ECX[0x353] < 0) && (iVar4 = in_ECX[0x353] + 1, in_ECX[0x353] = iVar4, iVar4 == 0)) { - iVar4 = FUN_00651810(0x1e); + iVar4 = apply_forgotten_lullaby(0x1e); in_ECX[0x353] = iVar4; } iVar4 = in_ECX[0x104]; @@ -295589,7 +295589,7 @@ void FUN_006384a0(void) if (iVar4 < 3) { iVar5 = iVar4; } - FUN_00651810(0x1e); + apply_forgotten_lullaby(0x1e); puVar2 = (&PTR_s_ChargeSide_00b644b4)[iVar5]; FUN_0040bcd0(puVar2); cVar3 = ANM2::SetAnimation(puVar2,1); @@ -295611,7 +295611,7 @@ void FUN_006384a0(void) in_ECX[0x357] = local_30; return; } - iVar6 = FUN_00651810(0x1e); + iVar6 = apply_forgotten_lullaby(0x1e); iVar4 = in_ECX[0x353]; if (iVar4 == iVar6) { *(bool *)(in_ECX + 0x52) = iVar5 == 0; @@ -295622,11 +295622,11 @@ void FUN_006384a0(void) if (iVar4 < 1) { return; } - iVar4 = FUN_00651810(0x1e); + iVar4 = apply_forgotten_lullaby(0x1e); in_ECX[0x353] = iVar4; return; } - iVar4 = FUN_00651810(0xfffffff1); + iVar4 = apply_forgotten_lullaby(0xfffffff1); in_ECX[0x353] = iVar4; uVar1 = *(undefined4 *)(&UNK_00b64674 + local_34 * 4); *(bool *)(in_ECX + 0x52) = local_34 == 0; @@ -295750,7 +295750,7 @@ int * __thiscall Entity_Familiar::FireBrimstone(Entity_Familiar *this,float *par atan2f(); fVar3 = fVar3 * 57.295776; piVar2 = (int *)Entity_Laser::ShootAngle(1,&this->_pos,fVar3,8,&local_4c,this,0); - FUN_0060dc40(); + Entity_Familiar::apply_tear_modifiers(); (**(code **)(*piVar2 + 0x40))(fVar3 * 3.0); piVar2[0x138] = 0x3f000000; Entity_Laser::ResetSpriteScale(); @@ -295777,7 +295777,7 @@ int * __thiscall Entity_Familiar::FireBrimstone(Entity_Familiar *this,float *par (**(code **)(*piVar2 + 0x3c))(&local_40,0xffffffff,0xff,0,1); } FUN_006341a0(piVar2); - FUN_0064bb70(piVar2); + Entity::convert_shot_for_enemy_owner(piVar2); (**(code **)(*piVar2 + 0xc))(); if (*(int *)&this->field_0xdc0 != 0) { local_48 = &this->field_0xdc0; @@ -295870,11 +295870,11 @@ void spawn_blue_spider(float *param_1) return; } -//@@ 00639000 FUN_00639000 +//@@ 00639000 Entity_Familiar::ThrowDip /* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */ -int FUN_00639000(int param_1) +int Entity_Familiar::ThrowDip(int param_1) { int *piVar1; @@ -295918,7 +295918,7 @@ int FUN_00639000(int param_1) piVar12 = (int *)0x0; local_80 = 1e+10; local_64 = (int *)0x0; - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); fVar4 = local_74; local_14 = 0.0; uVar10 = 0; @@ -296046,9 +296046,9 @@ LAB_006392f7: } -//@@ 006393a0 FUN_006393a0 +//@@ 006393a0 spawn_dip_at -void FUN_006393a0(undefined4 param_1,float *param_2) +void spawn_dip_at(undefined4 param_1,float *param_2) { int iVar1; @@ -296090,7 +296090,7 @@ void FUN_006393a0(undefined4 param_1,float *param_2) } fVar5 = (local_24 - *in_EDX) * 0.04; local_18 = (local_1c - in_EDX[1]) * 0.04; - iVar1 = FUN_00639000(param_1); + iVar1 = Entity_Familiar::ThrowDip(param_1); *(float *)(iVar1 + 0x334) = local_24; *(float *)(iVar1 + 0x360) = fVar5; *(float *)(iVar1 + 0x364) = local_18; @@ -296309,9 +296309,9 @@ Entity_Tear * Entity_Familiar::FireProjectile(float *param_1,char param_2) puStack_13c = (undefined1 *)0x0; local_138 = (undefined1 *)0x0; puStack_134 = (undefined1 *)0x0; - FUN_0060dc40(); + Entity_Familiar::apply_tear_modifiers(); local_124 = auVar12._0_4_; - FUN_0060dc40(); + Entity_Familiar::apply_tear_modifiers(); fVar10 = 0.8; local_148 = 3.5; local_10c = (undefined1 *)0x0; @@ -296688,8 +296688,8 @@ LAB_0063a552: std::multiset::insert(&pEVar6->field_0x3bc); uVar7 = Random(); pEVar6->_tearIdx = uVar7 & 1; - FUN_00634000(pEVar6); - FUN_0064bb70(pEVar6); + Entity_Familiar::TryFireTear(pEVar6); + Entity::convert_shot_for_enemy_owner(pEVar6); local_124 = local_124 + 2; local_128 = (undefined1 *)((int)local_128 + -1); } while (local_128 != (undefined1 *)0x0); @@ -296721,8 +296721,8 @@ LAB_0063a552: (**(code **)(*(int *)pEVar6 + 0x3c))(&local_b0,0xffffffff,0xff,0,1); uVar7 = Random(); pEVar6->_tearIdx = uVar7 & 1; - FUN_00634000(pEVar6); - FUN_0064bb70(pEVar6); + Entity_Familiar::TryFireTear(pEVar6); + Entity::convert_shot_for_enemy_owner(pEVar6); return pEVar6; } local_124 = (float *)0x0; @@ -296785,8 +296785,8 @@ LAB_0063a552: std::multiset::insert(&pEVar6->field_0x3bc); uVar7 = Random(); pEVar6->_tearIdx = uVar7 & 1; - FUN_00634000(pEVar6); - FUN_0064bb70(pEVar6); + Entity_Familiar::TryFireTear(pEVar6); + Entity::convert_shot_for_enemy_owner(pEVar6); local_124 = (float *)((int)local_124 + 1); } while ((int)local_124 < 4); return pEVar6; @@ -297138,11 +297138,11 @@ void FUN_0063b240(void) } -//@@ 0063b340 FUN_0063b340 +//@@ 0063b340 Entity_Familiar::update_idle_anim_by_size /* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */ -void FUN_0063b340(void) +void Entity_Familiar::update_idle_anim_by_size(void) { float fVar1; @@ -297215,9 +297215,9 @@ LAB_0063b43a: } -//@@ 0063b4a0 FUN_0063b4a0 +//@@ 0063b4a0 Entity_Familiar::GetFollowTargetPosition -undefined4 * FUN_0063b4a0(undefined4 *param_1,char param_2) +undefined4 * Entity_Familiar::GetFollowTargetPosition(undefined4 *param_1,char param_2) { char cVar1; @@ -297271,7 +297271,7 @@ undefined4 * FUN_0063b4a0(undefined4 *param_1,char param_2) } local_4c = local_44; local_50 = local_48; - cVar1 = FUN_00612890(); + cVar1 = Entity_Familiar::is_detached_from_follow(); if ((cVar1 != '\0') && (cVar1 = Entity_Player::HasTrinket(0xb3,0), cVar1 != '\0')) { pfVar2 = (float *)MusicManager::RandomVector(local_38); local_50 = local_50 + *pfVar2; @@ -297399,7 +297399,7 @@ LAB_0063b918: if (*(int *)(in_ECX[0x104] + 0x180c) < 1) { return; } - FUN_0075e320(0xc,-*(int *)(in_ECX[0x104] + 0x180c)); + Entity_Player::IncrementPlayerFormCounter(0xc,-*(int *)(in_ECX[0x104] + 0x180c)); return; case 0xf4: TemporaryEffects::RemoveNullEffect(0x6b,1); @@ -298131,13 +298131,13 @@ void FUN_0063ce20(void) if ((-1 < *(int *)(in_ECX + 0xd58)) && (*(int *)(in_ECX + 0xd4c) < 1)) { Isaac::GetAxisAlignedUnitVectorFromDir(); if (*(int *)(in_ECX + 0x30) == 99) { - iVar1 = FUN_004360f0(); + iVar1 = _get_index_plus_one_if_kind_4_5(); piVar6 = (int *)((float)iVar1 * 0.15 + 1.2); local_20[0] = piVar6; - FUN_0060dc40(); + Entity_Familiar::apply_tear_modifiers(); fVar7 = ((float)piVar6 * 0.4 + 0.6) * (float)local_20[0]; local_24 = fVar7; - FUN_0060dc40(); + Entity_Familiar::apply_tear_modifiers(); local_2c = (fVar7 * 0.25 + 0.75) * 0.7; uVar2 = Random(); local_34 = *(float *)(in_ECX + 0x33c); @@ -298164,7 +298164,7 @@ void FUN_0063ce20(void) fVar7 = local_30 * DAT_00c3793c; piVar3[0x3a] = (int)(local_30 * DAT_00c37940); piVar3[0x39] = (int)fVar7; - FUN_009680d0(); + Entity_Knife::SetAttackAnimation(); (**(code **)(*piVar3 + 0xc))(); *(undefined4 *)(in_ECX + 0xd4c) = 0x14; seed_fart_sound_override(); @@ -298195,13 +298195,13 @@ void FUN_0063ce20(void) } local_2c = local_18 * 9.0 + (float)piVar6; local_28 = local_14 * 9.0 + local_34; - iVar1 = FUN_004360f0(); + iVar1 = _get_index_plus_one_if_kind_4_5(); piVar6 = (int *)((float)iVar1 * 0.15 + 1.2); local_20[0] = piVar6; - FUN_0060dc40(); + Entity_Familiar::apply_tear_modifiers(); piVar6 = (int *)(((float)piVar6 * 0.4 + 0.6) * (float)local_20[0]); local_20[0] = piVar6; - FUN_0060dc40(); + Entity_Familiar::apply_tear_modifiers(); local_24 = ((float)piVar6 * 0.25 + 0.75) * 0.5; uVar2 = Random(); pEVar5 = (Entity_Tear *)Game::SpawnEx(2,0,in_ECX + 0x33c,&local_2c,in_ECX,0,uVar2,0); @@ -298220,9 +298220,9 @@ void FUN_0063ce20(void) pEVar5->_baseScale = fVar7; pEVar5->_fScale = fVar7; Entity_Tear::ResetSpriteScale(pEVar5); - FUN_00634000(pEVar5); + Entity_Familiar::TryFireTear(pEVar5); (**(code **)(*(int *)pEVar5 + 0xc))(); - FUN_0064bb70(pEVar5); + Entity::convert_shot_for_enemy_owner(pEVar5); *(undefined4 *)(in_ECX + 0xd4c) = 10; local_24 = 2.14399e-43; seed_fart_sound_override(); @@ -298674,7 +298674,7 @@ void FUN_0063e180(void) piVar13 = (int *)Game::SpawnEx(2,1,in_ECX + 0xcf,&fStack_98,in_ECX,0,uVar8,0); piVar13[0x106] = (int)((float)piVar13[0x106] - 0.099); (**(code **)(*piVar13 + 0x40))(0x40600000); - FUN_0064bb70(piVar13); + Entity::convert_shot_for_enemy_owner(piVar13); } in_ECX[0xd8] = (int)((float)in_ECX[0xd8] + (float)in_ECX[0xcd]); in_ECX[0xd9] = (int)((float)in_ECX[0xce] + (float)in_ECX[0xd9]); @@ -298765,7 +298765,7 @@ LAB_0063ead6: piVar13 = (int *)Game::SpawnEx(2,1,in_ECX + 0xcf,&fStack_98,in_ECX,0,uVar8,0); piVar13[0x106] = (int)((float)piVar13[0x106] - 0.099); (**(code **)(*piVar13 + 0x40))(0x40a00000); - FUN_0064bb70(piVar13); + Entity::convert_shot_for_enemy_owner(piVar13); fStack_b8 = (float)((int)fStack_b8 + 1); } while ((uint)fStack_b8 < 8); fStack_b8 = 0.0; @@ -298783,7 +298783,7 @@ LAB_0063ead6: piVar13 = (int *)Game::SpawnEx(2,1,in_ECX + 0xcf,&fStack_98,in_ECX,0,uVar8,0); piVar13[0x106] = (int)((float)piVar13[0x106] - 0.099); (**(code **)(*piVar13 + 0x40))(0x40a00000); - FUN_0064bb70(piVar13); + Entity::convert_shot_for_enemy_owner(piVar13); fStack_b8 = (float)((int)fStack_b8 + 1); } while ((uint)fStack_b8 < 0xe); } @@ -298875,7 +298875,7 @@ LAB_0063ead6: Entity_Tear::ResetSpriteScale(pEVar9); Entity_Projectile::SetHeight(pEVar9->_height - 10.0); (**(code **)(*(int *)pEVar9 + 0x40))(fStack_b4 + 3.0); - FUN_0064bb70(pEVar9); + Entity::convert_shot_for_enemy_owner(pEVar9); uStack_70 = Random(); fStack_ac = DAT_00c71678; fStack_a4 = 0.0; @@ -299486,7 +299486,7 @@ void FUN_00640050(void) } } if (piVar2 == *(int **)(iVar1 + 0x1514)) { - FUN_004b39b0(piVar2,&local_1c); + std::vector::_Emplace_reallocate(piVar2,&local_1c); iVar5 = local_1c; } else { @@ -299803,7 +299803,7 @@ void FUN_006403f0(void) piVar6[0xcf] = (int)(*(float *)((int)in_ECX + 0x33c) - *(float *)((int)in_ECX + 0x334) * 8.0); piVar6[0xd0] = (int)(fVar12 - (fVar10 + fVar10)); (**(code **)(*piVar6 + 0xc))(); - FUN_0064bb70(piVar6); + Entity::convert_shot_for_enemy_owner(piVar6); uVar4 = *(uint *)((int)in_ECX + 0xd4c); } if ((0x3c < (int)uVar4) || @@ -301004,9 +301004,9 @@ LAB_00642705: } -//@@ 00642cb0 FUN_00642cb0 +//@@ 00642cb0 FamiliarAI::tinytoma -void FUN_00642cb0(void) +void FamiliarAI::tinytoma(void) { char cVar1; @@ -301399,7 +301399,7 @@ LAB_00643235: std::multiset::insert(&pEVar7->field_0x3c4); } (**(code **)(*(int *)pEVar7 + 0xc))(); - uVar4 = FUN_0064bb70(pEVar7); + uVar4 = Entity::convert_shot_for_enemy_owner(pEVar7); pbVar3 = local_14[0]; } else { @@ -302854,7 +302854,7 @@ void FUN_00645bc0(void) uVar10 = uStack_7c; auStack_30[0] = uStack_7c; if (1 < *(int *)(DAT_00c71678 + 0x26614)) { - FUN_0042b560(auStack_30,&iStack_78,&uStack_74); + ItemPool::ReplaceBlacklistedPickup(auStack_30,&iStack_78,&uStack_74); } piStack_68 = (int *)EntityFactory::Create(uVar10,0); if (piStack_68 != (int *)0x0) { @@ -302975,7 +302975,7 @@ code_r0x006466b1: iVar1 = iStack_78; aiStack_50[0] = iStack_78; if (1 < *(int *)(DAT_00c71678 + 0x26614)) { - FUN_0042b560(aiStack_50,&uStack_7c,&uStack_80); + ItemPool::ReplaceBlacklistedPickup(aiStack_50,&uStack_7c,&uStack_80); } piStack_64 = (int *)EntityFactory::Create(iVar1,0); if (piStack_64 != (int *)0x0) { @@ -303358,32 +303358,32 @@ LAB_00646f6c: fVar9 = 1.0; } local_44 = fVar9; - FUN_0060dc40(); + Entity_Familiar::apply_tear_modifiers(); *(float *)(in_ECX + 0x388) = fVar9 * (local_44 * 25.0 + 0.0); ExceptionList = local_10; return; } -//@@ 006470c0 FUN_006470c0 +//@@ 006470c0 Entity_Familiar::get_item_config_entry -void FUN_006470c0(void) +void Entity_Familiar::get_item_config_entry(void) { int in_ECX; if (*(int *)(in_ECX + 0x2c) == 0xe7) { - FUN_006470f0(); + ItemConfig::get_wisp_entry(); return; } - FUN_006470f0(); + ItemConfig::get_wisp_entry(); return; } -//@@ 006470f0 FUN_006470f0 +//@@ 006470f0 ItemConfig::get_wisp_entry -int FUN_006470f0(void) +int ItemConfig::get_wisp_entry(void) { int iVar1; @@ -303580,7 +303580,7 @@ void FUN_00647320(void) iVar4 = in_ECX[0x362]; in_ECX[0x5b] = in_ECX[0x5b]; if (iVar4 < 1) { - local_20 = (float)FUN_006470f0(); + local_20 = (float)ItemConfig::get_wisp_entry(); if (in_ECX[0x353] < 0) { in_ECX[0x362] = -1; FUN_0064a2d0(); @@ -304062,7 +304062,7 @@ LAB_006476de: } pfVar6 = DAT_00c7fffc; DAT_00c80000 = DAT_00c7fffc; - local_18 = (float *)FUN_006470c0(); + local_18 = (float *)Entity_Familiar::get_item_config_entry(); local_14 = (float *)0x0; local_2c = *(float **)(DAT_00c71678 + 0x18300); if (local_2c[0x499] != 0.0) { @@ -304073,7 +304073,7 @@ LAB_006476de: local_20 = fVar13; if (((*(int *)((int)fVar13 + 0x410) == in_ECX[0x104]) && (*(int *)((int)fVar13 + 0x2c) == in_ECX[0xb])) && - ((iVar4 = FUN_006470f0(), ((uint)local_18[6] & 4) == 0 || + ((iVar4 = ItemConfig::get_wisp_entry(), ((uint)local_18[6] & 4) == 0 || ((*(byte *)(iVar4 + 0x18) & 4) == 0)))) { if (pfVar6 == DAT_00c80004) { std::vector<4byte>::_Emplace_reallocate(pfVar6,&local_20); @@ -304204,7 +304204,7 @@ void __thiscall Entity_NPC::HandleCollision(Entity_NPC *this) local_14 = DAT_00bf93b4 ^ (uint)(local_2c + 10); ExceptionList = &local_10; local_144 = this; - iVar4 = FUN_006470f0(local_14); + iVar4 = ItemConfig::get_wisp_entry(local_14); local_14c = iVar4; iVar5 = __RTDynamicCast(*(undefined4 *)&this->field_0xee0,0, &IsaacRepentancePlus::Entity_Familiar::ExtraData::RTTI_Type_Descriptor, @@ -305081,7 +305081,7 @@ undefined1 FUN_0064a2d0(void) if (piVar1[0xf] == 0) { return 0; } - iVar7 = FUN_006470c0(); + iVar7 = Entity_Familiar::get_item_config_entry(); uVar8 = 0; uStack_90 = 0; uStack_80 = *(uint *)(iVar7 + 8); @@ -305241,7 +305241,7 @@ void FUN_0064a830(void) local_1c = ExceptionList; local_24 = DAT_00bf93b4 ^ (uint)(local_44 + 0x34); ExceptionList = &local_1c; - iVar3 = FUN_006470f0(local_24); + iVar3 = ItemConfig::get_wisp_entry(local_24); if (*(int *)(in_ECX + 0x330) == 0) goto LAB_0064aa74; ANM2::Load((ANM2 *)(in_ECX + 0x48),*(int *)(in_ECX + 0x330) + 0x74,1); local_78 = (byte *)(in_ECX + 0x60); @@ -306013,7 +306013,7 @@ void FUN_0064b6c0(ANM2 *param_1,float *param_2) } *(float *)¶m_1->field_0xb4 = fVar3; if (0.0 < fVar3) { - iVar1 = FUN_006470f0(); + iVar1 = ItemConfig::get_wisp_entry(); fVar2 = *(float *)(iVar1 + 0x78) * 0.45; fVar3 = *(float *)(in_ECX + 0x374); (param_1->_scale).y = fVar2 * *(float *)(in_ECX + 0x378); @@ -306103,9 +306103,9 @@ void FUN_0064b920(int param_1,int param_2) } -//@@ 0064bab0 FUN_0064bab0 +//@@ 0064bab0 Entity_Familiar::RemoveFromPlayer -void FUN_0064bab0(void) +void Entity_Familiar::RemoveFromPlayer(void) { int *piVar1; @@ -306145,9 +306145,9 @@ void FUN_0064bab0(void) } -//@@ 0064bb70 FUN_0064bb70 +//@@ 0064bb70 Entity::convert_shot_for_enemy_owner -int * FUN_0064bb70(int *param_1) +int * Entity::convert_shot_for_enemy_owner(int *param_1) { int *piVar1; @@ -306610,7 +306610,7 @@ LAB_0064c748: iVar4 = *(int *)(in_ECX + 0xd4c); iVar11 = iVar4; if ((0 < iVar4) && (iVar11 = iVar4 / 0xf, iVar4 % 0xf == 0)) { - FUN_0060dc40(); + Entity_Familiar::apply_tear_modifiers(); fStack_20 = *pfVar13; uStack_1c = *(undefined4 *)(in_ECX + 0x340); local_34 = *(Entity **)(**(int **)(in_ECX + 0x3c4) + 0x20); @@ -306972,7 +306972,7 @@ Entity_Player::ChangePlayerType(Entity_Player *this,int param_2,uint param_3,uin local_4c[1] = 0; *local_4c = (int)&local_4c; local_8 = 0; - FUN_004b6a90(&local_54); + std::deque::push_front(&local_54); *(undefined2 *)(&this->field_0x0 + local_54 * 2) = 0; if (local_3c != 0) { do { @@ -307000,7 +307000,7 @@ Entity_Player::ChangePlayerType(Entity_Player *this,int param_2,uint param_3,uin } if (uVar6 < *(ushort *)(&local_50->field_0x0 + local_64 * 2)) { *(short *)(&local_50->field_0x0 + local_64 * 2) = (short)uVar6; - FUN_004b6a90(&local_64); + std::deque::push_front(&local_64); } iVar7 = iVar7 + 1; puVar5 = (ushort *)(&pEVar3->field_0x0 + uVar9 * 2); @@ -307817,7 +307817,7 @@ LAB_0064eea4: local_3c = (int *)((float)local_3c + 24.0); } local_74[0] = piVar20; - cVar5 = FUN_0062a8f0(); + cVar5 = Entity_Familiar::CanPlayerFire(); if (((cVar5 == '\0') || (*(int *)(in_ECX[0x104] + 0x162c) == -1)) || (in_ECX[0x356] == -1)) { if (((float)piVar9 == (float)piVar23) && ((float)piVar22 == fVar15)) { fVar15 = 3.0; @@ -307933,7 +307933,7 @@ LAB_0064f39d: local_14 = (char *)0xffffffff; } } - FUN_0062e620(local_38); + Entity_Familiar::update_weapon(local_38); if ((in_ECX[0x362] + 999U < 999) && (iVar8 = in_ECX[0x362] + 1, in_ECX[0x362] = iVar8, -1 < iVar8)) { in_ECX[0x362] = 2; @@ -308148,7 +308148,7 @@ LAB_0064f39d: if (cVar5 == '\0') goto switchD_0064e588_default; if (((*(uint *)(in_ECX[0x104] + 0x134c) & 1) == 0) || (cVar5 = Entity_Player::IsBlackHeart(*(uint *)(in_ECX[0x104] + 0x134c)), cVar5 != '\0')) { - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); fVar15 = 0.0; if (local_54 != 0.0) { do { @@ -308172,7 +308172,7 @@ LAB_0064f39d: if (cVar5 == '\0') goto switchD_0064e588_default; if (((*(uint *)(in_ECX[0x104] + 0x134c) & 1) != 0) && (cVar5 = Entity_Player::IsBlackHeart(*(uint *)(in_ECX[0x104] + 0x134c)), cVar5 == '\0')) { - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); fVar15 = 0.0; if (local_54 != 0.0) { do { @@ -308518,10 +308518,10 @@ void FUN_0064fd40(void) } if ((1 < *(int *)(DAT_00c71678 + 0x26614)) && (*(int *)(in_ECX + 0x3c4) != 0)) { local_c = *(int **)(*(int *)(in_ECX + 0x3c4) + 0x20); - piVar2 = (int *)FUN_00651990(&local_c); + piVar2 = (int *)map_find_value(&local_c); if (599 < *piVar2) { local_c = *(int **)(*(int *)(in_ECX + 0x3c4) + 0x20); - puVar3 = (undefined4 *)FUN_00651990(&local_c); + puVar3 = (undefined4 *)map_find_value(&local_c); *puVar3 = 0xfffffc7c; } } @@ -308555,7 +308555,7 @@ LAB_0064fe64: std::multiset::insert(local_8); (**(code **)(*local_c + 0xc))(); *(undefined1 *)(local_c + 0x52) = *(undefined1 *)(in_ECX + 0x148); - FUN_0041b4f0(local_c); + EntityList::AddPersistentEntity(local_c); if (*(int *)(in_ECX + 0xdc0) != 0) { local_10 = (int *)(in_ECX + 0xdc0); std::multiset::erase(&local_10); @@ -308886,7 +308886,7 @@ LAB_006517bc: puVar6 = (undefined4 *)Room::FindFreePickupSpawnPosition(&local_48,&local_40,0,1,0,0); *(undefined4 *)((int)in_ECX + 0x334) = *puVar6; *(undefined4 *)((int)in_ECX + 0x338) = puVar6[1]; - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); local_8 = 0; uVar5 = 0; if (local_54 != 0) { @@ -309055,7 +309055,7 @@ LAB_00650875: (**(code **)((int)*local_28 + 0xc))(); } else if (fVar18 == 1.27098e-42) { - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); if (local_54 < 2) { local_30 = (float *)(*(float *)(*(int *)(DAT_00c71678 + 0x18300) + 0x18) + 60.0); } @@ -309224,7 +309224,7 @@ LAB_00651068: *(uint *)((int)in_ECX + 0x3dc) = uVar5; local_20 = (float)Game::Spawn(5,100,&local_1c,&DAT_00c7b640,0,uVar8,uVar5); if (local_11 != '\0') { - FUN_006eea30(0xffffffff); + Entity_Pickup::MakeShopItem(0xffffffff); } iVar11 = PlayerManager::FirstCollectibleOwner(0xf9,DAT_00c71678 + 0x1baa8,1); if (iVar11 != 0) { @@ -309300,9 +309300,9 @@ LAB_00651068: *(uint *)((int)in_ECX + 0x3dc) = uVar5; iVar11 = Game::Spawn(5,100,&local_40,&DAT_00c7b640,0,local_24,uVar5); if (local_11 != '\0') { - FUN_006eea30(0xffffffff); + Entity_Pickup::MakeShopItem(0xffffffff); } - uVar8 = FUN_006eed30(); + uVar8 = Entity_Pickup::AssignOptionsIndex(); *(undefined4 *)(iVar11 + 0x528) = uVar8; } LAB_00651625: @@ -309335,9 +309335,9 @@ LAB_00651625: } -//@@ 00651810 FUN_00651810 +//@@ 00651810 apply_forgotten_lullaby -int FUN_00651810(int param_1) +int apply_forgotten_lullaby(int param_1) { char cVar1; @@ -309399,9 +309399,9 @@ int FUN_006518d0(undefined4 param_1) } -//@@ 006518f0 FUN_006518f0 +//@@ 006518f0 set_iterator_post_increment -undefined4 * FUN_006518f0(undefined4 *param_1) +undefined4 * set_iterator_post_increment(undefined4 *param_1) { _Tree_unchecked_const_iterator_>,std::_Iterator_base0> @@ -309447,9 +309447,9 @@ void FUN_00651910(void) } -//@@ 00651990 FUN_00651990 +//@@ 00651990 map_find_value -int FUN_00651990(undefined4 param_1) +int map_find_value(undefined4 param_1) { int *piVar1; @@ -309623,7 +309623,7 @@ void FUN_00651b10(undefined4 *param_1,void *param_2,uint param_3) } if (0x7fffffff - uVar4 < param_3) { /* WARNING: Subroutine does not return */ - FUN_0040ccc0(); + std::string::_Xlen(); } uVar3 = uVar4 + param_3 | 0xf; if (uVar3 < 0x80000000) { @@ -310573,9 +310573,9 @@ void FUN_00652a70(void) } -//@@ 00652a90 FUN_00652a90 +//@@ 00652a90 _has_flag_0x110 -bool FUN_00652a90(uint param_1) +bool _has_flag_0x110(uint param_1) { int in_ECX; @@ -311068,14 +311068,14 @@ LAB_0065334c: if (*(int *)&this->field_0x444 != 800) { ANM2::Play((ANM2 *)pVStack_35c); EntityPtr::Ref(); - FUN_00505b50(); + set_byte_0x101(); Config::GetPillEffects(); AnimationState::GetAnimationLength(); EntityPtr::Ref(); Sprite::SetFrame_1(); this = pEStack_350; *(undefined4 *)&pEStack_350->field_0x444 = 800; - FUN_005cd460(); + Entity::AddFlagsLow(); LAB_00653797: Vector::__mul(); Sprite::SetScale(); @@ -311158,8 +311158,8 @@ LAB_00653797: pVStack_35c = (Vector *)(float)(fVar22 * (float10)0.5); KColor::SetLineHeightModifier(); Vector::__add(); - FUN_004288f0(); - FUN_00428910(); + Entity::SetPosition(); + Entity::SetVelocity(); } } goto LAB_00653bc5; @@ -311168,7 +311168,7 @@ LAB_00653797: if (*(int *)&this->field_0x444 != 900) { ANM2::Play((ANM2 *)pVStack_35c); EntityPtr::Ref(); - FUN_00505b50(); + set_byte_0x101(); Config::GetPillEffects(); AnimationState::GetAnimationLength(); EntityPtr::Ref(); @@ -311224,7 +311224,7 @@ LAB_00653bc5: } } else { - FUN_00a0f690(); + KColor::KColor(); Entity::AddFear((Entity *)&this->_pos); } if (((this->_projectileFlags & 0x20000000000000) != 0) && @@ -311266,7 +311266,7 @@ LAB_00653bc5: random_float(); pVStack_34c = (Vector *)(fVar26 * 0.2 + 0.8); Vector::__mul(); - FUN_00435d60(); + Entity::SetTargetPosition(); random_float(); FUN_004508a0(); if (100 < (int)pVStack_35c) { @@ -311292,10 +311292,10 @@ LAB_00653bc5: } } if ((((this->_projectileFlags & 0x20000000000000) != 0) && (*(int *)&this->field_0x3c4 != 0)) && - (cVar4 = FUN_00431540(), cVar4 != '\0')) { - FUN_00a10350(); + (cVar4 = Entity::IsProjectile(), cVar4 != '\0')) { + Vector::FromAngle(); Vector::operator_mul(); - FUN_00a10350(); + Vector::FromAngle(); Vector::operator_mul(); iVar5 = Game::GetFrameCount(); pVStack_360 = (Vector *) @@ -311307,7 +311307,7 @@ LAB_00653bc5: Vector::operator_mul(); Vector::__add(); pVVar6 = pVStack_360; - FUN_00417160(); + sinf_wrapper(); pVStack_354 = pVVar6; Vector::operator_mul(); Vector::__add(); @@ -311500,7 +311500,7 @@ LAB_0065453a: if (iVar5 != 0) { Level::GetCurrentRoom(); pEVar8 = (Entity_NPC *)FUN_00428a60(); - NpcAI::ENTITY_MASK(pEVar8); + EntityList::QuerySublist(pEVar8); uStack_14 = 3; uVar21 = 0; iVar5 = EntityList::Size(); @@ -311539,7 +311539,7 @@ LAB_006555d5: uStack_14 = 1; Level::GetCurrentRoom(); pEVar8 = (Entity_NPC *)FUN_00428a60(); - NpcAI::ENTITY_MASK(pEVar8); + EntityList::QuerySublist(pEVar8); uStack_14 = CONCAT31(uStack_14._1_3_,2); uVar21 = 0; iVar5 = EntityList::Size(); @@ -311550,7 +311550,7 @@ LAB_006555d5: pVStack_34c = (Vector *)FUN_004aad40(); if ((pVStack_34c != (Vector *)0x0) && (pEVar9 = (Entity_Projectile *)Entity::Target(), pEVar9 == pEVar11)) { - FUN_0042c850(); + std::vector::push_back(); } uVar21 = uVar21 + 1; uVar10 = EntityList::Size(); @@ -311591,12 +311591,12 @@ LAB_006555d5: pVStack_34c = (Vector *)0x40c00000; Vector::__mul(); Vector::__add(); - FUN_004288f0(); + Entity::SetPosition(); random_float(); pVVar6 = (Vector *)(fVar26 * 3.0 + 9.0); pVStack_35c = pVVar6; Vector::__mul(); - FUN_00428910(); + Entity::SetVelocity(); FUN_00447740(); iVar5 = Entity::SubType(); if (iVar5 == 1000) { @@ -311650,7 +311650,7 @@ LAB_006555d5: pVStack_3c4 = pVVar6; Vector::operator_mul(); Vector::__add(); - FUN_004d8910(); + spawn_small_maggot_jump(); pVStack_360 = (Vector *)((int)&pVStack_360[-1].y + 3); } while (pVStack_360 != (Vector *)0x0); Random(); @@ -311728,7 +311728,7 @@ LAB_006555d5: Game::SpawnParticles(); } else if (iVar5 != 6) { - FUN_00652a90(); + _has_flag_0x110(); } Random(); Game::Spawn(); @@ -311793,19 +311793,19 @@ LAB_00655e83: else if (iVar5 == 8) { Color::Color(); Sprite::SetColor(); - FUN_004f88a0(); + rng_pair_init(); uStack_44 = (uint)this->_subtype >> 0x10; uStack_40 = this->_subtype & 0xffff; iStack_34 = this->_initSeed; cVar4 = Entity::HasEntityFlags(); VStack_3c.x = (float)(int)this->_health; uStack_30 = (uint)(cVar4 != '\0'); - FUN_0070c000(); + Entity::DestroyRockGridAt(); } else { if (iVar5 == 9) { Color::Color(); - FUN_00682f50(); + KColor::FromRGBA255(); Sprite::Color(); Color::__mul(); Random(); @@ -311838,7 +311838,7 @@ LAB_00655e83: do { random_float(); fVar26 = (float)pVVar6 * 360.0; - FUN_00a10350(); + Vector::FromAngle(); random_float(); pVVar6 = (Vector *)(fVar26 * 2.0 + 1.0); pVStack_3c4 = pVVar6; @@ -311876,7 +311876,7 @@ LAB_00655e83: Vector::__mul(); pEVar12 = (Entity *)Game::Spawn(); Entity::ClearEntityFlags(); - FUN_00435d20(); + Entity::SetField380(); pAVar13 = (ANM2 *)Entity::GetSprite(); ANM2::Play(pAVar13); FUN_00440ed0(); @@ -311911,7 +311911,7 @@ LAB_00655e83: pVStack_360 = (Vector *)0x0; do { pVVar6 = (Vector *)((float)(int)pVStack_360 * 60.0 + 0.0); - FUN_00a10350(); + Vector::FromAngle(); fStack_380 = 8.0; Vector::operator_mul(); Random(); @@ -311986,7 +311986,7 @@ LAB_00655e83: Entity::SetSpawnerEntity(); FUN_004316b0(); FUN_004b7070(); - FUN_004288f0(); + Entity::SetPosition(); FUN_00435e60(); } } @@ -312224,7 +312224,7 @@ LAB_00655e83: pVStack_384 = (Vector *)0x40000000; pVStack_398 = &this->_pos; Vector::__mul(); - FUN_00a104b0(); + Vector::operator__(); SoundEffects::PlayWithFartOverride2(); Random(); Game::Spawn(); @@ -312240,7 +312240,7 @@ LAB_00655e83: pVStack_358 = (Vector *)0x0; do { pVVar6 = (Vector *)(((float)(int)pVStack_358 * 360.0) / (float)pVStack_37c + 0.0); - FUN_00a10350(); + Vector::FromAngle(); pVStack_384 = (Vector *)0x41200000; Vector::__mul(); Random(); @@ -312360,13 +312360,13 @@ LAB_00655e83: if ((cVar4 == '\0') && ((this->_projectileFlags & 0x80000000) == 0)) { Random(); Game::Spawn(); - FUN_00435d60(); + Entity::SetTargetPosition(); fVar22 = (float10)Entity::HitPoints(); pVStack_398 = (Vector *)(float)fVar22; random_float(); pVVar6 = (Vector *)(fVar26 * 0.2 + 0.6); pVStack_37c = pVVar6; - FUN_00435d20(); + Entity::SetField380(); } else { Random(); @@ -312400,12 +312400,12 @@ LAB_00655e83: if ((cVar4 == '\0') && ((this->_projectileFlags & 0x80000000) == 0)) { Random(); Game::Spawn(); - FUN_00435d60(); + Entity::SetTargetPosition(); fVar22 = (float10)Entity::HitPoints(); pVStack_398 = (Vector *)(float)fVar22; random_float(); pVStack_37c = (Vector *)((float)pVVar6 * 0.2 + 0.4); - FUN_00435d20(); + Entity::SetField380(); } else { Random(); @@ -312426,7 +312426,7 @@ LAB_00655e83: if (*(int *)&this->field_0x3c8 == 0) { LAB_00657ca1: if ((uVar21 & 0x80000000) != 0) goto LAB_00657cca; - FUN_007069a0(); + Game::GetNearestTargetPlayer(); } else { cVar4 = Entity::HasEntityFlags(); @@ -312436,7 +312436,7 @@ LAB_00657ca1: goto LAB_00657ca1; } LAB_00657cca: - FUN_00707370(); + Game::GetNearestEnemy(); } Entity::SetTarget(); } @@ -312455,7 +312455,7 @@ LAB_00657cca: Vector::Normalized(); } pVVar6 = pVStack_358; - FUN_00435d60(); + Entity::SetTargetPosition(); (**(code **)((int)pVVar6->x + 0xc))(); } if ((this->_projectileFlags & 0x80000000000000) != 0) { @@ -312535,10 +312535,10 @@ LAB_006580b1: Vector::__div(); fVar22 = (float10)Vector::GetAngleDegrees(); *(float *)&this->field_0x428 = (float)fVar22; - FUN_00a104b0(); + Vector::operator__(); pVStack_37c = (Vector *)((50.0 - (float)pVStack_360) * 0.1); Vector::__mul(); - FUN_00a101c0(); + vector_lerp(); Entity::Velocity(); Vector::__add(); Vector::operator_assign(); @@ -312560,7 +312560,7 @@ LAB_006580b1: } goto LAB_0065acd8; } - FUN_00a10350(); + Vector::FromAngle(); Vector::operator_mul(); Vector::operator_assign(); *(undefined4 *)&this->field_0x428 = 0x3c75c28f; @@ -312579,10 +312579,10 @@ LAB_006580b1: if (*(int *)&this->field_0x3c4 == 0) { if (((*(int *)&this->field_0x3c8 == 0) || (cVar4 = Entity::HasEntityFlags(), cVar4 == '\0')) && ((this->_projectileFlags & 0x80000000) == 0)) { - FUN_007069a0(); + Game::GetNearestTargetPlayer(); } else { - FUN_00707370(); + Game::GetNearestEnemy(); } Entity::SetTarget(); if (*(int *)&this->field_0x3c4 != 0) goto LAB_00658602; @@ -312631,7 +312631,7 @@ LAB_00658602: if (*(int *)&this->field_0x3c8 == 0) { LAB_00658433: if ((uVar21 & 0x80000000) != 0) goto LAB_00658462; - FUN_007069a0(); + Game::GetNearestTargetPlayer(); } else { cVar4 = Entity::HasEntityFlags(); @@ -312641,7 +312641,7 @@ LAB_00658433: goto LAB_00658433; } LAB_00658462: - FUN_00707370(); + Game::GetNearestEnemy(); } Entity::SetTarget(); if (*(int *)&this->field_0x3c4 == 0) goto LAB_00658802; @@ -312745,7 +312745,7 @@ LAB_00658b5a: this = pEStack_350; } else { - FUN_00a104b0(); + Vector::operator__(); Entity::Position(); Vector::__sub(); Vector::Vector(); @@ -312859,7 +312859,7 @@ LAB_006592f6: uStack_390 = puVar14[1]; fVar22 = (float10)Vector::Length(); pVStack_384 = (Vector *)(float)fVar22; - FUN_00a105d0(); + Vector::__div_assign(); Vector::__sub(); fVar22 = (float10)Vector::Length(); pVStack_358 = (Vector *)(float)fVar22; @@ -312892,14 +312892,14 @@ LAB_006592f6: pVStack_34c = (Vector *)(*(float *)&this->field_0x3a4 / 100.0 + (float)fVar22); fVar22 = (float10)Vector::Length(); pVStack_360 = (Vector *)(float)fVar22; - FUN_00a105d0(); + Vector::__div_assign(); Vector::Rotated(); fVar22 = (float10)Vector::Dot(); pVStack_3c4 = (Vector *)(float)fVar22; Vector::__mul(); Vector::__mul(); pVVar6 = (Vector *)(((float)pVStack_34c + (float)pVStack_34c) * 3.1415927); - FUN_00417160(); + sinf_wrapper(); pVStack_354 = pVVar6; Vector::__mul(); if ((float)pVStack_3c4 < (float)pVStack_360) { @@ -312916,7 +312916,7 @@ LAB_006592f6: fVar26 = *(float *)((int)&this->_projectileFlags + 4); } if ((uVar21 & 0x200000) != 0) { - FUN_00417160(); + sinf_wrapper(); Vector::__mul(); Vector::operator_add_assign(); uVar21 = (uint)this->_projectileFlags; @@ -312956,7 +312956,7 @@ LAB_006592f6: pVStack_34c = (Vector *)(int)((float)pVStack_34c / (fVar26 + 1.0)); iVar5 = Entity::FrameCount(); if ((iVar5 == 1) || - ((iVar5 = FUN_00435db0(), 0 < iVar5 && + ((iVar5 = Entity::GetHitPointsLost(), 0 < iVar5 && ((pVVar6 = (Vector *)((int)*(float *)&this->field_0x3a4 % 0x1e), pVVar6 == pVStack_34c || (pVVar6 == (Vector *)0x0)))))) { Vector::Rotated(); @@ -312972,7 +312972,7 @@ LAB_006592f6: pVStack_34c = (Vector *)(int)((float)pVStack_34c / (fVar26 + 1.0)); iVar5 = Entity::FrameCount(); if ((iVar5 == 1) || - ((iVar5 = FUN_00435db0(), 0 < iVar5 && + ((iVar5 = Entity::GetHitPointsLost(), 0 < iVar5 && ((pVVar6 = (Vector *)((int)*(float *)&this->field_0x3a4 % 0xf), pVVar6 == pVStack_34c || (pVVar6 == (Vector *)0x0)))))) { Vector::Rotated(); @@ -313001,7 +313001,7 @@ LAB_00653169: fVar22 = (float10)Vector::Length(); pVStack_35c = (Vector *)(float)fVar22; if (10.0 <= (float)pVStack_35c) { - FUN_00a105d0(); + Vector::__div_assign(); Vector::__mul(); Entity::AddVelocity(); if (*(float *)&this->field_0x3a4 <= 150.0 && *(float *)&this->field_0x3a4 != 150.0) { @@ -313052,7 +313052,7 @@ LAB_00659b08: uVar21 = (uint)this->_projectileFlags; } if ((((uVar21 & 0x20000000) != 0) && (20.0 < *(float *)&this->field_0x3a4)) && - (((iVar5 = FUN_00435db0(), 0 < iVar5 && (iVar5 = Isaac::Random(), iVar5 == 0)) || + (((iVar5 = Entity::GetHitPointsLost(), 0 < iVar5 && (iVar5 = Isaac::Random(), iVar5 == 0)) || (this->_spawnerType == 0x3e)))) { Vector::Vector(); Vector::Vector(); @@ -313141,7 +313141,7 @@ LAB_00659f8a: if (cStack_3bd != '\0') { Level::GetCurrentRoom(); pEVar8 = (Entity_NPC *)FUN_00428a60(); - NpcAI::ENTITY_MASK(pEVar8); + EntityList::QuerySublist(pEVar8); uStack_14 = 6; pVVar6 = (Vector *)0x0; pVStack_34c = (Vector *)0x0; @@ -313173,7 +313173,7 @@ LAB_0065a0e7: Isaac::Random(); Entity_Player::GetTearHitParams(); } - FUN_0065b490(); + TearParams::copy(); Random(); Vector::__unm(); Game::Spawn(); @@ -313336,14 +313336,14 @@ LAB_0065a73e: iVar5 = FUN_0042f160(); if (iVar5 != 0) { do { - FUN_0042f150(); + std::vector::operator__(); Vector::__add(); Level::GetCurrentRoom(); Room::GetGridCollisionAtPos(); Level::GetCurrentRoom(); iVar5 = Room::GetGridCollisionAtPos(); if (iStack_410 <= iVar5) { - FUN_0042f150(); + std::vector::operator__(); Vector::operator_add_assign(); } uVar21 = uVar21 + 1; @@ -313376,7 +313376,7 @@ LAB_0065a73e: *(undefined4 *)((int)&this->_changeFlags + 4) = uVar23; } FUN_0065b500(); - iVar5 = FUN_00435db0(); + iVar5 = Entity::GetHitPointsLost(); if ((0 < iVar5) && (iVar5 = Isaac::Random(), iVar5 == 0)) { Game::GetPlayerManager(); cVar4 = PlayerManager::AnyoneHasCollectible(); @@ -313422,7 +313422,7 @@ LAB_0065a73e: cVar4 = PlayerManager::AnyoneHasCollectible(); if (cVar4 != '\0') { Game::GetPlayerManager(); - FUN_009bea40(); + vector_iterate_noop(); fStack_478 = 7.00649e-44; std::max(); iVar5 = Isaac::Random(); @@ -313453,7 +313453,7 @@ LAB_0065a73e: *(undefined4 *)&this->field_0x410 = uVar23; fVar26 = *(float *)&this->field_0x3a4 * 0.2; *(undefined4 *)&this->field_0x414 = 0; - FUN_00417160(); + sinf_wrapper(); iVar5 = *(int *)&this->field_0x3bc; (this->_posOffset).y = fVar26 * 2.0 + *(float *)&this->field_0x410; if (iVar5 == 0) { @@ -313750,9 +313750,9 @@ LAB_0065b313: } -//@@ 0065b490 FUN_0065b490 +//@@ 0065b490 TearParams::copy -void FUN_0065b490(undefined4 *param_1) +void TearParams::copy(undefined4 *param_1) { undefined4 uVar1; @@ -314482,7 +314482,7 @@ void __thiscall Entity_Projectile::Interpolate(Entity_Projectile *this) } } this->field_0x175 = 1; - FUN_006a9c90(1); + Entity::CollideWithGrid(1); if (*(int *)(*(int *)(DAT_00c71678 + 0x18300) + 8) == 0x10) { (this->_posOffset).y = -15.0; return; @@ -314792,7 +314792,7 @@ int FUN_0065d060(void) void FUN_0065d070(void) { - FUN_009807a0("Fortune_Seeds"); + Game::ShowFortuneText("Fortune_Seeds"); return; } @@ -315277,7 +315277,7 @@ void __thiscall Entity_Slot::Update(Entity_Slot *this) uVar8 = ItemPool::GetCollectible ((ItemPool *)(DAT_00c71678 + 0x1a740),0x17,*(undefined4 *)&this->field_0x3dc ,0,0x206,0); - FUN_00665500(uVar8); + Entity_Slot::SetPrizeType(uVar8); iVar13 = this->_variant; puVar4 = puStack_20; goto LAB_0065d9f6; @@ -315319,7 +315319,7 @@ LAB_0065d9f6: pbVar9 = &DAT_00b1a4ec; } else { - pbVar9 = (byte *)FUN_0040d0c0(); + pbVar9 = (byte *)std::string::c_str(); } pcVar22 = "Appear"; do { @@ -315464,7 +315464,7 @@ LAB_0065df69: local_94->_triggerTimer = 0; uVar8 = Random(); Game::Spawn(1000,1,&pEVar24->_pos,&DAT_00c7b640,0,0,uVar8); - FUN_00663aa0(); + Entity_Slot::spawn_break_drops(); pEVar24->_state = 3; ANM2::Play((ANM2 *)&pEVar24->field_0x48,"Death",0); } @@ -315474,7 +315474,7 @@ LAB_0065df69: local_bc = (ANM2 *)0x5; if (((pEVar24->_variant == 9) && (uVar7 = pEVar24->_triggerTimer, uVar7 != 0)) && (pEVar24->_triggerTimer = uVar7 - 1, uVar7 % 5 == 0)) { - FUN_00813460(&local_a0,0,0); + Room::get_random_pickup_position(&local_a0,0,0); local_bc = *(ANM2 **)(DAT_00c71678 + 0x18300); uVar7 = Room::GetGridIndex(&local_a0); if ((uVar7 < 0x1c0) && (*(int *)((int)local_bc + 0x76c + uVar7 * 4) < 0x3b7)) { @@ -315502,7 +315502,7 @@ LAB_0065df69: if (*(uint *)&pEVar24->field_0x3dc % 0x32 == 0) { uVar8 = Random(); Game::Spawn(1000,1,&pEVar24->_pos,&DAT_00c7b640,0,0,uVar8); - FUN_00663aa0(); + Entity_Slot::spawn_break_drops(); pEVar24->_state = 3; ANM2::Play((ANM2 *)&pEVar24->field_0x48,"Death",0); } @@ -315692,14 +315692,14 @@ LAB_0065e2a5: uVar8 = EntityPtr::Ref(); uVar8 = ItemPool::GetCollectible(pIVar14,0x17,uVar8,0,0x206,0); pEVar24 = local_94; - FUN_00665500(uVar8); + Entity_Slot::SetPrizeType(uVar8); pAVar23 = (ANM2 *)&pEVar24->field_0x48; } cVar5 = Sprite::IsEventTriggered("Explosion"); if (cVar5 != '\0') { uVar8 = Random(); Game::Spawn(1000,1,&pEVar24->_pos,&DAT_00c7b640,0,0,uVar8); - FUN_00663aa0(); + Entity_Slot::spawn_break_drops(); pEVar24->_state = 3; ANM2::Play(pAVar23,"Death",0); } @@ -315745,7 +315745,7 @@ LAB_0065e2a5: if (iVar13 == 0) { uVar8 = Random(); Game::Spawn(1000,1,&pEVar24->_pos,&DAT_00c7b640,0,0,uVar8); - FUN_00663aa0(); + Entity_Slot::spawn_break_drops(); ANM2::Play((ANM2 *)&pEVar24->field_0x48,"Death",0); pEVar24->_state = 3; } @@ -315810,7 +315810,7 @@ LAB_0065ec99: Level::AddAngelRoomChance(0x3dcccccd); Game::GetHUD(); uVar8 = FUN_004253c0(); - uVar8 = FUN_009586f0(uVar8,"#YOU_FEEL_BLESSED"); + uVar8 = string_table_translate(uVar8,"#YOU_FEEL_BLESSED"); FUN_009a36d0(uVar8); } LAB_0065ed10: @@ -315849,7 +315849,7 @@ LAB_0065ed16: Entity::SetSpriteScale(uVar8); Entity::SpriteScale(); uVar8 = Vector::Vector(); - uVar8 = FUN_00a10510(local_5c + 2,uVar8); + uVar8 = Vector::Mul(local_5c + 2,uVar8); FUN_004563c0(uVar8); Entity::AddEntityFlags(0,0x1000); (**(code **)(*piVar12 + 0xc))(); @@ -316097,7 +316097,7 @@ LAB_0065f65e: } else { Game::GetItemPool(); - cVar5 = FUN_00732d00(0x87,0); + cVar5 = ItemPool::is_collectible_available(0x87,0); if (cVar5 == '\0') goto LAB_0065f65e; pEVar24 = local_94; } @@ -316214,7 +316214,7 @@ LAB_0065f5b0: if (iVar13 == 0) { uVar8 = Random(); Game::Spawn(1000,1,&pEVar24->_pos,&DAT_00c7b640,0,0,uVar8); - FUN_00663aa0(); + Entity_Slot::spawn_break_drops(); ANM2::Play((ANM2 *)&pEVar24->field_0x48,"Death",0); pEVar24->_state = 3; } @@ -316754,7 +316754,7 @@ LAB_006616a8: iVar13 = Game::GetDonationModGreed(); local_cc = (ANM2 *)(iVar13 * 3); local_9c[0] = (ANM2 *)Entity_Player::GetTrinketMultiplier(0x55); - piVar12 = (int *)FUN_0040cdd0(); + piVar12 = (int *)std_min_ptr(); local_cc = (ANM2 *)((int)local_cc - *piVar12); if (pEVar24->_state != 3) { uVar7 = RNG::RandomInt(3000); @@ -316854,7 +316854,7 @@ LAB_00662124: else { uVar8 = Random(); Game::Spawn(1000,1,&pEVar24->_pos,&DAT_00c7b640,0,0,uVar8); - FUN_00663aa0(); + Entity_Slot::spawn_break_drops(); pEVar24->_state = 3; ANM2::Play((ANM2 *)&pEVar24->field_0x48,"Death",0); } @@ -316987,7 +316987,7 @@ LAB_00661fe0: } pEVar24->_timeout = sVar21; SoundEffects::PlayWithFartOverride(0x18,2,0,0x3f800000); - FUN_007cbb90(*(undefined4 *)&pEVar24[1].field_0x4); + Entity_Player::GetGreedDonationJamChance(*(undefined4 *)&pEVar24[1].field_0x4); local_9c[0] = pAVar29; if (pEVar24->_state != 3) { fVar27 = (float10)RNG::RandomFloat(); @@ -317130,7 +317130,7 @@ LAB_006606b2: break; case 0xe: (**(code **)(*(int *)pEVar24 + 0x28))(); - FUN_0095a7b0(0xf); + PlayerManager::unlock_completion_mark(0xf); guard_check_icall(); ExceptionList = local_1c; return; @@ -317272,7 +317272,7 @@ LAB_00660a66: if (iVar13 == 1) { SoundEffects::PlayWithFartOverride(0x36,2,0,0x3f800000); Game::GetPlayerManager(); - FUN_009bfae0(); + PlayerManager::revive_player_ghosts(); FUN_0065d040(1); FUN_0065d090(); Player_stats_add(0xc,local_dc); @@ -317294,7 +317294,7 @@ LAB_006623ad: } else { FUN_00417920(); - FUN_0090ac70(local_dc); + InputManager::GetDeviceByPlayerEntity(local_dc); cVar5 = FUN_0065d0a0(); if (cVar5 != '\0') { FUN_0065d060(); @@ -317968,14 +317968,14 @@ LAB_00663722: uVar14 = ItemPool::GetCollectible ((ItemPool *)(DAT_00c71678 + 0x1a740),*puVar13,this->_initSeed,1,0x71,0 ); - FUN_00665500(uVar14); + Entity_Slot::SetPrizeType(uVar14); } } else { iVar9 = RNG::RandomInt(4); this->_prizeType = *(int *)(&DAT_00b64c08 + iVar9 * 4); iVar9 = RNG::RandomInt(0xd); - if ((iVar9 == 0) && (cVar7 = FUN_00732d00(9,0), cVar7 != '\0')) { + if ((iVar9 == 0) && (cVar7 = ItemPool::is_collectible_available(9,0), cVar7 != '\0')) { this->_prizeType = 100; } if (((this->_prizeType == 10) && (cVar7 = Entity_Player::HasTrinket(0x16,0), cVar7 != '\0')) @@ -318080,11 +318080,11 @@ LAB_00663a50: } -//@@ 00663aa0 FUN_00663aa0 +//@@ 00663aa0 Entity_Slot::spawn_break_drops /* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */ -void FUN_00663aa0(void) +void Entity_Slot::spawn_break_drops(void) { char cVar1; @@ -318135,9 +318135,9 @@ void FUN_00663aa0(void) } else if (iVar3 == 0x12) { Isaac::GetRandomPickupVelocity(1,local_80); - FUN_004d8b50(&local_5c,0xc1000000); + spawn_small_maggot(&local_5c,0xc1000000); Isaac::GetRandomPickupVelocity(1,local_80); - FUN_004d8b50(&local_5c,0xc1000000); + spawn_small_maggot(&local_5c,0xc1000000); uVar2 = Color::Color(); local_58 = (int *)0x46; spawn_gibs(&local_58,0,uVar2,&DAT_00c7b640,0x3f800000); @@ -318198,7 +318198,7 @@ void FUN_00663aa0(void) iVar3 = RNG::RandomInt(100); if (iVar3 == 0) { uVar2 = RNG::Next(); - uVar2 = FUN_00737380(&DAT_00b64be0,10,uVar2,0x1e,1,0); + uVar2 = ItemPool::get_available_collectibles(&DAT_00b64be0,10,uVar2,0x1e,1,0); uVar5 = RNG::Next(); uVar15 = 0; pTVar14 = &IsaacRepentancePlus::Entity_Pickup::RTTI_Type_Descriptor; @@ -318579,7 +318579,7 @@ LAB_006645b4: if (cVar11 == '\0') { return 0; } - uVar18 = FUN_009b9480(); + uVar18 = PlayerManager::count_main_players(); if (uVar18 < 2) { return 0; } @@ -318592,7 +318592,7 @@ LAB_006645b4: this->_triggerTimer = 0; uVar14 = Random(); Game::SpawnEx(1000,1,&this->_pos,&DAT_00c7b640,0,0,uVar14,0); - FUN_00663aa0(); + Entity_Slot::spawn_break_drops(); this->_state = 3; pcVar25 = "Death"; goto LAB_006645b4; @@ -318927,7 +318927,7 @@ LAB_00665305: } this->_state = 3; LAB_00665342: - FUN_00663aa0(); + Entity_Slot::spawn_break_drops(); return 1; } @@ -318998,9 +318998,9 @@ void FUN_006653e0(int param_1) } -//@@ 00665500 FUN_00665500 +//@@ 00665500 Entity_Slot::SetPrizeType -void FUN_00665500(undefined4 param_1) +void Entity_Slot::SetPrizeType(undefined4 param_1) { uint uVar1; @@ -319017,7 +319017,7 @@ void FUN_00665500(undefined4 param_1) uVar3 = Seeds::GetPreventedCurses(); uVar4 = CONCAT31((uint3)(~uVar3 >> 0xe), (byte)(~uVar3 >> 6) & (byte)((uVar2 | uVar4 | uVar1) >> 6)) & 0xffffff01; - FUN_006e1e90(*(undefined4 *)(in_ECX + 0x540),*(undefined4 *)(in_ECX + 0x3dc),uVar4); + Entity_Pickup::load_collectible_gfx(*(undefined4 *)(in_ECX + 0x540),*(undefined4 *)(in_ECX + 0x3dc),uVar4); ANM2::LoadGraphics(uVar4); return; } @@ -319028,7 +319028,7 @@ void FUN_00665500(undefined4 param_1) uVar3 = Seeds::GetPreventedCurses(); uVar4 = CONCAT31((uint3)(~uVar3 >> 0xe), (byte)(~uVar3 >> 6) & (byte)((uVar2 | uVar4 | uVar1) >> 6)) & 0xffffff01; - FUN_006e1e90(*(undefined4 *)(in_ECX + 0x540),*(undefined4 *)(in_ECX + 0x3dc),uVar4); + Entity_Pickup::load_collectible_gfx(*(undefined4 *)(in_ECX + 0x540),*(undefined4 *)(in_ECX + 0x3dc),uVar4); ANM2::LoadGraphics(uVar4); } return; @@ -319261,9 +319261,9 @@ void FUN_00665a90(Entity *param_1) } -//@@ 00665b00 FUN_00665b00 +//@@ 00665b00 Entity_Tear::GetRootPlayer -int FUN_00665b00(void) +int Entity_Tear::GetRootPlayer(void) { int iVar1; @@ -319406,9 +319406,9 @@ undefined4 Entity_Player::GetTractorBeam(void) } -//@@ 00665c20 FUN_00665c20 +//@@ 00665c20 Entity_Player::GetTearHitParams_copy -void FUN_00665c20(undefined4 *param_1) +void Entity_Player::GetTearHitParams_copy(undefined4 *param_1) { undefined4 uVar1; @@ -319926,9 +319926,9 @@ void __thiscall Entity_Tear::ClearReferences(Entity_Tear *this) } -//@@ 006668c0 FUN_006668c0 +//@@ 006668c0 Entity_Tear::apply_wiggle -void FUN_006668c0(void) +void Entity_Tear::apply_wiggle(void) { int in_ECX; @@ -319969,9 +319969,9 @@ void FUN_006668c0(void) } -//@@ 00666a00 FUN_00666a00 +//@@ 00666a00 Entity_Tear::apply_wiggle -void FUN_00666a00(void) +void Entity_Tear::apply_wiggle(void) { uint uVar1; @@ -320014,9 +320014,9 @@ void FUN_00666a00(void) } -//@@ 00666ba0 FUN_00666ba0 +//@@ 00666ba0 Entity_Tear::update_wiggle -void FUN_00666ba0(void) +void Entity_Tear::update_wiggle(void) { uint uVar1; @@ -320492,7 +320492,7 @@ void __thiscall Entity_Tear::Update(Entity_Tear *this) if (cVar5 != '\0') { BitSet128::__bnot(); FUN_005cd430(); - FUN_00435bf0(); + BitSet128::operator__(); (**(code **)(*(int *)this + 0x40))(); Entity::Die(); *(undefined4 *)&this->field_0x474 = 0x40; @@ -320533,7 +320533,7 @@ void __thiscall Entity_Tear::Update(Entity_Tear *this) FUN_00435de0(); Entity_Familiar::Player(); } - iVar7 = FUN_00499da0(); + iVar7 = Entity::ToPlayer(); if ((iVar7 != 0) && (iVar7 = Entity_Player::GetFireDirection(), iVar7 == -1)) { this->_waitFrames = 1; } @@ -320690,7 +320690,7 @@ LAB_006677ce: FUN_0097fe50(); FUN_00435cd0(); FUN_00456830(); - FUN_00447720(); + set_field_0x37c(); Entity::SetParent(); FUN_00435f70(); EntityPtr::SetReference(); @@ -320737,7 +320737,7 @@ LAB_00667cb7: Entity::PositionOffset(); Vector::__sub(); pRVar8 = local_8b0; - FUN_004288f0(); + Entity::SetPosition(); if (350.0 < (float)local_89c) { (**(code **)((int)*(float *)pRVar8 + 0x28))(); } @@ -320769,7 +320769,7 @@ LAB_00668224: if (local_8d8 == (Room *)0x0) { local_8b0 = (Room *)Game::GetPlayer(DAT_00c71678); } - FUN_00a104b0(); + Vector::operator__(); Vector::Vector(); fVar25 = (float10)Vector::GetAngleDegrees(); local_8e4 = (Room *)(float)fVar25; @@ -320826,7 +320826,7 @@ LAB_00668180: if (10 < iVar7) { Entity_Laser::SetTimeout(); } - FUN_00428910(); + Entity::SetVelocity(); goto LAB_00668224; } Entity_Laser::SetTimeout(); @@ -320842,15 +320842,15 @@ LAB_00668237: BitSet128::operator_and(); cVar5 = BitSet128::IsNonZero(); if (cVar5 != '\0') { - FUN_0067a720(); + Entity::GetRootParent(); local_888 = (Room *)(3.1415927 / auVar28._0_4_); iVar7 = Entity::FrameCount(); auVar28 = ZEXT416((uint)((float)(iVar7 + -1) * (float)local_888)); - FUN_00417160(); + sinf_wrapper(); local_8b0 = auVar28._0_4_; iVar7 = Entity::FrameCount(); auVar28 = ZEXT416((uint)((float)iVar7 * (float)local_888)); - FUN_00417160(); + sinf_wrapper(); FUN_0041d510(); *(float *)&((Room *)this)->field_0x350 = auVar28._0_4_ * *(float *)&((Room *)this)->field_0x410; @@ -320861,11 +320861,11 @@ LAB_00668237: auVar28._0_4_ * *(float *)&((Room *)this)->field_0x410); iVar7 = Entity::FrameCount(); auVar28 = ZEXT416((uint)((float)iVar7 * (float)local_888)); - FUN_00417160(); + sinf_wrapper(); if (auVar28._0_4_ * (float)local_8b0 < (float)local_894) { *(undefined4 *)&((Room *)this)->field_0x474 = 4; ((Room *)this)->field_0x173 = 1; - FUN_00676be0(); + Entity_Tear::UpdateBoneTear(); } } } @@ -320878,13 +320878,13 @@ LAB_00668237: if ((((Room *)this)->field_0x173 == '\0') || (*(int *)&((Room *)this)->field_0x2c == 9)) goto LAB_0066a370; if (*(int *)&((Room *)this)->field_0x2c == 0x28) { - FUN_004f88a0(); + rng_pair_init(); Entity::HasEntityFlags(); - FUN_0070c000(); + Entity::DestroyRockGridAt(); if (*(int *)&((Room *)this)->field_0x3c8 != 0) { cVar5 = FUN_004173b0(); if (cVar5 != '\0') { - local_904 = (Room *)FUN_00499da0(); + local_904 = (Room *)Entity::ToPlayer(); if (local_904 != (Room *)0x0) { cVar5 = Entity_Player::HasCollectible(); if (cVar5 != '\0') { @@ -320895,7 +320895,7 @@ LAB_00668237: do { local_8e4 = (Room *)Entity_Player::AddWisp(); if (local_8e4 != (Room *)0x0) { - FUN_00435d60(); + Entity::SetTargetPosition(); (**(code **)((int)*(float *)local_8e4 + 0xc))(); } pRVar8 = (Room *)((int)&pRVar8[-1]._lavaIntensity + 3); @@ -320939,7 +320939,7 @@ LAB_006684e5: *(short *)&((Room *)this)->field_0x46e = *(short *)&((Room *)this)->field_0x46e + 1; ((Room *)this)->field_0x173 = 0; local_888 = (Room *)CONCAT31(local_888._1_3_,1); - FUN_0067d430(); + tear_flags_area_apply(); } LAB_0066863a: local_910 = 1.0; @@ -321127,7 +321127,7 @@ LAB_006689b3: cVar5 = Room::IsPositionInRoom(); if (cVar5 != '\0') { Color::Color(); - FUN_00682f50(); + KColor::FromRGBA255(); Sprite::Color(); Color::__mul(); uStack_9e8 = 0x10; @@ -321143,7 +321143,7 @@ LAB_006689b3: random_float(); auVar30 = auVar28._4_12_; fVar32 = auVar28._0_4_ * 360.0; - FUN_00a10350(); + Vector::FromAngle(); random_float(); auVar28._0_4_ = (Room *)(fVar32 * 2.0 + (float)local_8a8); auVar28._4_12_ = auVar30; @@ -321315,7 +321315,7 @@ LAB_00668fe9: Vector::__unm(); Vector::operator_assign(); } - local_8b4 = (Room *)FUN_00665b00(); + local_8b4 = (Room *)Entity_Tear::GetRootPlayer(); local_8c0 = *(Room **)&((Room *)this)->field_0x2c; if (local_8c0 == (Room *)0x32) { local_8c0 = (Room *)0x1; @@ -321568,7 +321568,7 @@ LAB_00668fe9: this = (Entity_Tear *)local_884; } iVar7 = __RTDynamicCast(); - if ((iVar7 != 0) && (cVar5 = FUN_007cf8c0(), cVar5 == '\0')) { + if ((iVar7 != 0) && (cVar5 = Entity_Player::IsLocalPlayer(), cVar5 == '\0')) { Entity::GetColor(); Color::operator_assign(); FUN_00417900(); @@ -321590,7 +321590,7 @@ LAB_00668fe9: piVar6 = (int *)std::max(); local_920 = *piVar6; } - local_8b4 = (Room *)FUN_00665b00(); + local_8b4 = (Room *)Entity_Tear::GetRootPlayer(); local_89c = (Room *)0x0; if (0 < local_920) { do { @@ -321652,7 +321652,7 @@ LAB_0066a370: auVar28 = ZEXT416(local_8a8); } else { - FUN_007c2d50(); + get_tear_trinket_multiplier(); } auVar28._0_4_ = (Room *)(auVar28._0_4_ * (float)local_8b8 + (float)local_8b8); local_90c = (float)auVar28._0_4_; @@ -321732,14 +321732,14 @@ LAB_0066a545: Entity_Player::GetAimDirection(); local_a30 = 0x42700000; Vector::operator_mul(); - FUN_00a104b0(); + Vector::operator__(); } fVar25 = (float10)Vector::Length(); local_928 = (float)fVar25; auVar28 = ZEXT416((uint)local_928); if (local_928 != (float)local_894) { Vector::__div(); - FUN_00a104b0(); + Vector::operator__(); local_888 = (Room *)0x42f00000; local_924 = 0.1; BitSet128::operator_and(); @@ -321779,7 +321779,7 @@ LAB_0066a545: fVar25 = (float10)Vector::GetAngleDegrees(); local_89c = (Room *)(float)(fVar25 + (float10)(float)local_87c); auVar28 = ZEXT416(local_89c); - FUN_00a10350(); + Vector::FromAngle(); fVar25 = (float10)Vector::Length(); local_968 = (float)fVar25; Vector::__mul(); @@ -321846,7 +321846,7 @@ LAB_0066a545: if (0 < *(int *)&((Room *)this)->field_0x438) { local_93c = 30.0; } - FUN_00a10350(); + Vector::FromAngle(); Vector::__mul(); Vector::__add(); local_a3c = 0x40a00000; @@ -321875,7 +321875,7 @@ LAB_0066a545: normalize_angle_degrees(); *(int *)&((Room *)this)->field_0x818 = auVar28._0_4_; if (1 < *(int *)&((Room *)this)->field_0x438) { - FUN_00a10350(); + Vector::FromAngle(); auVar28 = ZEXT416(*(uint *)&((Room *)this)->field_0x81c); FUN_0041d510(); local_a4c = auVar28._0_4_; @@ -321888,7 +321888,7 @@ LAB_0066aff6: } } else { - cVar5 = FUN_00678060(); + cVar5 = Entity_Tear::is_not_familiar_spawned(); if ((cVar5 != '\0') && (local_8a0 != (Room *)0x0)) { Entity::Position(); Vector::__sub(); @@ -322007,7 +322007,7 @@ LAB_0066cdbc: if (cVar5 != '\0') { Level::GetCurrentRoom(); pEVar18 = (Entity_NPC *)FUN_00428a60(); - NpcAI::ENTITY_MASK(pEVar18); + EntityList::QuerySublist(pEVar18); pRVar8 = (Room *)0x0; local_14 = CONCAT31(local_14._1_3_,4); local_888 = (Room *)0x0; @@ -322059,7 +322059,7 @@ LAB_0066cdbc: Vector::operator_mul(); local_c24 = 0x40000000; Vector::__mul(); - FUN_00a104b0(); + Vector::operator__(); auVar28 = ZEXT416(*(uint *)&((Room *)this)->field_0x41c); nullsub_684cb0(); local_c20 = auVar28._0_4_; @@ -322067,9 +322067,9 @@ LAB_0066cdbc: } } else { - local_88c = (int *)FUN_00665b00(); + local_88c = (int *)Entity_Tear::GetRootPlayer(); local_8c8 = &((Room *)this)->field_0x48; - FUN_0040a7c0(); + _empty_check_0x34(); auVar29._4_12_ = auVar28._4_12_; auVar29._0_4_ = (Room *)((auVar28._0_4_ * 360.0) / (float)local_8fc + 90.0); local_8c4 = auVar29._0_4_; @@ -322095,7 +322095,7 @@ LAB_0066cdbc: else { if (local_88c != (int *)0x0) { pcVar1 = *(code **)((int)*(float *)local_8a0 + 0x3c); - FUN_00665c20(); + Entity_Player::GetTearHitParams_copy(); (*pcVar1)(); } Entity::SetPositionOffset(); @@ -322112,7 +322112,7 @@ LAB_0066cdbc: FUN_0060ce80(); Entity::SetSpawnerEntity(); (**(code **)((int)*(float *)local_8a0 + 0xc))(); - FUN_004cf1d0(); + EntityPtr::Set(); } } iVar7 = EntityPtr::Ref(); @@ -322169,7 +322169,7 @@ LAB_0066cdbc: FUN_005b15d0(); EntityPtr::Ref(); cVar5 = FUN_00665ba0(); - if ((cVar5 == '\0') && (FUN_00a10350(), *(int *)&((Room *)this)->field_0x3c4 != 0)) { + if ((cVar5 == '\0') && (Vector::FromAngle(), *(int *)&((Room *)this)->field_0x3c4 != 0)) { Entity::Position(); Vector::__sub(); Vector::Normalized(); @@ -322191,7 +322191,7 @@ LAB_0066cdbc: EntityPtr::Ref(); FUN_00665bc0(); EntityPtr::Ref(); - FUN_009680d0(); + Entity_Knife::SetAttackAnimation(); local_8a1 = '\x01'; goto LAB_0066b8aa; } @@ -322292,7 +322292,7 @@ LAB_0066cdbc: Vector::__add(); Entity::SetPositionOffset(); pRVar8 = local_8c4; - FUN_00a10350(); + Vector::FromAngle(); EntityPtr::Ref(); FUN_0060ccf0(); if ((float)pRVar8 <= 1.1) { @@ -322313,7 +322313,7 @@ LAB_0066cdbc: EntityPtr::Ref(); FUN_00665bc0(); EntityPtr::Ref(); - FUN_009680d0(); + Entity_Knife::SetAttackAnimation(); } } else { @@ -322329,7 +322329,7 @@ LAB_0066cdbc: } else { EntityPtr::Ref(); - FUN_00968430(); + Entity_Knife::SpinAttack(); iVar7 = EntityPtr::Ref(); if (iVar7 != 0) { EntityPtr::Ref(); @@ -322365,7 +322365,7 @@ LAB_0066cdbc: EntityPtr::Ref(); Entity::GetSprite(); Config::GetPillEffects(); - _Str1 = (char *)FUN_00407380(); + _Str1 = (char *)_string_holder_c_str(); iVar7 = strncmp(_Str1,_Str2,_MaxCount); if (iVar7 == 0) { pEVar10 = (Entity *)EntityPtr::Ref(); @@ -322392,7 +322392,7 @@ LAB_0066b8aa: cVar5 = BitSet128::IsNonZero(); if (cVar5 != '\0') { if (*(int *)&((Room *)this)->field_0x4a8 < 1) { - FUN_00a10350(); + Vector::FromAngle(); local_8b4 = (Room *)0x0; local_898 = (Room *)&DAT_bf800000; Level::GetCurrentRoom(); @@ -322474,7 +322474,7 @@ LAB_0066c0c5: (**(code **)((int)*(float *)pRVar8 + 0x40))(); set_field_358(); if (local_88c != (int *)0x0) { - FUN_00665c20(); + Entity_Player::GetTearHitParams_copy(); Sprite::Color(); Color::A(); KColor::SetLineHeightModifier(); @@ -322591,7 +322591,7 @@ LAB_0066c6d8: pRVar8 = local_8d0; Vector::operator_mul(); Vector::__mul(); - FUN_00a104b0(); + Vector::operator__(); pRVar26 = local_87c; nullsub_684cb0(); local_c40 = pRVar26; @@ -322610,7 +322610,7 @@ LAB_0066c6d8: local_8ac = (Room *)(float)fVar25; auVar28 = ZEXT416(local_8ac); approach_angle(); - FUN_00a10350(); + Vector::FromAngle(); fVar25 = (float10)Vector::Length(); local_c3c = (float)fVar25; Vector::operator_mul(); @@ -322619,8 +322619,8 @@ LAB_0066c6d8: Config::GetPillEffects(); iVar7 = AnimationState::GetAnimationLength(); local_8c0 = (Room *)(360.0 / (float)iVar7); - FUN_0040a7c0(); - FUN_00a10350(); + _empty_check_0x34(); + Vector::FromAngle(); local_c38 = *(float *)local_8d0 * (float)local_8fc; Vector::operator_mul(); fVar25 = (float10)Vector::LengthSquared(); @@ -322663,7 +322663,7 @@ LAB_0066d2f2: if (iVar7 == 0) { FUN_005cd7e0(); Vector::operator_assign(); - FUN_007b9f60(); + Entity_Player::GetMouseAimTarget(); } else { FUN_007826c0(); @@ -322734,7 +322734,7 @@ LAB_0066d2e6: } } else { - cVar5 = FUN_00678060(); + cVar5 = Entity_Tear::is_not_familiar_spawned(); if (cVar5 != '\0') { Entity::Position(); fVar25 = (float10)Vector::Distance(); @@ -322796,7 +322796,7 @@ LAB_0066d2e6: } } else { - cVar5 = FUN_00678060(); + cVar5 = Entity_Tear::is_not_familiar_spawned(); if (cVar5 != '\0') { Entity::Position(); fVar25 = (float10)Vector::Distance(); @@ -322826,7 +322826,7 @@ LAB_0066d2e6: if (pRVar8->field_0x46b == '\0') { cVar5 = FUN_0067d560(); if (cVar5 != '\0') { - FUN_00676be0(); + Entity_Tear::UpdateBoneTear(); pRVar8->field_0x46b = 1; } } @@ -322857,7 +322857,7 @@ LAB_0066d2e6: Vector::__sub(); Vector::operator_assign(); } - local_87c = (Room *)FUN_00665b00(); + local_87c = (Room *)Entity_Tear::GetRootPlayer(); local_c04 = 0x41a00000; local_c08 = (*(float *)&pRVar8->field_0x820 - 60.0) * (float)local_8b8; auVar28 = ZEXT416((uint)local_c08); @@ -322874,41 +322874,41 @@ LAB_0066d2e6: local_c00 = (float)auVar28._0_4_; Vector::Normalized(); Vector::__mul(); - FUN_00a104b0(); + Vector::operator__(); } } BitSet128::operator_and(); cVar5 = BitSet128::IsNonZero(); if (cVar5 != '\0') { if (local_8d8 != (Room *)0x0) { - FUN_007c2d50(); + get_tear_trinket_multiplier(); local_bfc = auVar28._0_4_; local_bf8 = 0x3f800000; std::max(); } - FUN_006668c0(); + Entity_Tear::apply_wiggle(); } BitSet128::operator_and(); cVar5 = BitSet128::IsNonZero(); if (cVar5 != '\0') { if (local_8d8 != (Room *)0x0) { - FUN_007c2d50(); + get_tear_trinket_multiplier(); local_bf4 = auVar28._0_4_; local_bf0 = 0x3f800000; std::max(); } - FUN_00666a00(); + Entity_Tear::apply_wiggle(); } BitSet128::operator_and(); cVar5 = BitSet128::IsNonZero(); if (cVar5 != '\0') { if (local_8d8 != (Room *)0x0) { - FUN_007c2d50(); + get_tear_trinket_multiplier(); local_bec = auVar28._0_4_; local_be8 = 0x3f800000; std::max(); } - FUN_00666ba0(); + Entity_Tear::update_wiggle(); } BitSet128::operator_and(); cVar5 = BitSet128::IsNonZero(); @@ -322925,7 +322925,7 @@ LAB_0066d2e6: local_be4 = 0x40800000; Vector::operator_mul(); Vector::__add(); - FUN_00705b90(); + Game::AttractEntities(); } BitSet128::operator_and(); cVar5 = BitSet128::IsNonZero(); @@ -322934,7 +322934,7 @@ LAB_0066d2e6: local_8d0 = local_8a8; } else { - FUN_007c2d50(); + get_tear_trinket_multiplier(); local_ba0 = auVar28._0_4_; local_be0 = 0x3f800000; puVar11 = (undefined4 *)std::max(); @@ -322948,7 +322948,7 @@ LAB_0066d2e6: iVar7 = Entity::FrameCount(); auVar30 = ZEXT812(0); fVar32 = (float)iVar7 * 0.7; - FUN_00417160(); + sinf_wrapper(); auVar28._0_4_ = (Room *)((fVar32 + 0.7) * (float)local_8d0 + local_8f0); auVar28._4_12_ = auVar30; local_8dc = (Room *)((float)local_8dc * (float)auVar28._0_4_); @@ -322957,7 +322957,7 @@ LAB_0066d2e6: iVar7 = Entity::FrameCount(); auVar30 = ZEXT812(0); fVar32 = (float)iVar7 * 0.2; - FUN_00417160(); + sinf_wrapper(); auVar28._0_4_ = (Room *)((fVar32 + 0.2) * (float)local_8d0 + 1.1); auVar28._4_12_ = auVar30; local_8dc = (Room *)((float)local_8dc * (float)auVar28._0_4_); @@ -322989,7 +322989,7 @@ LAB_0066dd14: local_8a1 = '\0'; } else { - cVar5 = FUN_00652a90(); + cVar5 = _has_flag_0x110(); local_8a1 = '\x01'; if (cVar5 == '\0') goto LAB_0066dd14; } @@ -323000,7 +323000,7 @@ LAB_0066dd14: pRVar26 = local_8a8; } else { - FUN_007c2d50(); + get_tear_trinket_multiplier(); local_bdc = auVar28._0_4_; local_bd8 = 0x3f800000; puVar11 = (undefined4 *)std::max(); @@ -323058,7 +323058,7 @@ LAB_0066de6b: iVar7 = AnimationState::GetAnimationLength(); auVar28 = ZEXT416((uint)(float)iVar7); local_8c0 = (Room *)(360.0 / (float)iVar7); - FUN_0040a7c0(); + _empty_check_0x34(); auVar30 = auVar28._4_12_; fVar32 = auVar28._0_4_ * (float)local_8c0 + (float)local_8d0 * *(float *)&pRVar8->field_0x39c; normalize_angle_degrees(); @@ -323123,7 +323123,7 @@ LAB_0066e037: Random(); local_bd4 = 0x3e0f5c29; Vector::__mul(); - FUN_00a10350(); + Vector::FromAngle(); local_bd0 = 0x40a00000; Vector::operator_mul(); Vector::__mul(); @@ -323286,7 +323286,7 @@ LAB_0066e037: BitSet128::operator_and(); cVar5 = BitSet128::IsZero(); if (cVar5 != '\0') { - local_89c = (Room *)FUN_00665b00(); + local_89c = (Room *)Entity_Tear::GetRootPlayer(); if (local_89c == (Room *)0x0) { local_8d8 = (Room *)0x40600000; local_888 = (Room *)0x41200000; @@ -323304,7 +323304,7 @@ LAB_0066e037: } pRVar27 = (Room *)((float)local_888 / 10.0); local_b34 = 0x40400000; - FUN_00505b40(); + pow_wrapper(); pRVar26 = local_8d8; local_87c = pRVar27; FUN_00431260(); @@ -323362,7 +323362,7 @@ LAB_0066ebda: BitSet128::__bnot(); BitSet128::operator_and(); Random(); - FUN_00a10350(); + Vector::FromAngle(); Vector::__mul(); local_ab0 = 0x41200000; Vector::__mul(); @@ -323382,7 +323382,7 @@ LAB_0066ebda: (*pcVar1)(); FUN_0060cd70(); FUN_0060cd90(); - FUN_00435d60(); + Entity::SetTargetPosition(); BitSet128::operator_and(); cVar5 = BitSet128::IsNonZero(); if (cVar5 != '\0') { @@ -323416,7 +323416,7 @@ LAB_0066ebda: if (iVar7 != 0) { do { std::vector::operator_index(); - local_890 = (Room *)FUN_00435e40(); + local_890 = (Room *)Entity::ToTear(); if (((local_890 != (Room *)0x0) && (local_890 != pRVar8)) && (cVar5 = Entity::IsDead(), cVar5 == '\0')) { TearFlags(); @@ -323506,7 +323506,7 @@ LAB_0066ebda: fVar25 = (float10)Vector::Distance(); local_87c = (Room *)(float)fVar25; if (10.0 < (float)local_87c) { - FUN_004cf1d0(); + EntityPtr::Set(); goto LAB_0066f416; } } @@ -323522,15 +323522,15 @@ LAB_0066f416: iVar7 = EntityPtr::Ref(); if (iVar7 != 0) { EntityPtr::Ref(); - cVar5 = FUN_00431530(); + cVar5 = Entity::IsTear(); if (cVar5 != '\0') goto LAB_0066f4a9; } cVar5 = Entity::IsFrame(); if (((cVar5 != '\0') && (iVar7 = FUN_0067adc0(), iVar7 < 5)) && ((iVar7 = Isaac::Random(), iVar7 == 0 && (local_87c = (Room *)FUN_0067a8f0(), local_87c != (Room *)0x0)))) { - FUN_004cf1d0(); - FUN_004cf1d0(); + EntityPtr::Set(); + EntityPtr::Set(); } } LAB_0066f4a9: @@ -323562,7 +323562,7 @@ LAB_0066f4a9: fVar25 = (float10)Vector::Length(); local_87c = (Room *)(float)fVar25; Entity_Projectile::Damage(); - FUN_00a10350(); + Vector::FromAngle(); auVar28 = ZEXT416(local_87c); Vector::Resized(); Vector::__mul(); @@ -323604,7 +323604,7 @@ LAB_0066f4a9: if (iVar7 != 0) { do { std::vector::operator_index(); - local_898 = (Room *)FUN_00435e40(); + local_898 = (Room *)Entity::ToTear(); if ((local_898 != (Room *)0x0) && (fVar32 = (float)PathFinder::GetGridIndex(), (uint)fVar32 <= (uint)(pRVar8->_bottomRightPos).y)) { @@ -323645,10 +323645,10 @@ LAB_0066f4a9: Vector::__mul(); Vector::__sub(); Vector::operator_assign(); - FUN_00428910(); + Entity::SetVelocity(); pVVar22 = local_8e8; Vector::operator_assign(); - FUN_004288f0(); + Entity::SetPosition(); pRVar8 = local_884; *(short *)&local_884->field_0x46c = *(short *)&local_884->field_0x46c + 1; *(short *)&local_898->field_0x46c = *(short *)&local_898->field_0x46c + 1; @@ -323685,9 +323685,9 @@ LAB_0066fb70: } pRVar8->field_0x173 = 1; *(uint *)&pRVar8->field_0x474 = *(uint *)&pRVar8->field_0x474 | 4; - FUN_00676be0(); + Entity_Tear::UpdateBoneTear(); if ((*(int *)&pRVar8->field_0x3bc != 0) && (pRVar8->field_0x7e8 != '\0')) { - pEVar16 = (Entity_Player *)FUN_00499da0(); + pEVar16 = (Entity_Player *)Entity::ToPlayer(); if (pEVar16 != (Entity_Player *)0x0) { cVar5 = Entity_Player::HasCollectible(); if (cVar5 != '\0') { @@ -323822,10 +323822,10 @@ LAB_006701a6: iVar7 = Room::GetGridCollisionAtPos(); if (iVar7 == 5) goto LAB_006701a6; } - FUN_00676be0(); + Entity_Tear::UpdateBoneTear(); FUN_0067d560(); if (((*(int *)&pRVar8->field_0x3bc != 0) && (pRVar8->field_0x7e8 != '\0')) && - (local_87c = (Room *)FUN_00499da0(), local_87c != (Room *)0x0)) { + (local_87c = (Room *)Entity::ToPlayer(), local_87c != (Room *)0x0)) { Level::GetCurrentRoom(); iVar7 = Room::GetGridEntityFromPos(); if ((iVar7 == 0) || @@ -323881,7 +323881,7 @@ LAB_0067039b: if ((float)local_8cc <= *(float *)&pRVar8->field_0x340) { if ((float)local_8e0 < *(float *)&pRVar8->field_0x340) { FUN_00435c60(); - FUN_00505b50(); + set_byte_0x101(); } } else { @@ -323935,7 +323935,7 @@ LAB_00670254: std::vector::clear(); local_87c = local_8a8; if ((*(int *)&pRVar8->field_0x3c8 != 0) && (cVar5 = FUN_004173b0(), cVar5 != '\0')) { - FUN_007cf8f0(); + Entity_Player::IsLocalPlayer(); } SoundEffects::PlayWithFartOverride(); Level::GetCurrentRoom(); @@ -323950,7 +323950,7 @@ LAB_00670391: } if ((((*(int *)&pRVar8->field_0x2c == 0x2b) || (*(int *)&pRVar8->field_0x2c == 0x2c)) && (pRVar8->field_0x173 == '\0')) && - (local_8b0 = (Room *)FUN_00499da0(), local_8b0 != (Room *)0x0)) { + (local_8b0 = (Room *)Entity::ToPlayer(), local_8b0 != (Room *)0x0)) { Vector::__add(); cVar5 = Vector::operator_ne(); if (cVar5 != '\0') { @@ -324061,7 +324061,7 @@ LAB_006708cc: cVar5 = BitSet128::IsNonZero(); if (cVar5 != '\0') { local_888 = (Room *)(*(uint *)&pRVar8->field_0x30 >> 1 & 0xffffff01); - local_8a1 = FUN_00678060(); + local_8a1 = Entity_Tear::is_not_familiar_spawned(); if ((char)local_888 == '\0') { fVar32 = 0.7; } @@ -324070,7 +324070,7 @@ LAB_006708cc: } pRVar26 = (Room *)(fVar32 * *(float *)&pRVar8->field_0x36c); *(Room **)&pRVar8->field_0x36c = pRVar26; - local_890 = (Room *)FUN_00665b00(); + local_890 = (Room *)Entity_Tear::GetRootPlayer(); if (local_890 == (Room *)0x0) { pRVar26 = (Room *)0x41200000; } @@ -324086,7 +324086,7 @@ LAB_006708cc: Vector::operator_assign(); FUN_00665a50(); } - if ((*(int *)&pRVar8->field_0x3bc != 0) && (cVar5 = FUN_0042a250(), cVar5 != '\0')) { + if ((*(int *)&pRVar8->field_0x3bc != 0) && (cVar5 = Entity::IsFamiliar(), cVar5 != '\0')) { local_8dc = (Room *)((float)local_8dc * local_8ec); } fVar25 = (float10)Vector::Length(); @@ -324128,7 +324128,7 @@ LAB_006708cc: assert_lerp_range(); local_b0 = (float)pRVar26 + local_b0; } - FUN_00435bf0(); + BitSet128::operator__(); } pcVar1 = *(code **)(*(int *)pRVar8 + 0x3c); *(float *)&pRVar8->field_0x388 = local_b0; @@ -324209,7 +324209,7 @@ LAB_0067162f: iVar7 = Entity::FrameCount(); iVar7 = iVar7 + (int)(local_884->_bottomRightPos).y * 0x32; fVar32 = (float)((double)iVar7 + (double)(&DAT_00bacb00)[-(iVar7 >> 0x1f)]) * 0.08; - FUN_00417160(); + sinf_wrapper(); local_87c = (Room *)(fVar32 * (float)local_8b8 + (float)local_8a8); Vector::Length(); Vector::Resized(); @@ -324228,7 +324228,7 @@ LAB_0067162f: local_14 = 9; local_944 = Entity::Child(); while (local_944 != 0) { - FUN_0042c850(); + std::vector::push_back(); local_944 = Entity::Child(); } local_8ec = 0.0; @@ -324237,7 +324237,7 @@ LAB_0067162f: do { puVar11 = (undefined4 *)FUN_0042c810(); local_898 = (Room *)*puVar11; - FUN_00428910(); + Entity::SetVelocity(); local_8b0 = (Room *)((float)((double)(int)local_8ec + (double)(&DAT_00bacb00)[-((int)local_8ec >> 0x1f)]) * 360.0); iVar7 = std::vector::size(); @@ -324251,7 +324251,7 @@ LAB_0067162f: iVar7 = Entity::FrameCount(); local_948 = ((float)iVar7 / 50.0) * local_948; } - FUN_00a10350(); + Vector::FromAngle(); Vector::__mul(); Vector::__add(); Entity::Position(); @@ -324277,7 +324277,7 @@ LAB_0067162f: } while ((uint)fVar23 < (uint)fVar32); } if (*(int *)&pRVar8->field_0x3bc != 0) { - cVar5 = FUN_0042a250(); + cVar5 = Entity::IsFamiliar(); if (cVar5 != '\0') { Level::GetCurrentRoom(); FUN_00428a60(); @@ -324288,11 +324288,11 @@ LAB_0067162f: if (iVar7 != 0) { do { std::vector::operator_index(); - local_8cc = (Room *)FUN_00435e40(); + local_8cc = (Room *)Entity::ToTear(); if ((local_8cc != (Room *)0x0) && (local_8cc != pRVar8)) { BitSet128::operator_and(); cVar5 = BitSet128::IsNonZero(); - if ((cVar5 != '\0') && (cVar5 = FUN_00678060(), cVar5 != '\0')) { + if ((cVar5 != '\0') && (cVar5 = Entity_Tear::is_not_familiar_spawned(), cVar5 != '\0')) { Entity::Position(); Vector::__sub(); fVar25 = (float10)Vector::Length(); @@ -324389,7 +324389,7 @@ LAB_006717e1: if (local_8a1 != '\0') { Level::GetCurrentRoom(); pEVar18 = (Entity_NPC *)FUN_00428a60(); - NpcAI::ENTITY_MASK(pEVar18); + EntityList::QuerySublist(pEVar18); local_14 = 0xc; local_8f8 = (Room *)0x0; iVar7 = EntityList::Size(); @@ -324416,7 +324416,7 @@ LAB_006717e1: Isaac::Random(); Entity_Player::GetTearHitParams(); } - FUN_0065b490(); + TearParams::copy(); Random(); Vector::__unm(); Game::Spawn(); @@ -324502,10 +324502,10 @@ LAB_006717e1: Vector::__div(); fVar25 = (float10)Vector::GetAngleDegrees(); *(float *)&pRVar8->field_0x840 = (float)fVar25; - FUN_00a104b0(); + Vector::operator__(); local_b08 = (50.0 - local_95c) * 0.1; Vector::__mul(); - FUN_00a101c0(); + vector_lerp(); Entity::Velocity(); Vector::__add(); Vector::operator_assign(); @@ -324527,7 +324527,7 @@ LAB_006717e1: goto LAB_00673502; } } - FUN_00a10350(); + Vector::FromAngle(); Vector::operator_mul(); Vector::operator_assign(); *(undefined4 *)&pRVar8->field_0x840 = 0x3c75c28f; @@ -324638,16 +324638,16 @@ LAB_006722d8: BitSet128::operator_and(); cVar5 = BitSet128::IsNonZero(); if (cVar5 != '\0') { - FUN_00435bf0(); + BitSet128::operator__(); *(uint *)&pRVar8->field_0x474 = *(uint *)&pRVar8->field_0x474 | 0x20; fVar32 = *(float *)&pRVar8->field_0x388 + 60.0; *(float *)&pRVar8->field_0x388 = fVar32; - local_8f4 = (undefined1 *)FUN_00665b00(); + local_8f4 = (undefined1 *)Entity_Tear::GetRootPlayer(); if (local_8f4 != (undefined1 *)0x0) { FUN_00435bc0(); Entity_Player::GetBombVariant(); FUN_00435bc0(); - FUN_00780ec0(); + Entity_Player::check_bomb_tearflags(); if (1.5 <= fVar32) { *(float *)&pRVar8->field_0x388 = *(float *)&pRVar8->field_0x388 + 50.0; } @@ -324656,7 +324656,7 @@ LAB_006722d8: BitSet128::operator_and(); cVar5 = BitSet128::IsNonZero(); if (cVar5 != '\0') { - FUN_00665b00(); + Entity_Tear::GetRootPlayer(); pRVar26 = local_8a8; Color::Color(); Game::Fart(); @@ -324683,7 +324683,7 @@ LAB_006722d8: local_8e0 = (GridEntity *)&pRVar8->field_0x360; do { random_float(); - FUN_00a10350(); + Vector::FromAngle(); fVar32 = 1e+09; local_8fc = (Room *)0x0; local_8f4 = (undefined1 *)0x4e6e6b28; @@ -324748,7 +324748,7 @@ LAB_006722d8: BitSet128::operator_and(); BitSet128::operator_or(); BitSet128::operator_or(); - FUN_00435bf0(); + BitSet128::operator__(); pRVar8 = local_8d0; Entity_Tear::SetTearFlags(); SetScale((Entity_Tear *)pRVar8); @@ -324779,7 +324779,7 @@ LAB_006722d8: } BitSet128::operator_and(); cVar5 = BitSet128::IsNonZero(); - if ((cVar5 != '\0') && (cVar5 = FUN_00678060(), cVar5 != '\0')) { + if ((cVar5 != '\0') && (cVar5 = Entity_Tear::is_not_familiar_spawned(), cVar5 != '\0')) { BitSet128::operator_and(); cVar5 = BitSet128::IsZero(); if (cVar5 != '\0') { @@ -324923,7 +324923,7 @@ LAB_0067314b: if (cVar5 == '\0') goto LAB_006734ab; BitSet128::operator_and(); cVar5 = BitSet128::IsZero(); - if ((cVar5 == '\0') && (cVar5 = FUN_00678060(), cVar5 == '\0')) goto LAB_006734ab; + if ((cVar5 == '\0') && (cVar5 = Entity_Tear::is_not_familiar_spawned(), cVar5 == '\0')) goto LAB_006734ab; Level::GetCurrentRoom(); Room::ScreenWrapPosition(); Vector::__sub(); @@ -324939,12 +324939,12 @@ LAB_0067314b: Vector::operator_assign(); BitSet128::operator_and(); cVar5 = BitSet128::IsNonZero(); - if ((cVar5 != '\0') && (cVar5 = FUN_00678060(), cVar5 != '\0')) { + if ((cVar5 != '\0') && (cVar5 = Entity_Tear::is_not_familiar_spawned(), cVar5 != '\0')) { iVar7 = *(int *)&pRVar8->field_0x3c0; while (iVar7 != 0) { Entity::Position(); Vector::__add(); - FUN_004288f0(); + Entity::SetPosition(); iVar7 = Entity::Child(); } } @@ -325352,10 +325352,10 @@ joined_r0x00673c0b: piStack_10c = (int *)fVar18; } } - FUN_006b2210(param_2); + Entity::IsCollisionIgnored(param_2); fVar18 = fVar18 * 0.1; puStack_14c = (uint *)fVar18; - FUN_006b2210(this); + Entity::IsCollisionIgnored(this); puStack_14c = (uint *)((float)puStack_14c / (fVar18 + (float)puStack_14c)); sqrtf(); (param_2->_velocity).x = @@ -325567,7 +325567,7 @@ LAB_0067441d: VStack_130.x = 0.0; VStack_130.y = 0.0; piStack_10c = (int *)this->_collisionDamage; - FUN_0067d1f0(&this->field_0x428,*(undefined4 *)&this->field_0x428, + get_tear_flags_from_player(&this->field_0x428,*(undefined4 *)&this->field_0x428, *(undefined4 *)&this->field_0x42c,*(undefined4 *)&this->field_0x430, *(undefined4 *)&this->field_0x434); iVar6 = __RTDynamicCast(param_2,0,&IsaacRepentancePlus::Entity::RTTI_Type_Descriptor, @@ -325588,7 +325588,7 @@ LAB_006746d2: else { cVar2 = Entity::IsDescendantOf(param_2); if (cVar2 == '\0') { - uVar9 = FUN_00665b00(); + uVar9 = Entity_Tear::GetRootPlayer(); cVar2 = Entity::IsDescendantOf(uVar9); if (cVar2 == '\0') goto LAB_006746d2; } @@ -325811,7 +325811,7 @@ LAB_006746d2: } cVar2 = Entity_Player::HasTrinket(0xb9,0); if ((cVar2 != '\0') && (uVar5 = Random(), uVar5 % 0x21 == 0)) { - FUN_007dc2d0(); + _Entity_Player::SpawnTrinketRandomPickup(); } cVar2 = Entity_Player::HasTrinket(0xbd,0); if (((cVar2 != '\0') && (uVar5 = Random(), uVar5 % 10 == 0)) && @@ -325978,7 +325978,7 @@ LAB_00675369: if (((cVar2 != '\0') && (param_2->_type != 0x21)) && (iVar6 = Isaac::Random(), iVar6 == 0)) { BitSet128::operator_and(&DAT_00c34c50); cVar2 = BitSet128::IsZero(); - if ((cVar2 != '\0') || (cVar2 = FUN_00678060(), cVar2 != '\0')) { + if ((cVar2 != '\0') || (cVar2 = Entity_Tear::is_not_familiar_spawned(), cVar2 != '\0')) { *(uint *)&this->field_0x428 = *(uint *)&this->field_0x428 | DAT_00c34bc0; *(uint *)&this->field_0x42c = *(uint *)&this->field_0x42c | DAT_00c34bc4; *(uint *)&this->field_0x430 = *(uint *)&this->field_0x430 | DAT_00c34bc8; @@ -326044,9 +326044,9 @@ LAB_00675369: piStack_154 = piVar7; } } - FUN_006b2210(param_2); + Entity::IsCollisionIgnored(param_2); piStack_10c = piVar7; - FUN_006b2210(this); + Entity::IsCollisionIgnored(this); piStack_10c = (int *)((float)piStack_10c / ((float)piVar7 + (float)piStack_10c)); fVar19 = (param_2->_velocity).y - (this->_velocity).y; fVar18 = (param_2->_velocity).x - (this->_velocity).x; @@ -326109,7 +326109,7 @@ LAB_0067588d: FUN_006b5320(extraout_ECX_01); } if (cStack_105 == '\0') { - FUN_00676be0(param_2); + Entity_Tear::UpdateBoneTear(param_2); BitSet128::operator_and(&DAT_00c34940); cVar2 = BitSet128::IsNonZero(); if (cVar2 != '\0') { @@ -326274,7 +326274,7 @@ LAB_0067588d: BitSet128::operator_and(&DAT_00c34c50); cVar2 = BitSet128::IsNonZero(); if (cVar2 != '\0') { - cVar2 = FUN_00678060(); + cVar2 = Entity_Tear::is_not_familiar_spawned(); if (cVar2 != '\0') { piVar7 = *(int **)&this->field_0x3c0; piStack_154 = piVar7; @@ -326813,11 +326813,11 @@ void FUN_00676bd0(void) } -//@@ 00676be0 FUN_00676be0 +//@@ 00676be0 Entity_Tear::UpdateBoneTear /* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */ -void FUN_00676be0(int param_1) +void Entity_Tear::UpdateBoneTear(int param_1) { char cVar1; @@ -327523,9 +327523,9 @@ LAB_00677c46: } -//@@ 00678060 FUN_00678060 +//@@ 00678060 Entity_Tear::is_not_familiar_spawned -int FUN_00678060(void) +int Entity_Tear::is_not_familiar_spawned(void) { int iVar1; @@ -328121,12 +328121,12 @@ void __thiscall Entity_Tear::Interpolate(Entity_Tear *this) in_XMM0_Da = (Entity_Tear *)0x3f800000; } else { - FUN_007c2d50(10); + get_tear_trinket_multiplier(10); if ((float)in_XMM0_Da <= 1.0) { in_XMM0_Da = (Entity_Tear *)0x3f800000; } } - FUN_006668c0(); + Entity_Tear::apply_wiggle(); } local_1c = (Entity_Tear *)(*(uint *)&pEVar12->field_0x434 & DAT_00c348ac); if (((*(uint *)&pEVar12->field_0x428 & DAT_00c348a0) != 0 || @@ -328135,7 +328135,7 @@ void __thiscall Entity_Tear::Interpolate(Entity_Tear *this) if (pEVar11 != (Entity_Tear *)0x0) { Entity_Player::GetTrinketMultiplier(0xb); } - FUN_00666a00(); + Entity_Tear::apply_wiggle(); } local_1c = (Entity_Tear *)(*(uint *)&pEVar12->field_0x434 & DAT_00c348ec); if (((*(uint *)&pEVar12->field_0x428 & DAT_00c348e0) != 0 || @@ -328144,7 +328144,7 @@ void __thiscall Entity_Tear::Interpolate(Entity_Tear *this) if (pEVar11 != (Entity_Tear *)0x0) { Entity_Player::GetTrinketMultiplier(0x60); } - FUN_00666ba0(); + Entity_Tear::update_wiggle(); } Entity::Interpolate((Entity *)pEVar12); this = pEVar12; @@ -328219,7 +328219,7 @@ LAB_00679c17: (*(uint *)&this->field_0x42c & _DAT_00c345e4) != 0) || ((*(uint *)&this->field_0x430 & _DAT_00c345e8) != 0 || (*(uint *)&this->field_0x434 & _DAT_00c345ec) != 0)) { - FUN_0067a720(); + Entity::GetRootParent(); iVar6 = DAT_00c71678; fVar10 = ((float)(*(int *)(DAT_00c71678 + 0x264f8) - *(int *)&this->field_0x328) + 0.5) * (3.1415927 / (float)in_XMM0_Da); @@ -328333,9 +328333,9 @@ void Entity_Tear::SetDeadEyeIntensity(float param_1) } -//@@ 0067a080 FUN_0067a080 +//@@ 0067a080 Entity_Projectile::Deflect -void FUN_0067a080(int param_1,undefined4 *param_2) +void Entity_Projectile::Deflect(int param_1,undefined4 *param_2) { int *piVar1; @@ -328591,9 +328591,9 @@ void Entity_Tear::ChangeVariant(int param_1) } -//@@ 0067a720 FUN_0067a720 +//@@ 0067a720 Entity::GetRootParent -void FUN_0067a720(void) +void Entity::GetRootParent(void) { int iVar1; @@ -328641,7 +328641,7 @@ int FUN_0067a770(void) local_10 = ExceptionList; uVar2 = DAT_00bf93b4 ^ (int)register0x00000010 - 4U; ExceptionList = &local_10; - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); iVar4 = 0; uVar5 = 0; local_1c = 40.0; @@ -328725,7 +328725,7 @@ int FUN_0067a8f0(void) local_10 = ExceptionList; uVar4 = DAT_00bf93b4 ^ (int)register0x00000010 - 4U; ExceptionList = &local_10; - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); iVar7 = 0; local_20 = 20.0; local_18 = 0; @@ -329375,7 +329375,7 @@ LAB_0067b313: (*pcVar1)(&uStack_3c); local_b4 = (Entity_Tear *)0x0; if ((local_b0 != (Entity_Knife *)0x0) && - ((local_b4 = (Entity_Tear *)FUN_006a89d0(), local_b4 == (Entity_Tear *)0x0 || + ((local_b4 = (Entity_Tear *)Entity::GetLastSpawner(), local_b4 == (Entity_Tear *)0x0 || (local_b4->_type != 1)))) { local_b4 = (Entity_Tear *)0x0; } @@ -329391,7 +329391,7 @@ LAB_0067b313: uVar3 = Random(); uVar6 = Entity_Player::GetTearHitParams(local_a8,1,0x3f800000,(uVar3 & 1) * 2 + -1,local_dc) ; - FUN_006075a0(uVar6); + TearParams::operator_(uVar6); } local_fc[0] = (float *)Random(); local_ac = (Entity_Tear *) @@ -329470,7 +329470,7 @@ LAB_0067b313: local_d0 = CONCAT44(DAT_00c71678->_room,(float)local_d0); iVar8 = Room::GetGridEntityFromPos(&local_b8); if ((iVar8 == 0) || (*(int *)(iVar8 + 0x3c) == 0)) { - NpcAI::ENTITY_MASK((Entity_NPC *)((int)local_d0._4_4_ + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)((int)local_d0._4_4_ + 0x1218)); local_8 = 0; if ((uint)local_bc < 2) { uVar3 = Random(); @@ -329591,7 +329591,7 @@ LAB_0067c928: uVar6 = Game::Spawn(0xf5,0,&local_c0,&DAT_00c7b640,0,0,uVar6); local_d0 = CONCAT44(uVar6,(float)local_d0); uVar6 = Color::Color(0x3f800000,0x27,0x19,0x16); - FUN_00456380(uVar6); + Color::assign(uVar6); if ((Entity_NPC *)in_ECX[0xf5] != (Entity_NPC *)0x0) { Entity_NPC::MinecartUpdateChild((Entity_NPC *)in_ECX[0xf5],local_d0._4_4_); } @@ -329600,8 +329600,8 @@ LAB_0067c928: cVar2 = BitSet128::IsNonZero(); if ((cVar2 != '\0') && (cVar2 = Entity::IsVulnerableEnemy(0), cVar2 != '\0')) { if ((in_stack_00000014 == (Entity_Knife *)0x0) || - ((iVar8 = FUN_006a89d0(), iVar8 == 0 || (*(int *)(iVar8 + 0x28) != 3)))) { - local_ac = (Entity_Tear *)FUN_006a89d0(); + ((iVar8 = Entity::GetLastSpawner(), iVar8 == 0 || (*(int *)(iVar8 + 0x28) != 3)))) { + local_ac = (Entity_Tear *)Entity::GetLastSpawner(); if ((local_ac != (Entity_Tear *)0x0) && (local_ac->_type == 1)) goto LAB_0067ca94; } else { @@ -329642,7 +329642,7 @@ LAB_0067cba7: if (((*piVar4 != 0 || piVar4[1] != 0) || (piVar4[2] != 0 || piVar4[3] != 0)) && (cVar2 = Entity::IsActiveEnemy(), cVar2 != '\0')) { if (((in_stack_00000014 == (Entity_Knife *)0x0) || - (local_ac = (Entity_Tear *)FUN_006a89d0(), local_ac == (Entity_Tear *)0x0)) || + (local_ac = (Entity_Tear *)Entity::GetLastSpawner(), local_ac == (Entity_Tear *)0x0)) || (local_ac->_type != 1)) { local_ac = (Entity_Tear *)Game::GetPlayer(DAT_00c71678,0); } @@ -329781,11 +329781,11 @@ LAB_0067cba7: } -//@@ 0067d1f0 FUN_0067d1f0 +//@@ 0067d1f0 get_tear_flags_from_player /* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ -void FUN_0067d1f0(undefined4 param_1,uint param_2,uint param_3,uint param_4,uint param_5, +void get_tear_flags_from_player(undefined4 param_1,uint param_2,uint param_3,uint param_4,uint param_5, undefined4 param_6,int param_7) { @@ -329857,9 +329857,9 @@ LAB_0067d323: } -//@@ 0067d430 FUN_0067d430 +//@@ 0067d430 tear_flags_area_apply -void FUN_0067d430(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4) +void tear_flags_area_apply(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4) { code *pcVar1; @@ -330318,7 +330318,7 @@ LAB_0067dd97: iVar8 = EntityConfig::GetEntity(1000,0,0); } if (iVar8 != 0) { - FUN_0069ba90(iVar8); + EntityConfig::PreloadResources(iVar8); iVar11 = DAT_00c7169c; } local_30 = &DAT_00500a00; @@ -330332,7 +330332,7 @@ LAB_0067dd97: iVar8 = EntityConfig::GetEntity(5,0,0); } if (iVar8 != 0) { - FUN_0069ba90(iVar8); + EntityConfig::PreloadResources(iVar8); iVar11 = DAT_00c7169c; } local_30 = &DAT_00501400; @@ -330345,7 +330345,7 @@ LAB_0067dd97: local_38 = EntityConfig::GetEntity(5,0,0); } if (local_38 != 0) { - FUN_0069ba90(local_38); + EntityConfig::PreloadResources(local_38); } if (*(int *)&this->field_0x8 == 1) { piVar1 = &this[1]._sprite._overlayAnimState._currentlyTriggeredEvents; @@ -331845,7 +331845,7 @@ void FUN_0067fdf0(void) if (uVar4 == _Size) { if (_Size == 0x7fffffff) { /* WARNING: Subroutine does not return */ - FUN_0040ccc0(uVar7); + std::string::_Xlen(uVar7); } uVar10 = _Size + 1 | 0xf; if (uVar10 < 0x80000000) { @@ -332253,9 +332253,9 @@ void normalize_angle_degrees(void) return; } -//@@ 006827a0 FUN_006827a0 +//@@ 006827a0 angle_lerp_shortest -void FUN_006827a0(void) +void angle_lerp_shortest(void) { float in_XMM0_Da; @@ -332406,12 +332406,12 @@ void approach_angle(void) return; } -//@@ 00682b90 FUN_00682b90 +//@@ 00682b90 string_scramble_seeded /* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */ /* WARNING: Removing unreachable block (ram,0x00682e44) */ -void FUN_00682b90(undefined4 *param_1,int param_2,int param_3,int param_4,uint param_5,uint param_6) +void string_scramble_seeded(undefined4 *param_1,int param_2,int param_3,int param_4,uint param_5,uint param_6) { byte *pbVar1; @@ -332615,9 +332615,9 @@ void Color::SetTint(undefined4 param_1,undefined4 param_2,undefined4 param_3,und } -//@@ 00682f50 FUN_00682f50 +//@@ 00682f50 KColor::FromRGBA255 -void FUN_00682f50(int param_1,int param_2,int param_3,int param_4) +void KColor::FromRGBA255(int param_1,int param_2,int param_3,int param_4) { float *in_ECX; @@ -332718,13 +332718,13 @@ void apply_sprite_shader_params(char param_1,int param_2,int *param_3) local_1c = DAT_00c7165c; local_18 = uVar2; if (param_1 != '\0') { - FUN_00a14c00("Colorize",0xb,in_ECX + 0x10,in_ECX); - FUN_00a14c00("ColorOffset",10,in_ECX + 0x20,extraout_ECX); + Shader::set_uniform("Colorize",0xb,in_ECX + 0x10,in_ECX); + Shader::set_uniform("ColorOffset",10,in_ECX + 0x20,extraout_ECX); in_ECX = extraout_ECX_00; } - FUN_00a14c00("TextureSize",9,&local_30,in_ECX); - FUN_00a14c00("PixelationAmount",8,&local_28,extraout_ECX_01); - FUN_00a14c00("ClipPlane",10,&local_24,extraout_ECX_02); + Shader::set_uniform("TextureSize",9,&local_30,in_ECX); + Shader::set_uniform("PixelationAmount",8,&local_28,extraout_ECX_01); + Shader::set_uniform("ClipPlane",10,&local_24,extraout_ECX_02); local_8 = 1; if (param_3 != (int *)0x0) { cVar1 = (**(code **)(*param_3 + 0xc))(uVar2); @@ -332937,8 +332937,8 @@ void FUN_00683680(void) undefined8 local_c; local_c = 0; - FUN_006856c0(&local_c); - puVar1 = (undefined4 *)FUN_00684f30(); + std::vector::resize(&local_c); + puVar1 = (undefined4 *)std::deque::back(); if ((byte *)(puVar1 + 1) != (byte *)0x0) { *(byte *)(puVar1 + 1) = (byte)(DAT_00c798e4 >> 5) & 1; } @@ -332947,9 +332947,9 @@ void FUN_00683680(void) } -//@@ 006836c0 FUN_006836c0 +//@@ 006836c0 pop_render_target -void FUN_006836c0(void) +void pop_render_target(void) { undefined4 *puVar1; @@ -332958,8 +332958,8 @@ void FUN_006836c0(void) /* WARNING: Subroutine does not return */ KAGE_LogMessage(0x10,"PopRenderTarget: stack is empty!\n"); } - puVar1 = (undefined4 *)FUN_00684f30(); - FUN_00a18300(*puVar1,*(undefined1 *)(puVar1 + 1)); + puVar1 = (undefined4 *)std::deque::back(); + KAGE_Graphics::SetRenderTarget(*puVar1,*(undefined1 *)(puVar1 + 1)); DAT_00c79790 = DAT_00c79790 + -1; if (DAT_00c79790 == 0) { DAT_00c7978c = 0; @@ -334095,9 +334095,9 @@ void FUN_00684920(uint param_1) } -//@@ 00684b90 FUN_00684b90 +//@@ 00684b90 hsv_to_rgb -void FUN_00684b90(float param_1) +void hsv_to_rgb(float param_1) { float *in_ECX; @@ -334349,9 +334349,9 @@ void FUN_00684ee0(uint param_1,uint param_2) } -//@@ 00684f30 FUN_00684f30 +//@@ 00684f30 std::deque::back -int FUN_00684f30(void) +int std::deque::back(void) { uint uVar1; @@ -334802,9 +334802,9 @@ int FUN_00685620(undefined4 param_1,byte *param_2,int param_3) } -//@@ 006856c0 FUN_006856c0 +//@@ 006856c0 std::vector::resize -void FUN_006856c0(undefined4 *param_1) +void std::vector::resize(undefined4 *param_1) { int iVar1; @@ -337257,7 +337257,7 @@ LAB_00687a42: uVar11 = FUN_00414410(); if (uVar11 < 2) { LAB_00687c54: - uVar16 = FUN_0040d0c0(); + uVar16 = std::string::c_str(); sprintf_s(local_134,0x80,"%s:%s",local_b4,uVar16); SimpleString::operator=(this,local_134); SimpleString::operator=(this,"#"); @@ -337311,7 +337311,7 @@ LAB_00689a90: if (uVar11 < 2) { LAB_00689d47: ItemConfig_Item::GetLocalizedName(local_17c,0); - uVar16 = FUN_0040d0c0(); + uVar16 = std::string::c_str(); sprintf_s(local_134,0x80,"%s:%s",local_94,uVar16); std::string::_Tidy_deallocate(); SimpleString::operator=(this,local_134); @@ -337365,7 +337365,7 @@ LAB_00689d47: FUN_00693eb0(*(undefined4 *)uVar15,(int)((ulonglong)uVar15 >> 0x20),uVar16); iVar4 = FUN_00693650(local_2c,0); if (iVar4 != -1) { - uVar16 = FUN_0040d0c0(); + uVar16 = std::string::c_str(); sprintf_s(local_134,0x80,"%s:%s",local_94,uVar16); SimpleString::operator=(this,local_134); SimpleString::operator=(this,"#"); @@ -337436,7 +337436,7 @@ LAB_00688ee4: if (((iVar4 != 0) && (uVar11 = FUN_00414410(), uVar11 < 2)) && (iVar4 = FUN_004143f0(0), *(int *)(iVar4 + 0x10) != 0)) { FUN_004143f0(0); - pcVar10 = (char *)FUN_0040d0c0(); + pcVar10 = (char *)std::string::c_str(); iVar4 = atoi(pcVar10); if ((-1 < iVar4) && (iVar7 = FUN_00414410(), iVar4 < iVar7)) { uVar16 = FUN_004143f0(iVar4); @@ -337460,7 +337460,7 @@ LAB_00688ee4: uVar12 = FUN_00414410(); if (uVar12 < 2) { LAB_00689197: - uVar16 = FUN_0040d0c0(); + uVar16 = std::string::c_str(); sprintf_s(local_134,0x80,"%s:%s",local_94,uVar16); SimpleString::operator=(this,local_134); SimpleString::operator=(this,"#"); @@ -337500,7 +337500,7 @@ LAB_00689197: if (uVar11 < 2) { LAB_006894b9: ItemConfig_Item::GetLocalizedName(local_17c,0); - uVar16 = FUN_0040d0c0(); + uVar16 = std::string::c_str(); sprintf_s(local_134,0x80,"%s:%s",local_b4,uVar16); std::string::_Tidy_deallocate(); SimpleString::operator=(this,local_134); @@ -337543,7 +337543,7 @@ LAB_006894b9: FUN_00693eb0(*(undefined4 *)uVar15,(int)((ulonglong)uVar15 >> 0x20),uVar16); ItemConfig_Item::GetLocalizedName(local_17c,0); local_8._0_1_ = 199; - uVar16 = FUN_0040d0c0(); + uVar16 = std::string::c_str(); std::string::string_from_cstr(uVar16); local_8._0_1_ = 0xc9; std::string::_Tidy_deallocate(); @@ -337558,7 +337558,7 @@ LAB_006894b9: FUN_00693eb0(*(undefined4 *)uVar15,(int)((ulonglong)uVar15 >> 0x20),uVar16); iVar4 = FUN_00693650(local_2c,0); if (iVar4 != -1) { - uVar16 = FUN_0040d0c0(); + uVar16 = std::string::c_str(); sprintf_s(local_134,0x80,"%s:%s",local_b4,uVar16); SimpleString::operator=(this,local_134); SimpleString::operator=(this,"#"); @@ -337587,7 +337587,7 @@ LAB_006894b9: if (uVar11 < 2) { LAB_006897e1: ItemConfig_Item::GetLocalizedName(local_17c,0); - uVar16 = FUN_0040d0c0(); + uVar16 = std::string::c_str(); sprintf_s(local_134,0x80,"%s:%s",local_94,uVar16); std::string::_Tidy_deallocate(); SimpleString::operator=(this,local_134); @@ -337641,7 +337641,7 @@ LAB_006897e1: FUN_00693eb0(*(undefined4 *)uVar15,(int)((ulonglong)uVar15 >> 0x20),uVar16); iVar4 = FUN_00693650(local_2c,0); if (iVar4 != -1) { - uVar16 = FUN_0040d0c0(); + uVar16 = std::string::c_str(); sprintf_s(local_134,0x80,"%s:%s",local_94,uVar16); SimpleString::operator=(this,local_134); SimpleString::operator=(this,"#"); @@ -337667,8 +337667,8 @@ LAB_006897e1: if (uVar12 < 2) { LAB_006898e4: Config::GetPillEffect(uVar11); - FUN_00724af0(local_17c,0); - uVar16 = FUN_0040d0c0(); + PocketItemConfig::GetName(local_17c,0); + uVar16 = std::string::c_str(); sprintf_s(local_134,0x80,"%s:%s",local_34,uVar16); std::string::_Tidy_deallocate(); SimpleString::operator=(this,local_134); @@ -337697,8 +337697,8 @@ LAB_006898e4: if (uVar12 < 2) { LAB_006899ea: ItemConfig::GetCard(uVar11); - FUN_00724af0(local_17c,0); - uVar16 = FUN_0040d0c0(); + PocketItemConfig::GetName(local_17c,0); + uVar16 = std::string::c_str(); sprintf_s(local_134,0x80,"%s:%s",local_74,uVar16); std::string::_Tidy_deallocate(); SimpleString::operator=(this,local_134); @@ -338245,7 +338245,7 @@ LAB_00688ecd: uVar11 = FUN_00414410(); if (uVar11 < 2) { LAB_00687f92: - uVar16 = FUN_0040d0c0(); + uVar16 = std::string::c_str(); sprintf_s(local_134,0x80,"%s:%s",local_94,uVar16); SimpleString::operator=(this,local_134); SimpleString::operator=(this,"#"); @@ -338299,7 +338299,7 @@ LAB_00689e10: uVar16 = FUN_004143f0(uVar11); FUN_00694120(uVar16); local_1d8 = local_1d8 | 2; - uVar16 = FUN_0040d0c0(); + uVar16 = std::string::c_str(); iVar4 = Font::GetStringWidth(pFVar8,uVar16); local_1bd = '\x01'; if (DAT_00c78dc4 - 20.0 < (float)iVar4) goto LAB_00689e7f; @@ -339061,8 +339061,8 @@ joined_r0x0068be29: uVar4 = FUN_00a1bb10(local_90,pppppppuVar3,&local_6c,&DAT_00c3793c); local_8 = CONCAT31(local_8._1_3_,2); FUN_00a1bd80(uVar4,0x3f800000,0x3f800000,local_70,local_74,local_78,local_3c,0,&local_6c); - FUN_00a55d60(); - FUN_0069dac0(); + std::vector<12byte>::clear(); + std::vector<12byte>::_Tidy(); puVar12 = local_40; local_30 = local_30 - param_2; if (param_4 != '\0') { @@ -339105,7 +339105,7 @@ joined_r0x0068be29: piVar5 = (int *)*piVar5; } local_1c = (float)local_3c; - FUN_00a1af90(piVar5,&local_28,&local_6c); + Font::DrawString(piVar5,&local_28,&local_6c); local_30 = local_30 - param_2; local_8 = 0xffffffff; if (param_4 != '\0') { @@ -339271,15 +339271,15 @@ LAB_0068c393: uStack_a4 = 0; uStack_a0 = 0x3f000000; local_9c = 0; - uVar1 = FUN_00a10d00(in_ECX[4],&local_ac); - FUN_00a1dfd0(uVar1); + uVar1 = render_quad_set_uniform_color(in_ECX[4],&local_ac); + render_color_shader_pass(uVar1); local_ac = 0x3f800000; uStack_a8 = 0x3f800000; uStack_a4 = 0x3f800000; uStack_a0 = 0x3f4ccccd; local_9c = 0; - uVar1 = FUN_00a10d00(in_ECX[4],&local_ac); - FUN_00a1dfd0(uVar1); + uVar1 = render_quad_set_uniform_color(in_ECX[4],&local_ac); + render_color_shader_pass(uVar1); iVar7 = 5 - (in_ECX[0xe] - in_ECX[0xd] >> 1); local_7c = ((float)in_ECX[4] - local_84) - 3.0; if (-1 < iVar7) { @@ -339301,8 +339301,8 @@ LAB_0068c393: local_14 = (undefined4 ***)CONCAT31(local_14._1_3_,1); FUN_00a1bd80(uVar1,0x3f800000,0x3f800000,0x3f0a8a8b,0x3e2cacad,0x3f62e2e3,0x3f800000,0, &local_40); - FUN_00a55d60(); - FUN_0069dac0(); + std::vector<12byte>::clear(); + std::vector<12byte>::_Tidy(); piVar8 = piVar8 + -6; iVar7 = iVar7 + -1; local_14 = (undefined4 ***)0xffffffff; @@ -339348,8 +339348,8 @@ LAB_0068c393: local_14._0_1_ = 4; FUN_00a1bd80(uVar1,0x3f800000,0x3f800000,0x3f2dadae,0x3f800000,0x3e3cbcbd,0x3f800000,0, &local_40); - FUN_00a55d60(); - FUN_0069dac0(); + std::vector<12byte>::clear(); + std::vector<12byte>::_Tidy(); local_14 = (undefined4 ***)CONCAT31(local_14._1_3_,2); if ((((float)local_94 < 0.0) && (piVar5 = (int *)local_8c[0x42], piVar8 <= piVar5)) && (piVar5 <= piVar2)) { @@ -339456,8 +339456,8 @@ LAB_0068c99b: uVar1 = FUN_00a1bb10(&uStack_a8,ppppuVar3,&local_40,&DAT_00c3793c); local_14._0_1_ = 7; FUN_00a1bd80(uVar1,0x3f800000,0x3f800000,0x3f2dadae,0x3f800000,0x3e3cbcbd,0x3f800000,0,&local_40); - FUN_00a55d60(); - FUN_0069dac0(); + std::vector<12byte>::clear(); + std::vector<12byte>::_Tidy(); local_7c = local_7c - local_84; local_14 = (undefined4 ***)CONCAT31(local_14._1_3_,5); if ((uint)local_8c[0x43] < 0xf) { @@ -339469,7 +339469,7 @@ LAB_0068c99b: uStack_a4 = 0; uStack_a0 = 0x3f800000; local_98 = piVar8; - local_90 = FUN_00a10d00(piVar8,&local_ac); + local_90 = render_quad_set_uniform_color(piVar8,&local_ac); if ((*(float *)(local_90 + 0x40) + *(float *)(local_90 + 0x2c) + *(float *)(local_90 + 0x54) + *(float *)(local_90 + 0x68)) * 0.25 != 0.0) { FUN_00a140c0("KAGE_ColorShader"); @@ -339502,7 +339502,7 @@ LAB_0068c99b: uStack_a4 = 0x3e3cbcbd; uStack_a0 = 0x3f800000; local_9c = 0; - local_90 = FUN_00a10d00((float)piVar8 - 1.0,&local_ac); + local_90 = render_quad_set_uniform_color((float)piVar8 - 1.0,&local_ac); if ((*(float *)(local_90 + 0x40) + *(float *)(local_90 + 0x2c) + *(float *)(local_90 + 0x54) + *(float *)(local_90 + 0x68)) * fVar10 != 0.0) { FUN_00a140c0("KAGE_ColorShader"); @@ -339836,7 +339836,7 @@ LAB_0068d936: iVar4 = Room::GetGridHeight(); if (iVar4 != 0) { FUN_004143f0(); - pcVar3 = (char *)FUN_0040d0c0(); + pcVar3 = (char *)std::string::c_str(); iVar24 = atoi(pcVar3); } } @@ -339857,7 +339857,7 @@ LAB_0068d936: FUN_004143f0(); local_26c = (Entity_Player *)0x68de02; FUN_00651a90(); - pcVar3 = (char *)FUN_0040d0c0(); + pcVar3 = (char *)std::string::c_str(); iVar24 = atoi(pcVar3); std::string::_Tidy_deallocate(); pGVar8 = (Game *)Config::GetCollectibles(); @@ -339871,7 +339871,7 @@ LAB_0068d936: local_26c = (Entity_Player *)0x68df86; RoomConfig::GetStageDisplayName(); local_8._0_1_ = 0x1a; - FUN_0040d0c0(); + std::string::c_str(); local_26c = (Entity_Player *)0xb662c8; pEStack_274 = (Entity_Player *)0x68df9f; FUN_00693090(); @@ -339890,13 +339890,13 @@ LAB_0068d936: iVar24 = FUN_00414410(); if (iVar24 != 0) { FUN_004143f0(); - pcVar3 = (char *)FUN_0040d0c0(); + pcVar3 = (char *)std::string::c_str(); atoi(pcVar3); } uVar5 = FUN_00414410(); if (1 < uVar5) { FUN_004143f0(); - pcVar3 = (char *)FUN_0040d0c0(); + pcVar3 = (char *)std::string::c_str(); local_1fc = (Entity_Player *)atoi(pcVar3); } Level::GetCurrentRoom(); @@ -339905,7 +339905,7 @@ LAB_0068d936: uVar5 = FUN_00414410(); if (2 < uVar5) { FUN_004143f0(); - pcVar3 = (char *)FUN_0040d0c0(); + pcVar3 = (char *)std::string::c_str(); atoi(pcVar3); Level::GetCurrentRoom(); local_26c = (Entity_Player *)0x68e0ba; @@ -339974,7 +339974,7 @@ LAB_0068d936: } } FUN_004143f0(); - pcVar3 = (char *)FUN_0040d0c0(); + pcVar3 = (char *)std::string::c_str(); iVar24 = atoi(pcVar3); if (0xd < iVar24 - 1U) goto LAB_0069249e; pLVar9 = (Level *)Config::GetCollectibles(); @@ -339993,7 +339993,7 @@ LAB_0068d936: cVar2 = str_eq_cstr(); if ((cVar2 != '\0') && (iVar24 = FUN_00414410(), iVar24 == 2)) { FUN_004143f0(); - pcVar3 = (char *)FUN_0040d0c0(); + pcVar3 = (char *)std::string::c_str(); iVar24 = atoi(pcVar3); uVar5 = iVar24 - 1; if (uVar5 < 0xe) { @@ -340069,7 +340069,7 @@ LAB_0068e674: FUN_004143f0(); FUN_00693680(); FUN_004143f0(); - pcVar3 = (char *)FUN_0040d0c0(); + pcVar3 = (char *)std::string::c_str(); local_1e5 = *pcVar3; FUN_004143f0(); pcVar13 = (char *)FUN_00693680(); @@ -340421,7 +340421,7 @@ LAB_0068ef7a: cVar2 = str_eq_cstr(); if ((cVar2 != '\0') && (iVar24 = FUN_00414410(), iVar24 == 2)) { FUN_004143f0(); - pcVar3 = (char *)FUN_0040d0c0(); + pcVar3 = (char *)std::string::c_str(); cVar2 = *pcVar3; if ((byte)(pcVar3[1] - 0x30U) < 10) { uVar5 = atoi(pcVar3 + 1); @@ -340515,7 +340515,7 @@ LAB_0068ef7a: iVar24 = FUN_00414410(); if (iVar24 == 2) { FUN_004143f0(); - pcVar3 = (char *)FUN_0040d0c0(); + pcVar3 = (char *)std::string::c_str(); pEVar25 = (Entity_Player *)atoi(pcVar3); local_1fc = pEVar25; } @@ -340555,7 +340555,7 @@ LAB_0068ef7a: iVar24 = Room::GetGridHeight(); if (iVar24 != 0) { FUN_004143f0(); - pcVar3 = (char *)FUN_0040d0c0(); + pcVar3 = (char *)std::string::c_str(); iVar24 = atoi(pcVar3); if (iVar24 < 0) { LAB_0068f438: @@ -340684,7 +340684,7 @@ LAB_0068f438: iVar24 = Room::GetGridHeight(); if (iVar24 != 0) { FUN_004143f0(); - pcVar3 = (char *)FUN_0040d0c0(); + pcVar3 = (char *)std::string::c_str(); uVar5 = atoi(pcVar3); if ((-1 < (int)uVar5) && (uVar29 = FUN_00685f70(), uVar5 <= uVar29)) { iVar24 = Manager::GetChallengeParams(DAT_00c7169c); @@ -341835,13 +341835,13 @@ LAB_00690100: uVar5 = FUN_00414410(); if (2 < uVar5) { FUN_004143f0(); - pcVar3 = (char *)FUN_0040d0c0(); + pcVar3 = (char *)std::string::c_str(); dVar30 = atof(pcVar3); local_204 = (Entity_Player *)(float)dVar30; local_1fc = local_204; } FUN_004143f0(); - pcVar3 = (char *)FUN_0040d0c0(); + pcVar3 = (char *)std::string::c_str(); local_26c = (Entity_Player *)atoi(pcVar3); pEStack_270 = (Entity_Player *)0x6914f8; SoundEffects::PlayWithFartOverride(); @@ -341855,7 +341855,7 @@ LAB_00690100: if (1 < uVar5) { do { FUN_004143f0(); - pcVar3 = (char *)FUN_0040d0c0(); + pcVar3 = (char *)std::string::c_str(); atoi(pcVar3); uVar29 = uVar29 + 1; uVar5 = FUN_00414410(); @@ -341869,7 +341869,7 @@ LAB_00690100: if (cVar2 != '\0') { Game::GetSeeds(); Config::GetCollectibles(); - FUN_004360f0(); + _get_index_plus_one_if_kind_4_5(); Seeds::ForgetStageSeed(); Config::GetCollectibles(); Level::Init(); @@ -341917,7 +341917,7 @@ LAB_00691611: cVar2 = str_eq_cstr(); if ((cVar2 != '\0') && (iVar24 = FUN_00414410(), iVar24 == 2)) { FUN_004143f0(); - pcVar3 = (char *)FUN_0040d0c0(); + pcVar3 = (char *)std::string::c_str(); local_204 = (Entity_Player *)atoi(pcVar3); std::string::string_from_cstr(); local_8 = CONCAT31(local_8._1_3_,0xa2); @@ -341931,7 +341931,7 @@ LAB_00691611: local_8 = CONCAT31(local_8._1_3_,0xa2); std::string::_Tidy_deallocate(); } - FUN_0040d0c0(); + std::string::c_str(); FUN_00a19440(); FUN_00a26620(); std::string::string_from_cstr(); @@ -341946,7 +341946,7 @@ LAB_00691611: cVar2 = str_eq_cstr(); if ((cVar2 != '\0') && (iVar24 = FUN_00414410(), iVar24 == 2)) { FUN_004143f0(); - FUN_0040d0c0(); + std::string::c_str(); FUN_0086e6c0(); goto LAB_0069249e; } @@ -342080,8 +342080,8 @@ LAB_006918d8: EntityPtr::Ref(); local_26c = (Entity_Player *)0x691c88; local_1fc = (Entity_Player *)FUN_00422830(); - FUN_00557b00(); - FUN_004561a0(); + std::set::find(); + std::iterator_copy(); cVar2 = FUN_00557bb0(); if (cVar2 == '\0') { iVar4 = FUN_005cba30(); @@ -342095,7 +342095,7 @@ LAB_006918d8: iVar24 = iVar24 + -1; } while (iVar24 != 0); FUN_0042c770(); - FUN_004561a0(); + std::iterator_copy(); cVar2 = FUN_0042c710(); while (cVar2 != '\0') { piVar12 = (int *)FUN_005cba30(); @@ -342114,14 +342114,14 @@ LAB_006918d8: FUN_00417910(); FUN_005cba30(); FUN_0069d200(); - FUN_0040d0c0(); + std::string::c_str(); local_26c = pEVar25; LAB_00691de8: pEStack_270 = (Entity_Player *)0x691ded; FUN_00693090(); } FUN_00693270(); - FUN_004561a0(); + std::iterator_copy(); cVar2 = FUN_0042c710(); } FUN_00436fb0(); @@ -342146,7 +342146,7 @@ LAB_00691de8: local_8._0_1_ = 0xaf; ModManager::TryRedirectPath(pMVar18); local_8._0_1_ = 0xb0; - FUN_0040d0c0(); + std::string::c_str(); FUN_0072a1b0(); std::string::_Tidy_deallocate(); local_8 = (uint)local_8._1_3_ << 8; @@ -342157,7 +342157,7 @@ LAB_00691de8: local_8._0_1_ = 0xb1; ModManager::TryRedirectPath(pMVar18); local_8._0_1_ = 0xb2; - FUN_0040d0c0(); + std::string::c_str(); FUN_0072ba80(); std::string::_Tidy_deallocate(); local_8._0_1_ = 0; @@ -342172,10 +342172,10 @@ LAB_00691de8: pEVar25 = (Entity_Player *)*puVar20; local_26c = (Entity_Player *)0x6922a4; local_20c = pEVar25; - cVar2 = FUN_00417220(); + cVar2 = Entity::IsType(); if (cVar2 == '\0') { local_26c = (Entity_Player *)0x6922f9; - cVar2 = FUN_00417220(); + cVar2 = Entity::IsType(); if (cVar2 != '\0') { local_204 = *(Entity_Player **)(*(int *)pEVar25 + 4); Entity::InitSeed(); @@ -342229,7 +342229,7 @@ LAB_00691de8: iVar24 = FUN_00414410(); if (iVar24 == 2) { FUN_004143f0(); - FUN_0040d0c0(); + std::string::c_str(); iVar24 = FUN_009036b0(); if (iVar24 == 0) { std::string::string_from_cstr(); @@ -342250,7 +342250,7 @@ LAB_00692495: uVar5 = FUN_00414410(); if (1 < uVar5) { FUN_004143f0(); - pcVar3 = (char *)FUN_0040d0c0(); + pcVar3 = (char *)std::string::c_str(); local_1fc = (Entity_Player *)atoi(pcVar3); } uVar5 = FUN_00414410(); @@ -342322,7 +342322,7 @@ LAB_00691ed6: } else { FUN_004143f0(); - pcVar3 = (char *)FUN_0040d0c0(); + pcVar3 = (char *)std::string::c_str(); local_200 = atoi(pcVar3); if ((int)local_200 < 0) goto LAB_00691ed6; } @@ -342362,13 +342362,13 @@ LAB_00691ed6: pEStack_274 = (Entity_Player *)0x6920d9; local_26c = (Entity_Player *)Vector::__add(); pEStack_270 = (Entity_Player *)0x6920e1; - FUN_004288f0(); + Entity::SetPosition(); local_26c = (Entity_Player *)0x6920ec; Game::GetHUD(); local_26c = (Entity_Player *)0x6920f3; HUD::AssignPlayerHUDs(); local_26c = (Entity_Player *)0x6920fa; - FUN_007bc740(); + Entity_Player::InitPostLevelInitStats(); goto LAB_0069249e; } pRVar11 = (Room *)Level::GetCurrentRoom(); @@ -342378,7 +342378,7 @@ LAB_00691ed6: } else { FUN_004143f0(); - pcVar3 = (char *)FUN_0040d0c0(); + pcVar3 = (char *)std::string::c_str(); uVar5 = atoi(pcVar3); if (uVar5 < 0x1b) { local_26c = (Entity_Player *)0x68fccf; @@ -342402,7 +342402,7 @@ LAB_00691ed6: iVar24 = Room::GetGridHeight(); if (iVar24 != 0) { FUN_004143f0(); - pcVar3 = (char *)FUN_0040d0c0(); + pcVar3 = (char *)std::string::c_str(); local_200 = atoi(pcVar3); if (((int)local_200 < 0) || (0x1e < (int)local_200)) { local_200 = 0; @@ -342432,7 +342432,7 @@ LAB_0068fc25: iVar24 = Room::GetGridHeight(); if (iVar24 == 0) goto LAB_0068fc25; FUN_004143f0(); - FUN_0040d0c0(); + std::string::c_str(); iVar4 = (*pcVar26)(); if (0 < iVar4) goto LAB_0068fc25; } @@ -342440,7 +342440,7 @@ LAB_0068fc25: goto LAB_0069249e; } FUN_004143f0(); - pcVar3 = (char *)FUN_0040d0c0(); + pcVar3 = (char *)std::string::c_str(); local_20c = (Entity_Player *)atoi(pcVar3); uVar5 = 1; if ((int)local_20c < 1) goto LAB_0069249e; @@ -342466,7 +342466,7 @@ LAB_0068fc25: FUN_0060c420(); std::string::string(); local_8._0_1_ = 0x2e; - FUN_0040d0c0(); + std::string::c_str(); pEStack_270 = (Entity_Player *)0x68f70e; FUN_00693090(); iVar24 = 0; @@ -342507,7 +342507,7 @@ LAB_0068fc25: ItemConfig::GetCollectible(); ItemConfig_Item::GetLocalizedName(); local_8._0_1_ = 0x2b; - FUN_0040d0c0(); + std::string::c_str(); pEStack_270 = (Entity_Player *)0x68f55f; FUN_00693090(); local_8._0_1_ = 0; @@ -342530,10 +342530,10 @@ LAB_0068fc25: uVar5 = FUN_00414410(); if (2 < uVar5) { FUN_004143f0(); - pcVar3 = (char *)FUN_0040d0c0(); + pcVar3 = (char *)std::string::c_str(); local_21c = atoi(pcVar3); FUN_004143f0(); - pcVar3 = (char *)FUN_0040d0c0(); + pcVar3 = (char *)std::string::c_str(); local_1fc = (Entity_Player *)atoi(pcVar3); uVar5 = FUN_00414410(); if (uVar5 < 4) { @@ -342541,7 +342541,7 @@ LAB_0068fc25: } else { FUN_004143f0(); - pcVar3 = (char *)FUN_0040d0c0(); + pcVar3 = (char *)std::string::c_str(); uVar5 = atoi(pcVar3); } if (((local_21c < 0xd) && (local_1fc < (Entity_Player *)&DAT_0000000d)) && (uVar5 < 3)) { @@ -342589,7 +342589,7 @@ LAB_0068fc25: iVar24 = Room::GetGridHeight(); if (iVar24 != 0) { FUN_004143f0(); - pcVar3 = (char *)FUN_0040d0c0(); + pcVar3 = (char *)std::string::c_str(); atoi(pcVar3); } } @@ -342619,7 +342619,7 @@ LAB_0068dccb: FUN_004143f0(); local_26c = (Entity_Player *)0x68db69; FUN_00651a90(); - pcVar3 = (char *)FUN_0040d0c0(); + pcVar3 = (char *)std::string::c_str(); atoi(pcVar3); std::string::_Tidy_deallocate(); pRVar7 = (RoomConfig *)FUN_00421790(); @@ -342650,15 +342650,15 @@ LAB_0068d95d: local_200 = 0xffffffff; iVar24 = local_6c - local_70 >> 0x1f; if ((local_6c - local_70) / 0x18 + iVar24 != iVar24) { - pcVar3 = (char *)FUN_0040d0c0(); + pcVar3 = (char *)std::string::c_str(); local_22c = atoi(pcVar3); } if (1 < (uint)((local_6c - local_70) / 0x18)) { - pcVar3 = (char *)FUN_0040d0c0(); + pcVar3 = (char *)std::string::c_str(); local_1fc = (Entity_Player *)atoi(pcVar3); } if (2 < (uint)((local_6c - local_70) / 0x18)) { - pcVar3 = (char *)FUN_0040d0c0(); + pcVar3 = (char *)std::string::c_str(); local_230 = atoi(pcVar3); } if (3 < (uint)((local_6c - local_70) / 0x18)) { @@ -342687,7 +342687,7 @@ LAB_0068d95d: } else { local_200 = iVar24; - iVar4 = FUN_0040d0c0(); + iVar4 = std::string::c_str(); local_200 = atoi((char *)(iVar4 + iVar24)); } } @@ -343989,7 +343989,7 @@ void FUN_00693650(undefined4 *param_1,undefined4 param_2) if (0xf < (uint)param_1[5]) { param_1 = (undefined4 *)*param_1; } - FUN_00557bd0(param_2,param_1,*puVar1); + std::string::find(param_2,param_1,*puVar1); return; } @@ -344454,7 +344454,7 @@ void FUN_00693d20(uint param_1,undefined4 param_2,undefined1 param_3) } if (uVar4 == 0x7fffffff) { /* WARNING: Subroutine does not return */ - FUN_0040ccc0(); + std::string::_Xlen(); } uVar5 = uVar4 + 1 | 0xf; if (uVar5 < 0x80000000) { @@ -344647,7 +344647,7 @@ void FUN_00694120(undefined4 *param_1) iVar1 = in_EDX[4]; if (0x7fffffffU - iVar1 < (uint)param_1[4]) { /* WARNING: Subroutine does not return */ - FUN_0040ccc0(); + std::string::_Xlen(); } if (0xf < (uint)in_EDX[5]) { in_EDX = (undefined4 *)*in_EDX; @@ -344656,7 +344656,7 @@ void FUN_00694120(undefined4 *param_1) if (0xf < (uint)param_1[5]) { puVar2 = (undefined4 *)*param_1; } - FUN_00421680(param_1,iVar1,in_EDX,iVar1,puVar2,param_1[4]); + std::string::concat(param_1,iVar1,in_EDX,iVar1,puVar2,param_1[4]); return; } @@ -344673,12 +344673,12 @@ void FUN_00694170(undefined1 param_1) piVar1 = in_EDX + 4; if (*piVar1 == 0x7fffffff) { /* WARNING: Subroutine does not return */ - FUN_0040ccc0(); + std::string::_Xlen(); } if (0xf < (uint)in_EDX[5]) { in_EDX = (undefined4 *)*in_EDX; } - FUN_00421680(local_c,¶m_1,in_EDX,*piVar1,¶m_1,1); + std::string::concat(local_c,¶m_1,in_EDX,*piVar1,¶m_1,1); return; } @@ -344700,13 +344700,13 @@ void FUN_006941b0(undefined4 *param_1) } while (cVar1 != '\0'); if (0x7fffffff - param_1[4] < (uint)((int)pcVar3 - (int)(in_EDX + 1))) { /* WARNING: Subroutine does not return */ - FUN_0040ccc0(); + std::string::_Xlen(); } puVar2 = param_1; if (0xf < (uint)param_1[5]) { puVar2 = (undefined4 *)*param_1; } - FUN_00421680(param_1,puVar2,in_EDX,(int)pcVar3 - (int)(in_EDX + 1),puVar2,param_1[4]); + std::string::concat(param_1,puVar2,in_EDX,(int)pcVar3 - (int)(in_EDX + 1),puVar2,param_1[4]); return; } @@ -345188,10 +345188,10 @@ undefined4 * FUN_00694d20(undefined4 *param_1,uint param_2) } if (*pcVar3 == '#') { param_2 = param_2 & 0xffffff; - FUN_00a26af0("Entities",uVar4,pcVar3 + 1,(int)¶m_2 + 3); + StringTable::get_string("Entities",uVar4,pcVar3 + 1,(int)¶m_2 + 3); if (param_2._3_1_ == '\0') { param_2 = param_2 & 0xffffff; - pcVar3 = (char *)FUN_00a26af0("Entities",uVar4,pcVar3 + 1,(int)¶m_2 + 3); + pcVar3 = (char *)StringTable::get_string("Entities",uVar4,pcVar3 + 1,(int)¶m_2 + 3); } } } @@ -345234,10 +345234,10 @@ EntityConfig_Player::GetDisplayName(EntityConfig_Player *this,undefined4 *param_ uVar2 = *(undefined4 *)(DAT_00c7169c + 0x4a920); if (*pcVar4 == '#') { local_5 = '\0'; - FUN_00a26af0("Players",uVar2,pcVar4 + 1,&local_5); + StringTable::get_string("Players",uVar2,pcVar4 + 1,&local_5); if (local_5 == '\0') { local_5 = '\0'; - pcVar4 = (char *)FUN_00a26af0("Players",uVar2,pcVar4 + 1,&local_5); + pcVar4 = (char *)StringTable::get_string("Players",uVar2,pcVar4 + 1,&local_5); } } } @@ -346342,7 +346342,7 @@ LAB_00695cff: if (0xf < local_4c) { pppppppuVar9 = local_60[0]; } - FUN_00421680(iStack_1024c,uVar3,pppppppuVar9,local_50,pcVar17,uVar3); + std::string::concat(iStack_1024c,uVar3,pppppppuVar9,local_50,pcVar17,uVar3); uStack_10234 = uStack_10234 | 1; std::string::_Tidy_deallocate(); pppppppiStack_101ac = local_3c; @@ -347951,7 +347951,7 @@ LAB_00698436: fStack_10114 = 2.10195e-44; pppppppiStack_10128 = (int *******)((uint)pppppppiStack_10128 & 0xffffff00); std::string::_Tidy_deallocate(); - FUN_0069dac0(); + std::vector<12byte>::_Tidy(); FID_conflict__Tidy(auStack_10188); FUN_0069db30(); if (0xf < (uint)fStack_10198) { @@ -348962,13 +348962,13 @@ LAB_00697ca9: if (0x7fffffffU - local_50 < uVar3) { LAB_00698aa1: /* WARNING: Subroutine does not return */ - FUN_0040ccc0(); + std::string::_Xlen(); } pppppppuVar9 = local_60; if (0xf < local_4c) { pppppppuVar9 = local_60[0]; } - FUN_00421680(uStack_10250,uVar3,pppppppuVar9,local_50,pcVar17,uVar3); + std::string::concat(uStack_10250,uVar3,pppppppuVar9,local_50,pcVar17,uVar3); uStack_10234 = uStack_10234 | 0x10; std::string::_Tidy_deallocate(); pppppppiStack_10128 = local_3c; @@ -349268,7 +349268,7 @@ void FUN_00698ab0(void) std::string::_Tidy_deallocate(); std::string::_Tidy_deallocate(); std::string::_Tidy_deallocate(); - FUN_0069dac0(); + std::vector<12byte>::_Tidy(); FID_conflict__Tidy((void *)(in_ECX + 0x98)); FUN_0069db30(); std::string::_Tidy_deallocate(); @@ -349348,7 +349348,7 @@ void FUN_00698b40(undefined4 *param_1) sVar4 = param_1[0x27] - (int)pvVar1; local_8 = (void *)*piVar5; if ((uint)(in_ECX[0x28] - (int)local_8 >> 2) < (uint)((int)sVar4 >> 2)) { - FUN_006a0d30((int)sVar4 >> 2); + std::vector::reserve_clear((int)sVar4 >> 2); local_8 = (void *)*piVar5; } memmove(local_8,pvVar1,sVar4); @@ -349813,13 +349813,13 @@ LAB_00699435: if (0x7fffffffU - local_44 < uVar5) { LAB_00699898: /* WARNING: Subroutine does not return */ - FUN_0040ccc0(); + std::string::_Xlen(); } ppppuVar12 = local_54; if (0xf < local_40) { ppppuVar12 = local_54[0]; } - FUN_00421680(in_ECX,uVar5,ppppuVar12,local_44,pcVar17,uVar5); + std::string::concat(in_ECX,uVar5,ppppuVar12,local_44,pcVar17,uVar5); if (0xf < uStack_80) { uVar5 = uStack_80 + 1; iVar15 = local_94; @@ -349873,7 +349873,7 @@ LAB_00699535: if (0xf < local_28) { ppppuVar12 = local_3c[0]; } - FUN_00421680(in_ECX,uVar5,ppppuVar12,local_2c,pcVar17,uVar5); + std::string::concat(in_ECX,uVar5,ppppuVar12,local_2c,pcVar17,uVar5); if (0xf < uStack_68) { uVar5 = uStack_68 + 1; iVar15 = local_7c; @@ -349962,7 +349962,7 @@ LAB_0069967b: FUN_0069f300(*(int *)(iVar11 + 0x6c),&local_d8); } else { - FUN_0069f990(&local_d8); + Color::copy_constructor_ext(&local_d8); *(int *)(iVar11 + 0x6c) = *(int *)(iVar11 + 0x6c) + 0x7c; } local_14._0_1_ = 2; @@ -350429,7 +350429,7 @@ LAB_00699ce5: if (0xf < local_58) { ppppuVar8 = local_6c[0]; } - FUN_00421680(piStack_10234,uVar4,ppppuVar8,local_5c,pcVar21,uVar4); + std::string::concat(piStack_10234,uVar4,ppppuVar8,local_5c,pcVar21,uVar4); uStack_10220 = uStack_10220 | 0x400; std::string::_Tidy_deallocate(); auStack_10218._28_4_ = local_3c[0]; @@ -350478,7 +350478,7 @@ LAB_00699da5: if (0xf < local_70) { ppppuVar8 = local_84[0]; } - FUN_00421680(piStack_10234,uVar4,ppppuVar8,local_74,pcVar21,uVar4); + std::string::concat(piStack_10234,uVar4,ppppuVar8,local_74,pcVar21,uVar4); uStack_10220 = uStack_10220 | 0x800; std::string::_Tidy_deallocate(); ppppiStack_101e4 = local_3c[0]; @@ -350527,7 +350527,7 @@ LAB_00699e65: if (0xf < local_40) { ppppuVar8 = local_54[0]; } - FUN_00421680(piStack_10234,uVar4,ppppuVar8,local_44,pcVar21,uVar4); + std::string::concat(piStack_10234,uVar4,ppppuVar8,local_44,pcVar21,uVar4); uStack_10220 = uStack_10220 | 0x1000; std::string::_Tidy_deallocate(); ppppiStack_101cc = local_3c[0]; @@ -350576,7 +350576,7 @@ LAB_00699f25: if (0xf < local_40) { ppppuVar8 = local_54[0]; } - FUN_00421680(piStack_10234,uVar4,ppppuVar8,local_44,pcVar21,uVar4); + std::string::concat(piStack_10234,uVar4,ppppuVar8,local_44,pcVar21,uVar4); uStack_10220 = uStack_10220 | 0x2000; std::string::_Tidy_deallocate(); ppppiStack_1019c = local_3c[0]; @@ -351965,13 +351965,13 @@ LAB_0069b451: if (0x7fffffffU - local_5c < uVar4) { LAB_0069b79c: /* WARNING: Subroutine does not return */ - FUN_0040ccc0(); + std::string::_Xlen(); } ppppuVar8 = local_6c; if (0xf < local_58) { ppppuVar8 = local_6c[0]; } - FUN_00421680(piStack_10234,uVar4,ppppuVar8,local_5c,pcVar21,uVar4); + std::string::concat(piStack_10234,uVar4,ppppuVar8,local_5c,pcVar21,uVar4); uStack_10220 = uStack_10220 | 0x8000; local_14 = (int ***)CONCAT31(local_14._1_3_,9); if (*(int *)(iStack_1022c + 0x30) == *(int *)(iStack_1022c + 0x34)) { @@ -352153,7 +352153,7 @@ void FUN_0069b810(undefined4 *param_1) _Size = param_1[0x36] - (int)_Src; param_1 = (undefined4 *)*piVar5; if ((uint)(in_ECX[0x37] - (int)param_1 >> 2) < (uint)((int)_Size >> 2)) { - FUN_006a0d30((int)_Size >> 2); + std::vector::reserve_clear((int)_Size >> 2); param_1 = (undefined4 *)*piVar5; } memmove(param_1,_Src,_Size); @@ -352193,9 +352193,9 @@ void FUN_0069b810(undefined4 *param_1) } -//@@ 0069ba90 FUN_0069ba90 +//@@ 0069ba90 EntityConfig::PreloadResources -void FUN_0069ba90(int param_1) +void EntityConfig::PreloadResources(int param_1) { char cVar1; @@ -352253,7 +352253,7 @@ void FUN_0069ba90(int param_1) pcStack_28 = (char *)piVar2[1]; iStack_24 = EntityConfig::GetEntity(*piVar2); pcStack_28 = (char *)0x69bbcd; - FUN_0069ba90(); + EntityConfig::PreloadResources(); } piVar2 = piVar2 + 9; } while (piVar2 != *(int **)(param_1 + 0x90)); @@ -352576,13 +352576,13 @@ LAB_0069c015: uVar10 = (int)pcVar12 - (int)(pcVar14 + 1); if (0x7fffffffU - local_64 < uVar10) { /* WARNING: Subroutine does not return */ - FUN_0040ccc0(); + std::string::_Xlen(); } ppppuVar11 = local_74; if (0xf < local_60) { ppppuVar11 = local_74[0]; } - FUN_00421680(uStack_10120,uVar10,ppppuVar11,local_64,pcVar14,uVar10); + std::string::concat(uStack_10120,uVar10,ppppuVar11,local_64,pcVar14,uVar10); uStack_10120 = 1; if (0xf < uStack_2c) { uVar10 = uStack_2c + 1; @@ -353024,7 +353024,7 @@ LAB_0069c825: if (0xf < local_28) { ppppppuVar14 = local_3c[0]; } - FUN_00421680(iVar11,uVar8,ppppppuVar14,local_2c,pcVar21,uVar8); + std::string::concat(iVar11,uVar8,ppppppuVar14,local_2c,pcVar21,uVar8); if (0xf < uStack_10108) { uVar8 = uStack_10108 + 1; ppppppiVar13 = appppppiStack_1011c[0]; @@ -353077,13 +353077,13 @@ LAB_0069c90d: if (0x7fffffffU - local_2c < uVar8) { LAB_0069d13b: /* WARNING: Subroutine does not return */ - FUN_0040ccc0(); + std::string::_Xlen(); } ppppppuVar14 = local_3c; if (0xf < local_28) { ppppppuVar14 = local_3c[0]; } - FUN_00421680(iVar11,uVar8,ppppppuVar14,local_2c,pcVar21,uVar8); + std::string::concat(iVar11,uVar8,ppppppuVar14,local_2c,pcVar21,uVar8); if (0xf < uStack_100f0) { uVar8 = uStack_100f0 + 1; ppppppiVar13 = appppppiStack_10104[0]; @@ -353340,7 +353340,7 @@ LAB_0069cd4d: if (0xf < local_28) { ppppppuVar14 = local_3c[0]; } - FUN_00421680(iVar11,uVar8,ppppppuVar14,local_2c,pcVar21,uVar8); + std::string::concat(iVar11,uVar8,ppppppuVar14,local_2c,pcVar21,uVar8); if (0xf < uStack_40) { uVar8 = uStack_40 + 1; ppppppiVar13 = local_54[0]; @@ -354105,9 +354105,9 @@ void FUN_0069da90(int param_1,int param_2) } -//@@ 0069dac0 FUN_0069dac0 +//@@ 0069dac0 std::vector<12byte>::_Tidy -void FUN_0069dac0(void) +void std::vector<12byte>::_Tidy(void) { int iVar1; @@ -354927,7 +354927,7 @@ void FUN_0069e6c0(undefined4 *param_1) in_EDX[0x32] = param_1[0x32]; in_EDX[0x33] = param_1[0x33]; *(undefined1 *)(in_EDX + 0x34) = *(undefined1 *)(param_1 + 0x34); - FUN_0043eca0(param_1 + 0x35); + std::vector::copy_constructor(param_1 + 0x35); local_8._0_1_ = 7; in_EDX[0x38] = param_1[0x38]; in_EDX[0x39] = param_1[0x39]; @@ -355567,7 +355567,7 @@ int FUN_0069f300(int param_1,undefined4 param_2) iVar3 = std::_Allocate(); local_8 = 0; iVar6 = ((param_1 - iVar6) / 0x7c) * 0x7c + iVar3; - FUN_0069f990(param_2); + Color::copy_constructor_ext(param_2); if (param_1 == in_ECX[1]) { FUN_006a0c40(iVar3); } @@ -355825,9 +355825,9 @@ LAB_0069f984: } -//@@ 0069f990 FUN_0069f990 +//@@ 0069f990 Color::copy_constructor_ext -void FUN_0069f990(undefined4 *param_1) +void Color::copy_constructor_ext(undefined4 *param_1) { undefined4 uVar1; @@ -357015,7 +357015,7 @@ int FUN_006a0c40(int param_1) iVar1 = in_ECX; local_10 = ExceptionList; for (; ExceptionList = ppvVar2, in_ECX != in_EDX; in_ECX = in_ECX + 0x7c) { - FUN_0069f990(in_ECX); + Color::copy_constructor_ext(in_ECX); param_1 = param_1 + 0x7c; ppvVar2 = ExceptionList; iVar1 = extraout_ECX; @@ -357070,9 +357070,9 @@ void FUN_006a0d00(void) } -//@@ 006a0d30 FUN_006a0d30 +//@@ 006a0d30 std::vector::reserve_clear -void FUN_006a0d30(uint param_1) +void std::vector::reserve_clear(uint param_1) { int iVar1; @@ -358602,7 +358602,7 @@ void __thiscall Entity_Bomb::Update(Entity_Bomb *this) local_d0 = this; puVar8 = local_4c + 0x48; if (this->_loadCostumes != 0) { - FUN_006a6f10(local_24); + Entity_Bomb::update_sparks(local_24); puVar8 = puStack_20; } puStack_20 = puVar8; @@ -358748,7 +358748,7 @@ LAB_006a2829: (**(code **)(*piVar11 + 0x3c))(&local_d0->field_0xf0,0xffffffff,0xff,0,1); (**(code **)(*piVar11 + 0xc))(); SoundEffects::PlayWithFartOverride(0x96,2,0,0x3f800000); - FUN_0067d430(*local_80,local_80[1],local_80[2],local_80[3]); + tear_flags_area_apply(*local_80,local_80[1],local_80[2],local_80[3]); this = local_d0; } } @@ -358991,7 +358991,7 @@ LAB_006a34c6: } else { Entity_Player::GetShootingJoystick(local_a0 + 8); - FUN_007b9f60(local_a0 + 8,0); + Entity_Player::GetMouseAimTarget(local_a0 + 8,0); iVar13 = *(int *)((int)local_88 + 0x140c); if (iVar13 != 0) { fVar30 = (*(float *)(iVar13 + 0x33c) - (this->_pos).x) / 10.0; @@ -359743,7 +359743,7 @@ LAB_006a4412: } piVar11 = (int *)BitSet128::operator_and(&DAT_00c34b20); if ((*piVar11 != 0 || piVar11[1] != 0) || (piVar11[2] != 0 || piVar11[3] != 0)) { - FUN_00705b90(&this->_pos,0,0); + Game::AttractEntities(&this->_pos,0,0); } cVar9 = PlayerManager::AnyoneHasTrinket(0x3f); if (((cVar9 != '\0') && (this->_explosionCountdown1 == 0)) && @@ -360006,7 +360006,7 @@ void __thiscall Entity_Bomb::Render(Entity_Bomb *this,float *param_2) if ((this->_exists != 0) && (this->_visible != 0)) { if (this->_loadCostumes != 0) { - FUN_006a6f10(); + Entity_Bomb::update_sparks(); } fVar12 = DAT_00bf941c * DAT_00bf93e8; dVar13 = floor((double)(((((this->_posOffset).x + (this->_pos).x) - 60.0) * 0.65 + @@ -360393,9 +360393,9 @@ LAB_006a660f: sqrtf(); fStack_60 = fVar8; } - FUN_006b2210(param_2); + Entity::IsCollisionIgnored(param_2); fVar9 = fVar8; - FUN_006b2210(this); + Entity::IsCollisionIgnored(this); fVar8 = fVar8 / (fVar9 + fVar8); fVar9 = (param_2->_velocity).y - (this->_velocity).y; fVar10 = (param_2->_velocity).x - (this->_velocity).x; @@ -360658,7 +360658,7 @@ undefined4 * FUN_006a69e0(undefined4 *param_1,undefined4 *param_2,int *param_3) piVar5 = (int *)(iVar7 + local_ac); if (0x7fffffffU - local_5c < uVar9) { /* WARNING: Subroutine does not return */ - FUN_0040ccc0(); + std::string::_Xlen(); } ppppppuVar4 = local_6c; if (0xf < local_58) { @@ -360667,7 +360667,7 @@ undefined4 * FUN_006a69e0(undefined4 *param_1,undefined4 *param_2,int *param_3) if (0xf < (uint)piVar5[5]) { piVar5 = (int *)*piVar5; } - FUN_00421680(param_2,piVar5,ppppppuVar4,local_5c,piVar5,uVar9); + std::string::concat(param_2,piVar5,ppppppuVar4,local_5c,piVar5,uVar9); local_14._0_1_ = 3; ppppppuVar4 = &local_54; if (0xf < local_40) { @@ -360840,11 +360840,11 @@ LAB_006a6eec: } -//@@ 006a6f10 FUN_006a6f10 +//@@ 006a6f10 Entity_Bomb::update_sparks /* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */ -void FUN_006a6f10(void) +void Entity_Bomb::update_sparks(void) { int iVar1; @@ -361623,7 +361623,7 @@ void FUN_006a7f80(undefined4 param_1) uStack_13c = 0x3f800000; uStack_138 = 0x3f800000; local_134 = 0; - FUN_00a1af90(local_114,&local_144,&local_130); + Font::DrawString(local_114,&local_144,&local_130); ExceptionList = local_10; return; } @@ -361652,9 +361652,9 @@ void FUN_006a80d0(void) } -//@@ 006a80f0 FUN_006a80f0 +//@@ 006a80f0 LuaRef::push -void FUN_006a80f0(undefined4 param_1) +void LuaRef::push(undefined4 param_1) { int in_ECX; @@ -361974,7 +361974,7 @@ void __thiscall Entity::destructor(Entity *this) *(_Tree_node **)(*(int *)&this->field_0x3cc + 4)); operator_delete(*(undefined4 *)puVar1,0x14); FUN_006b7d40(); - FUN_00426980(); + std::vector::_Tidy(); local_8 = 2; ANM2::Reset((ANM2 *)&this->field_0x48); AnimationState::~AnimationState(); @@ -362027,9 +362027,9 @@ int Entity::GetLastChild(void) } -//@@ 006a89d0 FUN_006a89d0 +//@@ 006a89d0 Entity::GetLastSpawner -int FUN_006a89d0(void) +int Entity::GetLastSpawner(void) { int iVar1; @@ -362312,9 +362312,9 @@ undefined1 __thiscall Entity::IsValidTarget(Entity *this,Entity *param_2) } -//@@ 006a8f20 FUN_006a8f20 +//@@ 006a8f20 Entity::is_valid_boss_enemy -uint FUN_006a8f20(void) +uint Entity::is_valid_boss_enemy(void) { uint uVar1; @@ -362396,7 +362396,7 @@ undefined1 Entity::IsDescendantOf(uint param_1) _Find_lower_bound<>(local_28,¶m_1); if (((*(char *)(local_20 + 0xd) == '\0') && (*(uint *)(local_20 + 0x10) <= uVar1)) && (local_20 != local_1c)) break; - puVar4 = (undefined1 *)FUN_006b7d20(¶m_1); + puVar4 = (undefined1 *)_Entity::GetAncestorField(¶m_1); *puVar4 = 1; uVar1 = *(uint *)(param_1 + 0x3bc); } @@ -362414,7 +362414,7 @@ undefined1 Entity::IsDescendantOf(uint param_1) _Find_lower_bound<>(local_28,¶m_1); if (((*(char *)(local_20 + 0xd) == '\0') && (*(uint *)(local_20 + 0x10) <= uVar1)) && (local_20 != local_1c)) break; - puVar4 = (undefined1 *)FUN_006b7d20(¶m_1); + puVar4 = (undefined1 *)_Entity::GetAncestorField(¶m_1); *puVar4 = 1; uVar1 = *(uint *)(param_1 + 0x3c8); } @@ -362471,7 +362471,7 @@ uint Entity::GetPlayerAncestor(void) _Find_lower_bound<>(local_28,local_1c + 2); if (((*(char *)(local_20 + 0xd) == '\0') && (*(uint *)(local_20 + 0x10) <= (uint)iVar1)) && (local_20 != local_1c[0])) break; - puVar2 = (undefined1 *)FUN_006b7d20(local_1c + 2); + puVar2 = (undefined1 *)_Entity::GetAncestorField(local_1c + 2); *puVar2 = 1; local_1c[2] = *(uint *)(local_1c[2] + 0x3bc); } while (local_1c[2] != 0); @@ -362493,7 +362493,7 @@ uint Entity::GetPlayerAncestor(void) _Find_lower_bound<>(local_28,local_1c + 2); if (((*(char *)(local_20 + 0xd) == '\0') && (*(uint *)(local_20 + 0x10) <= (uint)iVar1)) && (local_20 != local_1c[0])) break; - puVar2 = (undefined1 *)FUN_006b7d20(local_1c + 2); + puVar2 = (undefined1 *)_Entity::GetAncestorField(local_1c + 2); *puVar2 = 1; local_1c[2] = *(uint *)(local_1c[2] + 0x3c8); } while (local_1c[2] != 0); @@ -362791,7 +362791,7 @@ void __thiscall Entity::LoadEntityConfig(Entity *this) iVar4 = this->_type; iVar3 = EntityConfig::GetEntity(iVar4,iVar5,this->_subtype); if (iVar3 != 0) { - FUN_0069ba90(iVar3); + EntityConfig::PreloadResources(iVar3); iVar5 = this->_variant; iVar4 = this->_type; } @@ -362930,9 +362930,9 @@ void Entity::AddHealth(float param_1) } -//@@ 006a9c90 FUN_006a9c90 +//@@ 006a9c90 Entity::CollideWithGrid -void FUN_006a9c90(char param_1) +void Entity::CollideWithGrid(char param_1) { float *pfVar1; @@ -364307,7 +364307,7 @@ LAB_006ac5c1: if ((*(uint *)(in_ECX + 0x168) & 0x20000000) == 0) { return 1; } - iVar2 = FUN_006a89d0(); + iVar2 = Entity::GetLastSpawner(); if ((((*(uint *)(iVar2 + 0x168) & 0x20000000) == 0) && (*(int *)(iVar2 + 0x28) != 1)) && (*(int *)(iVar2 + 0x28) != 3)) { return extraout_DL; @@ -364435,7 +364435,7 @@ int Entity::CountRelatedEntities(void) local_10 = ExceptionList; ExceptionList = &local_10; iVar6 = 0; - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); local_8 = 0; iStack00000008 = local_18; if (local_18 != 0) { @@ -364475,9 +364475,9 @@ int Entity::CountRelatedEntities(void) return iVar6; } -//@@ 006ac8d0 FUN_006ac8d0 +//@@ 006ac8d0 Entity::get_velocity_direction -char FUN_006ac8d0(void) +char Entity::get_velocity_direction(void) { char cVar1; @@ -364562,7 +364562,7 @@ void Entity::Remove(void) if (*(char *)(in_ECX + 0x173) == '\0') { *(undefined1 *)(in_ECX + 0x173) = 1; } - FUN_00866060(in_ECX); + Entity::ReleaseLuaRef(in_ECX); puVar1 = *(undefined4 **)(in_ECX + 0x408); if (puVar1 != (undefined4 *)0x0) { luaL_unref(*puVar1,0xfff0b9d8,puVar1[1]); @@ -364834,7 +364834,7 @@ LAB_006ad14f: afStack_40[0] = param_1; uStack_38 = param_2; uStack_34 = param_3; - FUN_00499960(param_4); + EntityRef::operator_(param_4); FUN_006b7db0(afStack_40); in_ECX[6] = in_ECX[6] | param_2; in_ECX[7] = in_ECX[7] | param_3; @@ -365289,7 +365289,7 @@ Entity::AddCharmed(Entity *this,int param_2,undefined4 param_3,char param_4,char if ((((cVar4 == '\0') && (cVar4 = IsActiveEnemy(this,0), cVar4 != '\0')) && ((*piVar7 != 0x17 || ((this->_variant != 0 || (this->_subtype != 1)))))) && (cVar4 = HasEntityFlags(0,0x10000000), cVar4 == '\0')) { - FUN_0041b4f0(this); + EntityList::AddPersistentEntity(this); } iVar6 = DAT_00c71678; if (*(char *)(DAT_00c71678 + 0x1bb84) == '\0') { @@ -365886,7 +365886,7 @@ LAB_006ae5c8: uVar6 = 0; LAB_006ae5e3: local_10 = uVar6 | local_38 | local_10; - FUN_00499960(&local_30); + EntityRef::operator_(&local_30); cVar5 = FUN_006ae7a0(); if (cVar5 != '\0') { this->_bossStatusEffectCooldown = 0xf0; @@ -366138,7 +366138,7 @@ LAB_006ae9c3: fVar24 = pfVar7[1]; (this->_knockbackDirection).x = fVar27 * *pfVar7 * 0.8; (this->_knockbackDirection).y = fVar27 * fVar24 * 0.8; - iVar9 = FUN_004360f0(); + iVar9 = _get_index_plus_one_if_kind_4_5(); fVar24 = (float)(iVar9 + -1) + (float)(iVar9 + -1) + 10.0; uVar29 = EntityRef::EntityRef(); (*(code *)((ulonglong)uVar29 >> 0x20))(fVar24,0,0,(int)uVar29,0x1e); @@ -367243,7 +367243,7 @@ void __thiscall Entity::Interpolate(Entity *this) } } else { - FUN_006a9c90(1); + Entity::CollideWithGrid(1); } return; } @@ -367408,13 +367408,13 @@ void __thiscall Entity::PostRender(Entity *this) local_e0 = fVar5 + 0.0; local_d4 = fVar6 - 2.0; local_d0 = fVar5 - 0.0; - FUN_00a1d710(&local_d4,&local_e4,extraout_ECX,extraout_ECX,0x3f800000); + render_color_quad(&local_d4,&local_e4,extraout_ECX,extraout_ECX,0x3f800000); KColor::SetFromARGB(); local_e4 = fVar8 + 0.0; local_e0 = fVar7 + 2.0; local_d0 = fVar7 - 2.0; local_d4 = fVar8 - 0.0; - FUN_00a1d710(&local_d4,&local_e4,extraout_ECX_00,extraout_ECX_00,0x3f800000); + render_color_quad(&local_d4,&local_e4,extraout_ECX_00,extraout_ECX_00,0x3f800000); } iVar2 = DAT_00c71678; if ((*(uint *)(DAT_00c71678 + 0x26544) >> 0xc & 1) != 0) { @@ -367455,7 +367455,7 @@ void __thiscall Entity::PostRender(Entity *this) do { local_d4 = fVar7 + *(float *)(iVar2 + uVar3 * 8) * 0.65; local_d0 = *(float *)(iVar2 + 4 + uVar3 * 8) * 0.65 + fVar8; - FUN_00a10e70(&local_d4,&local_e4,puVar4); + render_quad_set_rect(&local_d4,&local_e4,puVar4); if ((local_4c + local_38 + local_24 + local_10) * 0.25 != 0.0) { FUN_00a140c0(); FUN_00a11080(); @@ -367527,7 +367527,7 @@ void __thiscall Entity::PostRender(Entity *this) sin(); fVar7 = fVar7 * this->_size * 0.65 + fVar5; local_e0 = fVar7; - FUN_00a1d710(&local_c0,&local_e4,puVar4,puVar4,0x3f800000); + render_color_quad(&local_c0,&local_e4,puVar4,puVar4,0x3f800000); local_f8 = local_f8 + 1; local_c0 = fVar6; local_bc = fVar7; @@ -367561,14 +367561,14 @@ void __thiscall Entity::PostRender(Entity *this) local_d4 = (-local_cc - local_c4) * 0.65 + local_dc; local_e0 = (-local_d8 + fVar8) * 0.65 + fVar5; local_d0 = (-local_d8 - fVar8) * 0.65 + fVar5; - FUN_00a1d710(&local_d4,&local_e4,puVar4,puVar4,0x3f800000); + render_color_quad(&local_d4,&local_e4,puVar4,puVar4,0x3f800000); fVar6 = (local_cc + local_c4) * 0.65 + local_dc; fVar7 = (local_d8 + fVar8) * 0.65 + fVar5; local_d4 = (local_cc - local_c4) * 0.65 + local_dc; local_d0 = (local_d8 - fVar8) * 0.65 + fVar5; local_e4 = fVar6; local_e0 = fVar7; - FUN_00a1d710(&local_d4,&local_e4,puVar4,puVar4,0x3f800000); + render_color_quad(&local_d4,&local_e4,puVar4,puVar4,0x3f800000); local_b8 = -local_c4; local_b4 = -fVar8; local_f8 = 1; @@ -367597,8 +367597,8 @@ void __thiscall Entity::PostRender(Entity *this) fVar6 = (fVar6 * local_d8 + fVar7 + local_b4) * 0.65 + fVar5; local_a4 = local_c8; local_a0 = fVar6; - FUN_00a1d710(&local_d4,&local_ac,puVar4,puVar4,0x3f800000); - FUN_00a1d710(&local_e4,&local_a4,puVar4,puVar4,0x3f800000); + render_color_quad(&local_d4,&local_ac,puVar4,puVar4,0x3f800000); + render_color_quad(&local_e4,&local_a4,puVar4,puVar4,0x3f800000); local_d4 = local_b0; local_d0 = local_c0; local_f8 = local_f8 + 1; @@ -367705,9 +367705,9 @@ undefined4 __thiscall Entity::RenderShadowLayer(Entity *this,float *param_2) } -//@@ 006b2210 FUN_006b2210 +//@@ 006b2210 Entity::IsCollisionIgnored -void FUN_006b2210(int param_1) +void Entity::IsCollisionIgnored(int param_1) { char cVar1; @@ -367863,9 +367863,9 @@ undefined4 FUN_006b25b0(void) if (cVar2 != '\0') { cVar2 = FUN_006b2410(); if (cVar2 == '\0') { - FUN_006b2210(iVar3); + Entity::IsCollisionIgnored(iVar3); fVar4 = fVar7; - FUN_006b2210(in_ECX); + Entity::IsCollisionIgnored(in_ECX); fVar7 = fVar7 / (fVar4 + fVar7); fVar4 = 1.0 - fVar7; if ((local_60 != DAT_00c7b640) || (local_5c != DAT_00c7b644)) { @@ -367992,9 +367992,9 @@ undefined4 FUN_006b2940(void) local_28 = fVar8; } } - FUN_006b2210(iVar5); + Entity::IsCollisionIgnored(iVar5); local_24 = fVar8; - FUN_006b2210(fVar6); + Entity::IsCollisionIgnored(fVar6); local_24 = local_24 / (fVar8 + local_24); local_1c = (local_1c - local_28) / local_28; local_20 = 1.0 - local_24; @@ -369229,7 +369229,7 @@ LAB_006b4d65: uStack_48 = 0x3d30b0b1; uStack_44 = 0x3d70f0f1; uStack_40 = 0x3f800000; - FUN_004e46d0(&uStack_4c); + Color::apply_to_kcolor(&uStack_4c); if (0 < (int)fStack_88) { do { iVar4 = Random(); @@ -369400,7 +369400,7 @@ void FUN_006b5320(void) fVar16 = local_b4 - *(float *)(in_ECX + 0x33c); fVar15 = local_b0 - *(float *)(in_ECX + 0x340); if ((400.0 < fVar15 * fVar15 + fVar16 * fVar16) && - (iVar7 = FUN_007069a0(0,0,0), fVar16 = *(float *)(iVar7 + 0x33c) - local_b4, + (iVar7 = Game::GetNearestTargetPlayer(0,0,0), fVar16 = *(float *)(iVar7 + 0x33c) - local_b4, fVar15 = *(float *)(iVar7 + 0x340) - local_b0, 6400.0 < fVar15 * fVar15 + fVar16 * fVar16)) break; iVar12 = iVar12 + -1; @@ -369825,16 +369825,16 @@ undefined4 * Entity::GetData(undefined4 *param_1) param_1[1] = 0xffffffff; return param_1; } - FUN_006a80f0(uVar3); + LuaRef::push(uVar3); uVar3 = luaL_ref(*puVar2,0xfff0b9d8); param_1[1] = uVar3; return param_1; } -//@@ 006b5f10 FUN_006b5f10 +//@@ 006b5f10 Entity::GetDebugShape -void FUN_006b5f10(undefined4 param_1) +void Entity::GetDebugShape(undefined4 param_1) { int in_ECX; @@ -370156,9 +370156,9 @@ undefined4 * __thiscall Entity::MakeGroundPoof(Entity *this,undefined4 param_2,u } -//@@ 006b66a0 FUN_006b66a0 +//@@ 006b66a0 Entity::MakeGroundPoofAtSelf -void FUN_006b66a0(undefined4 param_1) +void Entity::MakeGroundPoofAtSelf(undefined4 param_1) { Entity *in_ECX; @@ -370231,9 +370231,9 @@ undefined4 * __thiscall Entity::MakeBloodPoof(Entity *this,undefined4 param_2,un } -//@@ 006b6810 FUN_006b6810 +//@@ 006b6810 Entity::MakeBloodPoofAtPos -void FUN_006b6810(undefined4 param_1) +void Entity::MakeBloodPoofAtPos(undefined4 param_1) { Entity *in_ECX; @@ -370270,9 +370270,9 @@ int * __thiscall Entity_NPC::MakeBloodCloud(Entity_NPC *this,undefined4 param_2, } -//@@ 006b68c0 FUN_006b68c0 +//@@ 006b68c0 spawn_rock_particles -uint FUN_006b68c0(float *param_1,float *param_2) +uint spawn_rock_particles(float *param_1,float *param_2) { float *pfVar1; @@ -370628,9 +370628,9 @@ LAB_006b6f7a: } -//@@ 006b7250 FUN_006b7250 +//@@ 006b7250 Entity::GetLastParent -int FUN_006b7250(void) +int Entity::GetLastParent(void) { int in_ECX; @@ -370810,7 +370810,7 @@ LAB_006b750a: uVar9 = 0; LAB_006b7525: uStack_40 = uVar9 | uVar11 | uStack_40; - FUN_00499960(&uStack_60); + EntityRef::operator_(&uStack_60); return; } @@ -370962,7 +370962,7 @@ LAB_006b777a: uVar7 = 0; LAB_006b7795: uStack_40 = uVar7 | uVar9 | uStack_40; - FUN_00499960(&uStack_60); + EntityRef::operator_(&uStack_60); return; } @@ -371312,9 +371312,9 @@ LAB_006b7ce7: } -//@@ 006b7d20 FUN_006b7d20 +//@@ 006b7d20 _Entity::GetAncestorField -int FUN_006b7d20(undefined4 param_1) +int _Entity::GetAncestorField(undefined4 param_1) { int *piVar1; @@ -371678,9 +371678,9 @@ undefined4 * FUN_006b8160(int param_1,undefined4 *param_2) } -//@@ 006b82b0 FUN_006b82b0 +//@@ 006b82b0 Entity::SetColor -void FUN_006b82b0(undefined4 *param_1) +void Entity::SetColor(undefined4 *param_1) { undefined4 uVar1; @@ -371737,9 +371737,9 @@ void FUN_006b8310(void) } -//@@ 006b8320 FUN_006b8320 +//@@ 006b8320 EntityList::assign -int FUN_006b8320(int param_1,int param_2) +int EntityList::assign(int param_1,int param_2) { uint uVar1; @@ -371753,7 +371753,7 @@ int FUN_006b8320(int param_1,int param_2) uVar1 = DAT_00bf93b4 ^ (int)register0x00000010 - 4U; ExceptionList = &local_10; local_8 = 0; - FUN_00417540(in_ECX + 0x80,*(undefined4 *)(param_2 + 0xc)); + EntityList::sublist_init(in_ECX + 0x80,*(undefined4 *)(param_2 + 0xc)); local_8 = 0; if (*(uint *)(param_1 + 8) < *(uint *)(param_2 + 0xc)) { /* WARNING: Subroutine does not return */ @@ -371819,9 +371819,9 @@ void Room::SetFirstEnemyDead(undefined1 param_1) } -//@@ 006b8410 FUN_006b8410 +//@@ 006b8410 Room::has_room_config_flag -bool FUN_006b8410(uint param_1) +bool Room::has_room_config_flag(uint param_1) { int iVar1; @@ -371930,7 +371930,7 @@ void FUN_006b84c0(void) undefined4 uVar1; undefined4 *in_ECX; - FUN_006da850(); + std::deque::clear(); uVar1 = *in_ECX; *in_ECX = 0; operator_delete(uVar1,8); @@ -371938,9 +371938,9 @@ void FUN_006b84c0(void) } -//@@ 006b84e0 FUN_006b84e0 +//@@ 006b84e0 std::deque::push_back -void FUN_006b84e0(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4, +void std::deque::push_back(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4, undefined4 param_5) { @@ -372016,7 +372016,7 @@ Entity_NPC * __thiscall Entity_NPC::Constructor(Entity_NPC *this) Entity::constructor((Entity *)this,DAT_00bf93b4 ^ (int)register0x00000010 - 4U); local_8 = 0; *(undefined ***)this = IsaacRepentancePlus::Entity_NPC::vftable; - FUN_007e31a0(this); + PathFinder::Init(this); *(undefined4 *)&this->field_0xb88 = 0; *(undefined4 *)&this->field_0xb8c = 0; *(undefined4 *)&this->field_0xb90 = 0; @@ -372405,7 +372405,7 @@ void __thiscall Entity_NPC::ClearReferences(Entity_NPC *this) iVar7 = *(int *)&this->field_0x3c4; if (((iVar7 != 0) && (*(int *)(iVar7 + 0x28) == 3)) && ((*(uint *)(iVar7 + 0x168) & 0x100) != 0) ) { - FUN_0064bab0(DAT_00bf93b4 ^ (uint)(local_28 + 9)); + Entity_Familiar::RemoveFromPlayer(DAT_00bf93b4 ^ (uint)(local_28 + 9)); iVar7 = this->_type; goto LAB_006b8f98; } @@ -372456,7 +372456,7 @@ LAB_006b8f98: *(undefined4 *)((int)&local_1c->_flags + 4) = uVar5; *(uint *)&local_1c->_flags = uVar9 & 0x7fefffff; } - FUN_00436220(1); + Entity::SetVisibleFlag(1); } if (*(int *)puVar2 != 0) { local_1c = (Entity_NPC *)puVar2; @@ -372504,7 +372504,7 @@ LAB_006b8f98: std::multiset::erase(&local_1c); } *(undefined4 *)puVar1 = 0; - FUN_006d81c0(); + Entity_NPC::ClearDequeRefs(); if (*(int *)&this->field_0xf38 != 0) { local_1c = (Entity_NPC *)&this->field_0xf38; std::multiset::erase(&local_1c); @@ -372557,7 +372557,7 @@ LAB_006b93e7: } } if (this->_sirenPlayerEntity != (void *)0x0) { - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); local_8 = 0; uVar9 = 0; if (local_20 != 0) { @@ -372565,7 +372565,7 @@ LAB_006b93e7: iVar7 = *(int *)(local_28[0] + uVar9 * 4); if (((iVar7 != 0) && (*(int *)(iVar7 + 0x28) == 3)) && (*(void **)(iVar7 + 0x410) == this->_sirenPlayerEntity)) { - FUN_0064bab0(); + Entity_Familiar::RemoveFromPlayer(); } uVar9 = uVar9 + 1; } while (uVar9 < local_20); @@ -373032,7 +373032,7 @@ LAB_006ba0ee: puVar9 = param_1 + 4; if (0x7fffffffU - local_74 < *puVar9) { /* WARNING: Subroutine does not return */ - FUN_0040ccc0(); + std::string::_Xlen(); } pppppppuVar10 = local_84; if (0xf < local_70) { @@ -373041,7 +373041,7 @@ LAB_006ba0ee: if (0xf < (uint)param_1[5]) { param_1 = (undefined4 *)*param_1; } - FUN_00421680(in_ECX,param_1,pppppppuVar10,local_74,param_1,*puVar9); + std::string::concat(in_ECX,param_1,pppppppuVar10,local_74,param_1,*puVar9); local_14._0_1_ = 7; pppppppuVar10 = &local_b4; if (0xf < local_a0) { @@ -373204,7 +373204,7 @@ LAB_006ba457: uVar15 = param_2[4]; if (0x7fffffffU - local_74 < uVar15) { /* WARNING: Subroutine does not return */ - FUN_0040ccc0(); + std::string::_Xlen(); } pppppppuVar8 = local_84; if (0xf < local_70) { @@ -373213,7 +373213,7 @@ LAB_006ba457: if (0xf < (uint)param_2[5]) { param_2 = (undefined4 *)*param_2; } - FUN_00421680(in_ECX,uVar15,pppppppuVar8,local_74,param_2,uVar15); + std::string::concat(in_ECX,uVar15,pppppppuVar8,local_74,param_2,uVar15); local_14._0_1_ = 9; uVar11 = FUN_00651d50(&local_b4); FUN_004215a0(uVar11); @@ -373314,7 +373314,7 @@ LAB_006ba457: local_d1 = 1; if (0x7fffffffU - local_74 < (uint)param_1[4]) { /* WARNING: Subroutine does not return */ - FUN_0040ccc0(); + std::string::_Xlen(); } pppppppuVar8 = local_84; if (0xf < local_70) { @@ -373324,7 +373324,7 @@ LAB_006ba457: if (0xf < (uint)param_1[5]) { puVar7 = (undefined4 *)*param_1; } - FUN_00421680(in_ECX,param_1,pppppppuVar8,local_74,puVar7,param_1[4]); + std::string::concat(in_ECX,param_1,pppppppuVar8,local_74,puVar7,param_1[4]); local_14._0_1_ = 4; FUN_00651d50(param_2); local_14._0_1_ = 5; @@ -373661,12 +373661,12 @@ LAB_006baa37: } -//@@ 006baa70 FUN_006baa70 +//@@ 006baa70 _NpcHelper::spider_load_graphics /* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */ /* WARNING: Type propagation algorithm not settling */ -undefined4 FUN_006baa70(undefined4 *param_1) +undefined4 _NpcHelper::spider_load_graphics(undefined4 *param_1) { byte bVar1; @@ -373721,7 +373721,7 @@ undefined4 FUN_006baa70(undefined4 *param_1) uVar10 = param_1[4]; if (0x7fffffffU - local_5c < uVar10) { /* WARNING: Subroutine does not return */ - FUN_0040ccc0(uVar4); + std::string::_Xlen(uVar4); } pppppppuVar6 = local_6c; if (0xf < local_58) { @@ -373730,7 +373730,7 @@ undefined4 FUN_006baa70(undefined4 *param_1) if (0xf < (uint)param_1[5]) { param_1 = (undefined4 *)*param_1; } - FUN_00421680(iVar5,uVar10,pppppppuVar6,local_5c,param_1,uVar10); + std::string::concat(iVar5,uVar10,pppppppuVar6,local_5c,param_1,uVar10); local_14._0_1_ = 2; FUN_00651d50(local_9c); local_14._0_1_ = 4; @@ -374282,7 +374282,7 @@ LAB_006bb394: pAVar11 = (ANM2 *)&local_c0->field_0x48; } while (local_b0 < *(uint *)&local_c0->field_0xc8); if ((local_9e == '\0') || (local_a8 == (undefined *)0x0)) goto LAB_006bb675; - FUN_004476a0(local_a8); + Color::Color(local_a8); puVar12 = &this->field_0x11c; if ((undefined4 *)puVar12 != &local_ec) { *(undefined4 *)puVar12 = local_ec; @@ -374423,7 +374423,7 @@ void __thiscall Game::RestoreState(Game *this) iVar6 = *(int *)&this->field_0x330; if (this->field_0xc3d == '\0') { if (((*(char *)(iVar6 + 0x34) != '\0') && (this->field_0xc63 == '\0')) && - (((local_95 == '\0' && (cVar4 = FUN_006b8410(4), cVar4 == '\0')) && + (((local_95 == '\0' && (cVar4 = Room::has_room_config_flag(4), cVar4 == '\0')) && ((*(int *)(pcVar1 + 8) != 5 || (*(int *)&this->field_0x28 != 0x379)))))) { fVar10 = (float10)RNG::RandomFloat(); local_9c = (float)fVar10; @@ -374493,7 +374493,7 @@ void __thiscall Game::RestoreState(Game *this) } uVar2 = *(uint *)&this->field_0x30; if ((uVar2 != 0) && (uVar2 <= uVar8)) { - FUN_0069f990(*(int *)(*(int *)&this->field_0x330 + 0x68) + uVar2 * 0x7c + -0x7c); + Color::copy_constructor_ext(*(int *)(*(int *)&this->field_0x330 + 0x68) + uVar2 * 0x7c + -0x7c); local_8 = 0; iVar6 = *(int *)&this->field_0x30 + -1; *(int *)&this->field_0xc78 = iVar6; @@ -375082,7 +375082,7 @@ LAB_006bccc3: *(uint *)local_cc = uVar8; iVar4 = Entity_Player::GetTrinketMultiplier(); if ((int)(uVar8 % 6) < iVar4) { - FUN_007dc2d0(); + _Entity_Player::SpawnTrinketRandomPickup(); } in_ECX = local_104; } @@ -375776,7 +375776,7 @@ void __thiscall Entity_NPC::Kill(Entity_NPC *this,undefined4 param_2) *(undefined4 *)&this->field_0xb9c = 0; *(undefined4 *)&this->field_0xb9c = *(undefined4 *)&this->field_0x1c; if (&this->field_0xb88 != &this->field_0x8) { - FUN_004aab30(*(undefined4 *)&this->field_0x8,*(undefined4 *)&this->field_0xc,param_2); + std::vector::assign_0x38(*(undefined4 *)&this->field_0x8,*(undefined4 *)&this->field_0xc,param_2); } Entity::Kill((Entity *)this,param_2); return; @@ -375901,7 +375901,7 @@ int * __thiscall Entity_NPC::GetPlayerTarget(Entity_NPC *this) if ((((this->_flags & 0x100) != 0) && (*(char *)((int)DAT_00c71678->_room + 0x72a1) == '\0')) && ((cVar3 = Entity::IsFrame(0xf,this->_index), cVar3 != '\0' || (*(int *)&this->field_0x3c4 == 0)))) { - iVar5 = FUN_00707370(0); + iVar5 = Game::GetNearestEnemy(0); puVar1 = &this->field_0x3c4; if (*(int *)&this->field_0x3c4 != 0) { local_20 = (int *)puVar1; @@ -375927,7 +375927,7 @@ int * __thiscall Entity_NPC::GetPlayerTarget(Entity_NPC *this) if ((this->_flags & 0x20000000) == 0) { local_1c = (int *)((uint)local_1c._1_3_ << 8); } - piVar9 = (int *)FUN_007069a0(local_1c,uVar6,0,uVar4); + piVar9 = (int *)Game::GetNearestTargetPlayer(local_1c,uVar6,0,uVar4); if (piVar9 == (int *)0x0) { piVar9 = (int *)Game::GetPlayer(DAT_00c71678,0); ExceptionList = local_10; @@ -375963,7 +375963,7 @@ int * __thiscall Entity_NPC::GetPlayerTarget(Entity_NPC *this) ExceptionList = &local_10; local_24 = local_2c; local_18 = local_2c; - NpcAI::ENTITY_MASK((Entity_NPC *)((int)DAT_00c71678->_room + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)((int)DAT_00c71678->_room + 0x1218)); local_8 = CONCAT31(local_8._1_3_,1); piVar8 = (int *)&DAT_00c71678->field_0x1baa8; local_14 = 0; @@ -376404,7 +376404,7 @@ float NpcHelper::ChampionDrop(void) fVar13 = *(float *)((int)in_ECX + 0x340) - *(float *)((int)fVar5 + 0x340), fVar17 = *(float *)((int)in_ECX + 0x33c) - *(float *)((int)fVar5 + 0x33c), 6400.0 < fVar13 * fVar13 + fVar17 * fVar17)))) { - NpcAI::ENTITY_GEMINI((Entity_NPC *)local_b8); + ProjectileParams::ProjectileParams((Entity_NPC *)local_b8); local_11c = 7.0; local_118 = 0.0; fVar5 = (float)Entity_NPC::FireProjectiles(); @@ -376683,7 +376683,7 @@ LAB_006c0128: fVar13 = *(float *)((int)in_ECX + 0x340) - *(float *)((int)fVar5 + 0x340), fVar17 = *(float *)((int)in_ECX + 0x33c) - *(float *)((int)fVar5 + 0x33c), 6400.0 < fVar13 * fVar13 + fVar17 * fVar17)))) { - NpcAI::ENTITY_GEMINI((Entity_NPC *)local_b8); + ProjectileParams::ProjectileParams((Entity_NPC *)local_b8); local_c8 = 7.0; local_c4 = (ulonglong)local_c4._4_4_ << 0x20; fVar5 = (float)Entity_NPC::FireProjectiles(); @@ -377345,7 +377345,7 @@ Entity_NPC::Morph(Entity_NPC *this,int param_2,int param_3,int param_4,int param (**(code **)(*(int *)this + 0x3c))(uVar5,1,0xfffffc18,0,1); } PathFinder::Reset(); - FUN_0092aea0(this->_type,this->_variant); + PersistentGameData::TryAddBestiaryEncounter(this->_type,this->_variant); this->field_0xc60 = 1; cVar2 = Game::ShouldEraseEnemy(this); if (cVar2 != '\0') { @@ -377399,7 +377399,7 @@ void Entity_NPC::ResetColor(void) else { iVar1 = *(int *)(*(int *)(in_ECX + 0x330) + 0x68); if (iVar5 < (*(int *)(*(int *)(in_ECX + 0x330) + 0x6c) - iVar1) / 0x7c) { - FUN_0069f990(iVar5 * 0x7c + iVar1); + Color::copy_constructor_ext(iVar5 * 0x7c + iVar1); Sprite::SetColor(local_84); std::string::_Tidy_deallocate(); std::string::_Tidy_deallocate(); @@ -377425,7 +377425,7 @@ void Entity_NPC::ResetColor(void) LAB_006c115c: if (*(uint *)(in_ECX + 0xc64) < 0x1a) { if (cVar7 == '\0') { - puVar6 = (undefined4 *)FUN_00505b80(local_e0); + puVar6 = (undefined4 *)_Entity_NPC::GetColorWithFlash(local_e0); } else { puVar6 = (undefined4 *)(&DAT_00c354d4 + *(uint *)(in_ECX + 0xc64) * 0x40); @@ -377630,9 +377630,9 @@ LAB_006c153f: } -//@@ 006c15c0 FUN_006c15c0 +//@@ 006c15c0 NpcHelper::charger_update_move_anim -void FUN_006c15c0(byte *param_1,byte *param_2,byte *param_3,float param_4) +void NpcHelper::charger_update_move_anim(byte *param_1,byte *param_2,byte *param_3,float param_4) { float fVar1; @@ -377776,9 +377776,9 @@ LAB_006c1801: } -//@@ 006c1870 FUN_006c1870 +//@@ 006c1870 Entity_NPC::anim_walk_frame_4dir -void FUN_006c1870(byte *param_1,byte *param_2,byte *param_3,byte *param_4,float param_5) +void Entity_NPC::anim_walk_frame_4dir(byte *param_1,byte *param_2,byte *param_3,byte *param_4,float param_5) { float fVar1; @@ -377961,7 +377961,7 @@ Entity_NPC::shopkeeper_get_loot(Entity_NPC *this,undefined4 param_2,byte param_3 *local_4c = (int)&local_4c; local_14 = 0; if ((this->_flags & 0x40000000000) != 0) { - FUN_006c20e0(&local_4c); + LootList::LootList(&local_4c); if (local_3c != 0) { do { local_3c = local_3c + -1; @@ -378137,7 +378137,7 @@ LAB_006c1cb2: if (iVar3 != 1) { if (iVar3 == 2) { uVar2 = RNG::Next(); - FUN_006b84e0(5,0x14,0,uVar2,0); + std::deque::push_back(5,0x14,0,uVar2,0); uVar2 = RNG::Next(); iVar9 = 0; goto LAB_006c1fef; @@ -378147,7 +378147,7 @@ LAB_006c1cb2: puVar12 = &this->field_0x3dc; puVar11 = puVar12; uVar2 = RNG::Next(extraout_ECX,puVar12); - FUN_006b84e0(0x55,0,0,uVar2,puVar11); + std::deque::push_back(0x55,0,0,uVar2,puVar11); uVar2 = RNG::Next(extraout_ECX_00,puVar12); iVar9 = 0; uVar8 = 0; @@ -378163,10 +378163,10 @@ LAB_006c1ff1: puVar12 = (undefined1 *)0x0; uVar7 = 5; LAB_006c1ff3: - FUN_006b84e0(uVar7,uVar8,iVar9,uVar2,puVar12); + std::deque::push_back(uVar7,uVar8,iVar9,uVar2,puVar12); } LAB_006c1ffb: - FUN_006c20e0(&local_4c); + LootList::LootList(&local_4c); if (local_3c != 0) { do { local_3c = local_3c + -1; @@ -378211,9 +378211,9 @@ LAB_006c2087: } -//@@ 006c20e0 FUN_006c20e0 +//@@ 006c20e0 LootList::LootList -void FUN_006c20e0(int param_1) +void LootList::LootList(int param_1) { undefined4 *puVar1; @@ -378467,7 +378467,7 @@ LAB_006c241e: local_28 = uVar11 + 1; } else { - piVar14 = (int *)FUN_0085bed0(&npc->_pos,&DAT_00c7b640,0); + piVar14 = (int *)EntitySpawner::Spawn(&npc->_pos,&DAT_00c7b640,0); if (piVar14[10] == 0x32) { iVar16 = *(int *)(DAT_00c71678 + 0x18300); cVar10 = (**(code **)(*piVar14 + 0x48))(); @@ -378520,7 +378520,7 @@ LAB_006c241e: *(undefined1 *)(*(int *)(DAT_00c71678 + 0x18300) + 0x7894) = 1; } Entity_NPC::UpdatePickupGhosts(npc); - FUN_006da850(); + std::deque::clear(); piVar14 = local_54[0]; local_54[0] = (int *)0x0; operator_delete(piVar14,8); @@ -379181,7 +379181,7 @@ void Entity_NPC_UpdateAI_dispatch(void) *(float *)&in_ECX->field_0x36c = fVar10 * 0.92; } if ((in_ECX->_dead != 0) && ((uVar5 == 0xb || (uVar5 == 1)))) { - NpcAI::ENTITY_GEMINI((Entity_NPC *)local_d0); + ProjectileParams::ProjectileParams((Entity_NPC *)local_d0); local_3c = 0xc; if (in_ECX->_variant == 1) { local_d8 = (Entity *)0x3c1; @@ -379257,7 +379257,7 @@ void Entity_NPC_UpdateAI_dispatch(void) if (in_ECX->_state == 0) { if (*(int *)&in_ECX->field_0x3bc == 0) { local_d1 = (in_ECX->_flags & 0x20000000) != 0; - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); local_14 = 0; local_d8 = (Entity *)0x0; local_e4 = (Entity *)0xc9742400; @@ -380555,7 +380555,7 @@ void __thiscall Entity_NPC::Update(Entity_NPC *this) local_2bc = this; FUN_006b99e0(local_24); this->_speedMultiplier = in_XMM0._0_4_; - FUN_006d90e0(0); + Entity_NPC::UpdateChildEffectPosition(0); if (this->_controllerID == -1) { puVar22 = &this->field_0xf28; *(float *)&this->field_0xf20 = DAT_00c7b640; @@ -380785,13 +380785,13 @@ LAB_006c4f12: if (iVar21 != 0) { do { local_288 = (Room *)Sprite::GetLayer(uVar24); - FUN_00407320(local_64); + _get_name_string(local_64); local_14 = 1; local_2a4 = (Vector *)((uint)local_28c | 1); local_28c = local_2a4; cVar7 = str_eq_cstr(); if (cVar7 == '\0') { - FUN_00407320(local_3c); + _get_name_string(local_3c); local_14 = 2; local_2a4 = (Vector *)((uint)local_28c | 2); local_28c = local_2a4; @@ -380847,7 +380847,7 @@ LAB_006c5358: set_field_358(fVar26); if ((this->_isChampion != 0) && ((uint)this->_championColorIdx < 0x1a)) { pcVar4 = *(code **)(*(int *)pRVar12 + 0x3c); - uVar10 = FUN_00505b80(local_a0); + uVar10 = _Entity_NPC::GetColorWithFlash(local_a0); (*pcVar4)(uVar10,0xffffffff,0xff,0,1); } uVar10 = 0x11e; @@ -380938,9 +380938,9 @@ LAB_006c5752: if (cVar7 != '\0') { Game::ShakeScreen(8); this->_entityCollisionClass = 4; - FUN_006b6810(&this->field_0x1e4); + Entity::MakeBloodPoofAtPos(&this->field_0x1e4); uVar10 = Vector::Vector(); - FUN_006b68c0(&this->_pos,uVar10); + spawn_rock_particles(&this->_pos,uVar10); play_sound_with_fart_seed(0x30,2,0,0x3f800000); goto LAB_006c58bd; } @@ -381042,7 +381042,7 @@ LAB_006c5b7b: } else if (((iVar21 != 0x4a) && (iVar21 != 0x4b)) && (iVar21 != 0x4c)) { Entity::BloodExplode(); - FUN_006d5400(); + Entity_NPC::trigger_kill_item_effects(); } } else if (iVar21 == 0x19b) { @@ -381053,7 +381053,7 @@ LAB_006c5b7b: } else { Config::GetPillEffects(); - uVar10 = FUN_00452be0(); + uVar10 = _ptr_deref_or_minus1(); iVar21 = AnimationState::GetLayerFrame(uVar10); if ((iVar21 != 0) && (*(char *)(iVar21 + 0x2c) != '\0')) { ANM2::Play(local_2a0,"HandDeath",0); @@ -381069,7 +381069,7 @@ LAB_006c5b7b: Config::GetPillEffects(); ANM2::GetAnimation(local_3c); local_14 = 4; - local_281 = FUN_004f84a0(); + local_281 = str_ne(); local_14 = -1; std::string::_Tidy_deallocate(); if (local_281 != 0) { @@ -381082,7 +381082,7 @@ LAB_006c5b7b: local_29c = (Room *)ANM2::GetLayer(pAVar23,&DAT_00b5fed4); if (local_29c != (Room *)0x0) { Config::GetPillEffects(); - uVar10 = FUN_00452be0(); + uVar10 = _ptr_deref_or_minus1(); iVar21 = AnimationState::GetLayerFrame(uVar10); if ((iVar21 == 0) || (*(char *)(iVar21 + 0x2c) == '\0')) { uVar8 = 0; @@ -381119,7 +381119,7 @@ LAB_006c5c89: } cVar7 = ANM2::IsFinishedImpl(&DAT_00b1a4ec); if ((cVar7 != '\0') && (this->_dead != 0)) { - NpcAI::ENTITY_GEMINI((Entity_NPC *)local_228); + ProjectileParams::ProjectileParams((Entity_NPC *)local_228); puVar22 = local_228; local_21c = local_21c - 0.099; in_XMM0 = ZEXT416((uint)local_21c); @@ -381176,7 +381176,7 @@ LAB_006c5c89: uVar38 = 0; uVar32 = 3; uVar10 = 3; - FUN_00a0f690(0x3f800000); + KColor::KColor(0x3f800000); Entity::AddFear((Entity *)&this->_pos,uVar10,uVar32,uVar38); uVar10 = FUN_0067f2e0(); Entity::SetPositionOffset(uVar10); @@ -381227,19 +381227,19 @@ LAB_006c5c89: cVar7 = Entity::HasEntityFlags(0x10000,0); if (((cVar7 == '\0') && ((iVar21 = PlayerManager::GetGFuelCount(), 2 < iVar21 || - ((cVar7 = FUN_00417220(0x38c,0xffffffff,0xffffffff), cVar7 != '\0' && + ((cVar7 = Entity::IsType(0x38c,0xffffffff,0xffffffff), cVar7 != '\0' && ((this->_initSeed & 0xfffffU) == 0xdedbb)))))) && (((this->_initSeed & 1) == 0 || - (cVar7 = FUN_00417220(0x38c,0xffffffff,0xffffffff), cVar7 != '\0')))) { + (cVar7 = Entity::IsType(0x38c,0xffffffff,0xffffffff), cVar7 != '\0')))) { pAVar9 = (AnimationState *)Config::GetPillEffects(); iVar21 = AnimationState::NextEventTrigger(pAVar9,"Explosion"); - FUN_0040a7c0(); + _empty_check_0x34(); in_XMM0._0_4_ = (Room *)(in_XMM0._0_4_ + 10.0); if ((float)in_XMM0._0_4_ <= (float)iVar21) { fVar25 = (float10)Sprite::PlaybackSpeed(); local_288 = (Room *)((float)fVar25 * this->_speedMultiplier); auVar28 = ZEXT416(local_288); - FUN_0040a7c0(); + _empty_check_0x34(); in_XMM0._4_12_ = auVar28._4_12_; in_XMM0._0_4_ = (Room *)(auVar28._0_4_ + (float)local_288 + 10.0); if ((float)iVar21 < (float)in_XMM0._0_4_) { @@ -381321,7 +381321,7 @@ LAB_006c5c89: } } if (this->_type == 0x4e) { - NpcAI::ENTITY_GEMINI((Entity_NPC *)local_228); + ProjectileParams::ProjectileParams((Entity_NPC *)local_228); puVar22 = local_228; uVar32 = 9; local_224 = 0x40a00000; @@ -381331,7 +381331,7 @@ LAB_006c5c89: uVar10 = Vector::Vector(9,puVar22); FireProjectiles(this,&this->_pos,uVar10,uVar32,puVar22); } - cVar7 = FUN_00417220(0x10d,1,0xffffffff); + cVar7 = Entity::IsType(0x10d,1,0xffffffff); if (cVar7 != '\0') { iVar21 = Isaac::Random(); local_2c4 = (Room *)(iVar21 + 0xc); @@ -381404,7 +381404,7 @@ LAB_006c5c89: } cVar7 = ANM2::IsFinishedImpl(&DAT_00b1a4ec); if ((cVar7 != '\0') && (this->_exists != 0)) { - FUN_006d5400(); + Entity_NPC::trigger_kill_item_effects(); } } LAB_006c68c7: @@ -381503,7 +381503,7 @@ LAB_006c87a7: if (iVar21 == 0) { if (local_288 != (Room *)0x0) { GridEntity::GetType(); - cVar7 = FUN_0070bf80(); + cVar7 = is_grid_type_floor_special(); if (cVar7 != '\0') goto LAB_006c6bee; } pRVar12 = (Room *)Level::GetCurrentRoom(); @@ -381608,7 +381608,7 @@ LAB_006c6d40: Vector::operator_assign(uVar10); iVar21 = Isaac::Random(); *(int *)&this->field_0xba8 = iVar21 + 0x28; - NpcAI::ENTITY_GEMINI((Entity_NPC *)local_228); + ProjectileParams::ProjectileParams((Entity_NPC *)local_228); puVar22 = local_228; local_21c = 0.3; uVar32 = 0; @@ -381682,7 +381682,7 @@ LAB_006c7154: fVar26 = *(float *)&this->field_0x36c * 0.8; in_XMM0 = ZEXT416((uint)fVar26); *(float *)&this->field_0x36c = fVar26; - pRVar12 = (Room *)FUN_00435db0(); + pRVar12 = (Room *)Entity::GetHitPointsLost(); local_288 = pRVar12; if (0 < (int)pRVar12) { do { @@ -381739,20 +381739,20 @@ LAB_006c8133: if ((iVar21 == 0xf) || (iVar21 == 0x10)) { pRVar12 = (Room *)Level::GetCurrentRoom(); Room::GetFrameCount(pRVar12); - FUN_00417160(); + sinf_wrapper(); pRVar12 = (Room *)0x0; FUN_0042f2a0(); local_2b0 = pRVar12; pRVar12 = (Room *)Level::GetCurrentRoom(); Room::GetFrameCount(pRVar12); - FUN_00417160(); + sinf_wrapper(); uVar10 = 0; FUN_0042f2a0(); iVar21 = this->_championColorIdx; uVar10 = Color::Color(uVar10); uVar10 = Color::Lerp(local_150,&DAT_00c354d4 + iVar21 * 0x40,uVar10); Sprite::SetColor(uVar10); - FUN_004476a0(&DAT_00c354c0 + this->_championColorIdx * 0x40); + Color::Color(&DAT_00c354c0 + this->_championColorIdx * 0x40); fVar25 = (float10)Color::B(); local_298 = CONCAT44((float)fVar25,(Room *)local_298); fVar25 = (float10)Color::G(); @@ -381763,7 +381763,7 @@ LAB_006c8133: in_XMM0._12_4_ = 0; local_2ec = (Vector *)(float)fVar25; uVar10 = Color::Color(in_XMM0._0_4_); - FUN_006b82b0(uVar10); + Entity::SetColor(uVar10); if ((this->_championColorIdx != 0x10) || (in_XMM0 = ZEXT416(local_2b0), 0.4 <= (float)local_2b0)) goto LAB_006c8136; assert_lerp_range(0); @@ -381805,20 +381805,20 @@ LAB_006c8133: else if (iVar21 == 0x14) { pRVar12 = (Room *)Level::GetCurrentRoom(); Room::GetFrameCount(pRVar12); - FUN_00417160(); + sinf_wrapper(); pRVar12 = (Room *)0x0; FUN_0042f2a0(); local_288 = pRVar12; pRVar12 = (Room *)Level::GetCurrentRoom(); Room::GetFrameCount(pRVar12); - FUN_00417160(); + sinf_wrapper(); uVar10 = 0; FUN_0042f2a0(); iVar21 = this->_championColorIdx; uVar10 = Color::Color(uVar10); uVar10 = Color::Lerp(local_cc,&DAT_00c354d4 + iVar21 * 0x40,uVar10); Sprite::SetColor(uVar10); - FUN_004476a0(&DAT_00c354c0 + this->_championColorIdx * 0x40); + Color::Color(&DAT_00c354c0 + this->_championColorIdx * 0x40); fVar25 = (float10)Color::B(); local_2ac = (Room *)(float)fVar25; fVar25 = (float10)Color::G(); @@ -381829,7 +381829,7 @@ LAB_006c8133: in_XMM0._12_4_ = 0; local_2d8 = (Room *)(float)fVar25; uVar10 = Color::Color(in_XMM0._0_4_); - FUN_006b82b0(uVar10); + Entity::SetColor(uVar10); cVar7 = Entity::IsFrame(0x1e,this->_index); if (cVar7 == '\0') goto LAB_006c8136; Level::GetCurrentRoom(); @@ -381865,7 +381865,7 @@ LAB_006c8133: in_XMM0 = ZEXT416(local_288); if ((float)local_2ac < (float)local_288) { std::vector::operator_index(pAVar23); - cVar7 = FUN_00417220(0x325,0xffffffff,0xffffffff); + cVar7 = Entity::IsType(0x325,0xffffffff,0xffffffff); if (cVar7 == '\0') { std::vector::operator_index(pAVar23); std::vector::operator_index(local_2a0); @@ -381875,7 +381875,7 @@ LAB_006c8133: fVar25 = (float10)Entity::MaxHitPoints(); local_2d8 = (Room *)(float)fVar25; puVar13 = (undefined4 *)std::min(); - FUN_00435d20(*puVar13); + Entity::SetField380(*puVar13); uVar10 = Random(); std::vector::operator_index(local_2a0); uVar32 = Entity::Position(local_36c); @@ -381919,7 +381919,7 @@ LAB_006c8133: local_288 = pRVar12; std::vector::operator_index(pAVar23); uVar10 = Entity::Position(local_344); - FUN_00a101c0(uVar10,0); + vector_lerp(uVar10,0); MusicManager::RandomVector(local_354); random_float(); local_324 = pRVar12; @@ -382020,7 +382020,7 @@ LAB_006c8133: Isaac::GetRenderPosition(1); Level::GetCurrentRoom(); uVar10 = Room::GetRenderSurfaceTopLeft(); - FUN_00a104b0(uVar10); + Vector::operator__(uVar10); Level::GetCurrentRoom(); FUN_004177e0(local_2e8); local_14 = 8; @@ -382058,19 +382058,19 @@ LAB_006c8136: if (this->_championColorIdx == 0x19) { pRVar12 = (Room *)Level::GetCurrentRoom(); Room::GetFrameCount(pRVar12); - FUN_00684b90(0x3f800000); + hsv_to_rgb(0x3f800000); uVar10 = Color::Color(0x3f800000); - FUN_006b82b0(uVar10); + Entity::SetColor(uVar10); } cVar7 = Entity::HasEntityFlags(0x1000000,0); if ((cVar7 != '\0') && (this->_shrinkCountdown - 1U < 0x3b)) { pRVar12 = (Room *)Level::GetCurrentRoom(); Room::GetFrameCount(pRVar12); - FUN_00417160(); + sinf_wrapper(); FUN_0042f2a0(); pRVar12 = (Room *)Level::GetCurrentRoom(); Room::GetFrameCount(pRVar12); - FUN_00417160(); + sinf_wrapper(); uVar10 = 0; FUN_0042f2a0(); local_298 = CONCAT44(uVar10,(Room *)local_298); @@ -382146,7 +382146,7 @@ LAB_006c8136: LAB_006c8453: if (this->_dead != 0) { if (this->_exists != 0) { - FUN_006d4e00(); + Entity_NPC::PlayDeathEffects(); cVar7 = Entity::HasEntityFlags(0x400,0); if (cVar7 != '\0') { cVar7 = Entity::HasEntityFlags(0,0x400); @@ -382193,7 +382193,7 @@ LAB_006c8453: } FUN_006d5350(); if ((this->_isBoss == 0) && (this->_type != 0x1c)) { - FUN_006d5400(); + Entity_NPC::trigger_kill_item_effects(); } else { this->_state = 0x12; @@ -382374,7 +382374,7 @@ LAB_006c8ae8: Entity::SetParent(local_29c); (**(code **)(*piVar11 + 0x40))(0x40600000); (**(code **)(*piVar11 + 0xc))(); - FUN_004cf1d0(piVar11); + EntityPtr::Set(piVar11); } iVar21 = EntityPtr::Ref(); if (iVar21 != 0) { @@ -382465,7 +382465,7 @@ LAB_006c8edb: } } GetPlayerTarget(this); - pEVar16 = (Entity_Player *)FUN_00499da0(); + pEVar16 = (Entity_Player *)Entity::ToPlayer(); if ((pEVar16 != (Entity_Player *)0x0) && (cVar7 = Entity_Player::IsInvisible(pEVar16), cVar7 != '\0')) { ::EntityRef::constructor(this); @@ -382475,7 +382475,7 @@ LAB_006c8edb: iVar21 = PlayerManager::FirstCollectibleOwner(0x202,0,0); if (iVar21 != 0) { Game::GetPlayerManager(); - FUN_009bea40(); + vector_iterate_noop(); local_2b4 = (Vector *)0x26; local_298 = CONCAT44(0x37 - (int)in_XMM0._0_4_,(Room *)local_298); std::max(); @@ -382589,7 +382589,7 @@ LAB_006c930b: piVar11 = (int *)__RTDynamicCast(uVar32,uVar38,pTVar33,pTVar36,uVar39); FUN_004563c0(uVar10); uVar10 = Vector::Vector(); - uVar10 = FUN_00a10510(local_2f8,uVar10); + uVar10 = Vector::Mul(local_2f8,uVar10); Entity::SetSpriteScale(uVar10); set_field_358(0x41200000); pcVar4 = *(code **)(*piVar11 + 0x3c); @@ -382630,7 +382630,7 @@ LAB_006c930b: local_288 = (Room *)0x0; local_298 = 0; ::EntityRef::EntityRef(); - FUN_004561a0(&local_2a4); + std::iterator_copy(&local_2a4); uVar10 = FUN_00456190(&local_2b4); cVar7 = FUN_0042c710(uVar10); if (cVar7 == '\0') { @@ -382648,7 +382648,7 @@ LAB_006c930b: local_2a0 = (ANM2 *)puVar13[3]; local_29c = (Room *)0x40a00000; local_290 = pRVar12; - FUN_00499960(puVar13 + 4); + EntityRef::operator_(puVar13 + 4); break; } if ((float)local_288 < (float)*puVar13) { @@ -382656,7 +382656,7 @@ LAB_006c930b: local_29c = (Room *)0x3f800000; local_290 = pRVar12; local_288 = (Room *)*puVar13; - FUN_00499960(puVar13 + 4); + EntityRef::operator_(puVar13 + 4); } } FUN_00456170((int)&local_298 + 4,0); @@ -382703,7 +382703,7 @@ LAB_006c930b: Isaac::GetRenderPosition(1); Level::GetCurrentRoom(); uVar10 = Room::GetRenderSurfaceTopLeft(); - FUN_00a104b0(uVar10); + Vector::operator__(uVar10); Level::GetCurrentRoom(); FUN_004177e0(local_2e0); local_14 = 0xd; @@ -382716,7 +382716,7 @@ LAB_006c930b: FUN_0041c710(); this = local_2bc; puVar22 = &local_2bc->field_0xc80; - FUN_00682f50(0,0,0,0xff); + KColor::FromRGBA255(0,0,0,0xff); KColor::SetLineHeightModifier(0x3f333333); pVVar27 = (Vector *)(local_38 * 0.9); Color::SetOffset(pVVar27,local_34 * 0.9,local_30 * 0.9); @@ -382727,7 +382727,7 @@ LAB_006c930b: Isaac::GetRenderPosition(1); Level::GetCurrentRoom(); uVar10 = Room::GetRenderSurfaceTopLeft(); - FUN_00a104b0(uVar10); + Vector::operator__(uVar10); Level::GetCurrentRoom(); FUN_004177e0(local_2e0); local_14 = 0xe; @@ -382922,7 +382922,7 @@ LAB_006ca09e: set_field_358(0xc1200000); local_298 = CONCAT44(0x3f000000,(Room *)local_298); uVar10 = Vector::__mul(local_310,(int)&local_298 + 4); - FUN_00428910(uVar10); + Entity::SetVelocity(uVar10); (**(code **)(*piVar11 + 0xc))(); } } @@ -382932,7 +382932,7 @@ LAB_006ca09e: Vector::operator_assign(pVVar2); if (this->field_0xc60 == '\0') { Room::GetTopLeftPos(); - FUN_0092aea0(this->_type,this->_variant); + PersistentGameData::TryAddBestiaryEncounter(this->_type,this->_variant); this->field_0xc60 = 1; } cVar7 = Entity::IsFrame(*(int *)(*(int *)&this->field_0x330 + 0xd0) * 2,this->_index); @@ -382986,7 +382986,7 @@ LAB_006ca2e9: if (0 < iVar21) { do { uVar10 = MusicManager::RandomVector(local_54); - FUN_00a10510(&local_2d0,uVar10); + Vector::Mul(&local_2d0,uVar10); random_float(); fVar26 = (float)pVVar27 * 5.0 + 3.0; local_298 = CONCAT44(fVar26,(Room *)local_298); @@ -383028,16 +383028,16 @@ LAB_006ca2e9: } FUN_006d5350(); FUN_0042c770(&local_2a4); - uVar10 = FUN_004561a0((int)&local_298 + 4); + uVar10 = std::iterator_copy((int)&local_298 + 4); cVar7 = FUN_0042c710(uVar10); while (cVar7 != '\0') { puVar13 = (undefined4 *)FUN_005cba30(); *(undefined4 *)*puVar13 = 0; - FUN_006518f0(&local_2b4,0); - uVar10 = FUN_004561a0((int)&local_298 + 4); + set_iterator_post_increment(&local_2b4,0); + uVar10 = std::iterator_copy((int)&local_298 + 4); cVar7 = FUN_0042c710(uVar10); } - FUN_004cf350(); + std::set::clear(); Sprite::Stop(); FUN_0040a9c0(); Entity::RemoveStatusEffects(); @@ -383062,7 +383062,7 @@ LAB_006ca2e9: this->_health = 10.0; *(undefined4 *)&this->field_0x384 = 0x41200000; if (((this->_type == 0x322) && (*(int *)&this->field_0x3bc != 0)) && - (cVar7 = FUN_0042a250(), cVar7 != '\0')) { + (cVar7 = Entity::IsFamiliar(), cVar7 != '\0')) { FUN_0062e0e0(this); } this->_spawnerType = 0; @@ -383242,7 +383242,7 @@ LAB_006ca9aa: } } if (*(char *)((int)in_ECX + 0x173) != '\0') { - FUN_006d5400(); + Entity_NPC::trigger_kill_item_effects(); fStack_5c = (float)*DAT_00c71678 + 7.0; iVar5 = Random(); iStack_64 = 0; @@ -383407,7 +383407,7 @@ void FUN_006cb010(uint param_1,uint param_2,int param_3) fVar13 = 1.0; if (-1 < in_EDX) { if (in_ECX[0xb] == 1) { - uVar12 = FUN_00505b80(local_64); + uVar12 = _Entity_NPC::GetColorWithFlash(local_64); iVar3 = in_ECX[0x6e]; iVar4 = in_ECX[0x6f]; iVar5 = in_ECX[0x70]; @@ -383461,9 +383461,9 @@ LAB_006cb24a: } -//@@ 006cb2a0 FUN_006cb2a0 +//@@ 006cb2a0 Entity_NPC::fire_projectile_from_params -void FUN_006cb2a0(void) +void Entity_NPC::fire_projectile_from_params(void) { int in_ECX; @@ -384124,7 +384124,7 @@ LAB_006ccaf9: } while ((uint)fVar8 < (uint)local_2c); fVar10 = 0.0; do { - FUN_006cb2a0(*(undefined4 *)((int)fVar10 * 4)); + Entity_NPC::fire_projectile_from_params(*(undefined4 *)((int)fVar10 * 4)); fVar10 = (float)((int)fVar10 + 1); } while ((uint)fVar10 < (uint)local_2c); pfVar9 = local_58; @@ -384624,9 +384624,9 @@ LAB_006d0647: *piVar4 = (int)in_ECX; std::multiset::insert(piVar4); } - FUN_00684b90(0x3f800000); + hsv_to_rgb(0x3f800000); uVar8 = Color::Color(0x3f800000); - FUN_006b82b0(uVar8); + Entity::SetColor(uVar8); } LAB_006d0b75: if ((in_ECX[10] == 0x10) && (in_ECX[0xb] == 2)) { @@ -384675,7 +384675,7 @@ void Entity_NPC::SetRef_bec(int param_1) undefined4 Entity_NPC::QueryNPCsType(undefined4 param_1) { - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); return param_1; } @@ -384737,7 +384737,7 @@ LAB_006d0d94: uVar6 = uVar6 + 1; } while (uVar6 < *(uint *)(iVar2 + 0x1264)); } - FUN_006b8320(param_2,iVar1 + 0x1288); + EntityList::assign(param_2,iVar1 + 0x1288); return param_2; } @@ -384776,7 +384776,7 @@ undefined4 Entity_NPC::QueryNPCsGroup(undefined4 param_1,int param_2) uVar4 = uVar4 + 1; } while (uVar4 < *(uint *)(iVar2 + 0x1264)); } - FUN_006b8320(param_1,iVar1 + 0x1288); + EntityList::assign(param_1,iVar1 + 0x1288); return param_1; } @@ -385121,7 +385121,7 @@ Entity_NPC::fireplace_get_loot(Entity_NPC *this,undefined4 param_2,char param_3) local_14 = 0; if ((((((this->_flags & 0x40000000000) != 0) || (iVar4 = this->_variant, iVar4 == 0xb)) || (iVar4 == 10)) || ((iVar4 == 0xc || (iVar4 == 0xd)))) || (iVar4 == 4)) { - FUN_006c20e0(&local_60); + LootList::LootList(&local_60); if (local_50 != 0) { do { local_50 = local_50 + -1; @@ -385232,9 +385232,9 @@ LAB_006d1719: uVar11 = 0; uVar10 = 0x14; } - FUN_006b84e0(5,uVar10,uVar11,uVar5,0); + std::deque::push_back(5,uVar10,uVar11,uVar5,0); LAB_006d17dc: - FUN_006c20e0(&local_60); + LootList::LootList(&local_60); FUN_006b84c0(); ExceptionList = local_1c; return param_2; @@ -385599,7 +385599,7 @@ LAB_006d236b: Entity_NPC::fireplace_get_loot(npc,local_fc,1); local_14 = 0; for (iVar5 = local_f0; npc = local_bc, iVar5 != local_f0 + local_ec; iVar5 = iVar5 + 1) { - piVar8 = (int *)FUN_0085bed0(local_c4,&DAT_00c7b640,0); + piVar8 = (int *)EntitySpawner::Spawn(local_c4,&DAT_00c7b640,0); (**(code **)(*piVar8 + 0xc))(); } if (local_ec != 0) { @@ -385607,7 +385607,7 @@ LAB_006d236b: } Entity_NPC::UpdatePickupGhosts(local_bc); local_14 = 0xffffffff; - FUN_006da850(); + std::deque::clear(); iVar5 = local_fc[0]; local_fc[0] = 0; operator_delete(iVar5,8); @@ -385808,7 +385808,7 @@ void __thiscall Entity_NPC::Interpolate(Entity_NPC *this) FUN_004ce6d0(); } this->field_0x175 = 1; - FUN_006a9c90(1); + Entity::CollideWithGrid(1); iVar1 = *(int *)&this->field_0x3c0; if ((iVar1 != 0) && (*(uint *)(iVar1 + 0x20) < (uint)this->_index)) { *(float *)(iVar1 + 0x33c) = (this->_pos).x; @@ -385855,7 +385855,7 @@ void __thiscall Entity_NPC::Interpolate(Entity_NPC *this) Entity_NPC_UpdateAI_dispatch(); *(undefined4 *)&this->field_0xb74 = 0; } - FUN_006d90e0(1); + Entity_NPC::UpdateChildEffectPosition(1); if (((((this->_flags & 0x20) != 0 || (this->_flags & 0x200000000000000) != 0) || (0 < *(int *)&this->field_0x3f0)) || (iVar1 = this->_state, iVar1 == 1)) || ((iVar1 == 0x12 || (iVar1 == 0x11)))) goto LAB_006d2dd8; @@ -386236,12 +386236,12 @@ LAB_006d3040: (piVar10 = *(int **)&this->field_0x3c0, piVar10 != (int *)0x0)) && (fVar12 = (this->_pos).y, (float)piVar10[0xd0] <= fVar12 && fVar12 != (float)piVar10[0xd0])) { - FUN_0059bed0(&local_78,0); + Entity_NPC::RenderSegmentLink(&local_78,0); iVar6 = this->_type; piVar10 = extraout_ECX_06; } if ((iVar6 == 0x3b6) && (this->_variant == 0)) { - FUN_004e9b10(&local_78,0); + Entity_NPC::render_overlay(&local_78,0); iVar6 = this->_type; piVar10 = extraout_ECX_07; } @@ -386387,7 +386387,7 @@ LAB_006d3907: } iVar6 = this->_type; if (iVar6 == 0x376) { - FUN_004e9b10(&local_78,0); + Entity_NPC::render_overlay(&local_78,0); iVar6 = this->_type; uVar11 = extraout_ECX_18; } @@ -386403,7 +386403,7 @@ LAB_006d3907: if (iVar6 == 0x13) { if (((this->_variant != 3) || (*(int *)&this->field_0x3c0 == 0)) || (*(float *)(*(int *)&this->field_0x3c0 + 0x340) < (this->_pos).y)) goto LAB_006d3d39; - FUN_0059bed0(&local_78,0); + Entity_NPC::RenderSegmentLink(&local_78,0); iVar6 = this->_type; } if (iVar6 == 0x38e) { @@ -386479,7 +386479,7 @@ LAB_006d3d39: uStack_58 = 0x3f800000; uStack_54 = 0x3f800000; uStack_50 = 0x3f800000; - FUN_00a1af90(local_3c,&local_5c,&local_dc); + Font::DrawString(local_3c,&local_5c,&local_dc); local_8 = 0xffffffff; } if (((this->field_0xde1 != '\0') && (*(int *)&this->field_0xd0c != 0)) && @@ -386589,7 +386589,7 @@ LAB_006d44a0: local_68 = (float)dVar14; local_b0 = local_70 + *local_c0; local_ac = local_68 / local_7c + local_c0[1]; - FUN_00a1aec0(local_1c,&local_b0,&local_5c,&local_dc); + Font::DrawStringScaled(local_1c,&local_b0,&local_5c,&local_dc); } ExceptionList = local_10; return; @@ -386604,12 +386604,12 @@ void __thiscall Entity_NPC::RenderShadowLayer(Entity_NPC *this,undefined4 param_ { if (this->_type == 0x376) { - FUN_004e9b10(param_2,1); + Entity_NPC::render_overlay(param_2,1); Entity::RenderShadowLayer((Entity *)this,param_2); return; } if ((this->_type == 0x13) && (this->_variant == 3)) { - FUN_0059bed0(param_2,1); + Entity_NPC::RenderSegmentLink(param_2,1); } Entity::RenderShadowLayer((Entity *)this,param_2); return; @@ -386707,7 +386707,7 @@ bool Entity_NPC::CanBeDamagedFromVelocity(float param_1,float param_2) if (iVar2 != 0x29) { if (iVar2 == 0x61) { ExceptionList = &local_10; - iVar2 = FUN_006ac8d0(DAT_00bf93b4 ^ (uint)(local_2c + 10)); + iVar2 = Entity::get_velocity_direction(DAT_00bf93b4 ^ (uint)(local_2c + 10)); goto LAB_006d4d66; } if ((iVar2 != 0xfe) && (iVar2 != 0x11b)) { @@ -386919,9 +386919,9 @@ uint Entity_NPC::CanReroll(void) } -//@@ 006d4e00 FUN_006d4e00 +//@@ 006d4e00 Entity_NPC::PlayDeathEffects -void FUN_006d4e00(void) +void Entity_NPC::PlayDeathEffects(void) { byte bVar1; @@ -387095,11 +387095,11 @@ void FUN_006d5350(void) } -//@@ 006d5400 FUN_006d5400 +//@@ 006d5400 Entity_NPC::trigger_kill_item_effects /* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */ -void FUN_006d5400(void) +void Entity_NPC::trigger_kill_item_effects(void) { Vector *pVVar1; @@ -388624,9 +388624,9 @@ LAB_006d7da5: return bVar2 ^ 1; } -//@@ 006d7df0 FUN_006d7df0 +//@@ 006d7df0 Entity_NPC::FollowParentSegment -void FUN_006d7df0(char param_1) +void Entity_NPC::FollowParentSegment(char param_1) { int *piVar1; @@ -388767,9 +388767,9 @@ LAB_006d80fc: } -//@@ 006d81c0 FUN_006d81c0 +//@@ 006d81c0 Entity_NPC::ClearDequeRefs -void FUN_006d81c0(void) +void Entity_NPC::ClearDequeRefs(void) { int *piVar1; @@ -389335,9 +389335,9 @@ LAB_006d8cba: return; } -//@@ 006d8cf0 FUN_006d8cf0 +//@@ 006d8cf0 Entity_NPC::ClearChild -void FUN_006d8cf0(void) +void Entity_NPC::ClearChild(void) { int *piVar1; @@ -389383,9 +389383,9 @@ void Entity_NPC::GetAimTargetPosition(undefined4 *param_1) return; } -//@@ 006d8d80 FUN_006d8d80 +//@@ 006d8d80 Entity_NPC::is_controller_input_idle -uint FUN_006d8d80(void) +uint Entity_NPC::is_controller_input_idle(void) { float fVar1; @@ -389431,9 +389431,9 @@ LAB_006d8dc0: } -//@@ 006d8e10 FUN_006d8e10 +//@@ 006d8e10 is_local_player_owned -undefined1 FUN_006d8e10(void) +undefined1 is_local_player_owned(void) { char cVar1; @@ -389575,9 +389575,9 @@ void Entity_NPC::UpdateControllerMovement(char param_1) return; } -//@@ 006d90e0 FUN_006d90e0 +//@@ 006d90e0 Entity_NPC::UpdateChildEffectPosition -void FUN_006d90e0(char param_1) +void Entity_NPC::UpdateChildEffectPosition(char param_1) { int iVar1; @@ -389648,9 +389648,9 @@ LAB_006d91de: } -//@@ 006d9320 FUN_006d9320 +//@@ 006d9320 Entity_NPC::apply_controller_movement -void FUN_006d9320(void) +void Entity_NPC::apply_controller_movement(void) { float *pfVar1; @@ -390050,7 +390050,7 @@ LAB_006d9b71: *puVar15 = pEVar9; std::multiset::insert(puVar15); } - FUN_0041b4f0(pEVar9); + EntityList::AddPersistentEntity(pEVar9); } if (in_ECX[10] == 0x45) { if (in_ECX[0xb] != 0) goto LAB_006d9ded; @@ -390067,7 +390067,7 @@ LAB_006d9ded: *(float *)&pEVar9->field_0xf48 = (float)in_ECX[0x3d2] * 0.66; } if (pEVar9->_type == 0x38a) { - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); local_18 = local_18 | 3; if (local_9c != 0) goto LAB_006d9e96; param_1 = (undefined4 *)CONCAT13(1,param_1._0_3_); @@ -390160,7 +390160,7 @@ LAB_006d9f2d: iVar11 = ANM2::GetLayer((ANM2 *)(in_ECX + 0x12),0); Sprite::ReplaceSpritesheet(0,iVar11 + 8); ANM2::LoadGraphics(extraout_ECX); - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); local_18 = local_18 | 4; local_8 = 1; param_1 = (undefined4 *)0x0; @@ -390192,7 +390192,7 @@ LAB_006da145: else if (iVar11 == 0x4f) { if (((in_ECX[0xb] == 0) || (in_ECX[0xb] == 2)) || (in_ECX[0xb] == 1)) { pEVar9->_state = 4; - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)(iVar4 + 0x18300) + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)(iVar4 + 0x18300) + 0x1218)); local_18 = local_18 | 8; uVar14 = 0; local_8 = 3; @@ -390208,7 +390208,7 @@ LAB_006da145: } while (uVar14 < local_34); } if ((in_ECX[10] == 0x4f) && (in_ECX[0xb] == 2)) { - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); local_18 = local_18 | 0x10; local_40 = '\x01'; local_3c = local_84; @@ -390273,7 +390273,7 @@ LAB_006da2c0: } else if (iVar11 == 0x2d) { if (local_1c == 0) { - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); local_8 = 6; param_1 = (undefined4 *)0x0; if (local_8c != 0) { @@ -390403,7 +390403,7 @@ void __thiscall Entity_NPC::UpdatePickupGhosts(Entity_NPC *this) bVar2 = true; } local_8 = 0xffffffff; - FUN_006da850(); + std::deque::clear(); uVar6 = local_28[0]; local_28[0] = 0; } @@ -390427,7 +390427,7 @@ void __thiscall Entity_NPC::UpdatePickupGhosts(Entity_NPC *this) bVar2 = true; } local_8 = 0xffffffff; - FUN_006da850(); + std::deque::clear(); uVar6 = local_3c[0]; local_3c[0] = 0; } @@ -390577,9 +390577,9 @@ void FUN_006da830(void) } -//@@ 006da850 FUN_006da850 +//@@ 006da850 std::deque::clear -void FUN_006da850(void) +void std::deque::clear(void) { int iVar1; @@ -390861,9 +390861,9 @@ void FUN_006dac00(undefined4 *param_1,undefined4 param_2) } -//@@ 006dac30 FUN_006dac30 +//@@ 006dac30 log_precise -void FUN_006dac30(void) +void log_precise(void) { libm_sse2_log_precise(); @@ -391070,9 +391070,9 @@ undefined4 Entity_Player::GetSubPlayer(void) } -//@@ 006dae20 FUN_006dae20 +//@@ 006dae20 Game::IsChallengeOrDaily -undefined1 FUN_006dae20(void) +undefined1 Game::IsChallengeOrDaily(void) { int in_ECX; @@ -391084,11 +391084,11 @@ undefined1 FUN_006dae20(void) } -//@@ 006dae40 FUN_006dae40 +//@@ 006dae40 Entity_Pickup::GetChestLoot /* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */ -undefined4 FUN_006dae40(undefined4 param_1,byte param_2,int param_3) +undefined4 Entity_Pickup::GetChestLoot(undefined4 param_1,byte param_2,int param_3) { uint *puVar1; @@ -391249,7 +391249,7 @@ undefined4 FUN_006dae40(undefined4 param_1,byte param_2,int param_3) uVar13 = uVar13 ^ uVar13 >> ((byte)puVar20[3] & 0x1f); *puVar20 = uVar13; if ((uVar13 & 3) == 0) { - FUN_006c20e0(&local_e8); + LootList::LootList(&local_e8); if (local_d8 != 0) { do { local_d8 = local_d8 + -1; @@ -391535,7 +391535,7 @@ LAB_006db72a: uVar13 = uVar13 >> ((byte)puVar11[3] & 0x1f) ^ uVar13; uVar21 = 300; LAB_006db911: - FUN_006b84e0(5,uVar21,(ulonglong)uVar13 << 0x20,0); + std::deque::push_back(5,uVar21,(ulonglong)uVar13 << 0x20,0); } else if (local_c9 != '\0') { uVar13 = *puVar12; @@ -391596,7 +391596,7 @@ LAB_006db955: uVar8 = uVar8 << ((byte)puVar20[2] & 0x1f) ^ uVar8; uVar8 = uVar8 >> ((byte)puVar20[3] & 0x1f) ^ uVar8; *puVar20 = uVar8; - FUN_006b84e0(5,300,(ulonglong)uVar8 << 0x20,0); + std::deque::push_back(5,300,(ulonglong)uVar8 << 0x20,0); iVar17 = iVar17 + -1; } while (iVar17 != 0); } @@ -391611,7 +391611,7 @@ LAB_006db955: uVar8 = uVar8 << ((byte)puVar20[2] & 0x1f) ^ uVar8; uVar8 = uVar8 >> ((byte)puVar20[3] & 0x1f) ^ uVar8; *puVar20 = uVar8; - FUN_006b84e0(5,0x46,(ulonglong)uVar8 << 0x20,0); + std::deque::push_back(5,0x46,(ulonglong)uVar8 << 0x20,0); iVar17 = iVar17 + -1; } while (iVar17 != 0); } @@ -391635,7 +391635,7 @@ LAB_006dba2b: *puVar20 = uVar13; uVar21 = 0x12; LAB_006dba6b: - FUN_006b84e0(uVar21,uVar22,lVar23,0); + std::deque::push_back(uVar21,uVar22,lVar23,0); } local_14 = local_14 & 0xffffff00; if (local_44 != 0) { @@ -391890,7 +391890,7 @@ LAB_006dd0cb: lVar23 = (ulonglong)uVar13 << 0x20; uVar21 = 300; LAB_006dd20c: - FUN_006b84e0(5,uVar21,lVar23,0); + std::deque::push_back(5,uVar21,lVar23,0); } else { if (local_c9 != '\0') { @@ -391934,7 +391934,7 @@ LAB_006dd20c: local_b8 = (int *)uVar13; if (uVar13 == 0) { uVar21 = RNG::Next(); - FUN_006b84e0(0x12,0,0,uVar21,uVar13); + std::deque::push_back(0x12,0,0,uVar21,uVar13); local_b8 = (int *)0x0; } } @@ -392204,7 +392204,7 @@ LAB_006dd86b: if (0 < iVar9) { do { uVar21 = RNG::Next(); - FUN_006b84e0(5,0x14,0,uVar21,0); + std::deque::push_back(5,0x14,0,uVar21,0); iVar9 = iVar9 + -1; } while (iVar9 != 0); } @@ -392258,7 +392258,7 @@ LAB_006dd86b: default: goto switchD_006dd8b7_default; } - FUN_006b84e0(5,uVar21,lVar23,0); + std::deque::push_back(5,uVar21,lVar23,0); switchD_006dd8b7_default: local_b8 = (int *)((int)local_b8 - 1); } while (local_b8 != (int *)0x0); @@ -392305,7 +392305,7 @@ switchD_006dd8b7_default: default: goto switchD_006dd10b_default; } - FUN_006b84e0(5,uVar21,lVar23,0); + std::deque::push_back(5,uVar21,lVar23,0); switchD_006dd10b_default: local_fc = local_fc + 1; } while ((int)local_fc < (int)((uint)(iVar17 == 0x39) * 4 + 1)); @@ -392319,7 +392319,7 @@ switchD_006dd10b_default: piVar19 = DAT_00c71678; uVar21 = RNG::Next(); uVar21 = ItemPool::GetCollectible((ItemPool *)(piVar19 + 0x69d0),0,uVar21,uVar8,0,0); - FUN_006b84e0(5,100,uVar21,local_bc,0); + std::deque::push_back(5,100,uVar21,local_bc,0); if (iVar17 != 0x39) goto LAB_006ddbc9; local_bc = (uint *)RNG::Next(); piVar19 = DAT_00c71678; @@ -392528,7 +392528,7 @@ LAB_006dcb9c: local_c8 = (uint *)(uVar8 & 0xffff); RNG::Next(); uVar21 = RNG::Next(); - FUN_006b84e0(5,local_c8,uVar8 >> 0x10,uVar21,0); + std::deque::push_back(5,local_c8,uVar8 >> 0x10,uVar21,0); if ((*(int *)(in_ECX + 0x30) == 2) && (local_c8 == (uint *)0xa)) { uVar8 = 0; uVar13 = (int)local_b0 - local_b4 >> 3; @@ -392673,7 +392673,7 @@ LAB_006dc5fa: uVar8 = uVar8 << ((byte)puVar20[2] & 0x1f) ^ uVar8; uVar8 = uVar8 >> ((byte)puVar20[3] & 0x1f) ^ uVar8; *puVar20 = uVar8; - FUN_006b84e0(5,10,CONCAT44(uVar8,3),0); + std::deque::push_back(5,10,CONCAT44(uVar8,3),0); iVar17 = iVar17 + -1; } while (iVar17 != 0); } @@ -392690,7 +392690,7 @@ LAB_006dc5fa: uVar8 = uVar8 << ((byte)puVar20[2] & 0x1f) ^ uVar8; uVar8 = uVar8 >> ((byte)puVar20[3] & 0x1f) ^ uVar8; *puVar20 = uVar8; - FUN_006b84e0(5,0x15e,(ulonglong)uVar8 << 0x20,0); + std::deque::push_back(5,0x15e,(ulonglong)uVar8 << 0x20,0); iVar17 = iVar17 + -1; } while (iVar17 != 0); break; @@ -392707,7 +392707,7 @@ LAB_006dc5fa: uVar22 = 4; LAB_006dc757: uVar21 = ItemPool::GetCollectible((ItemPool *)(piVar19 + 0x69d0),uVar22,uVar21,uVar8,0); - FUN_006b84e0(5,100,uVar21,local_c8,0); + std::deque::push_back(5,100,uVar21,local_c8,0); } local_14 = local_14 & 0xffffff00; if (local_44 == 0) goto LAB_006ddbc9; @@ -392726,7 +392726,7 @@ LAB_006dc757: LAB_006ddbb9: uVar24 = CONCAT44(puVar10,uVar21); LAB_006ddbba: - FUN_006b84e0(5,100,uVar24,0); + std::deque::push_back(5,100,uVar24,0); goto LAB_006ddbc9; } if ((piVar16[0x60c1] == -1) || (local_c9 = '\x01', piVar16[0x60c1] == -0xc)) { @@ -393002,7 +393002,7 @@ LAB_006dc085: case 2: uVar22 = 0; uVar21 = RNG::Next(); - FUN_006b84e0(0x55,0,0,uVar21,uVar22); + std::deque::push_back(0x55,0,0,uVar21,uVar22); uVar25 = 0; uVar8 = RNG::Next(); lVar23 = (ulonglong)uVar8 << 0x20; @@ -393019,10 +393019,10 @@ LAB_006dc085: case 4: uVar22 = 0; uVar21 = RNG::Next(); - FUN_006b84e0(3,0x2b,0,uVar21,uVar22); + std::deque::push_back(3,0x2b,0,uVar21,uVar22); uVar22 = 0; uVar21 = RNG::Next(); - FUN_006b84e0(3,0x2b,0,uVar21,uVar22); + std::deque::push_back(3,0x2b,0,uVar21,uVar22); uVar25 = 0; uVar8 = RNG::Next(); lVar23 = (ulonglong)uVar8 << 0x20; @@ -393032,10 +393032,10 @@ LAB_006dc085: case 5: uVar22 = 0; uVar21 = RNG::Next(); - FUN_006b84e0(3,0x49,0,uVar21,uVar22); + std::deque::push_back(3,0x49,0,uVar21,uVar22); uVar22 = 0; uVar21 = RNG::Next(); - FUN_006b84e0(3,0x49,0,uVar21,uVar22); + std::deque::push_back(3,0x49,0,uVar21,uVar22); uVar25 = 0; uVar8 = RNG::Next(); lVar23 = (ulonglong)uVar8 << 0x20; @@ -393044,7 +393044,7 @@ LAB_006dc085: break; case 6: uVar21 = RNG::Next(); - FUN_006b84e0(5,10,3,uVar21,0); + std::deque::push_back(5,10,3,uVar21,0); iVar17 = RNG::RandomInt(2); if ((iVar17 == 0) && ((puVar10 == (uint *)0x0 || (iVar17 = RNG::RandomInt(5), iVar17 == 0)))) { uVar21 = RNG::Next(); @@ -393055,14 +393055,14 @@ LAB_006dc085: goto switchD_006dc0ee_default; case 7: uVar21 = RNG::Next(); - FUN_006b84e0(5,0x28,3,uVar21,0); + std::deque::push_back(5,0x28,3,uVar21,0); uVar21 = RNG::Next(); lVar23 = CONCAT44(uVar21,3); uVar21 = 0x28; goto LAB_006dc2ec; case 8: uVar21 = RNG::Next(); - FUN_006b84e0(5,0x46,0,uVar21,0); + std::deque::push_back(5,0x46,0,uVar21,0); uVar8 = RNG::Next(); lVar23 = (ulonglong)uVar8 << 0x20; uVar21 = 0x46; @@ -393073,7 +393073,7 @@ LAB_006dc2ec: default: goto switchD_006dc0ee_default; } - FUN_006b84e0(uVar22,uVar21,lVar23,uVar25); + std::deque::push_back(uVar22,uVar21,lVar23,uVar25); switchD_006dc0ee_default: if ((local_d0 != 0) && (iVar17 = Entity_Player::GetTrinketMultiplier(0x3d), 1 < iVar17)) { uVar8 = *puVar20; @@ -393093,7 +393093,7 @@ switchD_006dc0ee_default: uVar21 = RNG::Next(); uVar22 = 10; } - FUN_006b84e0(5,uVar22,CONCAT44(uVar21,3),0); + std::deque::push_back(5,uVar22,CONCAT44(uVar21,3),0); } local_14 = local_14 & 0xffffff00; if (local_b4 != 0) { @@ -393110,8 +393110,8 @@ LAB_006dc3b3: operator_delete(); } LAB_006ddbc9: - FUN_006c20e0(&local_e8); - FUN_006da850(); + LootList::LootList(&local_e8); + std::deque::clear(); local_e8 = (int *)0x0; operator_delete(); ExceptionList = local_1c; @@ -394450,7 +394450,7 @@ LAB_006df8a6: uVar11 = *local_4c; local_48 = param_3; if (uVar11 == 0x28) { - cVar3 = FUN_009be670(&pGVar14->field_0x1baa8); + cVar3 = PlayerManager::are_all_players_tainted_blue_baby(&pGVar14->field_0x1baa8); if (cVar3 == '\0') goto LAB_006dfdb1; uVar11 = *param_1; if (((uVar11 == 3) || (uVar11 == 5)) || (uVar11 == 6)) goto LAB_006dfdb1; @@ -394981,7 +394981,7 @@ Entity_Pickup::Init(Entity_Pickup *this,undefined4 param_2,void **param_3,ANM2 * } *(undefined4 *)(this + 1) = 0; *(undefined4 *)&this[1].field_0x4 = 0; - FUN_006eee10(0); + EntitySaveStateRef::Set(0); local_48 = (void **)&DAT_00000007; this->_dropDelay = 0; this->_cycleCollectibleCount = 0; @@ -395010,9 +395010,9 @@ Entity_Pickup::Init(Entity_Pickup *this,undefined4 param_2,void **param_3,ANM2 * local_34 = param_4; cVar5 = Pickup_PickVariant(¶m_4,1,1); if ((cVar5 != '\0') && ((local_30 != param_3 || (local_34 != param_4)))) { - iVar9 = FUN_008151e0(param_3,param_4,this->_shopItemId,0); + iVar9 = Room::GetShopItemPrice(param_3,param_4,this->_shopItemId,0); this->_price = iVar9; - iVar9 = FUN_00816250(this->_shopItemId,iVar9,0); + iVar9 = _Room::ResolveHeartSubType(this->_shopItemId,iVar9,0); this->_price = iVar9; } iVar9 = *(int *)((int)DAT_00c71678->_room + 4); @@ -395062,7 +395062,7 @@ Entity_Pickup::Init(Entity_Pickup *this,undefined4 param_2,void **param_3,ANM2 * FUN_00863340(this,¶m_3,¶m_4); ppvVar15 = param_3; if (((param_3 == (void **)0x28) && - (cVar5 = FUN_009be670(&DAT_00c71678->field_0x1baa8), cVar5 != '\0')) && + (cVar5 = PlayerManager::are_all_players_tainted_blue_baby(&DAT_00c71678->field_0x1baa8), cVar5 != '\0')) && ((param_4 != (ANM2 *)0x3 && ((param_4 != (ANM2 *)&DAT_00000005 && (param_4 != (ANM2 *)&DAT_00000006)))))) { ppvVar15 = (void **)&DAT_0000002a; @@ -395074,7 +395074,7 @@ Entity_Pickup::Init(Entity_Pickup *this,undefined4 param_2,void **param_3,ANM2 * param_3 = ppvVar15; if (((uint)param_4 >> 0xf & 1) == 0 || ((uint)param_4 & 0x7fff) == 0) { uVar8 = RNG::Next(); - uVar7 = FUN_007376c0(uVar8); + uVar7 = ItemPool::GetCardImpl(uVar8); param_4 = (ANM2 *)(uVar7 | 0x8000); } Entity::Init(param_2,param_3,0x10,local_40); @@ -395483,12 +395483,12 @@ LAB_006e108a: iVar9 = 100; LAB_006e14ea: this->_shopItemId = -1; - iVar9 = FUN_008151e0(iVar9,iVar19,0xffffffff,0); + iVar9 = Room::GetShopItemPrice(iVar9,iVar19,0xffffffff,0); this->_price = iVar9; - iVar9 = FUN_00816250(this->_shopItemId,iVar9,0); + iVar9 = _Room::ResolveHeartSubType(this->_shopItemId,iVar9,0); this->_price = iVar9; } - FUN_006e2570(this->_price); + Entity_Pickup::update_price_sprite(this->_price); iVar9 = this->_variant; if ((iVar9 == 10) && (DAT_00c71678->_challenge == 0x22)) { (**(code **)(*(int *)this + 0x28))(); @@ -395508,7 +395508,7 @@ LAB_006e14ea: this->_isFlipX = (byte)this->_initSeed & 1; } LAB_006e15aa: - FUN_006e17c0(); + Entity_Pickup::UpdateLootPreview(); if (*(int *)(DAT_00c7169c + 0x4b3d8) == *(int *)(DAT_00c7169c + 0x4b3dc)) { /* WARNING: Subroutine does not return */ KAGE_LogMessage(1,"Entity Pickup Initialized as: %d.%d.%d Seed: %08x \n",param_2,param_3, @@ -395561,7 +395561,7 @@ undefined1 * __thiscall Entity_Pickup::TryFlip(Entity_Pickup *this) pEStack_9c = (EntitySaveState *)0x0; uStack_a8 = 0x6e16ac; pEStack_a4 = this; - FUN_007eeeb0(); + Entity_Pickup::CanFlip(); pEStack_9c = (EntitySaveState *)0x1; uStack_a0 = 1; *(undefined4 *)&this->field_0x3dc = *(undefined4 *)(*(int *)puVar1 + 0x38); @@ -395603,12 +395603,12 @@ undefined1 * __thiscall Entity_Pickup::TryFlip(Entity_Pickup *this) else { pEStack_9c = &local_8c; uStack_a0 = 0x6e1769; - pEStack_9c = (EntitySaveState *)FUN_004d3130(); + pEStack_9c = (EntitySaveState *)EntitySaveState::copy(); } local_8 = (uint)local_8._1_3_ << 8; } uStack_a0 = 0x6e1779; - FUN_006eee10(); + EntitySaveStateRef::Set(); pEStack_9c = (EntitySaveState *)0x6e1784; ANM2::Reset(&this->_altPedestalANM2); pEStack_9c = (EntitySaveState *)0x6e178f; @@ -395618,9 +395618,9 @@ undefined1 * __thiscall Entity_Pickup::TryFlip(Entity_Pickup *this) } -//@@ 006e17c0 FUN_006e17c0 +//@@ 006e17c0 Entity_Pickup::UpdateLootPreview -void FUN_006e17c0(void) +void Entity_Pickup::UpdateLootPreview(void) { int *piVar1; @@ -395651,7 +395651,7 @@ void FUN_006e17c0(void) local_18 = *(undefined4 *)(in_ECX + 0x33c); local_14 = *(int **)(in_ECX + 0x340); uVar5 = Game::GetNearestPlayer(&local_18); - FUN_006dae40(local_2c,0,uVar5); + Entity_Pickup::GetChestLoot(local_2c,0,uVar5); local_8 = 0; piVar1 = (int *)(in_ECX + 0x590); iVar4 = Entity_Effect::CreateLootPreview(); @@ -395665,7 +395665,7 @@ void FUN_006e17c0(void) std::multiset::insert(piVar1); } } - FUN_006da850(); + std::deque::clear(); uVar5 = local_2c[0]; local_2c[0] = 0; operator_delete(uVar5,8); @@ -395911,11 +395911,11 @@ void __thiscall Entity_Pickup::SetForceBlind(Entity_Pickup *this,byte param_2) } -//@@ 006e1e90 FUN_006e1e90 +//@@ 006e1e90 Entity_Pickup::load_collectible_gfx /* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */ -void FUN_006e1e90(uint param_1,uint param_2,char param_3) +void Entity_Pickup::load_collectible_gfx(uint param_1,uint param_2,char param_3) { int iVar1; @@ -396089,7 +396089,7 @@ void Entity_Pickup::UpdateSprite(char param_1) else { uVar3 = 0; } - FUN_006e1e90(*(undefined4 *)(in_ECX + 0x30),*(undefined4 *)(in_ECX + 0x3ec),uVar3); + Entity_Pickup::load_collectible_gfx(*(undefined4 *)(in_ECX + 0x30),*(undefined4 *)(in_ECX + 0x3ec),uVar3); iVar2 = extraout_ECX_01; ppcVar1 = (char **)puStack_20; goto switchD_006e23e9_caseD_1; @@ -396180,9 +396180,9 @@ switchD_006e23e9_caseD_1: return; } -//@@ 006e2570 FUN_006e2570 +//@@ 006e2570 Entity_Pickup::update_price_sprite -void FUN_006e2570(int *param_1) +void Entity_Pickup::update_price_sprite(int *param_1) { ANM2 *pAVar1; @@ -396256,7 +396256,7 @@ void FUN_006e2570(int *param_1) } else { iVar5 = *(int *)(in_ECX + 0x534); - iVar9 = FUN_008151e0(*(undefined4 *)(in_ECX + 0x2c),*(undefined4 *)(in_ECX + 0x30), + iVar9 = Room::GetShopItemPrice(*(undefined4 *)(in_ECX + 0x2c),*(undefined4 *)(in_ECX + 0x30), *(undefined4 *)(in_ECX + 0x53c),0); if ((iVar5 < iVar9) || (pcVar6 = "NumbersWhite", iVar5 == -1000)) { pcVar6 = "NumbersRed"; @@ -396716,7 +396716,7 @@ void Entity_Pickup::Morph in_ECX[0xfb] = uVar22 >> 0x14 ^ uVar22; } if (1 < *(int *)(DAT_00c71678 + 0x26614)) { - FUN_0042b560(¶m_1,¶m_2,¶m_3); + ItemPool::ReplaceBlacklistedPickup(¶m_1,¶m_2,¶m_3); } iVar6 = in_ECX[0xef]; iVar26 = in_ECX[0xcd]; @@ -396756,7 +396756,7 @@ void Entity_Pickup::Morph ((iVar23 = ItemConfig::GetCollectible(param_3), iVar23 == 0 || (cVar21 = Item::HasTags(0,2), cVar21 == '\0')))) { uVar24 = ItemConfig::GetTaggedItems(0,2); - FUN_0043eca0(uVar24); + std::vector::copy_constructor(uVar24); local_8 = CONCAT31(local_8._1_3_,1); bVar30 = false; uVar22 = local_20._4_4_ - (int)local_20; @@ -396827,8 +396827,8 @@ void Entity_Pickup::Morph FUN_00814a50(in_ECX[0x14f],¶m_2,¶m_3,uVar24); iVar28 = param_3; } - uVar24 = FUN_008151e0(param_2,iVar28,in_ECX[0x14f],0); - param_5 = (int *)FUN_00816250(in_ECX[0x14f],uVar24,0); + uVar24 = Room::GetShopItemPrice(param_2,iVar28,in_ECX[0x14f],0); + param_5 = (int *)_Room::ResolveHeartSubType(in_ECX[0x14f],uVar24,0); pcVar19 = *(code **)(*in_ECX + 4); uVar24 = RNG::Next(); (*pcVar19)(param_1,param_2,iVar28,uVar24); @@ -396866,7 +396866,7 @@ void Entity_Pickup::Morph in_ECX[0x161] = iVar14; } in_ECX[0x14f] = iVar9; - FUN_006e2570(iVar23); + Entity_Pickup::update_price_sprite(iVar23); SetAlternatePedestal(); cVar21 = *(char *)((int)in_ECX + 0x52e); *(char *)((int)in_ECX + 0x52e) = local_13; @@ -397164,7 +397164,7 @@ void __thiscall Entity_Pickup::Update(Entity_Pickup *this) puVar18 = puStack_20; if ((cVar8 != '\0') && ((iVar11 = *(int *)((int)DAT_00c71678->_room + 8), iVar11 == 0xb || (iVar11 == 0x11)))) { - FUN_00833420(); + Ambush::StartChallenge(); puVar18 = puStack_20; } } @@ -397187,7 +397187,7 @@ void __thiscall Entity_Pickup::Update(Entity_Pickup *this) puVar18 = puStack_20; if ((cVar8 != '\0') && ((iVar11 = *(int *)((int)DAT_00c71678->_room + 8), iVar11 == 0xb || (iVar11 == 0x11)))) { - FUN_00833420(); + Ambush::StartChallenge(); puVar18 = puStack_20; } } @@ -397293,7 +397293,7 @@ void __thiscall Entity_Pickup::Update(Entity_Pickup *this) else { uVar12 = 1; } - FUN_006e1e90(*(undefined4 *)(*(int *)&this->field_0x5c8 + 8), + Entity_Pickup::load_collectible_gfx(*(undefined4 *)(*(int *)&this->field_0x5c8 + 8), *(undefined4 *)(*(int *)&this->field_0x5c8 + 0x34),uVar12); ANM2::LoadGraphics(); puVar14 = (undefined4 *)ANM2::GetAnimation(); @@ -397770,10 +397770,10 @@ LAB_006e4deb: local_c8 = (this->_pos).x; local_c4 = (ANM2 *)(this->_pos).y; uVar12 = Game::GetNearestPlayerEx(&local_c8,1,0,0); - uVar16 = FUN_008151e0(this->_variant,this->_subtype,this->_shopItemId,uVar12); - iVar11 = FUN_00816250(this->_shopItemId,uVar16,uVar12); + uVar16 = Room::GetShopItemPrice(this->_variant,this->_subtype,this->_shopItemId,uVar12); + iVar11 = _Room::ResolveHeartSubType(this->_shopItemId,uVar16,uVar12); if (this->_price != iVar11) { - FUN_006e2570(); + Entity_Pickup::update_price_sprite(); } } local_bd = IsChest(); @@ -397807,7 +397807,7 @@ LAB_006e52d2: LAB_006e52d7: if (uVar10 != 0) { if (this->field_0x8c != '\0') goto LAB_006e5393; - uVar31 = FUN_00407380(); + uVar31 = _string_holder_c_str(); do { pbVar22 = (byte *)((ulonglong)uVar31 >> 0x20); pbVar15 = (byte *)uVar31; @@ -397827,7 +397827,7 @@ LAB_006e5320: uVar10 = 0; LAB_006e5325: if (uVar10 != 0) { - uVar31 = FUN_00407380(); + uVar31 = _string_holder_c_str(); do { pbVar22 = (byte *)((ulonglong)uVar31 >> 0x20); pbVar15 = (byte *)uVar31; @@ -397883,7 +397883,7 @@ LAB_006e53e7: } else if (iVar11 == 4) { uVar12 = RNG::Next(); - iVar11 = FUN_009dcc70(uVar12,0); + iVar11 = ItemPool::CreateGlitchedCollectible(uVar12,0); this->_subtype = iVar11; Entity_Pickup::UpdateSprite(); uVar10 = this->_subtype; @@ -398016,10 +398016,10 @@ LAB_006e5401: this->_visible = 1; cVar8 = TryOpenChest(); if (cVar8 != '\0') { - FUN_006ee750(); + Entity_Pickup::RemoveOtherOptions(); iVar11 = *(int *)((int)DAT_00c71678->_room + 8); if ((iVar11 == 0xb) || (iVar11 == 0x11)) { - FUN_00833420(); + Ambush::StartChallenge(); } } } @@ -398106,10 +398106,10 @@ LAB_006e562c: if (this->_subtype == 1) { cVar8 = TryOpenChest(); if (cVar8 != '\0') { - FUN_006ee750(); + Entity_Pickup::RemoveOtherOptions(); iVar11 = *(int *)((int)DAT_00c71678->_room + 8); if ((iVar11 == 0xb) || (iVar11 == 0x11)) { - FUN_00833420(); + Ambush::StartChallenge(); } } } @@ -398142,7 +398142,7 @@ LAB_006e562c: seed_fart_sound_override(); SoundEffects::Play(local_c4,0x3f800000,2,0,0x3f800000,0); this->_wait = 0x1e; - FUN_006e17c0(); + Entity_Pickup::UpdateLootPreview(); } pvVar4 = DAT_00c71678->_room; if (*(int *)((int)pvVar4 + 8) == 0x10) { @@ -398205,7 +398205,7 @@ LAB_006e562c: local_c4 = (ANM2 *)((float)dVar32 / (float)local_c4); local_cc = *(ANM2 **)((int)pGVar6->_room + 0x11fc); local_dc = *(ANM2 **)((int)pGVar6->_room + 0x1200); - FUN_0041c770(); + shared_ptr::assign(); local_14 = 6; pcVar3 = *(code **)(*local_f4 + 0x2c); __ftoui3(); @@ -398242,7 +398242,7 @@ LAB_006e562c: local_c4 = (ANM2 *)((float)dVar32 / (float)local_c4); local_cc = *(ANM2 **)((int)pGVar6->_room + 0x11fc); local_dc = *(ANM2 **)((int)pGVar6->_room + 0x1200); - FUN_0041c770(); + shared_ptr::assign(); local_14 = 8; (**(code **)(*local_d4 + 0x2c)) (&local_50,(int)((float)local_f8 - (float)local_cc), @@ -398783,7 +398783,7 @@ undefined4 Entity_Pickup::TryOpenChest(int param_1) local_5d = '\0'; local_5c = (float)in_ECX->_variant; local_51 = in_ECX->field_0x52f; - FUN_006dae40(local_94,1,local_68); + Entity_Pickup::GetChestLoot(local_94,1,local_68); piVar3 = local_94[0]; local_14 = (int *)0x0; local_58->_subtype = 0; @@ -398902,7 +398902,7 @@ undefined4 Entity_Pickup::TryOpenChest(int param_1) ((DAT_00c71678->_difficulty != 3 && ((DAT_00c71678->_stage == 0xb && (DAT_00c71678->_startingRoomIdx == DAT_00c71678->_currentRoomIdx)))))) { - FUN_006eea30(0xfffffffe); + Entity_Pickup::MakeShopItem(0xfffffffe); uVar7 = Random(); piVar11 = (int *)Game::Spawn(1000,0xf,&pEVar10->_pos,&DAT_00c7b640,0,0,uVar7); local_50 = 0x3f800000; @@ -399117,7 +399117,7 @@ LAB_006e74e4: pVVar13 = local_64; sin(); local_c8 = (float)pVVar13 + pVVar1->y; - piVar11 = (int *)FUN_0085bed0(&local_cc,&local_c4,0); + piVar11 = (int *)EntitySpawner::Spawn(&local_cc,&local_c4,0); if ((piVar11[10] == 5) && (local_58->_variant == 0x39)) { piVar11[0x155] = (int)local_70 / 2; } @@ -399191,7 +399191,7 @@ LAB_006e74e4: } *(undefined1 *)((int)DAT_00c71678->_room + 0x7894) = 1; } - FUN_006da850(); + std::deque::clear(); piVar3 = local_94[0]; local_94[0] = (int *)0x0; operator_delete(piVar3,8); @@ -399535,9 +399535,9 @@ undefined4 __thiscall Entity_Pickup::GetCoinValue(Entity_Pickup *this) } -//@@ 006e83a0 FUN_006e83a0 +//@@ 006e83a0 Entity_Pickup::can_player_buy -undefined4 FUN_006e83a0(Entity_Player *param_1) +undefined4 Entity_Pickup::can_player_buy(Entity_Player *param_1) { undefined *puVar1; @@ -399624,9 +399624,9 @@ undefined4 FUN_006e83a0(Entity_Player *param_1) } -//@@ 006e84d0 FUN_006e84d0 +//@@ 006e84d0 Entity_Pickup::CollectTrinket -void FUN_006e84d0(Entity_Player *param_1,uint param_2) +void Entity_Pickup::CollectTrinket(Entity_Player *param_1,uint param_2) { Room *pRVar1; @@ -399788,7 +399788,7 @@ LAB_006e8700: } local_1c = (float)DAT_00c71678[0x60b4]; local_20 = (float)DAT_00c71678[0x60c1]; - NpcAI::ENTITY_MASK((Entity_NPC *)(DAT_00c71678[0x60c0] + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(DAT_00c71678[0x60c0] + 0x1218)); iVar7 = local_18; uVar9 = 0; local_8 = 2; @@ -399820,11 +399820,11 @@ LAB_006e8700: } cVar4 = Entity_Player::CanPickupItem(); if ((cVar4 != '\0') && (cVar4 = Entity_Player::IsHoldingItem(), cVar4 == '\0')) { - FUN_007afc20(); + Entity_Player::try_trigger_astral_projection(); } } else { - NpcAI::ENTITY_MASK((Entity_NPC *)(DAT_00c71678[0x60c0] + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(DAT_00c71678[0x60c0] + 0x1218)); uVar9 = 0; local_8 = 0; if (param_2 != 0) { @@ -400216,7 +400216,7 @@ LAB_006e8e25: ExceptionList = local_10; return true; } - cVar6 = FUN_006e83a0(pEVar24); + cVar6 = Entity_Pickup::can_player_buy(pEVar24); if (cVar6 == '\0') { ExceptionList = local_10; return true; @@ -400353,7 +400353,7 @@ LAB_006e9c07: else { Entity_Player::AddHearts(pEVar22,local_f0,1,0); } - FUN_007c8050(local_f0); + Entity_Player::AddImmaculateConceptionCounter(local_f0); local_a4 = (int *)((int)local_a4 - (int)local_f0); local_89 = '\x01'; } @@ -400364,7 +400364,7 @@ LAB_006e9da9: (*(int *)&DAT_00c71678->field_0x1baac - *(int *)&DAT_00c71678->field_0x1baa8 >> 2)); } - NpcAI::ENTITY_MASK((Entity_NPC *)((int)DAT_00c71678->_room + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)((int)DAT_00c71678->_room + 0x1218)); local_8 = (undefined4 ******)0x0; uVar12 = 0; if (local_18 != 0) { @@ -400497,23 +400497,23 @@ LAB_006ec9a8: iVar7 = RNG::RandomInt(4); if (iVar7 == 0) { Entity_Player::AddKeys(pEVar24,1); - FUN_007c8050(1); + Entity_Player::AddImmaculateConceptionCounter(1); local_89 = '\x01'; } else if (iVar7 == 1) { Entity_Player::AddBombs(1); - FUN_007c8050(1); + Entity_Player::AddImmaculateConceptionCounter(1); local_89 = '\x01'; } else { Entity_Player::AddCoins(1); - FUN_007c8050(1); + Entity_Player::AddImmaculateConceptionCounter(1); local_89 = '\x01'; } } else { Entity_Player::AddEternalHearts(pEVar24,1); - FUN_007c8050(1); + Entity_Player::AddImmaculateConceptionCounter(1); local_89 = '\x01'; } } @@ -400533,24 +400533,24 @@ LAB_006ec9a8: iVar7 = RNG::RandomInt(4); if (iVar7 == 0) { Entity_Player::AddKeys(pEVar24,1); - FUN_007c8050(local_10c); + Entity_Player::AddImmaculateConceptionCounter(local_10c); local_89 = '\x01'; } else if (iVar7 == 1) { Entity_Player::AddBombs(1); - FUN_007c8050(local_10c); + Entity_Player::AddImmaculateConceptionCounter(local_10c); local_89 = '\x01'; } else { Entity_Player::AddCoins(1); - FUN_007c8050(local_10c); + Entity_Player::AddImmaculateConceptionCounter(local_10c); local_89 = '\x01'; } } else { local_10c = (Entity_Player *)0x2; Entity_Player::AddBlackHearts(pEVar24,2); - FUN_007c8050(local_10c); + Entity_Player::AddImmaculateConceptionCounter(local_10c); local_89 = '\x01'; } } @@ -400662,7 +400662,7 @@ LAB_006e93d4: local_b8 = (Room *)0xb9; seed_fart_sound_override(); SoundEffects::Play(local_b8,0x3f800000,2,0,0x3f800000,0); - FUN_007c8050(2); + Entity_Player::AddImmaculateConceptionCounter(2); LAB_006e96a6: local_89 = '\x01'; if (local_f1 != '\0') { @@ -400688,23 +400688,23 @@ LAB_006e96a6: iVar7 = RNG::RandomInt(4); if (iVar7 == 0) { Entity_Player::AddKeys(pEVar24,1); - FUN_007c8050(2); + Entity_Player::AddImmaculateConceptionCounter(2); local_89 = '\x01'; } else if (iVar7 == 1) { Entity_Player::AddBombs(1); - FUN_007c8050(2); + Entity_Player::AddImmaculateConceptionCounter(2); local_89 = '\x01'; } else { Entity_Player::AddCoins(1); - FUN_007c8050(2); + Entity_Player::AddImmaculateConceptionCounter(2); local_89 = '\x01'; } } else { Entity_Player::AddBoneHearts(pEVar24,1); - FUN_007c8050(2); + Entity_Player::AddImmaculateConceptionCounter(2); local_89 = '\x01'; } } @@ -400735,23 +400735,23 @@ LAB_006e96a6: iVar7 = RNG::RandomInt(4); if (iVar7 == 0) { Entity_Player::AddKeys(pEVar24,1); - FUN_007c8050(2); + Entity_Player::AddImmaculateConceptionCounter(2); local_89 = '\x01'; } else if (iVar7 == 1) { Entity_Player::AddBombs(1); - FUN_007c8050(2); + Entity_Player::AddImmaculateConceptionCounter(2); local_89 = '\x01'; } else { Entity_Player::AddCoins(1); - FUN_007c8050(2); + Entity_Player::AddImmaculateConceptionCounter(2); local_89 = '\x01'; } } else { Entity_Player::AddRottenHearts(pEVar24,2,0); - FUN_007c8050(2); + Entity_Player::AddImmaculateConceptionCounter(2); local_89 = '\x01'; } } @@ -400775,24 +400775,24 @@ LAB_006e96a6: iVar7 = RNG::RandomInt(4); if (iVar7 == 0) { Entity_Player::AddKeys(pEVar24,1); - FUN_007c8050(local_10c); + Entity_Player::AddImmaculateConceptionCounter(local_10c); local_89 = '\x01'; } else if (iVar7 == 1) { Entity_Player::AddBombs(1); - FUN_007c8050(local_10c); + Entity_Player::AddImmaculateConceptionCounter(local_10c); local_89 = '\x01'; } else { Entity_Player::AddCoins(1); - FUN_007c8050(local_10c); + Entity_Player::AddImmaculateConceptionCounter(local_10c); local_89 = '\x01'; } } else { local_10c = (Entity_Player *)((pEVar17->_subtype == 3) + 1); Entity_Player::AddSoulHearts(local_10c,0); - FUN_007c8050(local_10c); + Entity_Player::AddImmaculateConceptionCounter(local_10c); local_89 = '\x01'; } } @@ -401179,9 +401179,9 @@ LAB_006eab20: } if (this->_subtype == 5) { Entity_Player::DonateLuck(1); - uVar14 = FUN_009586f0(DAT_00c7169c + 0x4a920,"#LUCKY_PENNY_DESCRIPTION"); - uVar15 = FUN_009586f0(DAT_00c7169c + 0x4a920,"#LUCKY_PENNY_NAME"); - FUN_009a3410(local_b0,uVar15,uVar14); + uVar14 = string_table_translate(DAT_00c7169c + 0x4a920,"#LUCKY_PENNY_DESCRIPTION"); + uVar15 = string_table_translate(DAT_00c7169c + 0x4a920,"#LUCKY_PENNY_NAME"); + PlayerHUD::show_pill_name(local_b0,uVar15,uVar14); pEVar24 = local_c4; Entity_Player::AnimateHappy(); this = local_90; @@ -401484,7 +401484,7 @@ LAB_006eb2e0: ((DAT_00c71678->_currentDimensionIdx == 2 || (DAT_00c71678->_currentRoomIdx == -0xc)))) goto LAB_006eb939; uVar14 = RNG::Next(); - FUN_007d58f0(&this->_pos,extraout_ECX_01,uVar14,0xffffffff); + Entity_Player::tainted_cain_pedestal_burst(&this->_pos,extraout_ECX_01,uVar14,0xffffffff); FUN_006ed580(); uVar14 = Random(); local_9c = (local_b0->_pos).x + 0.0; @@ -401497,7 +401497,7 @@ LAB_006eb2e0: else { LAB_006eb939: if (local_e8 == (int *)0x29c) { - FUN_00705ee0(0xffffffff); + Game::save_rewind_state(0xffffffff); Music::Fadeout((Music *)(DAT_00c7169c + 0x29fbc),0x3c23d70a); local_e8 = (int *)this->_subtype; } @@ -401514,7 +401514,7 @@ LAB_006eb939: if ((local_e8 == (int *)0x227) && (cVar6 = Entity_Player::HasCollectible(0x226,0), cVar6 != '\0')) { local_a8 = (Entity_Player *)0x0; - local_98 = (Room *)FUN_007911c0(0x226); + local_98 = (Room *)Entity_Player::GetActiveItemSlot(0x226); if (-1 < (int)local_98) { local_a8 = (Entity_Player *)Entity_Player::GetActiveItem(pEVar24,local_98); iVar7 = Entity_Player::GetBatteryCharge(local_98); @@ -401619,7 +401619,7 @@ LAB_006ebd7b: } } SetAlternatePedestal(this,local_dc); - FUN_0075e050(local_b4,local_100,local_98,local_e8,*(undefined4 *)&this->field_0x530) + Entity_Player::SetQueuedItem(local_b4,local_100,local_98,local_e8,*(undefined4 *)&this->field_0x530) ; if (((char)local_98 == '\0') && (*(int *)((int)DAT_00c71678->_room + 8) == 0xf)) { PersistentGameData::IncreaseEventCounter @@ -401683,7 +401683,7 @@ LAB_006ebf7e: local_98 = (Room *)ItemConfig::GetCard(this->_subtype); if (((pEVar24->_playerType == 0x13) || (pEVar24->_playerType == 0x14)) || (local_98 == (Room *)0x0)) goto LAB_006eafa4; - FUN_00724af0(local_2c,0x14); + PocketItemConfig::GetName(local_2c,0x14); local_8 = (undefined4 ******)0x3; FUN_00724bd0(local_44,extraout_ECX_03); local_8 = (undefined4 ******)CONCAT31(local_8._1_3_,4); @@ -401697,11 +401697,11 @@ LAB_006ebf7e: cVar6 = Game::IsInTimedSet(9); if (cVar6 != '\0') { std::string::string(local_2c); - uVar14 = FUN_00682b90(); + uVar14 = string_scramble_seeded(); FUN_004215a0(uVar14); std::string::_Tidy_deallocate(); std::string::string(local_44); - uVar14 = FUN_00682b90(); + uVar14 = string_scramble_seeded(); FUN_004215a0(uVar14); std::string::_Tidy_deallocate(); } @@ -401713,7 +401713,7 @@ LAB_006ebf7e: if (0xf < local_18) { pppppppuVar10 = local_2c[0]; } - FUN_009a3410(local_b0,pppppppuVar10,pppppppuVar21); + PlayerHUD::show_pill_name(local_b0,pppppppuVar10,pppppppuVar21); std::string::_Tidy_deallocate(); local_8 = (undefined4 ******)0xffffffff; std::string::_Tidy_deallocate(); @@ -401756,7 +401756,7 @@ LAB_006ebf7e: local_98 = (Room *)&local_98->field_0x1; local_cc = (Entity_Player *)&local_cc->field_0x4; } - cVar6 = FUN_007716c0(local_a8); + cVar6 = is_trinket_unpickable_id(local_a8); local_cc = (Entity_Player *)CONCAT31(local_cc._1_3_,1); if (cVar6 == '\0') { LAB_006ec302: @@ -401782,7 +401782,7 @@ LAB_006ec302: uVar32 = 0; uVar33 = 0; uVar15 = ItemConfig::GetTrinket(local_a8); - FUN_0075e050(uVar15,uVar33,uVar19,uVar32,uVar14); + Entity_Player::SetQueuedItem(uVar15,uVar33,uVar19,uVar32,uVar14); local_89 = '\x01'; goto LAB_006ebf92; } @@ -401801,14 +401801,14 @@ LAB_006ec3db: else { if (iVar7 != 0x17c) { if (iVar7 == 0x45) { - FUN_006dae40(local_58,1,pEVar24); + Entity_Pickup::GetChestLoot(local_58,1,pEVar24); local_8 = (undefined4 ******)0x5; RNG::game_constructor(this->_initSeed,0x17); local_dc = local_4c; local_10c = local_4c; local_114 = local_58[0]; local_110 = 0; - iVar7 = FUN_00499270(&local_20); + iVar7 = _range_to_span(&local_20); if (local_4c != *(Entity_Player **)(iVar7 + 8)) { while( true ) { if (local_58[0] == (int *)0x0) { @@ -401857,13 +401857,13 @@ LAB_006ec3db: this = local_90; local_ac = (local_90->_pos).x + *pfVar13; local_a8 = (Entity_Player *)(pfVar13[1] + (local_90->_pos).y); - piVar16 = (int *)FUN_0085bed0(&local_ac,&local_bc,local_90); + piVar16 = (int *)EntitySpawner::Spawn(&local_ac,&local_bc,local_90); (**(code **)(*piVar16 + 0xc))(); uVar12 = extraout_ECX_06; pEVar24 = local_c4; } FUN_006da790(local_a0,uVar12); - iVar7 = FUN_00499270(&local_20); + iVar7 = _range_to_span(&local_20); local_dc = local_10c; if (local_10c == *(Entity_Player **)(iVar7 + 8)) break; local_58[0] = local_114; @@ -401930,7 +401930,7 @@ LAB_006ec4b3: if (local_8b != false) { LAB_006ec4ec: if (local_b8 == (Room *)0xa) { - FUN_009bfae0(); + PlayerManager::revive_player_ghosts(); this->_isTouched = 1; Entity::SetTarget(pEVar24); pIVar20 = &DAT_00c71678->_itemOverlay; @@ -402026,7 +402026,7 @@ LAB_006eb595: local_98 = *(Room **)((int)&local_e4->field_0x0 + iVar7 * 4); EntitySaveState::constructor(&local_1bc); local_8 = (undefined4 ******)CONCAT31(local_8._1_3_,2); - cVar6 = FUN_007eeeb0(this,extraout_ECX_00,0); + cVar6 = Entity_Pickup::CanFlip(this,extraout_ECX_00,0); if (cVar6 != '\0') { local_1bc.targetPosition.x = DAT_00c7b640; local_1bc.targetPosition.y = DAT_00c7b644; @@ -402092,7 +402092,7 @@ LAB_006ecd3d: if (local_8a == '\0') goto LAB_006ed27b; } LAB_006ecd4b: - FUN_006ee750(); + Entity_Pickup::RemoveOtherOptions(); pGVar4 = DAT_00c71678; if (pEVar24 != (Entity_Player *)0x0) { iVar7 = *(int *)((int)DAT_00c71678->_room + 8); @@ -402168,7 +402168,7 @@ LAB_006ecfd0: } if (((((char)param_3 != '\0') || (iVar18 != 3)) || ((local_b0->_variant != 0xe8 && (local_b0->_variant != 0xe7)))) || - (cVar6 = FUN_00612890(), cVar6 != '\0')) goto LAB_006ed27b; + (cVar6 = Entity_Familiar::is_detached_from_follow(), cVar6 != '\0')) goto LAB_006ed27b; if (extraout_EDX < 0x47) { if (extraout_EDX != 0x46) { switch(extraout_EDX) { @@ -402193,7 +402193,7 @@ LAB_006ecfd0: goto LAB_006ecd39; } LAB_006ecfd7: - FUN_006ee750(); + Entity_Pickup::RemoveOtherOptions(); FUN_009e5ab0(this->_variant,local_f8,&this->_pos); LAB_006ecfff: PlayPickupSound(); @@ -402210,7 +402210,7 @@ LAB_006ed006: this->_entityGridCollisionClass = 3; ANM2::Play((ANM2 *)&this->field_0x48,"Collect",0); this->_dead = 1; - FUN_006e17c0(); + Entity_Pickup::UpdateLootPreview(); if ((this->_variant == 0x14) && (this->_subtype == 7)) { pRVar11 = (Room *)0x3f7ae148; pow(); @@ -402241,11 +402241,11 @@ LAB_006ed006: Entity_Player::AnimatePickup(&this->field_0x48,0,"Pickup"); } if (local_104 != 0) { - FUN_006e84d0(pEVar24,local_104); + Entity_Pickup::CollectTrinket(pEVar24,local_104); } if (this->_variant != 100) { (**(code **)(*(int *)this + 0x28))(); - FUN_006e17c0(); + Entity_Pickup::UpdateLootPreview(); } } pGVar4 = DAT_00c71678; @@ -402262,13 +402262,13 @@ LAB_006ed006: } if ((local_8a != '\0') && ((iVar7 = *(int *)((int)DAT_00c71678->_room + 8), iVar7 == 0xb || (iVar7 == 0x11)))) { - FUN_00833420(); + Ambush::StartChallenge(); } LAB_006ed27b: local_98 = (Room *)&DAT_00c71678->field_0x1baa8; cVar6 = PlayerManager::IsCoopPlay(); if (((cVar6 != '\0') && (iVar7 = *(int *)&this->field_0x588, iVar7 != -1)) && - (((uVar12 = FUN_009bfa00(), iVar7 + 1U < uVar12 && (local_89 != '\0')) && + (((uVar12 = PlayerManager::GetNumAlivePlayers(), iVar7 + 1U < uVar12 && (local_89 != '\0')) && (((this->_subtype == 0 || (local_b0->_type != 1)) || (*(int *)&local_b0[2]._altPedestalANM2.field_0x28 != 0x15)))))) { local_11c = (this->_pos).x; @@ -402334,7 +402334,7 @@ undefined4 FUN_006ed580(void) (**(code **)(*in_ECX + 0x28))(); return 1; } - FUN_006e2570(0); + Entity_Pickup::update_price_sprite(0); Entity_Pickup::SetAlternatePedestal(); ANM2::SetFrame("Empty",0); cVar1 = ANM2::SetAnimation(&DAT_00b1bc54,1); @@ -402685,7 +402685,7 @@ LAB_006ede17: (uVar5 = this->_subtype, uVar5 != 0)) { iVar6 = 0; if (*(int *)(param_5 + 0x24) != 0) { - uVar7 = FUN_006a89d0(); + uVar7 = Entity::GetLastSpawner(); iVar2 = (int)((ulonglong)uVar7 >> 0x20); iVar3 = (int)uVar7; if ((iVar3 != 0) && (*(int *)(iVar3 + 0x28) == 1)) { @@ -402706,7 +402706,7 @@ LAB_006ede17: } in_EAX = *(uint *)(*(int *)(DAT_00c71678 + 0x18300) + 8); if ((in_EAX == 0xb) || (in_EAX == 0x11)) { - uVar5 = FUN_00833420(); + uVar5 = Ambush::StartChallenge(); return uVar5 & 0xffffff00; } } @@ -402896,7 +402896,7 @@ undefined4 Entity_Pickup::CanRerollVariant(void) return 0; } if (in_EDX == 0x272) { - cVar1 = FUN_006dae20(); + cVar1 = Game::IsChallengeOrDaily(); if (cVar1 == '\0') { return 1; } @@ -402904,7 +402904,7 @@ undefined4 Entity_Pickup::CanRerollVariant(void) bVar3 = *(int *)(iVar2 + 0x80) == 2; } else if (in_EDX == 0x273) { - cVar1 = FUN_006dae20(); + cVar1 = Game::IsChallengeOrDaily(); if (cVar1 == '\0') { return 1; } @@ -402915,7 +402915,7 @@ undefined4 Entity_Pickup::CanRerollVariant(void) if ((in_EDX != 0x147) && (in_EDX != 0x148)) { return 1; } - cVar1 = FUN_006dae20(); + cVar1 = Game::IsChallengeOrDaily(); if (cVar1 == '\0') { return 1; } @@ -403144,9 +403144,9 @@ int FUN_006ee640(undefined4 param_1,undefined4 param_2,uint *param_3,uint param_ } -//@@ 006ee750 FUN_006ee750 +//@@ 006ee750 Entity_Pickup::RemoveOtherOptions -void FUN_006ee750(void) +void Entity_Pickup::RemoveOtherOptions(void) { int *piVar1; @@ -403182,7 +403182,7 @@ void FUN_006ee750(void) && (*(int *)(DAT_00c71678 + 0x68d6c) < 1)) { *(undefined4 *)(DAT_00c71678 + 0x68d6c) = 0x5a; } - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)(iVar3 + 0x18300) + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)(iVar3 + 0x18300) + 0x1218)); fVar7 = 0.0; local_8 = 0; if (local_1c != 0.0) { @@ -403227,7 +403227,7 @@ void FUN_006ee750(void) if (((in_ECX[0xb] == 100) && (*(int *)(DAT_00c71678 + 0x18304) == -0xc)) && ((in_ECX[0x5a] & 0x40000U) != 0)) { local_14 = *(float *)(DAT_00c71678 + 0x18300); - NpcAI::ENTITY_MASK((Entity_NPC *)((int)local_14 + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)((int)local_14 + 0x1218)); local_8 = 2; uVar8 = 0; if (local_2c != 0) { @@ -403265,9 +403265,9 @@ void FUN_006ee750(void) } -//@@ 006eea30 FUN_006eea30 +//@@ 006eea30 Entity_Pickup::MakeShopItem -void FUN_006eea30(undefined4 param_1) +void Entity_Pickup::MakeShopItem(undefined4 param_1) { undefined4 uVar1; @@ -403275,11 +403275,11 @@ void FUN_006eea30(undefined4 param_1) if (*(int *)(in_ECX + 0x534) == 0) { *(undefined4 *)(in_ECX + 0x53c) = param_1; - uVar1 = FUN_008151e0(*(undefined4 *)(in_ECX + 0x2c),*(undefined4 *)(in_ECX + 0x30),param_1,0); + uVar1 = Room::GetShopItemPrice(*(undefined4 *)(in_ECX + 0x2c),*(undefined4 *)(in_ECX + 0x30),param_1,0); *(undefined4 *)(in_ECX + 0x534) = uVar1; - uVar1 = FUN_00816250(0xffffffff,uVar1,0); + uVar1 = _Room::ResolveHeartSubType(0xffffffff,uVar1,0); *(undefined4 *)(in_ECX + 0x534) = uVar1; - FUN_006e2570(uVar1); + Entity_Pickup::update_price_sprite(uVar1); } return; } @@ -403382,9 +403382,9 @@ LAB_006eebdf: } -//@@ 006eed30 FUN_006eed30 +//@@ 006eed30 Entity_Pickup::AssignOptionsIndex -int FUN_006eed30(void) +int Entity_Pickup::AssignOptionsIndex(void) { int iVar1; @@ -403405,7 +403405,7 @@ int FUN_006eed30(void) local_10 = ExceptionList; ExceptionList = &local_10; iVar5 = 2; - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); uVar4 = 0; if (local_14 != 0) { do { @@ -403438,9 +403438,9 @@ int FUN_006eed30(void) } -//@@ 006eee10 FUN_006eee10 +//@@ 006eee10 EntitySaveStateRef::Set -void FUN_006eee10(undefined4 param_1) +void EntitySaveStateRef::Set(undefined4 param_1) { char cVar1; @@ -404071,13 +404071,13 @@ void __thiscall RoomDescriptor::destructor(RoomDescriptor *this) { undefined1 *this_00; - FUN_00708e20(); + std::vector::_Tidy(); this_00 = &this->field_0x80; FID_conflict__Erase_tree_>_> (this_00,(fuzzer_allocator_> *)this_00, *(_Tree_node **)(*(int *)&this->field_0x80 + 4)); operator_delete(*(undefined4 *)this_00,0x14); - FUN_00708e20(); + std::vector::_Tidy(); FUN_00708f90(); return; } @@ -404430,9 +404430,9 @@ int FUN_006f0040(void) } -//@@ 006f0070 FUN_006f0070 +//@@ 006f0070 Game::IsRoomTransitionActive -undefined1 FUN_006f0070(void) +undefined1 Game::IsRoomTransitionActive(void) { int *in_ECX; @@ -406255,11 +406255,11 @@ void FUN_006f3060(void) FUN_00685fc0(); _eh_vector_destructor_iterator_((void *)(in_ECX + 0x6778c),800,7,FUN_006f29a0); FUN_009dc750(); - FUN_0069dac0(); + std::vector<12byte>::_Tidy(); FUN_0042f060(); _eh_vector_destructor_iterator_ ((void *)(in_ECX + 0x269ec),0x20660,2,(_func_void_void_ptr *)&LAB_006f2990); - FUN_00426980(); + std::vector::_Tidy(); local_8 = 0xc; ANM2::Reset((ANM2 *)(in_ECX + 0x268ac)); AnimationState::~AnimationState(); @@ -406272,10 +406272,10 @@ void FUN_006f3060(void) AnimationState::~AnimationState(); std::string::_Tidy_deallocate(); std::string::_Tidy_deallocate(); - FUN_0069dac0(); - FUN_0069dac0(); - FUN_0069dac0(); - FUN_0069dac0(); + std::vector<12byte>::_Tidy(); + std::vector<12byte>::_Tidy(); + std::vector<12byte>::_Tidy(); + std::vector<12byte>::_Tidy(); FUN_004269f0(); local_8 = 0xe; if (*(undefined4 **)(in_ECX + 0x26620) != (undefined4 *)0x0) { @@ -406334,7 +406334,7 @@ void FUN_006f3060(void) FID_conflict__Tidy((void *)(in_ECX + 0x1b81c)); _eh_vector_destructor_iterator_((void *)(in_ECX + 0x1af70),0x3c,0x25,FUN_00421860); local_8 = 0x14; - FUN_00426980(); + std::vector::_Tidy(); FID_conflict__Tidy((void *)(in_ECX + 0x1adcc)); FID_conflict__Tidy((void *)(in_ECX + 0x1adbc)); _eh_vector_destructor_iterator_ @@ -406349,7 +406349,7 @@ void FUN_006f3060(void) operator_delete(iVar1,0x7898); *(undefined4 *)(in_ECX + 0x18300) = 0; } - FUN_00708e20(); + std::vector::_Tidy(); local_8._0_1_ = 0x16; if (*(int **)(in_ECX + 0x182fc) != (int *)0x0) { cVar3 = (**(code **)(**(int **)(in_ECX + 0x182fc) + 0xc))(); @@ -406657,7 +406657,7 @@ LAB_006f3dfe: if (0xf < (uint)puVar4[5]) { puVar4 = (undefined4 *)*puVar4; } - FUN_0082c310(puVar4); + Game::LoadMinibossesXml(puVar4); local_14 = CONCAT31(local_14._1_3_,4); if (0xf < local_40) { uVar8 = local_40 + 1; @@ -406732,12 +406732,12 @@ LAB_006f3fd9: *(undefined4 *)(iVar1 + 0x1d524) = 0; *(undefined1 *)(iVar1 + 0x1d63c) = 0; *(undefined4 *)(iVar1 + 0x1d64c) = 0; - FUN_00857220(); - FUN_009a1a30(); - FUN_009b5840(); - FUN_008ef560(); + ScoreSheet::LoadAnm2(); + HUD::LoadGraphics(); + PauseScreen::Init(); + RevivePlayerMenu::Init(); GenericPrompt::Initialize((GenericPrompt *)(iVar1 + 0x26778),0); - FUN_00838380(extraout_ECX); + VictoryRunPrompt::Load(extraout_ECX); local_2c = 0; local_28 = 0xf; local_3c = local_3c & 0xffffffff00000000; @@ -406814,9 +406814,9 @@ void FUN_006f4170(void) } -//@@ 006f43b0 FUN_006f43b0 +//@@ 006f43b0 Game::reset_run_state -void FUN_006f43b0(void) +void Game::reset_run_state(void) { int in_ECX; @@ -406988,7 +406988,7 @@ void Game::LoadConfigXmls(void) local_1c = ExceptionList; local_24 = DAT_00bf93b4 ^ (uint)(local_6c + 0x17); ExceptionList = &local_1c; - FUN_006f43b0(local_24); + Game::reset_run_state(local_24); iVar9 = DAT_00c7169c; *(undefined4 *)(iVar2 + 0x26584) = 0; *(undefined1 *)(iVar2 + 0x26588) = 0; @@ -407095,7 +407095,7 @@ LAB_006f4987: if (0xf < (uint)puVar4[5]) { puVar4 = (undefined4 *)*puVar4; } - FUN_0082c310(puVar4); + Game::LoadMinibossesXml(puVar4); local_14 = CONCAT31(local_14._1_3_,4); if (0xf < local_40) { uVar7 = local_40 + 1; @@ -407217,12 +407217,12 @@ LAB_006f4c52: *(undefined4 *)(iVar2 + 0x1d524) = 0; *(undefined1 *)(iVar2 + 0x1d63c) = 0; *(undefined4 *)(iVar2 + 0x1d64c) = 0; - FUN_00857220(); + ScoreSheet::LoadAnm2(); FUN_008d1d60(); FUN_008ca2c0(); FUN_009a1970(); - FUN_009b5840(); - FUN_008ef560(); + PauseScreen::Init(); + RevivePlayerMenu::Init(); FUN_0098d560(); local_28 = 0xf; local_2c = 10; @@ -407377,7 +407377,7 @@ LAB_006f5040: *(undefined4 *)(iVar2 + 0x26500) = 36000; *(undefined4 *)(iVar2 + 0x26504) = 54000; GenericPrompt::Initialize((GenericPrompt *)(iVar2 + 0x26778),0); - FUN_00838380(extraout_ECX); + VictoryRunPrompt::Load(extraout_ECX); local_2c = 0; local_28 = 0xf; local_3c = local_3c & 0xffffffff00000000; @@ -407561,7 +407561,7 @@ Game::Start(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined1 *(undefined4 *)(iVar3 + 0x68d74) = 0; *(undefined4 *)(iVar3 + 0x26774) = 0; *(undefined1 *)(iVar3 + 0x269d0) = *(undefined1 *)(iVar8 + 0x4abd1); - FUN_009a1a30(local_14); + HUD::LoadGraphics(local_14); if (param_5 == 0) { /* WARNING: Subroutine does not return */ KAGE_LogMessage(0x10,"Start seed is not initialized"); @@ -407671,7 +407671,7 @@ void FUN_006f6260(undefined4 *param_1) sVar5 = param_1[9] - (int)pvVar3; local_8 = (void *)*piVar1; if ((uint)(in_ECX[10] - (int)local_8 >> 2) < (uint)((int)sVar5 >> 2)) { - FUN_006a0d30((int)sVar5 >> 2); + std::vector::reserve_clear((int)sVar5 >> 2); local_8 = (void *)*piVar1; } memmove(local_8,pvVar3,sVar5); @@ -407683,7 +407683,7 @@ void FUN_006f6260(undefined4 *param_1) sVar5 = param_1[0xc] - (int)pvVar3; local_8 = (void *)*piVar1; if ((uint)(in_ECX[0xd] - (int)local_8 >> 2) < (uint)((int)sVar5 >> 2)) { - FUN_006a0d30((int)sVar5 >> 2); + std::vector::reserve_clear((int)sVar5 >> 2); local_8 = (void *)*piVar1; } memmove(local_8,pvVar3,sVar5); @@ -407699,7 +407699,7 @@ void FUN_006f6260(undefined4 *param_1) sVar5 = param_1[0x13] - (int)pvVar3; local_8 = (void *)*piVar1; if ((uint)(in_ECX[0x14] - (int)local_8 >> 2) < (uint)((int)sVar5 >> 2)) { - FUN_006a0d30((int)sVar5 >> 2); + std::vector::reserve_clear((int)sVar5 >> 2); local_8 = (void *)*piVar1; } memmove(local_8,pvVar3,sVar5); @@ -407728,7 +407728,7 @@ void FUN_006f6260(undefined4 *param_1) sVar5 = param_1[0x24] - (int)pvVar3; local_8 = (void *)*piVar1; if ((uint)(in_ECX[0x25] - (int)local_8 >> 2) < (uint)((int)sVar5 >> 2)) { - FUN_006a0d30((int)sVar5 >> 2); + std::vector::reserve_clear((int)sVar5 >> 2); local_8 = (void *)*piVar1; } memmove(local_8,pvVar3,sVar5); @@ -407740,7 +407740,7 @@ void FUN_006f6260(undefined4 *param_1) sVar5 = param_1[0x27] - (int)pvVar3; param_1 = (undefined4 *)*piVar1; if ((uint)(in_ECX[0x28] - (int)param_1 >> 2) < (uint)((int)sVar5 >> 2)) { - FUN_006a0d30((int)sVar5 >> 2); + std::vector::reserve_clear((int)sVar5 >> 2); param_1 = (undefined4 *)*piVar1; } memmove(param_1,pvVar3,sVar5); @@ -407986,7 +407986,7 @@ LAB_006f68af: local_70 = (int *)0x0; local_6c = (int *)0x0; local_8._0_1_ = 3; - FUN_00a288a0(&DAT_00c79a74); + std::shared_ptr::assign(&DAT_00c79a74); local_74 = KAGE::Network::Multiplayer::Lobby::vftable; local_8 = CONCAT31(local_8._1_3_,4); local_30 = 0xd; @@ -408027,7 +408027,7 @@ LAB_006f69a3: } if ((bVar2) && (local_84 != (int *)0x0)) { do { - FUN_007bc740(); + Entity_Player::InitPostLevelInitStats(); FUN_00a20390(&local_60,*(undefined4 *)(*piVar12 + 0x1618)); local_8._0_1_ = 7; if ((local_60 != (undefined **)0x0) && @@ -408107,7 +408107,7 @@ void __thiscall Game::StartDailyChallenge(undefined4 param_1,undefined4 *param_2 iVar1 = DAT_00c7169c; *(undefined4 *)(iVar2 + 0x26584) = 0; *(undefined1 *)(iVar2 + 0x269d0) = *(undefined1 *)(iVar1 + 0x4abd1); - FUN_009a1a30(); + HUD::LoadGraphics(); *(undefined4 *)(iVar2 + 0x26630) = *param_2; *(undefined4 *)(iVar2 + 0x26634) = param_2[1]; *(undefined1 *)(iVar2 + 0x26638) = *(undefined1 *)(param_2 + 2); @@ -408187,7 +408187,7 @@ void FUN_006f72f0(undefined4 *param_1) local_18 = DAT_00bf93b4 ^ (int)register0x00000010 - 4U; ExceptionList = &local_10; *(undefined1 *)(DAT_00c71678 + 0x2658a) = 1; - FUN_009a1a30(local_18); + HUD::LoadGraphics(local_18); *(undefined4 *)(iVar4 + 0x26584) = *param_1; if ((*(char *)((int)param_1 + 5) == '\0') && (*(char *)(DAT_00c7169c + 0x4abd1) == '\0')) { uVar5 = 0; @@ -408325,7 +408325,7 @@ void Game::NextVictoryLap(void) local_30 = (int *)0x0; local_8 = 0; local_14 = uVar3; - FUN_00a288a0(&DAT_00c79a74); + std::shared_ptr::assign(&DAT_00c79a74); local_8 = 1; if ((local_34 == (int *)0x0) || (cVar2 = (**(code **)(*local_34 + 0xc))(uVar3), cVar2 == '\0')) { bVar1 = false; @@ -408343,7 +408343,7 @@ void Game::NextVictoryLap(void) local_1c = (int *)0x0; local_18 = (int *)0x0; local_8 = 3; - FUN_00a288a0(&DAT_00c79a74); + std::shared_ptr::assign(&DAT_00c79a74); local_20 = KAGE::Network::Multiplayer::Lobby::vftable; local_8 = 4; if (local_1c != (int *)0x0) { @@ -408573,7 +408573,7 @@ void FUN_006f8140(undefined4 *param_1,char param_2) if (0 < (*(int *)&in_ECX[1].field_0xe2b4 + -1) * *(int *)&in_ECX[1].field_0xe2ac) { do { if (*(int *)&in_ECX[1].field_0xe29c == *(int *)&in_ECX[1].field_0xe2a0) break; - FUN_0069dac0(); + std::vector<12byte>::_Tidy(); *(int *)&in_ECX[1].field_0xe2a0 = *(int *)&in_ECX[1].field_0xe2a0 + -0xc; local_b4 = local_b4 + 1; } while (local_b4 < @@ -408582,7 +408582,7 @@ void FUN_006f8140(undefined4 *param_1,char param_2) } else { in_ECX[1].field_0xe2b0 = 0; - FUN_00833420(); + Ambush::StartChallenge(); *(undefined4 *)&in_ECX[1].field_0xe2b4 = param_1[0x22]; } *(undefined4 *)&in_ECX[1].field_0xe2b8 = 0x1e; @@ -408807,7 +408807,7 @@ int FUN_006f8a40(int param_1) *(undefined8 *)(in_ECX + 0x17c) = *(undefined8 *)(param_1 + 0x17c); *(undefined4 *)(in_ECX + 0x184) = *(undefined4 *)(param_1 + 0x184); do { - FUN_006f8d60((param_1 - in_ECX) + iVar4); + GameState::copy_room_list((param_1 - in_ECX) + iVar4); iVar4 = iVar4 + 0xb8; iVar5 = iVar5 + -1; } while (iVar5 != 0); @@ -408823,9 +408823,9 @@ int FUN_006f8a40(int param_1) } -//@@ 006f8d60 FUN_006f8d60 +//@@ 006f8d60 GameState::copy_room_list -void FUN_006f8d60(undefined4 *param_1) +void GameState::copy_room_list(undefined4 *param_1) { int *this; @@ -409262,7 +409262,7 @@ void __thiscall Game::End(Game *this,uint param_2) return; } if (param_2 == 1) { - FUN_00959130(); + Game::DeleteSaveState(); LAB_006f97bc: iVar7 = DAT_00c7169c; iVar8 = DAT_00c71678; @@ -409270,7 +409270,7 @@ LAB_006f97bc: else { if (*(int *)(DAT_00c7169c + 0x4b3d8) == *(int *)(DAT_00c7169c + 0x4b3dc)) goto LAB_006f97bc; if (((*(int *)(DAT_00c71678 + 0x26630) == 0) && (*(int *)(DAT_00c71678 + 0x26584) == 0)) && - (uVar4 = FUN_009b9480(), 1 < uVar4)) { + (uVar4 = PlayerManager::count_main_players(), 1 < uVar4)) { cVar2 = FUN_00428d30(param_2); if (cVar2 != '\0') { return; @@ -409632,15 +409632,15 @@ void Game::Exit(undefined4 param_1) iVar1 = DAT_00c7169c; *(undefined4 *)(DAT_00c7169c + 0x2a2d0) = 0x3f800000; *(undefined4 *)(iVar1 + 0x2a2d4) = 0x3f800000; - FUN_007df690(); + Music::SetPitchAll(); pPVar4 = (PersistentGameData *)(DAT_00c7169c + 0x14); if ((pPVar4->changesmade != 0) && (*(char *)(DAT_00c7169c + 4000) != '\0')) { pPVar4->changesmade = 0; - FUN_009292c0(); + Manager::BackupSaveFile(); iVar1 = DAT_00c7169c; piVar3 = (int *)SteamInternal_ContextInit(&PTR_FUN_00c5c3a4); if ((*piVar3 == 0) || (*(char *)(iVar1 + 0x2a3a4) == '\0')) { - FUN_009294f0(); + PersistentGameData::Save(); } else { PersistentGameData::SaveToSteamCloud(pPVar4); @@ -409648,7 +409648,7 @@ void Game::Exit(undefined4 param_1) } if (*(char *)(iVar2 + 0x2658b) == '\0') { if ((char)param_1 == '\0') { - FUN_00959130(); + Game::DeleteSaveState(); } else { FUN_00958ed0(); @@ -409673,7 +409673,7 @@ void Game::Exit(undefined4 param_1) } *(int *)(iVar2 + 0x25ec0) = iVar5; *(undefined1 *)(iVar2 + 0x25954) = 0; - FUN_006f43b0(); + Game::reset_run_state(); /* WARNING: Subroutine does not return */ KAGE_LogMessage(1,"Setting PersistentGameData ReadOnly to %s\n","False"); } @@ -409952,7 +409952,7 @@ LAB_006fac27: (*(int *)(iVar7 + 0x1d520) == 0)) && ((*(char *)(iVar7 + 0x25954) == '\0' && (*(int *)(iVar7 + 0x1d654) == 0)))) { FUN_009b5d20(); - cVar3 = FUN_009b7650(); + cVar3 = is_single_player(); if (cVar3 != '\0') { return; } @@ -410371,13 +410371,13 @@ LAB_006fb3bd: } if (*(int *)(in_ECX + 0x1b83c) != 0) { pppuStack_6c = (undefined ***)0x6fb521; - FUN_008318a0(); + Game::update_pending_pickup_animations(); pppuStack_6c = (undefined ***)0x6fb52c; FUN_0098dba0(); pppuStack_6c = (undefined ***)0x6fb533; HUD::PostUpdate(pHVar15); pppuStack_6c = (undefined ***)0x6fb53e; - cVar7 = FUN_006f0070(); + cVar7 = Game::IsRoomTransitionActive(); if (cVar7 == '\0') { ExceptionList = local_10; return; @@ -410388,7 +410388,7 @@ LAB_006fb3bd: } if (*(int *)(in_ECX + 0x1c034) == 0) { pppuStack_6c = (undefined ***)0x6fb5e8; - cVar7 = FUN_00838210(); + cVar7 = is_screen_transition_active(); if (cVar7 != '\0') { pppuStack_6c = (undefined ***)0x0; pfStack_70 = (float *)0x6fb5f7; @@ -410488,7 +410488,7 @@ LAB_006fb6ae: Level::ShowName(); pppuStack_6c = (undefined ***)0x1; pfStack_70 = (float *)0x6fb7e8; - FUN_009bea10(); + entity_vector_set_flag_410(); } pppuStack_6c = (undefined ***)0x0; pfStack_70 = (float *)0x6fb7fb; @@ -410523,14 +410523,14 @@ LAB_006fb811: pppuStack_6c = *(undefined ****)(iVar8 + 4); SStack_cc._seedEffectsCount = 0x6fb8aa; local_34 = pHVar15; - FUN_0041d030(); + std::map::destroy_subtree(); *(int *)(iVar8 + 4) = iVar8; *(int *)iVar8 = iVar8; *(int *)(iVar8 + 8) = iVar8; *(undefined4 *)&pHVar15->field_0x12fc = 0; *(undefined4 *)&local_34->field_0x12a4 = 0; pppuStack_6c = (undefined ***)0x6fb8ce; - cVar7 = FUN_009b7650(); + cVar7 = is_single_player(); if (cVar7 != '\0') { ExceptionList = local_10; return; @@ -410642,7 +410642,7 @@ LAB_006fb811: pppuStack_6c = (undefined ***)0x6fbb6b; FUN_004147f0(); pppuStack_6c = (undefined ***)0x6fbb73; - FUN_00426980(); + std::vector::_Tidy(); pppuStack_6c = (undefined ***)0x6fbb7b; FID_conflict__Tidy(pfVar16 + 7); pppuStack_6c = (undefined ***)0x6fbb83; @@ -410809,24 +410809,24 @@ void Game::Render(void) if (iVar8 != *(int *)&(pGVar4->_seedEffects).field_0x54) { in_XMM0_Da = (undefined4 *)0x0; local_2c = 0; - FUN_006856c0(&local_2c); - puVar6 = (undefined4 *)FUN_00684f30(); + std::vector::resize(&local_2c); + puVar6 = (undefined4 *)std::deque::back(); if ((byte *)(puVar6 + 1) != (byte *)0x0) { *(byte *)(puVar6 + 1) = (byte)(DAT_00c798e4 >> 5) & 1; } *puVar6 = DAT_00c79948; - FUN_00a18300(DAT_00c79794,1); + KAGE_Graphics::SetRenderTarget(DAT_00c79794,1); } if (0 < *(int *)((int)in_ECX + 0x26538)) { in_XMM0_Da = (undefined4 *)0x0; local_2c = 0; - FUN_006856c0(&local_2c); - puVar6 = (undefined4 *)FUN_00684f30(); + std::vector::resize(&local_2c); + puVar6 = (undefined4 *)std::deque::back(); if ((byte *)(puVar6 + 1) != (byte *)0x0) { *(byte *)(puVar6 + 1) = (byte)(DAT_00c798e4 >> 5) & 1; } *puVar6 = DAT_00c79948; - FUN_00a18300(DAT_00c7979c,1); + KAGE_Graphics::SetRenderTarget(DAT_00c7979c,1); } fVar14 = 0.0; fVar15 = 1.0; @@ -410857,20 +410857,20 @@ LAB_006fbde8: if ((fVar15 < fVar14) || (*(int *)((int)in_ECX + 0x1b858) != 2)) goto LAB_006fbe57; } FUN_00683680(); - FUN_00a18300(DAT_00c79758,1); + KAGE_Graphics::SetRenderTarget(DAT_00c79758,1); } LAB_006fbe57: if ((0 < *(int *)((int)in_ECX + 0x26528)) && (*(char *)(DAT_00c7169c + 0x2a3c8) != '\0')) { - FUN_00a18230(); + RenderTarget::Clear(); in_XMM0_Da = (undefined4 *)0x0; local_2c = 0; - FUN_006856c0(&local_2c); - puVar6 = (undefined4 *)FUN_00684f30(); + std::vector::resize(&local_2c); + puVar6 = (undefined4 *)std::deque::back(); if ((byte *)(puVar6 + 1) != (byte *)0x0) { *(byte *)(puVar6 + 1) = (byte)(DAT_00c798e4 >> 5) & 1; } *puVar6 = DAT_00c79948; - FUN_00a18300(DAT_00c79774,1); + KAGE_Graphics::SetRenderTarget(DAT_00c79774,1); } pcVar1 = *(char **)((int)in_ECX + 0x18300); if ((*pcVar1 == '\0') || (DAT_00c71678->_frameCount - *(int *)(pcVar1 + 0x11f0) != 0x1e)) { @@ -410897,13 +410897,13 @@ LAB_006fbf42: local_79 = '\x01'; in_XMM0_Da = (undefined4 *)0x0; local_2c = 0; - FUN_006856c0(&local_2c); - puVar6 = (undefined4 *)FUN_00684f30(); + std::vector::resize(&local_2c); + puVar6 = (undefined4 *)std::deque::back(); if ((byte *)(puVar6 + 1) != (byte *)0x0) { *(byte *)(puVar6 + 1) = (byte)(DAT_00c798e4 >> 5) & 1; } *puVar6 = DAT_00c79948; - FUN_00a18300(DAT_00c797a4,1); + KAGE_Graphics::SetRenderTarget(DAT_00c797a4,1); *(undefined1 *)((int)in_ECX + 0x26540) = 1; LAB_006fbfa2: FUN_008f7420(); @@ -410916,15 +410916,15 @@ LAB_006fbfa2: local_7a = '\x01'; in_XMM0_Da = (undefined4 *)0x0; local_2c = 0; - FUN_006856c0(&local_2c); - local_78[0] = (undefined4 *)FUN_00684f30(); + std::vector::resize(&local_2c); + local_78[0] = (undefined4 *)std::deque::back(); if ((byte *)(local_78[0] + 1) != (byte *)0x0) { *(byte *)(local_78[0] + 1) = (byte)(DAT_00c798e4 >> 5) & 1; } *local_78[0] = DAT_00c79948; - FUN_00a18300(DAT_00c797ac,1); + KAGE_Graphics::SetRenderTarget(DAT_00c797ac,1); } - FUN_00a18230(); + RenderTarget::Clear(); DAT_00c79904 = 1; DAT_00c79900 = 0; if ((DAT_00c798e4 & 4) == 0) { @@ -410956,7 +410956,7 @@ LAB_006fbfa2: local_90 = 0x3f800000; local_98 = 0x3f800000; KColor::SetFromARGB(0xffffffff); - FUN_00a10d00(DAT_00c78edc,extraout_ECX); + render_quad_set_uniform_color(DAT_00c78edc,extraout_ECX); fVar14 = ((float)((*(int *)((int)in_ECX + 0x26538) - *(int *)((int)in_ECX + 0x2653c)) + 0x14) * 3.1415927) / 20.0; sin(); @@ -410968,9 +410968,9 @@ LAB_006fbfa2: (**(code **)(*DAT_00c797a4 + 0x14))(&local_ac,local_220,&local_48); } if (local_7a != '\0') { - FUN_00a19180(1); - FUN_006836c0(); - FUN_00a18230(); + _glfw_context_reset(1); + pop_render_target(); + RenderTarget::Clear(); puVar12 = &DAT_00c79348; if ((DAT_00c7934c & 1) == 0) { puVar12 = DAT_00c379b8; @@ -410981,9 +410981,9 @@ LAB_006fbfa2: DAT_00c7990c = 1; DAT_00c79910 = 0; DAT_00c379b8 = puVar12; - FUN_00a14c00("Amount",8,(int)in_ECX + 0x676c4,puVar12); - FUN_00a14c00("Brightness",8,(int)in_ECX + 0x676c8,extraout_ECX_00); - FUN_00a14c00("Contrast",8,(int)in_ECX + 0x676cc,extraout_ECX_01); + Shader::set_uniform("Amount",8,(int)in_ECX + 0x676c4,puVar12); + Shader::set_uniform("Brightness",8,(int)in_ECX + 0x676c8,extraout_ECX_00); + Shader::set_uniform("Contrast",8,(int)in_ECX + 0x676cc,extraout_ECX_01); local_9c = 0; local_ac = 0; local_a0 = 0; @@ -410994,7 +410994,7 @@ LAB_006fbfa2: local_98 = 0x3f800000; local_8c = 0; KColor::SetFromARGB(0xffffffff); - FUN_00a10d00(DAT_00c78edc,extraout_ECX_02); + render_quad_set_uniform_color(DAT_00c78edc,extraout_ECX_02); in_XMM0_Da = *(undefined4 **)((int)in_ECX + 0x676b8); local_44 = *(float *)((int)in_ECX + 0x676bc); local_38 = 0; @@ -411009,7 +411009,7 @@ LAB_006fbfa2: DAT_00c79908 = 7; DAT_00c7990c = 1; DAT_00c79910 = 7; - FUN_00a14050(6); + shader_cache_find(6); } FUN_0042dbb0(); FUN_009c3890(0); @@ -411035,7 +411035,7 @@ LAB_006fbfa2: local_78[0] = (undefined4 *)(local_84 + 28.0); in_XMM0_Da = (undefined4 *)((float)local_80 + 6.0); local_2c = CONCAT44(in_XMM0_Da,local_78[0]); - FUN_00a1aec0(&local_44,&local_2c,extraout_ECX_03,&local_a4); + Font::DrawStringScaled(&local_44,&local_2c,extraout_ECX_03,&local_a4); local_14 = (undefined4 *)0xffffffff; if (DAT_00c79880 != 0) { uVar9 = FUN_0091cac0(); @@ -411045,7 +411045,7 @@ LAB_006fbfa2: KColor::SetFromARGB(0xff362f2d); in_XMM0_Da = (undefined4 *)((float)local_80 + 28.0); local_2c = CONCAT44(in_XMM0_Da,local_78[0]); - FUN_00a1aec0(&local_44,&local_2c,extraout_ECX_04,&local_a4); + Font::DrawStringScaled(&local_44,&local_2c,extraout_ECX_04,&local_a4); local_14 = (undefined4 *)0xffffffff; } } @@ -411060,10 +411060,10 @@ LAB_006fbfa2: FUN_009c3890(2); FUN_008f74c0(); if (local_79 != '\0') { - FUN_00a19180(1); - FUN_006836c0(); - FUN_00a18230(); - FUN_00a13510(0); + _glfw_context_reset(1); + pop_render_target(); + RenderTarget::Clear(); + set_blend_mode(0); local_9c = 0; local_ac = 0; local_a0 = 0; @@ -411075,14 +411075,14 @@ LAB_006fbfa2: local_8c = 0; KColor::SetFromARGB(0xffffffff); in_XMM0_Da = DAT_00c78edc; - FUN_00a10d00(DAT_00c78edc,extraout_ECX_05); + render_quad_set_uniform_color(DAT_00c78edc,extraout_ECX_05); (**(code **)(*DAT_00c797a4 + 0x14))(&local_ac,local_290,&DAT_00c37944); } if ((0 < *(int *)((int)in_ECX + 0x26528)) && (*(char *)(DAT_00c7169c + 0x2a3c8) != '\0')) { - FUN_00a19180(1); - FUN_006836c0(); - FUN_00a18230(); - FUN_00a13510(0); + _glfw_context_reset(1); + pop_render_target(); + RenderTarget::Clear(); + set_blend_mode(0); puVar12 = &DAT_00c792f8; if ((DAT_00c792fc & 1) == 0) { puVar12 = DAT_00c379b8; @@ -411097,8 +411097,8 @@ LAB_006fbfa2: (double)(&DAT_00bacb00)[-(DAT_00c79774[7] >> 0x1f)]), 2.0 / (float)((double)DAT_00c79774[6] + (double)(&DAT_00bacb00)[-(DAT_00c79774[6] >> 0x1f)])); - FUN_00a14c00("BloomAmount",8,local_78,DAT_00c79774); - FUN_00a14c00("Ratio",9,&local_2c,extraout_ECX_06); + Shader::set_uniform("BloomAmount",8,local_78,DAT_00c79774); + Shader::set_uniform("Ratio",9,&local_2c,extraout_ECX_06); local_108 = 0; local_118 = 0; local_10c = 0; @@ -411110,7 +411110,7 @@ LAB_006fbfa2: local_f8 = 0; KColor::SetFromARGB(0xffffffff); in_XMM0_Da = DAT_00c78edc; - FUN_00a10d00(DAT_00c78edc,extraout_ECX_07); + render_quad_set_uniform_color(DAT_00c78edc,extraout_ECX_07); (**(code **)(*DAT_00c79774 + 0x14))(&local_118,local_300,&DAT_00c37944); } if (*(char *)(DAT_00c7169c + 0x2a3c7) != '\0') { @@ -411118,9 +411118,9 @@ LAB_006fbfa2: fVar14 = 0.0; if (((0.0 <= (float)in_XMM0_Da) && (cVar5 = FUN_009301d0(), cVar5 != '\0')) || ((FUN_00832fd0(), fVar14 <= (float)in_XMM0_Da && (*(int *)((int)in_ECX + 0x1b858) == 2)))) { - FUN_00a19180(1); - FUN_006836c0(); - FUN_00a18230(); + _glfw_context_reset(1); + pop_render_target(); + RenderTarget::Clear(); FUN_00832fd0(); puVar6 = in_XMM0_Da; local_78[0] = in_XMM0_Da; @@ -411150,8 +411150,8 @@ LAB_006fbfa2: (float)((double)DAT_00c79758[6] + (double)(&DAT_00bacb00)[-(DAT_00c79758[6] >> 0x1f)])); DAT_00c379b8 = puVar12; - FUN_00a14c00("PixelationAmount",8,&local_80,DAT_00c79758); - FUN_00a14c00("ScreenSize",0xb,&local_34,extraout_ECX_08); + Shader::set_uniform("PixelationAmount",8,&local_80,DAT_00c79758); + Shader::set_uniform("ScreenSize",0xb,&local_34,extraout_ECX_08); local_12c = 0; local_13c = 0; local_130 = 0; @@ -411162,15 +411162,15 @@ LAB_006fbfa2: local_128 = 0x3f800000; local_11c = 0; KColor::SetFromARGB(0xffffffff); - FUN_00a10d00(DAT_00c78edc,extraout_ECX_09); + render_quad_set_uniform_color(DAT_00c78edc,extraout_ECX_09); (**(code **)(*DAT_00c79758 + 0x14))(&local_13c,local_1b0,&DAT_00c37944); } } if (0 < *(int *)((int)in_ECX + 0x26538)) { - FUN_00a19180(1); - FUN_006836c0(); - FUN_00a18230(); - FUN_00a13510(0); + _glfw_context_reset(1); + pop_render_target(); + RenderTarget::Clear(); + set_blend_mode(0); local_e4 = 0; local_f4 = 0; local_e8 = 0; @@ -411181,7 +411181,7 @@ LAB_006fbfa2: local_e0 = 0x3f800000; local_d4 = 0; KColor::SetFromARGB(0xffffffff); - FUN_00a10d00(DAT_00c78edc,extraout_ECX_10); + render_quad_set_uniform_color(DAT_00c78edc,extraout_ECX_10); local_78[0] = (undefined4 *)0x3f800000; puVar12 = &DAT_00c794d8; if ((DAT_00c794dc & 1) == 0) { @@ -411204,8 +411204,8 @@ LAB_006fbfa2: (float)((double)DAT_00c7979c[6] + (double)(&DAT_00bacb00)[-(DAT_00c7979c[6] >> 0x1f)])); DAT_00c379b8 = puVar12; - FUN_00a14c00("Amount",8,local_78,DAT_00c7979c); - FUN_00a14c00("ScreenSize",0xb,&local_34,extraout_ECX_11); + Shader::set_uniform("Amount",8,local_78,DAT_00c7979c); + Shader::set_uniform("ScreenSize",0xb,&local_34,extraout_ECX_11); puVar16 = local_220; (**(code **)(*DAT_00c7979c + 0x14))(&local_f4,puVar16,&DAT_00c37944); if ((float)local_78[0] < 0.999) { @@ -411272,10 +411272,10 @@ LAB_006fbfa2: cVar5 = Game::IsInTimedSet(8); uVar9 = extraout_ECX_12; if (cVar5 != '\0') { - FUN_00a19180(1); - FUN_006836c0(); - FUN_00a18230(); - FUN_00a13510(0); + _glfw_context_reset(1); + pop_render_target(); + RenderTarget::Clear(); + set_blend_mode(0); local_e4 = 0; local_f4 = 0; local_e8 = 0; @@ -411286,7 +411286,7 @@ LAB_006fbfa2: local_e0 = 0x3f800000; local_d4 = 0; KColor::SetFromARGB(0xffffffff); - FUN_00a10d00(DAT_00c78edc,extraout_ECX_13); + render_quad_set_uniform_color(DAT_00c78edc,extraout_ECX_13); puVar12 = &DAT_00c79438; if ((DAT_00c7943c & 1) == 0) { puVar12 = DAT_00c379b8; @@ -411301,14 +411301,14 @@ LAB_006fbfa2: (float)((double)DAT_00c79794[6] + (double)(&DAT_00bacb00)[-(DAT_00c79794[6] >> 0x1f)])); DAT_00c379b8 = puVar12; - FUN_00a14c00(&DAT_00b6837c,8,&local_88,DAT_00c79794); - FUN_00a14c00("ScreenSize",0xb,&local_34,extraout_ECX_14); + Shader::set_uniform(&DAT_00b6837c,8,&local_88,DAT_00c79794); + Shader::set_uniform("ScreenSize",0xb,&local_34,extraout_ECX_14); (**(code **)(*DAT_00c79794 + 0x14))(&local_f4,local_1b0,&DAT_00c37944); uVar9 = extraout_ECX_15; } - FUN_00a14050(uVar9); + shader_cache_find(uVar9); if (0 < *(int *)((int)in_ECX + 0x67788)) { - FUN_00a13510(2); + set_blend_mode(2); local_38 = 0; local_48 = (undefined4 *)0x3f800000; fVar14 = (float)*(int *)((int)in_ECX + 0x67788) / 90.0; @@ -411320,20 +411320,20 @@ LAB_006fbfa2: fVar14 = 1.0; } local_40 = CONCAT44(fVar14,0x3f800000); - FUN_00a10d00(DAT_00c78edc,&local_48); - FUN_00a1dfd0(local_1b0); - FUN_00a13510(1); + render_quad_set_uniform_color(DAT_00c78edc,&local_48); + render_color_shader_pass(local_1b0); + set_blend_mode(1); } if (*(float *)((int)in_ECX + 0x26598) <= 0.0) { if (0.0 < *(float *)((int)in_ECX + 0x265b0)) { - FUN_00a10d00(DAT_00c78edc,(int)in_ECX + 0x265a4); - FUN_00a1dfd0(local_1b0); + render_quad_set_uniform_color(DAT_00c78edc,(int)in_ECX + 0x265a4); + render_color_shader_pass(local_1b0); } } else { - FUN_00a13510(1); - FUN_00a10d00(DAT_00c78edc,(int)in_ECX + 0x2658c); - FUN_00a1dfd0(local_1b0); + set_blend_mode(1); + render_quad_set_uniform_color(DAT_00c78edc,(int)in_ECX + 0x2658c); + render_color_shader_pass(local_1b0); if (*(char *)((int)in_ECX + 0x265a0) != '\0') { FUN_009522b0(); } @@ -411392,8 +411392,8 @@ undefined4 __thiscall Game::IsPaused(Game *this) ((this->_leaderboard)._scoreMenuSprite._animState._previouslyTriggeredEvents == 0)) && ((*(int *)&this->field_0x1ba78 == 0 && ((this->_roomTransition)._mode == 0)))) && ((iVar1 = (this->_itemOverlay)._state, iVar1 == 0 || (iVar1 != 2)))) && - ((cVar3 = FUN_009b7650(), cVar3 == '\0' && (*(int *)(iVar2 + 8) == 2)))) { - uVar4 = FUN_00838210(); + ((cVar3 = is_single_player(), cVar3 == '\0' && (*(int *)(iVar2 + 8) == 2)))) { + uVar4 = is_screen_transition_active(); if (((char)uVar4 == '\0') && (*(char *)((int)((ulonglong)uVar4 >> 0x20) + 0x25954) == '\0')) { return (int)uVar4; } @@ -411634,7 +411634,7 @@ LAB_006fd8f5: if (param_4 == 0) { if (param_3 != 3) goto LAB_006fdb29; LAB_006fdb4d: - FUN_00705ee0(0xffffffff); + Game::save_rewind_state(0xffffffff); in_ECX = local_14; } else { @@ -411650,7 +411650,7 @@ LAB_006fdb4d: ((*(float *)(*(int *)&local_14->field_0x18300 + 0x20) - 30.0) - *(float *)(param_4 + 0x370)) - 20.0) { Capsule::constructor(&local_5c,&local_1c,&DAT_00c3793c,0); - FUN_0041ab50(local_34,&local_5c,10); + EntityList::query_player_capsule_hits(local_34,&local_5c,10); uVar5 = 0; if (local_28 == 0) { LAB_006fda7d: @@ -411719,8 +411719,8 @@ LAB_006fdb29: param_1 = -0x10; } LAB_006fdb87: - FUN_0082ee40(param_1,param_2,param_3,param_4,param_5); - cVar2 = FUN_006f0070(); + log_room_transition(param_1,param_2,param_3,param_4,param_5); + cVar2 = Game::IsRoomTransitionActive(); if (cVar2 != '\0') { *(undefined4 *)&local_14[1].field_0xe288 = 0; } @@ -411806,7 +411806,7 @@ LAB_006fdd49: } LAB_006fdd5c: if (param_2 != 5) { - FUN_00705ee0(0xffffffff); + Game::save_rewind_state(0xffffffff); } /* WARNING: Subroutine does not return */ KAGE_LogMessage(1,"[Frame %d] Starting stage transition (transition type: %d) \n", @@ -411845,7 +411845,7 @@ void Game::ChangeRoom(void) Room::Update(); iVar1 = *(int *)(DAT_00c71678 + 0x18300); Random(); - iVar1 = FUN_007ebe20(*(undefined4 *)(iVar1 + 0x1bb0)); + iVar1 = ItemPool::get_pool_from_room_entities(*(undefined4 *)(iVar1 + 0x1bb0)); *(int *)(in_ECX + 0x1ad90) = iVar1; if (iVar1 == -1) { *(undefined4 *)(in_ECX + 0x1ad90) = 0; @@ -411936,7 +411936,7 @@ Game::SpawnEx(Entity *param_1,undefined4 param_2,float *param_3,float *param_4,E pEVar4 = local_54; param_1 = local_54; if (1 < *(int *)(DAT_00c71678 + 0x26614)) { - FUN_0042b560(¶m_1,¶m_2,¶m_6); + ItemPool::ReplaceBlacklistedPickup(¶m_1,¶m_2,¶m_6); } if (((pEVar9 == (Entity *)0x0) || ((pEVar9->_flags & 0x20000000) == 0)) || (pEVar4 != (Entity *)0x3e8)) { @@ -412908,7 +412908,7 @@ LAB_006ffac3: piStack_160 = (int *)puVar11[1]; uStack_15c = puVar11[2]; pTStack_158 = (TypeDescriptor *)puVar11[3]; - FUN_0067d1f0(&pfStack_164); + get_tear_flags_from_player(&pfStack_164); pcVar2 = *(code **)(*piVar13 + 0x20); EntityRef::constructor(); pTStack_158 = param_11; @@ -413880,7 +413880,7 @@ LAB_00700d90: fStack_3c = 0.0; fStack_38 = 0.0; fStack_34 = 0.0; - FUN_009960b0(&local_50); + Game::start_poop_cloud_screen_effect(&local_50); puVar4 = puStack_20; } puStack_20 = puVar4; @@ -414862,7 +414862,7 @@ int * FUN_00703190(float *param_1,undefined4 param_2) FUN_004d7530(*(int *)(iVar2 + 0x8c),&local_8c); } else { - FUN_004d3130(&local_8c); + EntitySaveState::copy(&local_8c); *(int *)(iVar2 + 0x8c) = *(int *)(iVar2 + 0x8c) + 0x78; } invoke_pending_callbacks(); @@ -415211,7 +415211,7 @@ int Game::GetRandomPlayer(float *param_1,float param_2) local_10 = ExceptionList; uVar2 = DAT_00bf93b4 ^ (int)register0x00000010 - 4U; ExceptionList = &local_10; - FUN_0043eca0(in_ECX + 0x1baa8); + std::vector::copy_constructor(in_ECX + 0x1baa8); local_8 = 0; uVar3 = local_1c - local_20 >> 2; iVar5 = uVar3 - 1; @@ -415823,14 +415823,14 @@ LAB_0070459f: if (local_50 <= 0.0) { local_80 = local_54; local_7c = local_58; - FUN_0067a080(param_3,&local_80); + Entity_Projectile::Deflect(param_3,&local_80); } else { fVar10 = local_60 * local_60 + local_4c * local_4c; sqrtf(); local_7c = (fVar10 / local_50) * local_58; local_80 = (fVar10 / local_50) * local_54; - FUN_0067a080(param_3,&local_80); + Entity_Projectile::Deflect(param_3,&local_80); } } } @@ -415881,7 +415881,7 @@ LAB_0070459f: fVar8 = (float10)Vector::Length(); fVar10 = (float)fVar8; local_4c = fVar10; - FUN_00a105d0(); + Vector::__div_assign(); if (param_3 == (Entity_Projectile *)0x0) { fVar9 = 12.0; } @@ -416166,7 +416166,7 @@ void Game::FinishChallenge(void) } } *(undefined1 *)(DAT_00c7169c + 0x29fb8) = 1; - FUN_00959130(); + Game::DeleteSaveState(); if (*(int *)(DAT_00c7169c + 0x4b3d8) == *(int *)(DAT_00c7169c + 0x4b3dc)) { KColor::SetFromARGB(0xff000000); *(undefined4 *)(in_ECX + 0x265bc) = 4; @@ -416677,15 +416677,15 @@ void Game::ShowHallucination(undefined4 param_1,int param_2) *(float *)(iVar5 + 0x6ae8) = (float)(*(int *)(*(int *)(iVar2 + 0x18300) + 0xc) + -2) * 26.0 + 52.0; *(float *)(iVar5 + 0x6aec) = (float)(iVar4 + -2) * 26.0 + 52.0; - FUN_0093da00(); + Backdrop::load_details(); } return; } -//@@ 00705b90 FUN_00705b90 +//@@ 00705b90 Game::AttractEntities -void FUN_00705b90(float *param_1,code *param_2,undefined4 param_3) +void Game::AttractEntities(float *param_1,code *param_2,undefined4 param_3) { int iVar1; @@ -416796,9 +416796,9 @@ LAB_00705e92: } -//@@ 00705ee0 FUN_00705ee0 +//@@ 00705ee0 Game::save_rewind_state -void FUN_00705ee0(int param_1) +void Game::save_rewind_state(int param_1) { bool bVar1; @@ -416962,7 +416962,7 @@ LAB_00706148: } piVar2 = local_20; if ((iVar7 == 1) && (piVar10[0xef] != 0)) { - FUN_009ba000(piVar10,&pLVar9[1].field_0x3770); + PlayerManager::RemoveCoPlayer(piVar10,&pLVar9[1].field_0x3770); pLVar9 = DAT_00c71678; } local_24 = local_24 - 1; @@ -417319,9 +417319,9 @@ int Game::GetChallengeParams(void) return uVar2 * 0xa4 + *(int *)(DAT_00c7169c + 0x2a664); } -//@@ 007069a0 FUN_007069a0 +//@@ 007069a0 Game::GetNearestTargetPlayer -Entity_Player * FUN_007069a0(byte param_1,byte param_2,code *param_3) +Entity_Player * Game::GetNearestTargetPlayer(byte param_1,byte param_2,code *param_3) { Entity_Player *pEVar1; @@ -417552,7 +417552,7 @@ LAB_00706e2d: } if ((char)local_48 == '\0') { if (SUB41(local_38,0) != '\0') { - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); local_8 = (int *)0x0; fVar12 = 0.0; fVar17 = local_38; @@ -417765,9 +417765,9 @@ LAB_00707347: } -//@@ 00707370 FUN_00707370 +//@@ 00707370 Game::GetNearestEnemy -int FUN_00707370(code *param_1) +int Game::GetNearestEnemy(code *param_1) { char cVar1; @@ -418367,7 +418367,7 @@ void Game::SaveBackwardsStage(int param_1) *(undefined4 *)(iVar5 + 0x67780) = 0; *(undefined4 *)(iVar5 + 0x67784) = *(undefined4 *)(iVar3 + 4); *(undefined4 *)(iVar5 + 0x6777c) = 1; - FUN_006f8d60(*(int *)(iVar3 + 0x18314) * 0xb8 + 0x14 + iVar3); + GameState::copy_room_list(*(int *)(iVar3 + 0x18314) * 0xb8 + 0x14 + iVar3); if (*(int *)(iVar5 + 0x6747c) != 0) { Level::write_room_config(*(int *)(iVar5 + 0x6747c),iVar5 + 0x675dc,0); } @@ -418380,7 +418380,7 @@ void Game::SaveBackwardsStage(int param_1) iVar4 = *(int *)(*(int *)(iVar6 + 0x10) + 8); if (iVar4 == 5) { if ((local_8 != *(int *)(iVar3 + 0x18314)) && (*(uint *)(iVar5 + 0x6777c) < 2)) { - FUN_006f8d60(iVar6); + GameState::copy_room_list(iVar6); iVar4 = *(int *)(iVar5 + 0x6777c); iVar2 = *(int *)(iVar4 * 0xb8 + 0x10 + iVar1); if (iVar2 != 0) { @@ -418392,7 +418392,7 @@ void Game::SaveBackwardsStage(int param_1) } } else if ((iVar4 == 4) && (*(uint *)(iVar5 + 0x67780) < 2)) { - FUN_006f8d60(iVar6); + GameState::copy_room_list(iVar6); iVar4 = *(int *)(iVar5 + 0x67780); iVar2 = *(int *)(iVar4 * 0xb8 + 0x198 + iVar1); if (iVar2 != 0) { @@ -418418,7 +418418,7 @@ void Game::SaveBackwardsStage(int param_1) //@@ 00708250 PlayerManager::GetGFuelCount -/* DB: ? only if SEED_G_FUEL (79) active; sums FUN_007db860 over main players */ +/* DB: ? only if SEED_G_FUEL (79) active; sums is_achievement_79_unlocked over main players */ int PlayerManager::GetGFuelCount(void) @@ -418454,7 +418454,7 @@ int PlayerManager::GetGFuelCount(void) piVar3 = piVar3 + uVar4; } if ((*(int *)(*piVar3 + 0x2c) == 0) && (*(int *)(*piVar3 + 0x3bc) == 0)) { - iVar2 = FUN_007db860(); + iVar2 = is_achievement_79_unlocked(); local_8 = local_8 + iVar2; local_c = *(int *)(iVar1 + 0x1baac); } @@ -418863,7 +418863,7 @@ void FUN_00708c10(void) iVar3 = in_ECX[1]; if (iVar2 != iVar3) { do { - FUN_0069dac0(); + std::vector<12byte>::_Tidy(); iVar2 = iVar2 + 0xc; } while (iVar2 != iVar3); iVar2 = *in_ECX; @@ -418958,9 +418958,9 @@ void FUN_00708d40(void) } -//@@ 00708e20 FUN_00708e20 +//@@ 00708e20 std::vector::_Tidy -void FUN_00708e20(void) +void std::vector::_Tidy(void) { int *in_ECX; @@ -419027,7 +419027,7 @@ void FUN_00708eb0(uint param_1) iVar5 = *in_ECX; local_8 = 1; for (; iVar5 != iVar3; iVar5 = iVar5 + 0x78) { - FUN_004d3130(iVar5); + EntitySaveState::copy(iVar5); } FUN_004d7340(uVar4,(iVar1 - iVar2) / 0x78,param_1); ExceptionList = local_10; @@ -419147,7 +419147,7 @@ void FUN_00709090(int param_1,int param_2) { for (; param_1 != param_2; param_1 = param_1 + 0xc) { - FUN_0069dac0(); + std::vector<12byte>::_Tidy(); } return; } @@ -419174,7 +419174,7 @@ void FUN_007090c0(undefined4 param_1) local_10 = ExceptionList; uVar3 = DAT_00bf93b4 ^ (uint)(local_1c + 0x18); ExceptionList = &local_10; - puVar4 = (undefined4 *)FUN_0041c770(param_1); + puVar4 = (undefined4 *)shared_ptr::assign(param_1); uVar1 = puVar4[1]; puVar4[1] = in_ECX[1]; in_ECX[1] = uVar1; @@ -420237,7 +420237,7 @@ void FUN_00709fb0(Entity_Player *param_1,int param_2,float param_3,float param_4 iVar5 = *(int *)(in_ECX + 0x24); iVar11 = *(int *)((int)DAT_00c71678->_room + 0xc); param_5 = 3.4028235e+38; - NpcAI::ENTITY_MASK((Entity_NPC *)((int)DAT_00c71678->_room + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)((int)DAT_00c71678->_room + 0x1218)); iVar12 = (int)local_24; uVar4 = 0; local_8 = 1; @@ -420256,7 +420256,7 @@ void FUN_00709fb0(Entity_Player *param_1,int param_2,float param_3,float param_4 uVar4 = uVar4 + 1; } while (uVar4 < local_1c); if (iVar17 != 0) { - FUN_006e2570(0); + Entity_Pickup::update_price_sprite(0); *(undefined1 *)(iVar17 + 0x538) = 0; if (*(int *)(iVar17 + 0x2c) == 100) { *(undefined4 *)(iVar17 + 0x584) = 1; @@ -420308,7 +420308,7 @@ void FUN_00709fb0(Entity_Player *param_1,int param_2,float param_3,float param_4 ExceptionList = local_10; return; } - iVar5 = FUN_006a89d0(); + iVar5 = Entity::GetLastSpawner(); if ((iVar5 == 0) || (*(int *)(iVar5 + 0x28) != 1)) { iVar5 = 0; iVar11 = 0; @@ -420378,7 +420378,7 @@ void FUN_00709fb0(Entity_Player *param_1,int param_2,float param_3,float param_4 goto LAB_0070ab5f; } if ((param_5 < 0.65) && (iVar11 != 0)) { - FUN_0075e320(8,3); + Entity_Player::IncrementPlayerFormCounter(8,3); *(undefined4 *)(in_ECX + 0x20) = *(undefined4 *)(in_ECX + 0x2c); ExceptionList = local_10; return; @@ -420457,7 +420457,7 @@ void FUN_00709fb0(Entity_Player *param_1,int param_2,float param_3,float param_4 LAB_0070a7f1: iVar5 = DAT_00c7169c + 0x4a920; *(float *)&DAT_00c71678->field_0x182f4 = fVar19; - uVar7 = FUN_009586f0(iVar5,"#YOU_FEEL_BLESSED"); + uVar7 = string_table_translate(iVar5,"#YOU_FEEL_BLESSED"); FUN_009a36d0(uVar7); *(undefined4 *)(in_ECX + 0x20) = *(undefined4 *)(in_ECX + 0x2c); ExceptionList = local_10; @@ -420496,7 +420496,7 @@ LAB_0070a846: } else { if ((((iVar5 != 2) || (DAT_00c71678->_devilRoomDeals < 1)) || - (cVar3 = FUN_00732d00(0x2a1,0), cVar3 == '\0')) || (6 < DAT_00c71678->_stage)) { + (cVar3 = ItemPool::is_collectible_available(0x2a1,0), cVar3 == '\0')) || (6 < DAT_00c71678->_stage)) { uVar7 = RNG::Next(); param_3 = 320.0; param_4 = 340.0; @@ -420983,7 +420983,7 @@ GridEntity_Fire * __thiscall GridEntity_Fire::InitSubclass(GridEntity_Fire *this puStack_c = &LAB_00af09f0; local_10 = ExceptionList; ExceptionList = &local_10; - FUN_00426980(DAT_00bf93b4 ^ (int)register0x00000010 - 4U); + std::vector::_Tidy(DAT_00bf93b4 ^ (int)register0x00000010 - 4U); std::string::_Tidy_deallocate(); std::string::_Tidy_deallocate(); *(undefined ***)this = IsaacRepentancePlus::GridEntity::vftable; @@ -421285,9 +421285,9 @@ undefined1 FUN_0070bf60(void) } -//@@ 0070bf80 FUN_0070bf80 +//@@ 0070bf80 is_grid_type_floor_special -undefined1 FUN_0070bf80(void) +undefined1 is_grid_type_floor_special(void) { int in_ECX; @@ -421312,11 +421312,11 @@ void FUN_0070bfa0(undefined4 param_1,undefined4 param_2,undefined4 param_3,undef } -//@@ 0070c000 FUN_0070c000 +//@@ 0070c000 Entity::DestroyRockGridAt /* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */ -void FUN_0070c000(int param_1,undefined4 param_2) +void Entity::DestroyRockGridAt(int param_1,undefined4 param_2) { char cVar1; @@ -421830,7 +421830,7 @@ LAB_0070c9b8: (local_c5 != '\0')) { if ((((local_c4 <= (float)piVar12[0xcf]) && (local_c0 <= (float)piVar12[0xd0])) && ((float)piVar12[0xcf] <= local_bc)) && ((float)piVar12[0xd0] <= local_b8)) { - FUN_00705ee0(); + Game::save_rewind_state(); local_88[0] = 0.0; local_88[1] = 0.0; local_88[2] = 0.0; @@ -422816,7 +422816,7 @@ LAB_0070e789: pGVar18 = extraout_ECX_05; goto LAB_0070e56f; } - local_190 = (char *)FUN_0040d0c0(); + local_190 = (char *)std::string::c_str(); pGVar18 = extraout_ECX_06; if (local_190 != (char *)0x0) goto LAB_0070e56f; } @@ -423420,7 +423420,7 @@ LAB_0070f08a: goto LAB_0070f0a0; } if (*(int *)(in_ECX + 0x394) == -7) { - NpcAI::ENTITY_MASK((Entity_NPC *)((int)DAT_00c71678->_room + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)((int)DAT_00c71678->_room + 0x1218)); local_8 = 0; uVar8 = 0; if (local_24 != 0) { @@ -427591,7 +427591,7 @@ LAB_0071568d: FUN_00716760(iVar10); LAB_007157fa: local_58 = &this[1].field_0x20; - FUN_00499960(local_50); + EntityRef::operator_(local_50); if (*(int *)&this->field_0xc == 1000) { if ((uint)this->_gridIndex < 0x1c0) { *(undefined4 *)(*(int *)(DAT_00c71678 + 0x18300) + 0x76c + this->_gridIndex * 4) = 900; @@ -427789,7 +427789,7 @@ LAB_00715bc8: local_1c8 = EntityConfig::GetEntity(1000,0,0); } if (local_1c8 != 0) { - FUN_0069ba90(local_1c8); + EntityConfig::PreloadResources(local_1c8); iVar5 = DAT_00c7169c; } local_1a8 = 0x3e803a00; @@ -427803,7 +427803,7 @@ LAB_00715bc8: local_1d4 = EntityConfig::GetEntity(1000,0,0); } if (local_1d4 != 0) { - FUN_0069ba90(local_1d4); + EntityConfig::PreloadResources(local_1d4); iVar5 = DAT_00c7169c; } local_1b4 = &DAT_00500a00; @@ -427817,7 +427817,7 @@ LAB_00715bc8: local_1e0 = EntityConfig::GetEntity(5,0,0); } if (local_1e0 != 0) { - FUN_0069ba90(local_1e0); + EntityConfig::PreloadResources(local_1e0); iVar5 = DAT_00c7169c; } local_1ac = &DAT_00501400; @@ -427830,7 +427830,7 @@ LAB_00715bc8: local_1ec = EntityConfig::GetEntity(5,0,0); } if (local_1ec != 0) { - FUN_0069ba90(local_1ec); + EntityConfig::PreloadResources(local_1ec); } *(undefined4 *)&pGVar2->field_0x2c = *(undefined4 *)&pGVar2->field_0x14; *(undefined8 *)&pGVar2->field_0x30 = 0x900000005; @@ -428643,14 +428643,14 @@ LAB_00716fab: } LAB_00717043: in_ECX = local_c; - FUN_006393a0(local_2c,&DAT_00c7b640); + spawn_dip_at(local_2c,&DAT_00c7b640); } LAB_00716ffd: if (local_30 == 0xb) { if ((((1 < *(int *)(DAT_00c71678 + 0x26614)) && (*(int *)(param_6 + 0x24) != 0)) && (iVar7 = Entity::GetPlayerAncestor(), iVar7 != 0)) || (iVar7 = Game::GetNearestPlayerEx(in_ECX,1,0,0), iVar7 != 0)) { - FUN_006393a0(iVar7,&DAT_00c7b640); + spawn_dip_at(iVar7,&DAT_00c7b640); } } else if ((6 < local_30) && (local_30 < 0xb)) { @@ -429487,7 +429487,7 @@ LAB_00717d8c: uStack_d4 = 0x3c23d70a; uStack_d0 = 0x3c23d70a; uStack_cc = 0x3f800000; - FUN_009960b0(&local_d8); + Game::start_poop_cloud_screen_effect(&local_d8); } iVar12 = PlayerManager::FirstTrinketOwner(0x5b); if (1 < *(int *)&DAT_00c71678->field_0x26614) { @@ -432659,7 +432659,7 @@ LAB_0071cf2a: sin(); local_14c = (float)pGVar7 * (float)local_c0; Random(); - FUN_004d8b50(); + spawn_small_maggot(); iVar4 = iVar4 + 1; } while (iVar4 < 6); local_94 = local_a0; @@ -433979,7 +433979,7 @@ void __thiscall GridEntity_TNT::BeginBatches(GridEntity_TNT *this) local_38 = EntityConfig::GetEntity(1000,0,0); } if (local_38 != 0) { - FUN_0069ba90(local_38); + EntityConfig::PreloadResources(local_38); } pbVar2 = (this->_sprite)._animState._animData; if (pbVar2 != (byte *)0x0) { @@ -434283,9 +434283,9 @@ void FUN_0071f4b0(uint param_1) } -//@@ 0071f600 FUN_0071f600 +//@@ 0071f600 Level::filter_curses -uint FUN_0071f600(uint param_1) +uint Level::filter_curses(uint param_1) { uint uVar1; @@ -434585,7 +434585,7 @@ LAB_0071fe0e: } else if (((iVar13 != 6) && ((uVar7 = extraout_ECX_00, iVar13 != 5 || - (iVar13 = FUN_0071f600(2), uVar7 = extraout_ECX_02, iVar13 == 0)))) || + (iVar13 = Level::filter_curses(2), uVar7 = extraout_ECX_02, iVar13 == 0)))) || (iVar13 = Game::GetChallengeParams(), uVar7 = extraout_ECX_03, *(int *)(iVar13 + 0x80) != 2)) goto LAB_0071fe18; } @@ -435271,7 +435271,7 @@ LAB_00720c10: cVar7 = Game::IsInTimedSet(); if (cVar7 == '\0') { if (10 < pGVar22->_stage) { - FUN_004360f0(); + _get_index_plus_one_if_kind_4_5(); Seeds::ForgetStageSeed(); } if (pGVar23->_varData == 1) { @@ -435279,7 +435279,7 @@ LAB_00720c10: fVar26 = local_44; } else { - iVar9 = FUN_0071f600(); + iVar9 = Level::filter_curses(); pGVar22 = DAT_00c71678; local_2d = iVar9 != 0; cVar7 = Level::IsAltPath((Level *)DAT_00c71678); @@ -436036,7 +436036,7 @@ undefined1 FUN_00721b70(int param_1) do { if ((*(char *)(param_1 + 4) == *(char *)(iVar1 + 4)) && (*(int *)(param_1 + 8) == *(int *)(iVar1 + 8))) { - piVar2 = (int *)FUN_00722140(¶m_1,iVar1); + piVar2 = (int *)std::vector::erase(¶m_1,iVar1); FUN_007220a0((*piVar2 - *in_ECX) / 0x1c); uVar3 = 1; break; @@ -436062,7 +436062,7 @@ undefined4 History::RemoveHistoryItemByIndex(int param_1) iVar1 = param_1; if ((char)in_ECX[3] == '\0') { if (param_1 < (in_ECX[1] - *in_ECX) / 0x1c) { - FUN_00722140(¶m_1,*in_ECX + param_1 * 0x1c); + std::vector::erase(¶m_1,*in_ECX + param_1 * 0x1c); FUN_007220a0(iVar1); mark_all_slots_dirty(0,0); return 1; @@ -436388,9 +436388,9 @@ void FUN_007220a0(int param_1) } -//@@ 00722140 FUN_00722140 +//@@ 00722140 std::vector::erase -void FUN_00722140(undefined4 *param_1,undefined4 *param_2) +void std::vector::erase(undefined4 *param_1,undefined4 *param_2) { undefined4 *puVar1; @@ -438408,9 +438408,9 @@ LAB_00724ad0: } -//@@ 00724af0 FUN_00724af0 +//@@ 00724af0 PocketItemConfig::GetName -undefined4 * FUN_00724af0(undefined4 *param_1,uint param_2) +undefined4 * PocketItemConfig::GetName(undefined4 *param_1,uint param_2) { char cVar1; @@ -438438,10 +438438,10 @@ undefined4 * FUN_00724af0(undefined4 *param_1,uint param_2) } if (*pcVar2 == '#') { param_2 = param_2 & 0xffffff; - FUN_00a26af0("PocketItems",uVar4,pcVar2 + 1,(int)¶m_2 + 3); + StringTable::get_string("PocketItems",uVar4,pcVar2 + 1,(int)¶m_2 + 3); if (param_2._3_1_ == '\0') { param_2 = param_2 & 0xffffff; - pcVar2 = (char *)FUN_00a26af0("PocketItems",uVar4,pcVar2 + 1,(int)¶m_2 + 3); + pcVar2 = (char *)StringTable::get_string("PocketItems",uVar4,pcVar2 + 1,(int)¶m_2 + 3); } } *param_1 = 0; @@ -438486,10 +438486,10 @@ undefined4 * FUN_00724bd0(undefined4 *param_1) uVar2 = *(undefined4 *)(DAT_00c7169c + 0x4a920); if (*pcVar3 == '#') { local_5 = '\0'; - FUN_00a26af0("PocketItems",uVar2,pcVar3 + 1,&local_5); + StringTable::get_string("PocketItems",uVar2,pcVar3 + 1,&local_5); if (local_5 == '\0') { local_5 = '\0'; - pcVar3 = (char *)FUN_00a26af0("PocketItems",uVar2,pcVar3 + 1,&local_5); + pcVar3 = (char *)StringTable::get_string("PocketItems",uVar2,pcVar3 + 1,&local_5); } } *param_1 = 0; @@ -439594,7 +439594,7 @@ LAB_00725eed: if (0xf < local_5c) { ppppuVar14 = local_70[0]; } - FUN_00421680(uVar18,local_60,ppppuVar14,local_60,"trinkets/",9); + std::string::concat(uVar18,local_60,ppppuVar14,local_60,"trinkets/",9); local_14._0_1_ = 4; pcVar23 = pcVar20; do { @@ -439658,13 +439658,13 @@ LAB_00725eed: if (0x7fffffffU - local_60 < 0xd) { LAB_00727429: /* WARNING: Subroutine does not return */ - FUN_0040ccc0(); + std::string::_Xlen(); } ppppuVar14 = local_70; if (0xf < local_5c) { ppppuVar14 = local_70[0]; } - FUN_00421680(uVar18,local_60,ppppuVar14,local_60,"collectibles/",0xd); + std::string::concat(uVar18,local_60,ppppuVar14,local_60,"collectibles/",0xd); local_14._0_1_ = 5; pcVar23 = pcVar20; do { @@ -441223,13 +441223,13 @@ LAB_00727755: uVar5 = (int)ppppppbVar8 - (int)((int)ppppppbVar14 + 1); if (0x7fffffffU - local_5c < uVar5) { /* WARNING: Subroutine does not return */ - FUN_0040ccc0(); + std::string::_Xlen(); } pppppppuVar9 = local_6c; if (0xf < local_58) { pppppppuVar9 = local_6c[0]; } - FUN_00421680(iStack_100f8,uVar5,pppppppuVar9,local_5c,ppppppbVar14,uVar5); + std::string::concat(iStack_100f8,uVar5,pppppppuVar9,local_5c,ppppppbVar14,uVar5); if (0xf < uStack_100cc) { uVar5 = uStack_100cc + 1; pppppppiVar10 = pppppppiStack_100e0; @@ -443711,13 +443711,13 @@ LAB_00729c05: if (0x7fffffff - local_58[4] < uVar10) { LAB_0072a1a5: /* WARNING: Subroutine does not return */ - FUN_0040ccc0(uVar8); + std::string::_Xlen(uVar8); } puVar18 = local_58; if (0xf < (uint)local_58[5]) { puVar18 = (undefined4 *)*local_58; } - FUN_00421680(local_54,uVar10,puVar18,local_58[4],pcVar20 + std::string::concat(local_54,uVar10,puVar18,local_58[4],pcVar20 ,uVar10); param_1 = local_44; local_48 = (int *)((uint)local_48 | 4); @@ -443788,7 +443788,7 @@ LAB_00729d05: if (0xf < (uint)local_58[5]) { puVar18 = (undefined4 *)*local_58; } - FUN_00421680(local_54,uVar10,puVar18,local_58[4], + std::string::concat(local_54,uVar10,puVar18,local_58[4], pcVar20,uVar10); param_1 = local_44; local_48 = (int *)((uint)local_48 | 8); @@ -448414,7 +448414,7 @@ LAB_0072e4eb: if ((byte ****)0x7fffffff < local_7c) { LAB_0072e63a: /* WARNING: Subroutine does not return */ - FUN_0040ccc0(); + std::string::_Xlen(); } ppppbVar19 = (byte ****)((uint)local_7c | 0xf); if (ppppbVar19 < (byte ****)0x80000000) { @@ -449052,7 +449052,7 @@ LAB_0072ec02: if (uVar4 < uVar8) { if (0x7fffffff < uVar8) { /* WARNING: Subroutine does not return */ - FUN_0040ccc0(); + std::string::_Xlen(); } uVar20 = uVar8 | 0xf; if (uVar20 < 0x80000000) { @@ -449585,13 +449585,13 @@ LAB_0072f645: if (0x7fffffffU - local_44 < uVar4) { LAB_0072fc88: /* WARNING: Subroutine does not return */ - FUN_0040ccc0(); + std::string::_Xlen(); } ppppppuVar11 = local_54; if (0xf < local_40) { ppppppuVar11 = local_54[0]; } - FUN_00421680(iStack_10190,uVar4,ppppppuVar11,local_44,pcVar15,uVar4); + std::string::concat(iStack_10190,uVar4,ppppppuVar11,local_44,pcVar15,uVar4); piStack_10184 = (int *)((uint)piStack_10184 | 4); if (0xf < uStack_104) { uVar16 = uStack_104 + 1; @@ -449649,7 +449649,7 @@ LAB_0072f72b: if (0xf < local_40) { ppppppuVar11 = local_54[0]; } - FUN_00421680(iStack_10190,uVar4,ppppppuVar11,local_44,pcVar15,uVar4); + std::string::concat(iStack_10190,uVar4,ppppppuVar11,local_44,pcVar15,uVar4); piStack_10184 = (int *)((uint)piStack_10184 | 8); std::string::_Tidy_deallocate(); local_100 = local_3c; @@ -449698,7 +449698,7 @@ LAB_0072f7dd: if (0xf < local_40) { ppppppuVar11 = local_54[0]; } - FUN_00421680(iStack_10190,uVar4,ppppppuVar11,local_44,pcVar15,uVar4); + std::string::concat(iStack_10190,uVar4,ppppppuVar11,local_44,pcVar15,uVar4); piStack_10184 = (int *)((uint)piStack_10184 | 0x10); std::string::_Tidy_deallocate(); local_e8 = local_3c; @@ -449747,7 +449747,7 @@ LAB_0072f895: if (0xf < local_40) { ppppppuVar11 = local_54[0]; } - FUN_00421680(iStack_10190,uVar4,ppppppuVar11,local_44,pcVar15,uVar4); + std::string::concat(iStack_10190,uVar4,ppppppuVar11,local_44,pcVar15,uVar4); piStack_10184 = (int *)((uint)piStack_10184 | 0x20); std::string::_Tidy_deallocate(); local_d0 = local_3c; @@ -449796,7 +449796,7 @@ LAB_0072f94c: if (0xf < local_40) { ppppppuVar11 = local_54[0]; } - FUN_00421680(iStack_10190,uVar4,ppppppuVar11,local_44,pcVar15,uVar4); + std::string::concat(iStack_10190,uVar4,ppppppuVar11,local_44,pcVar15,uVar4); piStack_10184 = (int *)((uint)piStack_10184 | 0x40); std::string::_Tidy_deallocate(); local_b8 = local_3c; @@ -449917,7 +449917,7 @@ LAB_0072fb3c: if (0xf < local_40) { ppppppuVar11 = local_54[0]; } - FUN_00421680(iStack_10190,uVar4,ppppppuVar11,local_44,pcVar15,uVar4); + std::string::concat(iStack_10190,uVar4,ppppppuVar11,local_44,pcVar15,uVar4); piStack_10184 = (int *)((uint)piStack_10184 | 0x80); std::string::_Tidy_deallocate(); local_a0 = local_3c; @@ -450336,10 +450336,10 @@ undefined4 * ItemConfig_Item::GetLocalizedName(undefined4 *param_1,uint param_2) } if (*pcVar2 == '#') { param_2 = param_2 & 0xffffff; - FUN_00a26af0("Items",uVar4,pcVar2 + 1,(int)¶m_2 + 3); + StringTable::get_string("Items",uVar4,pcVar2 + 1,(int)¶m_2 + 3); if (param_2._3_1_ == '\0') { param_2 = param_2 & 0xffffff; - pcVar2 = (char *)FUN_00a26af0("Items",uVar4,pcVar2 + 1,(int)¶m_2 + 3); + pcVar2 = (char *)StringTable::get_string("Items",uVar4,pcVar2 + 1,(int)¶m_2 + 3); } } *param_1 = 0; @@ -450383,10 +450383,10 @@ undefined4 * FUN_0072fff0(undefined4 *param_1) } if (*pcVar3 == '#') { local_5 = '\0'; - FUN_00a26af0("Items",uVar2,pcVar3 + 1,&local_5); + StringTable::get_string("Items",uVar2,pcVar3 + 1,&local_5); if (local_5 == '\0') { local_5 = '\0'; - pcVar3 = (char *)FUN_00a26af0("Items",uVar2,pcVar3 + 1,&local_5); + pcVar3 = (char *)StringTable::get_string("Items",uVar2,pcVar3 + 1,&local_5); } } *param_1 = 0; @@ -450638,9 +450638,9 @@ LAB_00730653: } -//@@ 007307b0 FUN_007307b0 +//@@ 007307b0 ItemConfig_Item::is_mom_item -uint FUN_007307b0(void) +uint ItemConfig_Item::is_mom_item(void) { uint uVar1; @@ -452969,7 +452969,7 @@ void FUN_00732c90(void) puStack_c = &LAB_00af0d10; local_10 = ExceptionList; ExceptionList = &local_10; - FUN_00426980(DAT_00bf93b4 ^ (int)register0x00000010 - 4U); + std::vector::_Tidy(DAT_00bf93b4 ^ (int)register0x00000010 - 4U); FID_conflict__Tidy((void *)(in_ECX + 0x68c)); FID_conflict__Tidy((void *)(in_ECX + 0x67c)); _eh_vector_destructor_iterator_ @@ -452979,9 +452979,9 @@ void FUN_00732c90(void) } -//@@ 00732d00 FUN_00732d00 +//@@ 00732d00 ItemPool::is_collectible_available -undefined4 FUN_00732d00(uint param_1,byte param_2) +undefined4 ItemPool::is_collectible_available(uint param_1,byte param_2) { char cVar1; @@ -453412,7 +453412,7 @@ ItemPool::GetCollectible local_90 = (uint *)(uVar3 & 1); iVar4 = PlayerManager::FirstCollectibleOwner(0x2d1,DAT_00c71678 + 0x1baa8,1); if (iVar4 != 0) { - uVar3 = FUN_009dcc70(param_3,0); + uVar3 = ItemPool::CreateGlitchedCollectible(param_3,0); return uVar3; } iVar4 = PlayerManager::FirstCollectibleOwner(0x192,DAT_00c71678 + 0x1baa8,1); @@ -453495,7 +453495,7 @@ ItemPool::GetCollectible uVar10 = 0x1a; puVar7 = local_80 + 4; LAB_007339a2: - uVar5 = FUN_00737380(puVar7,uVar10,uVar6,uVar5,uVar11,local_90); + uVar5 = ItemPool::get_available_collectibles(puVar7,uVar10,uVar6,uVar5,uVar11,local_90); if (uVar5 != 0) { return uVar5; } @@ -456255,9 +456255,9 @@ LAB_00737181: } -//@@ 00737380 FUN_00737380 +//@@ 00737380 ItemPool::get_available_collectibles -uint FUN_00737380(uint *param_1,uint param_2,uint param_3,uint param_4,char param_5,char param_6) +uint ItemPool::get_available_collectibles(uint *param_1,uint param_2,uint param_3,uint param_4,char param_5,char param_6) { uint *puVar1; @@ -456384,7 +456384,7 @@ LAB_00737461: } -//@@ 007376c0 FUN_007376c0 +//@@ 007376c0 ItemPool::GetCardImpl /* WARNING: Removing unreachable block (ram,0x00737a9c) */ /* WARNING: Removing unreachable block (ram,0x00737780) */ @@ -456416,7 +456416,7 @@ LAB_00737461: /* WARNING: Removing unreachable block (ram,0x0073791a) */ /* WARNING: Removing unreachable block (ram,0x00737932) */ -int FUN_007376c0(uint param_1) +int ItemPool::GetCardImpl(uint param_1) { undefined4 uVar1; @@ -457144,7 +457144,7 @@ void FUN_007383b0(void) operator_delete(iVar1,0x7898); *(undefined4 *)(in_ECX + 0x18300) = 0; } - FUN_00708e20(); + std::vector::_Tidy(); local_8 = 0; if (*(int **)(in_ECX + 0x182fc) != (int *)0x0) { cVar2 = (**(code **)(**(int **)(in_ECX + 0x182fc) + 0xc))(); @@ -457307,13 +457307,13 @@ void __thiscall Level::reset_room_list(Level *this,char param_2) if ((param_2 != '\0') || (uVar4 != 0x20e)) { uVar3 = RoomDescriptor::constructor(&local_cc,uVar2); FUN_007387d0(uVar3); - FUN_00708e20(); + std::vector::_Tidy(); FID_conflict__Erase_tree_>_> (&local_cc.field_0x80, (fuzzer_allocator_> *)&local_cc.field_0x80, *(_Tree_node **)(local_cc._128_4_ + 4)); operator_delete(local_cc._128_4_,0x14); - FUN_00708e20(); + std::vector::_Tidy(); FUN_00708f90(); piVar5[2] = uVar4; if (0x1fa < uVar4) { @@ -457403,7 +457403,7 @@ void FUN_007387d0(undefined4 *param_1) } puVar1 = param_1 + 0x1d; if (in_ECX + 0x1d != puVar1) { - FUN_00708e20(); + std::vector::_Tidy(); in_ECX[0x1d] = *puVar1; in_ECX[0x1e] = param_1[0x1e]; in_ECX[0x1f] = param_1[0x1f]; @@ -457430,7 +457430,7 @@ void FUN_007387d0(undefined4 *param_1) } puVar1 = param_1 + 0x22; if (in_ECX + 0x22 != puVar1) { - FUN_00708e20(); + std::vector::_Tidy(); in_ECX[0x22] = *puVar1; in_ECX[0x23] = param_1[0x23]; in_ECX[0x24] = param_1[0x24]; @@ -457503,7 +457503,7 @@ FUN_00738ab0(int param_1,int param_2,undefined4 param_3,undefined4 param_4,undef piVar10 = (int *)(&in_ECX->field_0x14 + in_ECX->_nbRooms * 0xb8); local_1c = param_3; local_10 = 9; - FUN_00428940(&local_1c); + Seeds::Init3(&local_1c); piVar10[4] = param_2; if ((*(uint *)(param_1 + 8) < 0xd) && (*(uint *)(param_1 + 0xc) < 0xd)) { iVar8 = *(uint *)(param_1 + 0xc) * 0xd + *(uint *)(param_1 + 8); @@ -460245,7 +460245,7 @@ LAB_0073d125: *(uint *)(&pGVar17->field_0x58 + uVar9 * 0xb8) | 0x10; } Level::GetRoomByIdx((Level *)pGVar17,0xfffffffe,0xffffffff); - FUN_00428940(puVar24); + Seeds::Init3(puVar24); local_d0 = (uint *)0x0; uVar10 = RNG::Next(); uVar10 = RoomConfig::GetRandomRoom @@ -460253,7 +460253,7 @@ LAB_0073d125: iVar7 = Level::GetRoomByIdx((Level *)pGVar17,0xfffffffe,0xffffffff); *(undefined4 *)(iVar7 + 0x10) = uVar10; Level::GetRoomByIdx((Level *)pGVar17,0xfffffffa,0xffffffff); - FUN_00428940(puVar24); + Seeds::Init3(puVar24); local_d0 = (uint *)0x0; uVar10 = RNG::Next(); uVar10 = RoomConfig::GetRandomRoom @@ -460262,7 +460262,7 @@ LAB_0073d125: iVar7 = Level::GetRoomByIdx((Level *)pGVar17,0xfffffffa,0xffffffff); *(undefined4 *)(iVar7 + 0x10) = uVar10; Level::GetRoomByIdx((Level *)pGVar17,0xfffffffc,0xffffffff); - FUN_00428940(puVar24); + Seeds::Init3(puVar24); local_d0 = (uint *)0x0; uVar10 = RNG::Next(); uVar10 = RoomConfig::GetRandomRoom @@ -460271,7 +460271,7 @@ LAB_0073d125: iVar7 = Level::GetRoomByIdx((Level *)pGVar17,0xfffffffc,0xffffffff); *(undefined4 *)(iVar7 + 0x10) = uVar10; Level::GetRoomByIdx((Level *)pGVar17,0xfffffffb,0xffffffff); - FUN_00428940(puVar24); + Seeds::Init3(puVar24); iVar7 = PlayerManager::FirstCollectibleOwner(0x226,&DAT_00c71678->field_0x1baa8,1); if (iVar7 == 0) { local_d0 = (uint *)0x0; @@ -460287,7 +460287,7 @@ LAB_0073d125: iVar7 = Level::GetRoomByIdx((Level *)pGVar17,0xfffffffb,0xffffffff); *(undefined4 *)(iVar7 + 0x10) = uVar10; Level::GetRoomByIdx((Level *)pGVar17,0xfffffff9,0xffffffff); - FUN_00428940(puVar24); + Seeds::Init3(puVar24); local_d0 = (uint *)0x0; uVar10 = RNG::Next(); uVar10 = RoomConfig::GetRandomRoom @@ -460296,7 +460296,7 @@ LAB_0073d125: *(undefined4 *)(iVar7 + 0x10) = uVar10; if (local_12c == (uint *)0xd) { Level::GetRoomByIdx((Level *)pGVar17,0xfffffff7,0xffffffff); - FUN_00428940(puVar24); + Seeds::Init3(puVar24); local_d0 = (uint *)0x0; uVar10 = RNG::Next(); uVar10 = RoomConfig::GetRandomRoom @@ -460305,7 +460305,7 @@ LAB_0073d125: } else { Level::GetRoomByIdx((Level *)pGVar17,0xfffffff8,0xffffffff); - FUN_00428940(puVar24); + Seeds::Init3(puVar24); local_d0 = (uint *)0x0; uVar10 = RNG::Next(); uVar10 = RoomConfig::GetRandomRoom @@ -460343,7 +460343,7 @@ LAB_0073d125: iVar7 = RNG::RandomInt(uVar10); iVar8 = RNG::RandomInt(iVar8); Level::GetRoomByIdx((Level *)local_d8,0xfffffff3,0xffffffff); - FUN_00428940(local_c0); + Seeds::Init3(local_c0); local_d0 = (uint *)0x0; uVar10 = RNG::Next(); uVar10 = RoomConfig::GetRandomRoom @@ -460358,7 +460358,7 @@ LAB_0073d125: local_c0[2] = 3; local_c0[3] = 0x1c; Level::GetRoomByIdx((Level *)pGVar17,0xffffffee,0xffffffff); - FUN_00428940(local_c0); + Seeds::Init3(local_c0); local_d0 = (uint *)0x0; uVar10 = RNG::Next(); uVar10 = RoomConfig::GetRandomRoom @@ -460377,7 +460377,7 @@ LAB_0073d125: } RNG::Next(); Level::GetRoomByIdx((Level *)pGVar17,0xfffffff6,0xffffffff); - FUN_00428940(puVar24); + Seeds::Init3(puVar24); local_d0 = (uint *)0x0; uVar10 = RNG::Next(); uVar10 = RoomConfig::GetRandomRoom @@ -460426,9 +460426,9 @@ uint FUN_0073d9b0(int param_1,uint param_2,char param_3,undefined4 param_4) } -//@@ 0073da40 FUN_0073da40 +//@@ 0073da40 Level::GetTargetSlot -uint FUN_0073da40(int param_1,int param_2) +uint Level::GetTargetSlot(int param_1,int param_2) { uint uVar1; @@ -461069,7 +461069,7 @@ LAB_0073e863: if (-1 < (int)local_90) { local_84 = (Level *)0x0; do { - iVar6 = FUN_0074c540(local_90,local_84); + iVar6 = Level::GetNeighborRoomIdx(local_90,local_84); if (-1 < iVar6) { local_44[0] = -1; local_44[1] = 0; @@ -461236,7 +461236,7 @@ LAB_0073ecaa: else { uVar21 = *(undefined4 *)(iVar7 + 0x48); } - iVar7 = FUN_007f20e0(*(undefined4 *)((int)pGVar16->_room + 0x10),uVar21); + iVar7 = room_shape_get_door_grid_index(*(undefined4 *)((int)pGVar16->_room + 0x10),uVar21); if ((((-1 < iVar7) && (iVar7 < 0x1c0)) && (iVar7 = *(int *)((int)pGVar16->_room + iVar7 * 4 + 0x24), iVar7 != 0)) && ((*(int *)(iVar7 + 4) == 0x10 && (*(int *)(iVar7 + 0x164) == -1)))) { @@ -461418,7 +461418,7 @@ LAB_0073ee35: if (*(int *)&DAT_00c71678[1].field_0xe2dc < 2) { FUN_009bba30(); } - FUN_00993a70(1); + Camera::Update(1); Room::UpdateRedKey(pGVar16->_room); if (*(int *)&DAT_00c71678[1].field_0xe2f8 == 0) { uVar4 = (*(int *)(DAT_00c7169c + 0x2a668) - *(int *)(DAT_00c7169c + 0x2a664)) / 0xa4 - 1; @@ -461444,7 +461444,7 @@ LAB_0073ee35: iVar6 = GetRoomByIdx(DAT_00c71678,DAT_00c71678->_currentRoomIndex,0xffffffff); if ((*(int *)(iVar6 + 8) == DAT_00c71678->_lastBossRoomListIndex) && ((*(byte *)(*(int *)((int)local_a4->_room + 4) + 0x44) & 1) != 0)) { - FUN_00802670(); + Room::update_door_targets(); Room::TrySpawnBossRushDoor(0,0); } LAB_0073f55d: @@ -461559,7 +461559,7 @@ LAB_0073f830: if (((iVar5 != 0) && (param_2 == local_18)) && (param_2 != param_1)) { iVar5 = 0; do { - iVar6 = FUN_0074c540(*(undefined4 *)(param_1 + 4),iVar5); + iVar6 = Level::GetNeighborRoomIdx(*(undefined4 *)(param_1 + 4),iVar5); if ((-1 < iVar6) && (iVar6 = Level::GetRoomByIdx(), *(int *)(iVar6 + 0x10) != 0)) { FUN_0073f620(iVar6,param_1,iVar5); } @@ -461608,8 +461608,8 @@ void __thiscall Game::UpdateVisibility(Game *this) } iVar5 = iVar5 + 1; } while (iVar5 < 8); - FUN_0098b5e0(); - FUN_0098b5e0(); + Minimap::refresh_room_icons(); + Minimap::refresh_room_icons(); iVar4 = DAT_00c71678; if (*(int *)(DAT_00c71678 + 0x22ed4) != 2) { *(undefined4 *)(DAT_00c71678 + 0x22ed4) = 1; @@ -461823,11 +461823,11 @@ void __thiscall Level::ChangeRoom(Level *this,int param_2,uint param_3) *(undefined4 *)&pLVar7[1].field_0xe214 = *(undefined4 *)&pLVar6->field_0xe214; if ((pPVar20->changesmade != 0) && (*(char *)(iVar17 + 4000) != '\0')) { pPVar20->changesmade = 0; - FUN_009292c0(); + Manager::BackupSaveFile(); iVar17 = DAT_00c7169c; piVar10 = (int *)SteamInternal_ContextInit(&PTR_FUN_00c5c3a4); if ((*piVar10 == 0) || (*(char *)(iVar17 + 0x2a3a4) == '\0')) { - FUN_009294f0(); + PersistentGameData::Save(); } else { PersistentGameData::SaveToSteamCloud(pPVar20); @@ -461982,7 +461982,7 @@ LAB_00740146: if ((int)param_3 < 0) { param_3 = (param_3 - 1 | 0xfffffffc) + 1; } - uVar16 = FUN_0073da40(local_38[uVar14],param_3,iVar17); + uVar16 = Level::GetTargetSlot(local_38[uVar14],param_3,iVar17); uVar12 = uVar16 & 0x80000003; if ((int)uVar12 < 0) { uVar12 = (uVar12 - 1 | 0xfffffffc) + 1; @@ -462141,7 +462141,7 @@ LAB_007404a6: iVar17 = local_14; } LAB_007404a9: - iVar17 = FUN_0073da40(iVar17,param_3,iVar17); + iVar17 = Level::GetTargetSlot(iVar17,param_3,iVar17); this->_enterDoor = iVar17; if (((this->_currentRoomIndex == this->_previousRoomIndex) && (*(int *)&this->field_0x1830c != *(int *)&this->field_0x18310)) && @@ -462748,7 +462748,7 @@ LAB_00740f15: uVar6 = uVar6 << ((byte)*(undefined4 *)&pLVar2->field_0x182dc & 0x1f) ^ uVar6; uVar6 = uVar6 >> ((byte)*(undefined4 *)&pLVar2->field_0x182e0 & 0x1f) ^ uVar6; *(uint *)&pLVar2->field_0x182d4 = uVar6; - FUN_009adaf0(uVar6); + RoomDescriptor::Init(uVar6); local_14 = 0; uVar6 = *(uint *)(DAT_00c71678 + 0x26550); local_41c = *(int *)(DAT_00c71678 + 0x269c8); @@ -462829,7 +462829,7 @@ LAB_00740f15: (local_460,local_42c,1,0xd,0,0xffffffff,local_41c,local_424,&local_420, 0xffffffff,0xffffffff); local_14._0_1_ = 3; - FUN_007525e0(uVar11); + std::vector::assign(uVar11); local_14._0_1_ = 1; FID_conflict__Tidy(local_460); piVar15 = local_438; @@ -462883,7 +462883,7 @@ LAB_00741c6c: local_42c = *ppiVar12; local_40c[0] = (int)ppiVar12[1] - (int)local_42c; if ((uint)(local_434 - (int)local_43c >> 2) < (uint)((int)local_40c[0] >> 2)) { - FUN_006a0d30((int)local_40c[0] >> 2); + std::vector::reserve_clear((int)local_40c[0] >> 2); } piVar15 = local_43c; memmove(local_43c,local_42c,local_40c[0]); @@ -463378,7 +463378,7 @@ LAB_0074228c: _Init_thread_footer(&DAT_00c8108c); } puVar1 = in_ECX + 0x60b5; - FUN_00428940(puVar1); + Seeds::Init3(puVar1); uVar3 = *puVar1; local_34 = 0; if (uVar3 == 0) { @@ -463416,7 +463416,7 @@ LAB_0074228c: local_8 = (undefined4 ******)CONCAT31(local_8._1_3_,1); _Init_thread_footer(&DAT_00c8108c); } - FUN_00428940(puVar1); + Seeds::Init3(puVar1); uVar3 = *puVar1; local_34 = 0; if (uVar3 == 0) { @@ -463454,7 +463454,7 @@ LAB_0074228c: local_8 = (undefined4 ******)CONCAT31(local_8._1_3_,1); _Init_thread_footer(&DAT_00c8108c); } - FUN_00428940(puVar1); + Seeds::Init3(puVar1); uVar3 = *puVar1; local_34 = 0; if (uVar3 == 0) { @@ -463536,7 +463536,7 @@ LAB_0074228c: local_8 = (undefined4 ******)CONCAT31(local_8._1_3_,1); _Init_thread_footer(&DAT_00c8108c); } - FUN_00428940(puVar1); + Seeds::Init3(puVar1); uVar3 = *puVar1; local_3c = (void *)0x0; if (uVar3 == 0) { @@ -463579,7 +463579,7 @@ LAB_0074228c: local_8 = (undefined4 ******)CONCAT31(local_8._1_3_,1); _Init_thread_footer(&DAT_00c8108c); } - FUN_00428940(puVar1); + Seeds::Init3(puVar1); uVar3 = *puVar1; local_34 = 0; if (uVar3 == 0) { @@ -463690,7 +463690,7 @@ void FUN_00742ef0(void) uVar3 = uVar3 << ((byte)in_ECX[0x60b7] & 0x1f) ^ uVar3; uVar3 = uVar3 >> ((byte)in_ECX[0x60b8] & 0x1f) ^ uVar3; in_ECX[0x60b5] = uVar3; - FUN_009adaf0(uVar3); + RoomDescriptor::Init(uVar3); local_420 = 10; if (*(int *)(DAT_00c71678 + 0x269c8) == 1) { local_420 = 0xf; @@ -463710,7 +463710,7 @@ void FUN_00742ef0(void) local_410 = (int)ppiVar4[1] - (int)local_414; piVar7 = (int *)0x0; if ((int)local_410 >> 2 != 0) { - FUN_006a0d30((int)local_410 >> 2); + std::vector::reserve_clear((int)local_410 >> 2); local_41c = local_430; piVar7 = local_430; } @@ -463764,7 +463764,7 @@ switchD_0074313d_default: uVar5 = RoomConfig::CollectRooms (local_450,0x24,1,0xd,0,0xffffffff,1,0xf,&local_414,0xffffffff,0xffffffff); local_14._0_1_ = 3; - FUN_007525e0(uVar5); + std::vector::assign(uVar5); local_14._0_1_ = 1; FID_conflict__Tidy(local_450); local_41c = local_430; @@ -463885,7 +463885,7 @@ void FUN_00743550(void) uVar4 = uVar4 << ((byte)in_ECX[0x60b7] & 0x1f) ^ uVar4; uVar4 = uVar4 >> ((byte)in_ECX[0x60b8] & 0x1f) ^ uVar4; *puVar1 = uVar4; - FUN_009adaf0(uVar4); + RoomDescriptor::Init(uVar4); uStack_8 = 0; if ((uint)((int)(LStack_3ac._876_4_ - LStack_3ac._868_4_) / 0x48) < 7) { FUN_007529c0(7); @@ -464145,7 +464145,7 @@ void FUN_00743550(void) uVar4 = uVar4 << ((byte)in_ECX[0x60b7] & 0x1f) ^ uVar4; uVar4 = uVar4 >> ((byte)in_ECX[0x60b8] & 0x1f) ^ uVar4; *puVar1 = uVar4; - FUN_009adaf0(uVar4); + RoomDescriptor::Init(uVar4); uStack_8 = 1; if ((uint)((int)(LStack_3ac._876_4_ - LStack_3ac._868_4_) / 0x48) < 3) { FUN_007529c0(3); @@ -464219,7 +464219,7 @@ void FUN_00743550(void) uStack_8 = 0xffffffff; _Init_thread_footer(&DAT_00c8108c); } - FUN_00428940(puVar1); + Seeds::Init3(puVar1); uVar3 = *puVar1; uStack_3b0 = 0; if (uVar3 == 0) { @@ -464257,7 +464257,7 @@ void FUN_00743550(void) uStack_8 = 0xffffffff; _Init_thread_footer(&DAT_00c8108c); } - FUN_00428940(puVar1); + Seeds::Init3(puVar1); uVar3 = *puVar1; uStack_3b0 = 0; if (uVar3 == 0) { @@ -464295,7 +464295,7 @@ void FUN_00743550(void) uStack_8 = 0xffffffff; _Init_thread_footer(&DAT_00c8108c); } - FUN_00428940(puVar1); + Seeds::Init3(puVar1); uVar3 = *puVar1; uStack_3b0 = 0; if (uVar3 == 0) { @@ -464376,7 +464376,7 @@ void FUN_00743550(void) uStack_8 = 0xffffffff; _Init_thread_footer(&DAT_00c8108c); } - FUN_00428940(puVar1); + Seeds::Init3(puVar1); uVar3 = *puVar1; uStack_3c8 = 0; if (uVar3 == 0) { @@ -464419,7 +464419,7 @@ void FUN_00743550(void) uStack_8 = 0xffffffff; _Init_thread_footer(&DAT_00c8108c); } - FUN_00428940(puVar1); + Seeds::Init3(puVar1); uVar3 = *puVar1; uStack_3b0 = 0; if (uVar3 == 0) { @@ -464490,7 +464490,7 @@ void FUN_007435c8(void) uVar7 = uVar7 >> ((byte)unaff_ESI[1] & 0x1f) ^ uVar7; uVar7 = uVar7 << ((byte)unaff_ESI[2] & 0x1f) ^ uVar7; *unaff_ESI = uVar7 >> ((byte)unaff_ESI[3] & 0x1f) ^ uVar7; - FUN_009adaf0(); + RoomDescriptor::Init(); *(undefined4 *)(unaff_EBP + -4) = 0; if ((uint)((*(int *)(unaff_EBP + -0x3c) - *(int *)(unaff_EBP + -0x44)) / 0x48) < 7) { FUN_007529c0(); @@ -464747,7 +464747,7 @@ void FUN_007435c8(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar7 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3ac) = 0; if (uVar7 == 0) { @@ -464786,7 +464786,7 @@ void FUN_007435c8(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar7 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3ac) = 0; if (uVar7 == 0) { @@ -464825,7 +464825,7 @@ void FUN_007435c8(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar7 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3ac) = 0; if (uVar7 == 0) { @@ -464918,7 +464918,7 @@ void FUN_007435c8(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar7 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3c4) = 0; if (uVar7 == 0) { @@ -464962,7 +464962,7 @@ void FUN_007435c8(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar7 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3ac) = 0; if (uVar7 == 0) { @@ -465258,7 +465258,7 @@ void FUN_0074371e(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar7 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3ac) = 0; if (uVar7 == 0) { @@ -465297,7 +465297,7 @@ void FUN_0074371e(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar7 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3ac) = 0; if (uVar7 == 0) { @@ -465336,7 +465336,7 @@ void FUN_0074371e(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar7 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3ac) = 0; if (uVar7 == 0) { @@ -465429,7 +465429,7 @@ void FUN_0074371e(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar7 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3c4) = 0; if (uVar7 == 0) { @@ -465473,7 +465473,7 @@ void FUN_0074371e(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar7 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3ac) = 0; if (uVar7 == 0) { @@ -465755,7 +465755,7 @@ void FUN_0074378b(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar7 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3ac) = 0; if (uVar7 == 0) { @@ -465794,7 +465794,7 @@ void FUN_0074378b(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar7 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3ac) = 0; if (uVar7 == 0) { @@ -465833,7 +465833,7 @@ void FUN_0074378b(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar7 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3ac) = 0; if (uVar7 == 0) { @@ -465926,7 +465926,7 @@ void FUN_0074378b(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar7 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3c4) = 0; if (uVar7 == 0) { @@ -465970,7 +465970,7 @@ void FUN_0074378b(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar7 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3ac) = 0; if (uVar7 == 0) { @@ -466188,7 +466188,7 @@ void FUN_0074399a(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar8 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3ac) = 0; if (uVar8 == 0) { @@ -466227,7 +466227,7 @@ void FUN_0074399a(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar8 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3ac) = 0; if (uVar8 == 0) { @@ -466266,7 +466266,7 @@ void FUN_0074399a(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar8 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3ac) = 0; if (uVar8 == 0) { @@ -466359,7 +466359,7 @@ void FUN_0074399a(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar8 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3c4) = 0; if (uVar8 == 0) { @@ -466403,7 +466403,7 @@ void FUN_0074399a(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar8 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3ac) = 0; if (uVar8 == 0) { @@ -466608,7 +466608,7 @@ void FUN_00743a03(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar8 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3ac) = 0; if (uVar8 == 0) { @@ -466647,7 +466647,7 @@ void FUN_00743a03(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar8 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3ac) = 0; if (uVar8 == 0) { @@ -466686,7 +466686,7 @@ void FUN_00743a03(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar8 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3ac) = 0; if (uVar8 == 0) { @@ -466779,7 +466779,7 @@ void FUN_00743a03(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar8 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3c4) = 0; if (uVar8 == 0) { @@ -466823,7 +466823,7 @@ void FUN_00743a03(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar8 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3ac) = 0; if (uVar8 == 0) { @@ -467015,7 +467015,7 @@ void FUN_00743a6c(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar8 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3ac) = 0; if (uVar8 == 0) { @@ -467054,7 +467054,7 @@ void FUN_00743a6c(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar8 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3ac) = 0; if (uVar8 == 0) { @@ -467093,7 +467093,7 @@ void FUN_00743a6c(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar8 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3ac) = 0; if (uVar8 == 0) { @@ -467186,7 +467186,7 @@ void FUN_00743a6c(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar8 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3c4) = 0; if (uVar8 == 0) { @@ -467230,7 +467230,7 @@ void FUN_00743a6c(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar8 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3ac) = 0; if (uVar8 == 0) { @@ -467402,7 +467402,7 @@ void FUN_00743af9(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar8 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3ac) = 0; if (uVar8 == 0) { @@ -467441,7 +467441,7 @@ void FUN_00743af9(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar8 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3ac) = 0; if (uVar8 == 0) { @@ -467480,7 +467480,7 @@ void FUN_00743af9(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar8 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3ac) = 0; if (uVar8 == 0) { @@ -467573,7 +467573,7 @@ void FUN_00743af9(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar8 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3c4) = 0; if (uVar8 == 0) { @@ -467617,7 +467617,7 @@ void FUN_00743af9(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar8 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3ac) = 0; if (uVar8 == 0) { @@ -467778,7 +467778,7 @@ void FUN_00743b49(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar8 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3ac) = 0; if (uVar8 == 0) { @@ -467817,7 +467817,7 @@ void FUN_00743b49(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar8 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3ac) = 0; if (uVar8 == 0) { @@ -467856,7 +467856,7 @@ void FUN_00743b49(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar8 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3ac) = 0; if (uVar8 == 0) { @@ -467949,7 +467949,7 @@ void FUN_00743b49(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar8 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3c4) = 0; if (uVar8 == 0) { @@ -467993,7 +467993,7 @@ void FUN_00743b49(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar8 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3ac) = 0; if (uVar8 == 0) { @@ -468141,7 +468141,7 @@ void FUN_00743ba3(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar8 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3ac) = 0; if (uVar8 == 0) { @@ -468180,7 +468180,7 @@ void FUN_00743ba3(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar8 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3ac) = 0; if (uVar8 == 0) { @@ -468219,7 +468219,7 @@ void FUN_00743ba3(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar8 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3ac) = 0; if (uVar8 == 0) { @@ -468312,7 +468312,7 @@ void FUN_00743ba3(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar8 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3c4) = 0; if (uVar8 == 0) { @@ -468356,7 +468356,7 @@ void FUN_00743ba3(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar8 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3ac) = 0; if (uVar8 == 0) { @@ -468490,7 +468490,7 @@ void FUN_00743bf8(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar8 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3ac) = 0; if (uVar8 == 0) { @@ -468529,7 +468529,7 @@ void FUN_00743bf8(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar8 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3ac) = 0; if (uVar8 == 0) { @@ -468568,7 +468568,7 @@ void FUN_00743bf8(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar8 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3ac) = 0; if (uVar8 == 0) { @@ -468661,7 +468661,7 @@ void FUN_00743bf8(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar8 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3c4) = 0; if (uVar8 == 0) { @@ -468705,7 +468705,7 @@ void FUN_00743bf8(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar8 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3ac) = 0; if (uVar8 == 0) { @@ -468827,7 +468827,7 @@ void FUN_00743c43(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar8 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3ac) = 0; if (uVar8 == 0) { @@ -468866,7 +468866,7 @@ void FUN_00743c43(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar8 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3ac) = 0; if (uVar8 == 0) { @@ -468905,7 +468905,7 @@ void FUN_00743c43(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar8 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3ac) = 0; if (uVar8 == 0) { @@ -468998,7 +468998,7 @@ void FUN_00743c43(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar8 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3c4) = 0; if (uVar8 == 0) { @@ -469042,7 +469042,7 @@ void FUN_00743c43(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar8 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3ac) = 0; if (uVar8 == 0) { @@ -469153,7 +469153,7 @@ void FUN_00743c93(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar8 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3ac) = 0; if (uVar8 == 0) { @@ -469192,7 +469192,7 @@ void FUN_00743c93(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar8 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3ac) = 0; if (uVar8 == 0) { @@ -469231,7 +469231,7 @@ void FUN_00743c93(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar8 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3ac) = 0; if (uVar8 == 0) { @@ -469324,7 +469324,7 @@ void FUN_00743c93(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar8 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3c4) = 0; if (uVar8 == 0) { @@ -469368,7 +469368,7 @@ void FUN_00743c93(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar8 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3ac) = 0; if (uVar8 == 0) { @@ -469466,7 +469466,7 @@ void FUN_00743ced(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar8 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3ac) = 0; if (uVar8 == 0) { @@ -469505,7 +469505,7 @@ void FUN_00743ced(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar8 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3ac) = 0; if (uVar8 == 0) { @@ -469544,7 +469544,7 @@ void FUN_00743ced(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar8 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3ac) = 0; if (uVar8 == 0) { @@ -469637,7 +469637,7 @@ void FUN_00743ced(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar8 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3c4) = 0; if (uVar8 == 0) { @@ -469681,7 +469681,7 @@ void FUN_00743ced(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar8 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3ac) = 0; if (uVar8 == 0) { @@ -469771,7 +469771,7 @@ void FUN_00743d48(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar8 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3ac) = 0; if (uVar8 == 0) { @@ -469810,7 +469810,7 @@ void FUN_00743d48(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar8 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3ac) = 0; if (uVar8 == 0) { @@ -469849,7 +469849,7 @@ void FUN_00743d48(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar8 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3ac) = 0; if (uVar8 == 0) { @@ -469942,7 +469942,7 @@ void FUN_00743d48(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar8 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3c4) = 0; if (uVar8 == 0) { @@ -469986,7 +469986,7 @@ void FUN_00743d48(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar8 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3ac) = 0; if (uVar8 == 0) { @@ -470048,7 +470048,7 @@ void FUN_00743d94(void) uVar7 = uVar7 >> ((byte)unaff_ESI[1] & 0x1f) ^ uVar7; uVar7 = uVar7 << ((byte)unaff_ESI[2] & 0x1f) ^ uVar7; *unaff_ESI = uVar7 >> ((byte)unaff_ESI[3] & 0x1f) ^ uVar7; - FUN_009adaf0(); + RoomDescriptor::Init(); *(undefined4 *)(unaff_EBP + -4) = 1; if ((uint)((*(int *)(unaff_EBP + -0x3c) - *(int *)(unaff_EBP + -0x44)) / 0x48) < 3) { FUN_007529c0(); @@ -470130,7 +470130,7 @@ void FUN_00743d94(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar7 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3ac) = 0; if (uVar7 == 0) { @@ -470169,7 +470169,7 @@ void FUN_00743d94(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar7 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3ac) = 0; if (uVar7 == 0) { @@ -470208,7 +470208,7 @@ void FUN_00743d94(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar7 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3ac) = 0; if (uVar7 == 0) { @@ -470301,7 +470301,7 @@ void FUN_00743d94(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar7 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3c4) = 0; if (uVar7 == 0) { @@ -470345,7 +470345,7 @@ void FUN_00743d94(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar7 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3ac) = 0; if (uVar7 == 0) { @@ -470468,7 +470468,7 @@ void FUN_00743e72(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar7 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3ac) = 0; if (uVar7 == 0) { @@ -470507,7 +470507,7 @@ void FUN_00743e72(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar7 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3ac) = 0; if (uVar7 == 0) { @@ -470546,7 +470546,7 @@ void FUN_00743e72(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar7 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3ac) = 0; if (uVar7 == 0) { @@ -470639,7 +470639,7 @@ void FUN_00743e72(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar7 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3c4) = 0; if (uVar7 == 0) { @@ -470683,7 +470683,7 @@ void FUN_00743e72(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar7 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3ac) = 0; if (uVar7 == 0) { @@ -470784,7 +470784,7 @@ void FUN_00743f23(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar7 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3ac) = 0; if (uVar7 == 0) { @@ -470823,7 +470823,7 @@ void FUN_00743f23(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar7 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3ac) = 0; if (uVar7 == 0) { @@ -470862,7 +470862,7 @@ void FUN_00743f23(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar7 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3ac) = 0; if (uVar7 == 0) { @@ -470955,7 +470955,7 @@ void FUN_00743f23(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar7 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3c4) = 0; if (uVar7 == 0) { @@ -470999,7 +470999,7 @@ void FUN_00743f23(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar7 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3ac) = 0; if (uVar7 == 0) { @@ -471089,7 +471089,7 @@ void FUN_00743f73(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar7 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3ac) = 0; if (uVar7 == 0) { @@ -471128,7 +471128,7 @@ void FUN_00743f73(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar7 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3ac) = 0; if (uVar7 == 0) { @@ -471167,7 +471167,7 @@ void FUN_00743f73(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar7 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3ac) = 0; if (uVar7 == 0) { @@ -471260,7 +471260,7 @@ void FUN_00743f73(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar7 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3c4) = 0; if (uVar7 == 0) { @@ -471304,7 +471304,7 @@ void FUN_00743f73(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar7 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3ac) = 0; if (uVar7 == 0) { @@ -471383,7 +471383,7 @@ void FUN_00743fc3(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar7 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3ac) = 0; if (uVar7 == 0) { @@ -471422,7 +471422,7 @@ void FUN_00743fc3(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar7 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3ac) = 0; if (uVar7 == 0) { @@ -471461,7 +471461,7 @@ void FUN_00743fc3(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar7 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3ac) = 0; if (uVar7 == 0) { @@ -471554,7 +471554,7 @@ void FUN_00743fc3(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar7 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3c4) = 0; if (uVar7 == 0) { @@ -471598,7 +471598,7 @@ void FUN_00743fc3(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar7 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3ac) = 0; if (uVar7 == 0) { @@ -471690,7 +471690,7 @@ void FUN_0074406b(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar7 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3ac) = 0; if (uVar7 == 0) { @@ -471729,7 +471729,7 @@ void FUN_0074406b(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar7 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3ac) = 0; if (uVar7 == 0) { @@ -471822,7 +471822,7 @@ void FUN_0074406b(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar7 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3c4) = 0; if (uVar7 == 0) { @@ -471866,7 +471866,7 @@ void FUN_0074406b(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar7 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3ac) = 0; if (uVar7 == 0) { @@ -471958,7 +471958,7 @@ void FUN_0074413a(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar7 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3ac) = 0; if (uVar7 == 0) { @@ -472051,7 +472051,7 @@ void FUN_0074413a(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar7 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3c4) = 0; if (uVar7 == 0) { @@ -472095,7 +472095,7 @@ void FUN_0074413a(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar7 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3ac) = 0; if (uVar7 == 0) { @@ -472241,7 +472241,7 @@ void FUN_00744209(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar8 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3c4) = 0; if (uVar8 == 0) { @@ -472285,7 +472285,7 @@ void FUN_00744209(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar8 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3ac) = 0; if (uVar8 == 0) { @@ -472377,7 +472377,7 @@ void FUN_00744348(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar7 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3c4) = 0; if (uVar7 == 0) { @@ -472421,7 +472421,7 @@ void FUN_00744348(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar7 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3ac) = 0; if (uVar7 == 0) { @@ -472514,7 +472514,7 @@ void FUN_00744466(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar5 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3ac) = 0; if (uVar5 == 0) { @@ -472578,7 +472578,7 @@ void FUN_00744500(void) *(undefined4 *)(unaff_EBP + -4) = 0xffffffff; _Init_thread_footer(); } - FUN_00428940(); + Seeds::Init3(); uVar4 = *unaff_ESI; *(undefined4 *)(unaff_EBP + -0x3ac) = 0; if (uVar4 == 0) { @@ -472717,7 +472717,7 @@ void Level::Init(undefined4 param_1) FUN_004d7530(*(int *)&in_ECX[1].field_0x70,piVar8); } else { - FUN_004d3130(piVar8); + EntitySaveState::copy(piVar8); *(int *)&in_ECX[1].field_0x70 = *(int *)&in_ECX[1].field_0x70 + 0x78; } } @@ -472779,7 +472779,7 @@ void Level::Init(undefined4 param_1) *(uint *)&in_ECX->field_0x182d4 = uVar6 >> ((byte)*(undefined4 *)&in_ECX->field_0x182e0 & 0x1f) ^ uVar6; if (*(int *)(iVar7 + 0x26584) == 0x2c) { - FUN_0074f820(); + Level::InitStageSeeds(); } reset_room_list(in_ECX,param_1); if ((char)param_1 != '\0') { @@ -472846,7 +472846,7 @@ void FUN_00745b70(void) local_20[3] = 0x1d; local_20[1] = 3; local_20[2] = 7; - FUN_00428940(local_20); + Seeds::Init3(local_20); uVar1 = RoomConfig::GetRoomByStageTypeAndVariant((RoomConfig *)(DAT_00c71678 + 0x18910),0,1,2,0) ; puVar2[4] = uVar1; @@ -473032,7 +473032,7 @@ LAB_00745fb5: } else { std::string::string(&local_3c); - puVar5 = (undefined4 *)FUN_00682b90(); + puVar5 = (undefined4 *)string_scramble_seeded(); if (&local_3c == puVar5) { local_80 = local_2c; } @@ -473229,7 +473229,7 @@ int * Level::GetCurseName(int *param_1) local_40 = local_40 + 1; uVar7 = Seeds::GetPreventedCurses(); if (((uVar6 | uVar10 | uVar1) & ~uVar7 & 1 << ((byte)iVar2 & 0x1f)) != 0) { - piVar8 = (int *)FUN_0082c600(local_3c,local_40); + piVar8 = (int *)Level::GetCurseNameByIdx(local_3c,local_40); param_1 = local_48; if (local_48 != piVar8) { uVar5 = local_48[5]; @@ -473290,7 +473290,7 @@ LAB_0074644d: if (((*(char *)(local_54 + 0xd) == '\0') && (*(int *)(local_54 + 0x10) < 10)) && (local_54 != *(int *)(iVar2 + 0x1bbd8))) { std::string::string(param_1); - piVar8 = (int *)FUN_00682b90(); + piVar8 = (int *)string_scramble_seeded(); if (param_1 != piVar8) { uVar5 = param_1[5]; if (0xf < uVar5) { @@ -473375,7 +473375,7 @@ void Level::ShowName(byte param_1) GetCurseName(local_30); local_8 = (undefined4 ***)CONCAT31(local_8._1_3_,1); if (1 < *(int *)(DAT_00c71678 + 0x26614)) { - pcVar3 = (char *)FUN_009586f0(DAT_00c7169c + 0x4a920,"#Online/DEATHMATCH_NAME"); + pcVar3 = (char *)string_table_translate(DAT_00c7169c + 0x4a920,"#Online/DEATHMATCH_NAME"); pcVar6 = pcVar3; do { cVar1 = *pcVar6; @@ -473691,14 +473691,14 @@ void Level::SetNextStage(void) if ((iVar16 == 4) || (bVar7 = false, iVar16 == 5)) { bVar7 = true; } - if ((in_ECX->_stage == 2) || ((in_ECX->_stage == 1 && (iVar16 = FUN_0071f600(2), iVar16 != 0)))) + if ((in_ECX->_stage == 2) || ((in_ECX->_stage == 1 && (iVar16 = Level::filter_curses(2), iVar16 != 0)))) { bVar4 = true; } else { bVar4 = false; } - if ((in_ECX->_stage == 4) || ((in_ECX->_stage == 3 && (iVar16 = FUN_0071f600(2), iVar16 != 0)))) + if ((in_ECX->_stage == 4) || ((in_ECX->_stage == 3 && (iVar16 = Level::filter_curses(2), iVar16 != 0)))) { bVar5 = true; } @@ -473708,7 +473708,7 @@ void Level::SetNextStage(void) if ((bVar4) || (bVar6 = false, bVar5)) { bVar6 = true; } - if ((in_ECX->_stage == 6) || ((in_ECX->_stage == 5 && (iVar16 = FUN_0071f600(2), iVar16 != 0)))) + if ((in_ECX->_stage == 6) || ((in_ECX->_stage == 5 && (iVar16 = Level::filter_curses(2), iVar16 != 0)))) { bVar9 = true; } @@ -474173,7 +474173,7 @@ void __thiscall Level::RestoreGameState(Level *this,int param_2) *(uint *)&this->field_0x182d4 = uVar15 >> ((byte)*(undefined4 *)&this->field_0x182e0 & 0x1f) ^ uVar15; if (DAT_00c71678->_challenge == 0x2c) { - FUN_0074f820(); + Level::InitStageSeeds(); } reset_room_list(this,0); puVar16 = (undefined4 *)(param_2 + 0x19530); @@ -474191,7 +474191,7 @@ void __thiscall Level::RestoreGameState(Level *this,int param_2) iVar14 = param_2 + 0x17c68; local_1c = param_2 + 0x1a0; do { - FUN_006f8d60(local_1c); + GameState::copy_room_list(local_1c); uVar10 = FUN_007474a0(iVar14,fStack_10); *puVar16 = uVar10; puVar16 = puVar16 + 0x2e; @@ -474255,8 +474255,8 @@ void __thiscall Level::RestoreGameState(Level *this,int param_2) this->_currentRoomIndex = iVar14; this->_leaveDoor = -1; generate_greed(); - FUN_0082ee40(fStack_10,0xffffffff,0xf,0,0xffffffff); - FUN_008318a0(); + log_room_transition(fStack_10,0xffffffff,0xf,0,0xffffffff); + Game::update_pending_pickup_animations(); iVar14 = GetRoomByIdx((Level *)DAT_00c71678,DAT_00c71678->_startingRoomIdx,0xffffffff); pGVar8 = DAT_00c71678; *(uint *)(iVar14 + 0x44) = *(uint *)(iVar14 + 0x44) & 0xfffffffe; @@ -474266,8 +474266,8 @@ void __thiscall Level::RestoreGameState(Level *this,int param_2) LAB_00747a71: generate_greed(); Room::PlayMusic(); - FUN_0098b5e0(); - FUN_0098b5e0(); + Minimap::refresh_room_icons(); + Minimap::refresh_room_icons(); pGVar8 = DAT_00c71678; if ((DAT_00c71678->_hud)._coopMenuSprite._animState._previouslyTriggeredEvents != 2) { (DAT_00c71678->_hud)._coopMenuSprite._animState._previouslyTriggeredEvents = 1; @@ -474505,7 +474505,7 @@ void FUN_00747e10(int param_1) if (puVar10[4] != 0) { Level::write_room_config(puVar10[4],local_2c,param_1 + 0x1951c); } - FUN_006f8d60(puVar10); + GameState::copy_room_list(puVar10); puVar10 = puVar10 + 0x2e; *puVar9 = 0; local_2c = local_2c + 0xc; @@ -474782,7 +474782,7 @@ undefined4 Level::QueryRoomTypeIndex(int param_1,uint param_2,undefined4 param_3 } while ((int)param_2 < in_ECX->_roomCount); } local_18[1] = 0; - FUN_005cc070(0,piVar3,uVar1); + RNG::Shuffle(0,piVar3,uVar1); if ((int)piVar3 >> 2 == 0) { uVar4 = 0xffffffff; } @@ -474791,7 +474791,7 @@ undefined4 Level::QueryRoomTypeIndex(int param_1,uint param_2,undefined4 param_3 } } else { - FUN_005cc070(0,piVar3,uVar1); + RNG::Shuffle(0,piVar3,uVar1); uVar1 = 0; do { if ((uint)(*(int *)(&in_ECX->field_0x54 + *(int *)(uVar1 * 4) * 0xb8) != 0) == @@ -475160,7 +475160,7 @@ void Level::RemoveCurses(uint param_1) *(undefined4 *)(iVar2 + 0x26514) = 4; } if ((uVar6 & 0x40) != 0) { - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)(in_ECX + 0x18300) + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)(in_ECX + 0x18300) + 0x1218)); local_8 = 0; uVar6 = 0; if (local_1c != 0) { @@ -475299,12 +475299,12 @@ undefined4 FUN_00748d40(undefined4 param_1) uVar4 = 0xffffffff; } LAB_00748fd9: - FUN_00708e20(); + std::vector::_Tidy(); FID_conflict__Erase_tree_>_> (local_4c,(fuzzer_allocator_> *)local_4c, *(_Tree_node **)(local_4c[0] + 4)); operator_delete(local_4c[0],0x14); - FUN_00708e20(); + std::vector::_Tidy(); FUN_00708f90(); ExceptionList = local_10; return uVar4; @@ -475498,12 +475498,12 @@ uint FUN_00749270(undefined4 param_1) FUN_00752e80(local_ec); FUN_007387d0(puVar27); FUN_007387d0(local_c8); - FUN_00708e20(); + std::vector::_Tidy(); FID_conflict__Erase_tree_>_> (local_48,(fuzzer_allocator_> *)local_48, *(_Tree_node **)(local_48[0] + 4)); operator_delete(local_48[0],0x14); - FUN_00708e20(); + std::vector::_Tidy(); FUN_00708f90(); puVar17 = puVar24 + 7; if ((puVar24 != puVar27) && (puVar17 != puVar24 + 0xf)) { @@ -476097,7 +476097,7 @@ int * __thiscall Level::InitializeDevilAngelRoom(Level *this,uint param_2,uint p if ((~uVar10 & (uVar9 | uVar17 | uVar8) & 2) == 0) { iVar11 = iVar15; } - if ((((iVar11 == 8) && (cVar5 = FUN_0074b830(10,bVar2), cVar5 != '\0')) && + if ((((iVar11 == 8) && (cVar5 = Level::IsStageWithinEnd(10,bVar2), cVar5 != '\0')) && (*(char *)((int)DAT_00c7169c + 0x6e) == '\0')) && (((DAT_00c7169c[2] != 2 || (DAT_00c71678 == (int *)0x0)) || ((DAT_00c71678[0x998c] == 0 && (*(char *)((int)DAT_00c71678 + 0x26589) == '\0')))))) { @@ -476132,7 +476132,7 @@ LAB_00749b89: if (*(uint *)&this->field_0x1830c < 3) { puVar16 = (undefined4 *)&this->field_0x16c7c; } - FUN_00428940(puVar1); + Seeds::Init3(puVar1); piVar6 = (int *)0xa; do { piVar13 = piVar6; @@ -476326,8 +476326,8 @@ void Level::UncoverHiddenDoor(undefined4 param_1,int param_2) if ((int)uVar5 < 0) { uVar5 = (uVar5 - 1 | 0xfffffffc) + 1; } - FUN_0073da40(uVar1,uVar5,extraout_ECX); - iVar3 = FUN_007f20e0(*(byte *)(*(int *)(iVar2 + 0x10) + 0x47) + 2, + Level::GetTargetSlot(uVar1,uVar5,extraout_ECX); + iVar3 = room_shape_get_door_grid_index(*(byte *)(*(int *)(iVar2 + 0x10) + 0x47) + 2, *(undefined4 *)(*(int *)(iVar2 + 0x10) + 0x48)); piVar4 = (int *)(iVar3 * 0x20 + *(int *)(iVar2 + 0x68)); if (*piVar4 == 0) { @@ -476413,7 +476413,7 @@ void Level::AddCurse(uint param_1,char param_2) uVar5 = uVar4 + 1; if ((param_1 & 1 << ((byte)uVar4 & 0x1f)) != 0) { in_stack_ffffff94 = local_54; - ppppuVar3 = (undefined4 ****)FUN_0082c600(in_stack_ffffff94,uVar5); + ppppuVar3 = (undefined4 ****)Level::GetCurseNameByIdx(in_stack_ffffff94,uVar5); if (&local_3c != (undefined4 *****)ppppuVar3) { local_3c = (undefined4 ****)*ppppuVar3; pppuStack_38 = ppppuVar3[1]; @@ -476535,7 +476535,7 @@ void FUN_0074a500(void) uVar3 = uVar3 << ((byte)*(undefined4 *)(in_ECX + 0x182dc) & 0x1f) ^ uVar3; uVar3 = uVar3 >> ((byte)*(undefined4 *)(in_ECX + 0x182e0) & 0x1f) ^ uVar3; *puVar1 = uVar3; - FUN_009adaf0(uVar3); + RoomDescriptor::Init(uVar3); local_8 = 0; if ((uint)((int)(local_3ac._876_4_ - local_3ac._868_4_) / 0x48) < 5) { FUN_007529c0(5); @@ -476662,7 +476662,7 @@ void FUN_0074a500(void) local_8 = (uint)local_8._1_3_ << 8; _Init_thread_footer(&DAT_00c8108c); } - FUN_00428940(puVar1); + Seeds::Init3(puVar1); uVar3 = *puVar1; local_3b4 = 0; if (uVar3 == 0) { @@ -476697,7 +476697,7 @@ void FUN_0074a500(void) local_8 = (uint)local_8._1_3_ << 8; _Init_thread_footer(&DAT_00c8108c); } - FUN_00428940(puVar1); + Seeds::Init3(puVar1); uVar3 = *puVar1; local_3b4 = 0; if (uVar3 == 0) { @@ -476733,7 +476733,7 @@ void FUN_0074a500(void) local_8 = (uint)local_8._1_3_ << 8; _Init_thread_footer(&DAT_00c8108c); } - FUN_00428940(puVar1); + Seeds::Init3(puVar1); uVar3 = *puVar1; local_3b4 = 0; if (uVar3 == 0) { @@ -476769,7 +476769,7 @@ void FUN_0074a500(void) local_8 = (uint)local_8._1_3_ << 8; _Init_thread_footer(&DAT_00c8108c); } - FUN_00428940(puVar1); + Seeds::Init3(puVar1); uVar3 = *puVar1; local_3b4 = 0; if (uVar3 == 0) { @@ -476804,7 +476804,7 @@ void FUN_0074a500(void) local_8 = (uint)local_8._1_3_ << 8; _Init_thread_footer(&DAT_00c8108c); } - FUN_00428940(puVar1); + Seeds::Init3(puVar1); uVar3 = *puVar1; local_3b4 = 0; if (uVar3 == 0) { @@ -476885,7 +476885,7 @@ void FUN_0074a500(void) local_8 = (uint)local_8._1_3_ << 8; _Init_thread_footer(&DAT_00c8108c); } - FUN_00428940(puVar1); + Seeds::Init3(puVar1); uVar3 = *puVar1; local_3b4 = 0; if (uVar3 == 0) { @@ -476927,7 +476927,7 @@ void FUN_0074a500(void) local_8 = (uint)local_8._1_3_ << 8; _Init_thread_footer(&DAT_00c8108c); } - FUN_00428940(puVar1); + Seeds::Init3(puVar1); uVar3 = *puVar1; local_3b4 = 0; if (uVar3 == 0) { @@ -477027,7 +477027,7 @@ undefined4 FUN_0074b5d0(void) if (iVar2 < 8) { return 1; } - if ((iVar2 == 8) && (cVar5 = FUN_0074b830(10,0), cVar5 != '\0')) { + if ((iVar2 == 8) && (cVar5 = Level::IsStageWithinEnd(10,0), cVar5 != '\0')) { return 1; } } @@ -477069,9 +477069,9 @@ LAB_0074b760: } if (((iVar4 != 8) || (cVar1 = IsAltPath(), cVar1 == '\0')) && ((((iVar2 = Game::GetChallengeParams(), iVar4 != 6 && - ((iVar4 != 5 || (iVar3 = FUN_0071f600(2), iVar3 == 0)))) || + ((iVar4 != 5 || (iVar3 = Level::filter_curses(2), iVar3 == 0)))) || ((*(int *)(iVar2 + 0x80) != 3 || (cVar1 = Game::GetStateFlag(0x30), cVar1 != '\0')))) && - ((cVar1 = FUN_006dae20(), cVar1 == '\0' || (iVar4 < *(int *)(iVar2 + 0x40))))))) { + ((cVar1 = Game::IsChallengeOrDaily(), cVar1 == '\0' || (iVar4 < *(int *)(iVar2 + 0x40))))))) { return 1; } } @@ -477079,9 +477079,9 @@ LAB_0074b760: } -//@@ 0074b830 FUN_0074b830 +//@@ 0074b830 Level::IsStageWithinEnd -bool FUN_0074b830(int param_1,uint param_2) +bool Level::IsStageWithinEnd(int param_1,uint param_2) { int iVar1; @@ -477222,9 +477222,9 @@ int __thiscall Level::IsAltPath(Level *this) } -//@@ 0074bae0 FUN_0074bae0 +//@@ 0074bae0 _RoomDescriptor::GetShapeGridCount -undefined4 FUN_0074bae0(void) +undefined4 _RoomDescriptor::GetShapeGridCount(void) { bool bVar1; @@ -477328,7 +477328,7 @@ undefined4 * FUN_0074bba0(int param_1) puVar3 = (undefined4 *)(in_ECX + 0x172f4); } if (puVar3[4] == 0) { - FUN_00428940(in_ECX + 0x182e4); + Seeds::Init3(in_ECX + 0x182e4); iVar1 = DAT_00c71678; if (param_1 == 4) { param_1 = 0; @@ -477393,13 +477393,13 @@ undefined4 * FUN_0074bce0(void) } uVar1 = RoomDescriptor::constructor(&local_cc); FUN_007387d0(uVar1); - FUN_00708e20(); + std::vector::_Tidy(); FID_conflict__Erase_tree_>_> (&local_cc.field_0x80, (fuzzer_allocator_> *)&local_cc.field_0x80, *(_Tree_node **)(local_cc._128_4_ + 4)); operator_delete(local_cc._128_4_,0x14); - FUN_00708e20(); + std::vector::_Tidy(); FUN_00708f90(); puVar3[2] = 0xfffffff4; if (puVar3[4] == 0) { @@ -477407,7 +477407,7 @@ undefined4 * FUN_0074bce0(void) local_e0[3] = 0x1a; local_e0[1] = 3; local_e0[2] = 3; - FUN_00428940(local_e0); + Seeds::Init3(local_e0); local_e0[4] = 0; if (local_e0[0] == 0) { /* WARNING: Subroutine does not return */ @@ -477494,7 +477494,7 @@ void FUN_0074beb0(void) puVar5 = in_ECX + 0x5d75; } if (puVar5[4] == 0) { - FUN_00428940(local_38 + 4); + Seeds::Init3(local_38 + 4); local_18 = (RoomConfig *)(DAT_00c71678 + 0x18910); local_14 = 0; if (local_38[4] == 0) { @@ -477525,7 +477525,7 @@ void FUN_0074beb0(void) puVar5 = &DAT_00c81090; } if (puVar5[4] == 0) { - FUN_00428940(local_38); + Seeds::Init3(local_38); local_18 = (RoomConfig *)0x0; if (local_38[0] == 0) { /* WARNING: Subroutine does not return */ @@ -477723,11 +477723,11 @@ LAB_0074c1e9: } -//@@ 0074c540 FUN_0074c540 +//@@ 0074c540 Level::GetNeighborRoomIdx /* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */ -int FUN_0074c540(int param_1,uint param_2) +int Level::GetNeighborRoomIdx(int param_1,uint param_2) { int iVar1; @@ -477915,7 +477915,7 @@ undefined4 FUN_0074c9e0(undefined4 param_1,int param_2,int *param_3,uint *param_ int iVar4; uint uVar5; - iVar2 = FUN_0074c540(param_1,param_2); + iVar2 = Level::GetNeighborRoomIdx(param_1,param_2); iVar4 = iVar2 % 0xd; if ((((iVar4 < 0) || (0xc < iVar4)) || (0xc < (uint)(iVar2 / 0xd))) || (piVar3 = (int *)Level::GetRoomByIdx(), piVar3[4] == 0)) { @@ -477957,10 +477957,10 @@ undefined4 FUN_0074c9e0(undefined4 param_1,int param_2,int *param_3,uint *param_ } -//@@ 0074cb50 FUN_0074cb50 +//@@ 0074cb50 Level::get_door_neighbor_room LevelGenerator_Room * -FUN_0074cb50(LevelGenerator_Room *param_1,undefined4 param_2,undefined4 param_3) +Level::get_door_neighbor_room(LevelGenerator_Room *param_1,undefined4 param_2,undefined4 param_3) { bool bVar1; @@ -477975,7 +477975,7 @@ FUN_0074cb50(LevelGenerator_Room *param_1,undefined4 param_2,undefined4 param_3) uint uVar9; undefined4 uVar10; - iVar5 = FUN_0074c540(param_2,param_3); + iVar5 = Level::GetNeighborRoomIdx(param_2,param_3); if (iVar5 == -2) { if ((*(int *)(DAT_00c71678 + 0x26584) != 0x2c) && (cVar4 = Level::IsNextStageAvailable(), cVar4 != '\0')) { @@ -477990,7 +477990,7 @@ FUN_0074cb50(LevelGenerator_Room *param_1,undefined4 param_2,undefined4 param_3) bVar2 = true; do { if (!bVar2) goto LAB_0074cd41; - iVar6 = FUN_0074c540(iVar5,uVar8); + iVar6 = Level::GetNeighborRoomIdx(iVar5,uVar8); if (((uint)(iVar6 % 0xd) < 0xd) && ((uint)(iVar6 / 0xd) < 0xd)) { piVar7 = (int *)Level::GetRoomByIdx(); if (piVar7[4] == 0) goto LAB_0074cce1; @@ -478061,7 +478061,7 @@ undefined4 __thiscall Level::CanSpawnDoorOutline(Level *this,undefined4 param_2, if (((*(uint *)(piVar1[4] + 0x38 + (param_3 >> 5) * 4) & 1 << ((byte)param_3 & 0x1f)) != 0) && ((8 < param_3 + 1 || (*(int *)(*(int *)(DAT_00c71678 + 0x18300) + 0x724 + param_3 * 4) == 0)) )) { - FUN_0074cb50(local_58,local_5c,param_3); + Level::get_door_neighbor_room(local_58,local_5c,param_3); if ((this->_stage == 0xd) && ((local_50 != 3 || (local_4c != 7)))) { FUN_00738260(); return 0; @@ -478224,7 +478224,7 @@ undefined4 Level::MakeRedRoomDoor(int param_1,uint param_2) } local_14 = uVar7; iVar8 = GetRoomByIdx(); - FUN_0074cb50(local_5c,iVar12,uVar14); + Level::get_door_neighbor_room(local_5c,iVar12,uVar14); iVar12 = DAT_00c71678; local_8 = 0; if (local_4c == 0) { @@ -478347,7 +478347,7 @@ LAB_0074d1e2: puVar13 = (undefined4 *)((int)in_ECX + iVar12 + -0xa4); uVar7 = 0; do { - local_60 = FUN_0074c540(*puVar13,uVar7); + local_60 = Level::GetNeighborRoomIdx(*puVar13,uVar7); FUN_0074c9e0(*puVar13,uVar7,&local_64,&local_6c); uVar5 = local_6c; if (-1 < (int)local_64) { @@ -478444,7 +478444,7 @@ LAB_0074d6f3: RoomDescriptor::destructor(&local_d0); puVar6[2] = uVar4; *puVar6 = 0xfffffff0; - FUN_00428940(local_e8); + Seeds::Init3(local_e8); if ((param_3 == 0) || (param_3 == 2)) { if (local_e8[0] == 0) { /* WARNING: Subroutine does not return */ @@ -478545,12 +478545,12 @@ bool __thiscall Level::TryInitializeExtraBossRoom(Level *this,undefined4 param_2 if (puVar3[4] == 0) { local_18 = this->_stage; local_14 = this->_stageType; - cVar1 = FUN_007523e0(&local_18,&local_14); + cVar1 = Level::boss_count_adjust(&local_18,&local_14); if (cVar1 != '\0') { local_28 = param_2; local_1c = 6; local_24 = 0xb00000001; - FUN_00428940(&local_28); + Seeds::Init3(&local_28); FUN_00422830(local_18,local_14,DAT_00c71678 + 0x1af70); RNG::Next(); iVar2 = FUN_00739080(); @@ -478582,9 +478582,9 @@ uint FUN_0074d8d0(uint *param_1) } -//@@ 0074d920 FUN_0074d920 +//@@ 0074d920 Level::update_treasure_room_doors_for_trinket -void FUN_0074d920(void) +void Level::update_treasure_room_doors_for_trinket(void) { int iVar1; @@ -478863,7 +478863,7 @@ void FUN_0074de30(void) uVar3 = uVar3 << ((byte)*(undefined4 *)(in_ECX + 0x182dc) & 0x1f) ^ uVar3; uVar3 = uVar3 >> ((byte)*(undefined4 *)(in_ECX + 0x182e0) & 0x1f) ^ uVar3; *puVar1 = uVar3; - FUN_009adaf0(uVar3); + RoomDescriptor::Init(uVar3); local_8 = 0; if ((uint)((int)(local_3ac._876_4_ - local_3ac._868_4_) / 0x48) < 6) { FUN_007529c0(6); @@ -479023,7 +479023,7 @@ void FUN_0074de30(void) local_8 = (uint)local_8._1_3_ << 8; _Init_thread_footer(&DAT_00c8108c); } - FUN_00428940(puVar1); + Seeds::Init3(puVar1); uVar3 = *puVar1; local_3b4 = 0; if (uVar3 == 0) { @@ -479059,7 +479059,7 @@ void FUN_0074de30(void) local_8 = (uint)local_8._1_3_ << 8; _Init_thread_footer(&DAT_00c8108c); } - FUN_00428940(puVar1); + Seeds::Init3(puVar1); uVar3 = *puVar1; local_3b4 = 0; if (uVar3 == 0) { @@ -479095,7 +479095,7 @@ void FUN_0074de30(void) local_8 = (uint)local_8._1_3_ << 8; _Init_thread_footer(&DAT_00c8108c); } - FUN_00428940(puVar1); + Seeds::Init3(puVar1); uVar3 = *puVar1; local_3b4 = 0; if (uVar3 == 0) { @@ -479131,7 +479131,7 @@ void FUN_0074de30(void) local_8 = (uint)local_8._1_3_ << 8; _Init_thread_footer(&DAT_00c8108c); } - FUN_00428940(puVar1); + Seeds::Init3(puVar1); uVar4 = RoomConfig::GetRoomByStageTypeAndVariant(pRVar16,0x23,0x10,0x29a,0xffffffff); if ((*(int *)(iVar15 + 0xc) < DAT_00c8108c) && (_Init_thread_header(&DAT_00c8108c), DAT_00c8108c == -1)) { @@ -479653,7 +479653,7 @@ void FUN_0074f360(void) uVar4 = uVar4 << ((byte)*(undefined4 *)(in_ECX + 0x182dc) & 0x1f) ^ uVar4; uVar4 = uVar4 >> ((byte)*(undefined4 *)(in_ECX + 0x182e0) & 0x1f) ^ uVar4; *(uint *)(in_ECX + 0x182d4) = uVar4; - FUN_009adaf0(uVar4); + RoomDescriptor::Init(uVar4); local_8 = 0; if ((uint)((int)(local_3cc._876_4_ - local_3cc._868_4_) / 0x48) < 8) { FUN_007529c0(8); @@ -479801,11 +479801,11 @@ int Level::GetRoomStageType(int param_1) return in_ECX->_stageType; } -//@@ 0074f820 FUN_0074f820 +//@@ 0074f820 Level::InitStageSeeds /* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */ -void FUN_0074f820(void) +void Level::InitStageSeeds(void) { bool bVar1; @@ -480097,7 +480097,7 @@ LAB_0074fe6b: uVar3 = uVar3 << ((byte)in_ECX[0x60b7] & 0x1f) ^ uVar3; uVar3 = uVar3 >> ((byte)in_ECX[0x60b8] & 0x1f) ^ uVar3; in_ECX[0x60b5] = uVar3; - FUN_009adaf0(uVar3); + RoomDescriptor::Init(uVar3); local_8 = 0; puVar8 = local_478; puVar11 = (undefined4 *)&local_440.field_0x2b8; @@ -480479,7 +480479,7 @@ void FUN_007508c0(void) uVar6 = uVar6 >> ((byte)in_ECX[0x60b8] & 0x1f) ^ uVar6; *puVar1 = uVar6; uVar9 = 0x75093f; - FUN_009adaf0(uVar6); + RoomDescriptor::Init(uVar6); local_8 = 0; local_3bc = (RoomConfig *)(DAT_00c71678 + 0x18910); do { @@ -480532,7 +480532,7 @@ void FUN_007508c0(void) local_8 = (uint)local_8._1_3_ << 8; _Init_thread_footer(&DAT_00c8108c); } - FUN_00428940(puVar1); + Seeds::Init3(puVar1); uVar6 = *puVar1; local_3b4 = 0; if (uVar6 == 0) { @@ -480568,7 +480568,7 @@ void FUN_007508c0(void) local_8 = (uint)local_8._1_3_ << 8; _Init_thread_footer(&DAT_00c8108c); } - FUN_00428940(puVar1); + Seeds::Init3(puVar1); uVar6 = *puVar1; local_3b4 = 0; if (uVar6 == 0) { @@ -480604,7 +480604,7 @@ void FUN_007508c0(void) local_8 = (uint)local_8._1_3_ << 8; _Init_thread_footer(&DAT_00c8108c); } - FUN_00428940(puVar1); + Seeds::Init3(puVar1); uVar6 = *puVar1; local_3b4 = 0; if (uVar6 == 0) { @@ -480690,7 +480690,7 @@ void FUN_007508c0(void) local_8 = (uint)local_8._1_3_ << 8; _Init_thread_footer(&DAT_00c8108c); } - FUN_00428940(local_3d0); + Seeds::Init3(local_3d0); local_3d0[4] = 0; if (local_3d0[0] == 0) { /* WARNING: Subroutine does not return */ @@ -480734,7 +480734,7 @@ void FUN_007508c0(void) local_8 = (uint)local_8._1_3_ << 8; _Init_thread_footer(&DAT_00c8108c); } - FUN_00428940(local_3d0); + Seeds::Init3(local_3d0); local_3b4 = 0; if (local_3d0[0] == 0) { /* WARNING: Subroutine does not return */ @@ -480777,7 +480777,7 @@ void FUN_007508c0(void) local_8 = (uint)local_8._1_3_ << 8; _Init_thread_footer(&DAT_00c8108c); } - FUN_00428940(puVar1); + Seeds::Init3(puVar1); uVar6 = *puVar1; local_3b4 = 0; if (uVar6 == 0) { @@ -480946,7 +480946,7 @@ void Level::GenerateHome(void) uVar5 = uVar5 << ((byte)local_43c[0x60b7] & 0x1f) ^ uVar5; uVar5 = uVar5 >> ((byte)local_43c[0x60b8] & 0x1f) ^ uVar5; local_43c[0x60b5] = uVar5; - FUN_009adaf0(uVar5); + RoomDescriptor::Init(uVar5); piVar11 = (int *)0x0; local_468 = (int *)0x0; local_49c = (int *)0x0; @@ -480965,7 +480965,7 @@ void Level::GenerateHome(void) piVar11 = (int *)0x0; } else { - FUN_006a0d30((int)_Size >> 2); + std::vector::reserve_clear((int)_Size >> 2); local_480 = local_494; local_468 = local_49c; piVar11 = local_49c; @@ -481058,9 +481058,9 @@ void Level::GenerateHome(void) KAGE_LogMessage(1,"generate...\n"); } -//@@ 007523e0 FUN_007523e0 +//@@ 007523e0 Level::boss_count_adjust -undefined4 FUN_007523e0(int *param_1,int *param_2) +undefined4 Level::boss_count_adjust(int *param_1,int *param_2) { int iVar1; @@ -481187,9 +481187,9 @@ int * FUN_00752460(int *param_1) } -//@@ 007525e0 FUN_007525e0 +//@@ 007525e0 std::vector::assign -void FUN_007525e0(int *param_1) +void std::vector::assign(int *param_1) { void *_Src; @@ -481202,7 +481202,7 @@ void FUN_007525e0(int *param_1) _Size = param_1[1] - (int)_Src; _Dst = (void *)*in_ECX; if ((uint)(in_ECX[2] - (int)_Dst >> 2) < (uint)((int)_Size >> 2)) { - FUN_006a0d30((int)_Size >> 2); + std::vector::reserve_clear((int)_Size >> 2); _Dst = (void *)*in_ECX; } memmove(_Dst,_Src,_Size); @@ -481711,7 +481711,7 @@ undefined4 * std::bitset<8>::to_string(undefined4 *param_1) else { if (uVar7 == 0x7fffffff) { /* WARNING: Subroutine does not return */ - FUN_0040ccc0(uVar4); + std::string::_Xlen(uVar4); } uVar9 = uVar7 + 1 | 0xf; if (uVar9 < 0x80000000) { @@ -482042,7 +482042,7 @@ void FUN_00753230(uint param_1) if (uVar2 < param_1) { if (0x7fffffff - uVar5 < param_1 - uVar5) { /* WARNING: Subroutine does not return */ - FUN_0040ccc0(); + std::string::_Xlen(); } uVar4 = param_1 | 0xf; if (uVar4 < 0x80000000) { @@ -482934,7 +482934,7 @@ void Game::AddPixelation(int param_1) void Game::ShowRule(void) { - FUN_009807a0("Fortune_Rules"); + Game::ShowFortuneText("Fortune_Rules"); return; } @@ -483001,9 +483001,9 @@ uint FUN_00753d60(uint *param_1) } -//@@ 00753da0 FUN_00753da0 +//@@ 00753da0 Entity_Player::constructor -Entity * FUN_00753da0(void) +Entity * Entity_Player::constructor(void) { undefined1 *puVar1; @@ -483592,14 +483592,14 @@ void FUN_00754d90(void) FUN_007221e0(); FUN_007221e0(); FUN_007dc8d0(); - FUN_00708e20(); - FUN_00426980(); + std::vector::_Tidy(); + std::vector::_Tidy(); FID_conflict__Tidy((void *)(in_ECX + 0x1c4)); FID_conflict__Tidy((void *)(in_ECX + 0x1b8)); FID_conflict__Tidy((void *)(in_ECX + 0x1ac)); FID_conflict__Tidy((void *)(in_ECX + 0x1a0)); FID_conflict__Tidy((void *)(in_ECX + 0x194)); - FUN_00426980(); + std::vector::_Tidy(); FID_conflict__Tidy((void *)(in_ECX + 0x174)); FID_conflict__Tidy((void *)(in_ECX + 0x168)); return; @@ -483716,7 +483716,7 @@ void FUN_00754ed0(void) FID_conflict__Tidy(in_ECX + 0x790); FUN_007221e0(); FID_conflict__Tidy(in_ECX + 0x777); - FUN_00708e20(); + std::vector::_Tidy(); local_8 = 4; ANM2::Reset((ANM2 *)(in_ECX + 0x719)); AnimationState::~AnimationState(); @@ -483735,7 +483735,7 @@ void FUN_00754ed0(void) FUN_004b3950(); FUN_004b3950(); FUN_004b3950(); - FUN_00426980(); + std::vector::_Tidy(); FID_conflict__Tidy(in_ECX + 0x5d5); FID_conflict__Tidy(in_ECX + 0x5d2); FID_conflict__Tidy(in_ECX + 0x5cf); @@ -483846,7 +483846,7 @@ void FUN_00755470(undefined4 param_1,int param_2,uint param_3,uint param_4) puVar1 = *(uint **)(in_ECX + 0x1774); local_9c[4] = uVar4; if (puVar1 == *(uint **)(in_ECX + 0x1778)) { - FUN_004b39b0(puVar1,local_9c + 4); + std::vector::_Emplace_reallocate(puVar1,local_9c + 4); } else { *puVar1 = uVar4; @@ -483883,7 +483883,7 @@ void FUN_00755470(undefined4 param_1,int param_2,uint param_3,uint param_4) puVar1 = *(uint **)(in_ECX + 0x1780); local_9c[0] = uVar4; if (puVar1 == *(uint **)(in_ECX + 0x1784)) { - FUN_004b39b0(puVar1,local_9c); + std::vector::_Emplace_reallocate(puVar1,local_9c); } else { *puVar1 = uVar4; @@ -483919,7 +483919,7 @@ void FUN_00755470(undefined4 param_1,int param_2,uint param_3,uint param_4) puVar1 = *(uint **)(in_ECX + 0x178c); local_bc[4] = uVar4; if (puVar1 == *(uint **)(in_ECX + 0x1790)) { - FUN_004b39b0(puVar1,local_bc + 4); + std::vector::_Emplace_reallocate(puVar1,local_bc + 4); } else { *puVar1 = uVar4; @@ -483956,7 +483956,7 @@ void FUN_00755470(undefined4 param_1,int param_2,uint param_3,uint param_4) puVar1 = *(uint **)(in_ECX + 0x1798); local_bc[0] = uVar4; if (puVar1 == *(uint **)(in_ECX + 0x179c)) { - FUN_004b39b0(puVar1,local_bc); + std::vector::_Emplace_reallocate(puVar1,local_bc); } else { *puVar1 = uVar4; @@ -484446,7 +484446,7 @@ void FUN_00757ac0(char param_1) if (((param_1 != '\0') && (iVar4 = *(int *)(in_ECX + 0x1e68), iVar4 != 0)) && ((*(int *)(iVar4 + 0x161c) == -1 || ((*(int *)(in_ECX + 0x161c) <= *(int *)(iVar4 + 0x161c) || (iVar4 == in_ECX)))))) { - FUN_009ba000(iVar4,0); + PlayerManager::RemoveCoPlayer(iVar4,0); } if (*(int *)(in_ECX + 0x1e68) != 0) { piStack_14 = (int *)(in_ECX + 0x1e68); @@ -484482,7 +484482,7 @@ void FUN_00757ac0(char param_1) } } if ((iVar3 == in_ECX) && (*(int *)(iVar1 + 0x3bc) != 0)) { - FUN_009ba000(iVar1,0); + PlayerManager::RemoveCoPlayer(iVar1,0); iVar4 = DAT_00c71678; } piVar5 = (int *)(iVar4 + 0x1baa8); @@ -484799,7 +484799,7 @@ void __thiscall Entity_Player::AddMaxHearts(Entity_Player *this,int param_2,unde if (0xd < iVar6) { PersistentGameData::TryUnlock((PersistentGameData *)(DAT_00c7169c + 0x14),1); } - FUN_007592a0(); + Entity_Player::UpdateBlackHeartMask(); update_greeds_gullet(this); Entity_Player::UpdateHeartDependentEffects(); ClampGoldenHearts(0); @@ -484881,7 +484881,7 @@ LAB_00758b08: ClampGoldenHearts(param_4); update_bone_hearts(this); if ((0 < (int)param_2) && (iVar2 < this->_hearts)) { - FUN_009a90b0(this); + _player_hud_set_heart_anim_state(this); } } return; @@ -485063,7 +485063,7 @@ LAB_00758d9a: if (7 < iVar7) { PersistentGameData::TryUnlock((PersistentGameData *)(DAT_00c7169c + 0x14),0x50); } - FUN_007592a0(); + Entity_Player::UpdateBlackHeartMask(); ClampGoldenHearts(param_2); update_bone_hearts(in_ECX); if ((param_1 < 1) || (in_ECX->_soulHearts < iVar3)) { @@ -485261,9 +485261,9 @@ int FUN_00759260(void) } -//@@ 007592a0 FUN_007592a0 +//@@ 007592a0 Entity_Player::UpdateBlackHeartMask -void FUN_007592a0(void) +void Entity_Player::UpdateBlackHeartMask(void) { byte bVar1; @@ -485373,7 +485373,7 @@ void Entity_Player::AddCoins(int param_1) iVar4 = param_1; } if (iVar1 < *(int *)(in_ECX + 0x1344)) { - FUN_007c8050(1); + Entity_Player::AddImmaculateConceptionCounter(1); } } } @@ -485523,9 +485523,9 @@ void Entity_Player::RemoveGoldenKey(void) } -//@@ 007596a0 FUN_007596a0 +//@@ 007596a0 Entity_Player::SyncConsumables -void FUN_007596a0(Entity_Player *param_1,uint param_2) +void Entity_Player::SyncConsumables(Entity_Player *param_1,uint param_2) { char cVar1; @@ -485611,7 +485611,7 @@ void __thiscall Entity_Player::ConsumableCountChanged(Entity_Player *this,uint p if (uVar4 < (uint)(*(int *)(DAT_00c71678 + 0x1baac) - (int)puVar2 >> 2)) { puVar2 = puVar2 + uVar4; } - FUN_007596a0(*puVar2,param_2); + Entity_Player::SyncConsumables(*puVar2,param_2); uVar4 = uVar4 + 1; } while (uVar4 < (uint)(*(int *)(DAT_00c71678 + 0x1baac) - *(int *)(DAT_00c71678 + 0x1baa8) >> 2)); @@ -485638,16 +485638,16 @@ void __thiscall Entity_Player::ConsumableCountChanged(Entity_Player *this,uint p } } else { - FUN_007596a0(this,param_2); + Entity_Player::SyncConsumables(this,param_2); } } return; } -//@@ 00759950 FUN_00759950 +//@@ 00759950 Entity_Player::restore_curse_mist_backup -void FUN_00759950(undefined4 *param_1) +void Entity_Player::restore_curse_mist_backup(undefined4 *param_1) { int in_ECX; @@ -485858,7 +485858,7 @@ int * Entity_Player::AddSwarmFlyOrbital(undefined4 param_1) local_14 = 0; } else if ((*(int *)(local_14 + 0x2c) == 0xe5) && (*(int *)(local_14 + 0x410) == in_ECX)) { - FUN_004b6a90(&local_14); + std::deque::push_front(&local_14); } uVar5 = uVar5 + 1; } while (uVar5 < *(uint *)(iVar4 + 0x1264)); @@ -486083,7 +486083,7 @@ LAB_0075a0a6: if (0xf < *(uint *)(param_4 + 0x14)) { pbVar9 = *(byte **)param_4; } - FUN_00421680(iVar6,iVar3,pbVar9,iVar3,"_Overlay",8); + std::string::concat(iVar6,iVar3,pbVar9,iVar3,"_Overlay",8); local_8 = (byte ***)0x2; ppppbVar13 = (byte ****)local_2c; if (0xf < local_18) { @@ -486148,13 +486148,13 @@ LAB_0075a280: if (0x7fffffffU - iVar3 < 8) { LAB_0075a2a4: /* WARNING: Subroutine does not return */ - FUN_0040ccc0(); + std::string::_Xlen(); } pbVar9 = param_4; if (0xf < *(uint *)(param_4 + 0x14)) { pbVar9 = *(byte **)param_4; } - FUN_00421680(iVar6,iVar3,pbVar9,iVar3,"_Overlay",8); + std::string::concat(iVar6,iVar3,pbVar9,iVar3,"_Overlay",8); local_8 = (byte ***)0x0; ppppuVar8 = local_44; if (0xf < local_30) { @@ -486188,9 +486188,9 @@ LAB_0075a2a4: } -//@@ 0075a2b0 FUN_0075a2b0 +//@@ 0075a2b0 Weapon::is_held_item -bool FUN_0075a2b0(int param_1,undefined4 *param_2,int *param_3) +bool Weapon::is_held_item(int param_1,undefined4 *param_2,int *param_3) { int *piVar1; @@ -486347,7 +486347,7 @@ LAB_0075a514: if (0xf < *(uint *)(param_3 + 0x14)) { pbVar8 = *(byte **)param_3; } - FUN_00421680(iVar11,iVar3,pbVar8,iVar3,"_Overlay",8); + std::string::concat(iVar11,iVar3,pbVar8,iVar3,"_Overlay",8); local_8 = (byte ***)0x1; ppppuVar7 = local_44; if (0xf < local_30) { @@ -486370,13 +486370,13 @@ LAB_0075a514: if (0x7fffffffU - iVar3 < 8) { LAB_0075a6fa: /* WARNING: Subroutine does not return */ - FUN_0040ccc0(uVar5); + std::string::_Xlen(uVar5); } pbVar8 = param_3; if (0xf < *(uint *)(param_3 + 0x14)) { pbVar8 = *(byte **)param_3; } - FUN_00421680(iVar11,iVar3,pbVar8,iVar3,"_Overlay",8); + std::string::concat(iVar11,iVar3,pbVar8,iVar3,"_Overlay",8); local_8 = (byte ***)0x2; ppppbVar13 = (byte ****)local_2c; if (0xf < local_18) { @@ -486495,7 +486495,7 @@ void FUN_0075a700(undefined4 param_1,undefined4 param_2,undefined4 param_3,byte do { if ((-1 < *local_54) && ((char)local_54[3] == '\0')) { iVar12 = *local_54 * 0x130 + *(int *)(in_ECX + 0x1220); - cVar3 = FUN_0075a2b0(iVar12,param_4,param_2,uVar4); + cVar3 = Weapon::is_held_item(iVar12,param_4,param_2,uVar4); if (cVar3 != '\0') { *(undefined1 *)(iVar12 + 0x11c) = 1; uVar5 = *(uint *)(param_4 + 0x14); @@ -486566,13 +486566,13 @@ LAB_0075a863: if (uVar5 < 8) { LAB_0075abd1: /* WARNING: Subroutine does not return */ - FUN_0040ccc0(); + std::string::_Xlen(); } pbVar7 = param_4; if (0xf < *(uint *)(param_4 + 0x14)) { pbVar7 = *(byte **)param_4; } - FUN_00421680(param_2,iVar2,pbVar7,iVar2,"_Overlay",8); + std::string::concat(param_2,iVar2,pbVar7,iVar2,"_Overlay",8); local_8 = (undefined4 *****)0x1; ppppppuVar6 = local_2c; if (0xf < local_18) { @@ -486597,7 +486597,7 @@ LAB_0075abd1: if (0xf < *(uint *)(param_4 + 0x14)) { pbVar7 = *(byte **)param_4; } - FUN_00421680(param_2,iVar2,pbVar7,iVar2,"_Overlay",8); + std::string::concat(param_2,iVar2,pbVar7,iVar2,"_Overlay",8); local_8 = (undefined4 *****)0x2; ppppppbVar9 = (byte ******)local_44; if (0xf < local_30) { @@ -486665,7 +486665,7 @@ LAB_0075ab2b: if (0xf < *(uint *)(param_4 + 0x14)) { pbVar7 = *(byte **)param_4; } - FUN_00421680(param_2,iVar2,pbVar7,iVar2,"_Overlay",8); + std::string::concat(param_2,iVar2,pbVar7,iVar2,"_Overlay",8); local_8 = (undefined4 *****)0x0; ppppppuVar6 = local_2c; if (0xf < local_18) { @@ -486800,7 +486800,7 @@ int FUN_0075abe0(undefined4 param_1,undefined4 param_2) local_2c[0] = 0; iVar4 = *piVar5 * 0x130 + *(int *)(in_ECX + 0x1220); local_8 = 0; - cVar2 = FUN_0075a2b0(iVar4,local_2c,param_2,uVar3); + cVar2 = Weapon::is_held_item(iVar4,local_2c,param_2,uVar3); if ((cVar2 == '\0') || ((*(int *)(iVar4 + 0x34) == 0 || (bVar1 = true, *(char *)(iVar4 + 0x44) == '\0')))) { bVar1 = false; @@ -486869,7 +486869,7 @@ void FUN_0075ad50(undefined4 param_1,undefined4 param_2,undefined4 param_3,undef do { if ((-1 < *local_34) && ((char)local_34[3] == '\0')) { iVar7 = *local_34 * 0x130 + *(int *)(local_2c + 0x1220); - cVar2 = FUN_0075a2b0(iVar7,param_4,local_28); + cVar2 = Weapon::is_held_item(iVar7,param_4,local_28); if (cVar2 != '\0') { puVar3 = param_4; if (0xf < (uint)param_4[5]) { @@ -486888,13 +486888,13 @@ LAB_0075ae61: iVar1 = param_4[4]; if (0x7fffffffU - iVar1 < 8) { /* WARNING: Subroutine does not return */ - FUN_0040ccc0(); + std::string::_Xlen(); } puVar3 = param_4; if (0xf < (uint)param_4[5]) { puVar3 = (undefined4 *)*param_4; } - FUN_00421680(local_28,iVar1,puVar3,iVar1,"_Overlay",8); + std::string::concat(local_28,iVar1,puVar3,iVar1,"_Overlay",8); ppppuVar6 = local_24[0]; local_38 = uVar5 | 3; ppppuVar4 = local_24; @@ -487099,13 +487099,13 @@ LAB_0075b0b1: if ((pfVar1 == (float *)0x0) && (*(int *)(in_ECX + 0x9c) != 0)) { if (0x7fffffffU - local_2c < 8) { /* WARNING: Subroutine does not return */ - FUN_0040ccc0(); + std::string::_Xlen(); } pppppppuVar7 = local_3c; if (0xf < local_28) { pppppppuVar7 = local_3c[0]; } - FUN_00421680(param_1,local_2c,pppppppuVar7,local_2c,"_Overlay",8); + std::string::concat(param_1,local_2c,pppppppuVar7,local_2c,"_Overlay",8); local_14._0_1_ = 9; puVar3 = param_2; if (0xf < (uint)param_2[5]) { @@ -487866,7 +487866,7 @@ LAB_0075c0c6: iVar6 = iVar6 + 0x130; } else { - piVar7 = (int *)FUN_005cbd20(local_e8,iVar6); + piVar7 = (int *)std::vector::erase(local_e8,iVar6); iVar6 = *piVar7; } } while (iVar6 != *(int *)&in_ECX->field_0x1224); @@ -488557,7 +488557,7 @@ LAB_0075d0d4: local_cc = (ANM2 *)((int)local_cc + -1); } while (local_cc != (ANM2 *)0x0); if (local_b0->_isCoopGhost != 0) { - FUN_007d9b70(); + Entity_Player::reset_body_sprite(); } DAT_00c81148 = '\0'; ExceptionList = local_10; @@ -488660,7 +488660,7 @@ void __thiscall Entity_Player::AddCostume(Entity_Player *this,int *param_2,undef if (iVar5 != *(int *)&this->field_0x1224) { do { if (*(int **)(iVar5 + 0x114) == param_2) { - piVar6 = (int *)FUN_005cbd20(&local_184,iVar5); + piVar6 = (int *)std::vector::erase(&local_184,iVar5); bVar1 = true; iVar5 = *piVar6; } @@ -488838,7 +488838,7 @@ void __thiscall Entity_Player::RemoveCostume(Entity_Player *this,int param_2) if (iVar4 != *(int *)&this->field_0x1224) { do { if (*(int *)(iVar4 + 0x114) == param_2) { - piVar3 = (int *)FUN_005cbd20(local_c,iVar4); + piVar3 = (int *)std::vector::erase(local_c,iVar4); bVar1 = true; iVar4 = *piVar3; } @@ -488977,9 +488977,9 @@ void Entity_Player::ClearCostumes(void) } -//@@ 0075e050 FUN_0075e050 +//@@ 0075e050 Entity_Player::SetQueuedItem -void FUN_0075e050(int *param_1,undefined4 param_2,undefined1 param_3,undefined4 param_4, +void Entity_Player::SetQueuedItem(int *param_1,undefined4 param_2,undefined1 param_3,undefined4 param_4, undefined4 param_5) { @@ -489025,7 +489025,7 @@ void Entity_Player::QueueItem (undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4) { - FUN_0075e050(param_1,param_2,param_3,param_4,*(undefined4 *)(DAT_00c71678 + 0x1ad90)); + Entity_Player::SetQueuedItem(param_1,param_2,param_3,param_4,*(undefined4 *)(DAT_00c71678 + 0x1ad90)); return; } @@ -489064,14 +489064,14 @@ undefined1 Entity_Player::FlushQueueItem(void) /* WARNING: Subroutine does not return */ KAGE_LogMessage(1,"item queue flush\n"); } - FUN_007afc20(); + Entity_Player::try_trigger_astral_projection(); return 0; } -//@@ 0075e320 FUN_0075e320 +//@@ 0075e320 Entity_Player::IncrementPlayerFormCounter -void FUN_0075e320(uint param_1,int param_2) +void Entity_Player::IncrementPlayerFormCounter(uint param_1,int param_2) { uint *puVar1; @@ -489203,7 +489203,7 @@ LAB_0075e806: if (0xf < *(uint *)((int)local_10 + 0x24)) { puVar7 = (undefined4 *)*puVar7; } - uVar6 = FUN_009586f0(DAT_00c7169c + 0x4a920,puVar7); + uVar6 = string_table_translate(DAT_00c7169c + 0x4a920,puVar7); uVar8 = 0; do { if (*(char *)(iVar10 + 0x3ed8) == '\0') { @@ -489263,7 +489263,7 @@ LAB_0075e806: } while (uVar8 < 4); if (!bVar11) { if (cVar3 != '\0') { - iVar10 = FUN_007911c0(0x23); + iVar10 = Entity_Player::GetActiveItemSlot(0x23); if (-1 < iVar10) { if (((*(uint *)(in_ECX + 0x181c) & 0x8000) == 0) || ((*(int *)(iVar10 * 0x20 + 0x159c + in_ECX) == 1 && @@ -489693,7 +489693,7 @@ void Entity_Player::AddCollectible if (((*(int *)(in_ECX + 0x13c0) != 0x28) || (*(int *)(in_ECX + 0x1e68) == 0)) || (*piVar4 == 3)) { if ((param_2 < 0) && (piVar4[0x32] < 0)) { - FUN_007911f0(param_1,param_5,piVar4); + Entity_Player::GetCollectibleMaxCharge(param_1,param_5,piVar4); } if (((int)param_6 < 0) || (0x1e < param_6)) { local_1d4 = &DAT_00b1a4ec; @@ -489811,7 +489811,7 @@ void Entity_Player::CheckFamiliar iVar5 = param_2; } iVar7 = 0; - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); uVar8 = 0; local_8 = 0; if (local_24 != 0) { @@ -489851,7 +489851,7 @@ void Entity_Player::CheckFamiliar uVar1 = uVar1 >> ((byte)param_3[3] & 0x1f) ^ uVar1; *param_3 = uVar1; piVar2 = (int *)Game::Spawn(3,param_1,iVar3,&DAT_00c7b640,local_18,param_5,uVar1); - piVar4 = (int *)FUN_0063b4a0(local_20,1); + piVar4 = (int *)Entity_Familiar::GetFollowTargetPosition(local_20,1); piVar2[0xcf] = *piVar4; piVar2[0xd0] = piVar4[1]; piVar2[0x3ba] = param_4; @@ -490186,7 +490186,7 @@ void Entity_Player::EvaluateItems(void) local_47a = false; } else { - iVar7 = FUN_007910f0(0); + iVar7 = Entity_Player::GetTotalActiveCharge(0); local_47a = iVar6 <= iVar7; local_479 = *(int *)&local_45c->field_0x1588 == 0; } @@ -490616,10 +490616,10 @@ LAB_0076474b: iVar6 = GetCollectibleNum(local_45c,0xde,0); local_46c = (Entity_Player *)((float)iVar6 + (float)local_46c); } - iVar6 = FUN_007db860(); + iVar6 = is_achievement_79_unlocked(); fVar49 = (float)iVar6 * 0.5 + (float)local_46c; local_464 = (float *)fVar49; - iVar6 = FUN_007db8d0(); + iVar6 = Entity_Player::get_seeded_variant(); if (iVar6 == 3) { LAB_00764de6: fVar49 = (float)local_464 * 0.4; @@ -490815,14 +490815,14 @@ LAB_00764df6: FUN_0042f2a0(); local_464 = (float *)(fVar49 * 0.15 + 0.33 + (float)local_464); } - iVar6 = FUN_007db8d0(); + iVar6 = Entity_Player::get_seeded_variant(); pfVar13 = local_464; if (iVar6 == 2) { pfVar13 = (float *)((float)local_464 * 0.75); } local_478 = 30.0 / ((float)pfVar13 * local_45c->_d8FireDelayModifier) - 1.0; if (local_45c->_variant == 1) { - FUN_007ce270(); + Entity_Player::GetMainPlayer(); cVar2 = CanShoot(); if (cVar2 == '\0') { local_478 = 10.0; @@ -491042,7 +491042,7 @@ LAB_00765c5f: local_460 = (code *)((float)iVar6 + (float)local_460); iVar6 = GetCollectibleNum(local_45c,0x2da,0); local_460 = (code *)((float)iVar6 * 0.75 + (float)local_460); - iVar6 = FUN_007db860(); + iVar6 = is_achievement_79_unlocked(); local_460 = (code *)((float)iVar6 * 0.75 + (float)local_460); uVar5 = HasCollectible(0x105,0); uVar44 = TemporaryEffects::HasCollectibleEffect(0x105); @@ -491299,7 +491299,7 @@ LAB_007668df: } Isaac::GetItemConfig(); uVar8 = Config::GetNullItem(0x29); - cVar2 = FUN_009305c0(uVar8); + cVar2 = vector_contains_int(uVar8); if (cVar2 != '\0') { pEVar51->_damage = pEVar51->_damage + 7.0; } @@ -491334,7 +491334,7 @@ LAB_007668df: pcVar33 = (code *)((uint)local_460 >> 3); } fVar49 = (float)(int)pcVar33 + (float)(int)pcVar33; - FUN_00505b40(); + pow_wrapper(); pEVar51->_damage = fVar49 * 0.1 + pEVar51->_damage; } cVar2 = HasCollectible(0x9d,0); @@ -491467,7 +491467,7 @@ LAB_00766f9a: iVar6 = GetTrinketMultiplier(0x42); pEVar51->_damage = (float)iVar6 * 0.5 + pEVar51->_damage; if (pEVar51->_variant == 1) { - FUN_007ce270(); + Entity_Player::GetMainPlayer(); cVar2 = CanShoot(); if (cVar2 == '\0') { pEVar51->_damage = 3.5; @@ -491638,7 +491638,7 @@ LAB_007677a7: } Isaac::GetItemConfig(); uVar8 = Config::GetNullItem(0x2a); - cVar2 = FUN_009305c0(uVar8); + cVar2 = vector_contains_int(uVar8); if (cVar2 != '\0') { pEVar51->_shotspeed = pEVar51->_shotspeed - 1.0; } @@ -491678,7 +491678,7 @@ LAB_007677a7: *pfVar13 = *pfVar14; } } - iVar6 = FUN_007db8d0(); + iVar6 = Entity_Player::get_seeded_variant(); if (iVar6 != -1) { local_508 = 0x40400000; pfVar14 = (float *)std::max(); @@ -491843,7 +491843,7 @@ LAB_00767ac2: } Isaac::GetItemConfig(); uVar8 = Config::GetNullItem(0x29); - cVar2 = FUN_009305c0(uVar8); + cVar2 = vector_contains_int(uVar8); if (cVar2 != '\0') { pEVar51->_tearheight = pEVar51->_tearheight - 30.0; pEVar51->_tearrange = pEVar51->_tearrange + 120.0; @@ -491932,7 +491932,7 @@ LAB_00768248: if ((cVar2 != '\0') || (cVar2 = TemporaryEffects::HasCollectibleEffect(5), cVar2 != '\0')) { pEVar51->_tearrange = pEVar51->_tearrange + pEVar51->_tearrange + 60.0; } - iVar6 = FUN_007db8d0(); + iVar6 = Entity_Player::get_seeded_variant(); pfVar13 = &pEVar51->_tearrange; if (iVar6 == 5) { fVar49 = *pfVar13 + 200.0; @@ -491976,7 +491976,7 @@ LAB_00768248: else { local_460 = (code *)0x0; } - iVar6 = FUN_007db860(); + iVar6 = is_achievement_79_unlocked(); if (iVar6 < 1) { local_46c = (Entity_Player *)GetCollectibleNum(pEVar51,0x8f,0); iVar6 = TemporaryEffects::GetCollectibleEffectNum(0x8f); @@ -492171,7 +492171,7 @@ LAB_00768248: } Isaac::GetItemConfig(); uVar8 = Config::GetNullItem(0x2a); - cVar2 = FUN_009305c0(uVar8); + cVar2 = vector_contains_int(uVar8); if (cVar2 != '\0') { *(float *)&pEVar51->_canFly = *(float *)&pEVar51->_canFly + 0.5; } @@ -492226,23 +492226,23 @@ LAB_00769200: *(undefined4 *)&pEVar51->field_0x1494 = uVar54; cVar2 = HasCollectible(0x23c,0); if ((cVar2 != '\0') || (cVar2 = TemporaryEffects::HasCollectibleEffect(0x23c), cVar2 != '\0')) { - FUN_00435bf0(&DAT_00c34b70); + BitSet128::operator__(&DAT_00c34b70); } cVar2 = HasCollectible(0x254,0); if ((cVar2 != '\0') || (cVar2 = TemporaryEffects::HasCollectibleEffect(0x254), cVar2 != '\0')) { - FUN_00435bf0(&DAT_00c349e0); + BitSet128::operator__(&DAT_00c349e0); } cVar2 = HasCollectible(0x250,0); if ((cVar2 != '\0') || (cVar2 = TemporaryEffects::HasCollectibleEffect(0x250), cVar2 != '\0')) { - FUN_00435bf0(&DAT_00c34980); + BitSet128::operator__(&DAT_00c34980); } cVar2 = HasTrinket(0x90,0); if (cVar2 != '\0') { - FUN_00435bf0(&DAT_00c34950); + BitSet128::operator__(&DAT_00c34950); } cVar2 = HasCollectible(0x23a,0); if (cVar2 != '\0') { - FUN_00435bf0(&DAT_00c347f0); + BitSet128::operator__(&DAT_00c347f0); } cVar2 = HasCollectible(0xb6,0); if ((((((cVar2 != '\0') || (cVar2 = HasCollectible(3,0), cVar2 != '\0')) || @@ -492251,22 +492251,22 @@ LAB_00769200: (cVar2 = HasCollectible(0x14b,0), cVar2 != '\0')))) || ((pEVar51->_variant == 1 && (pEVar51->_babySkin == 4)))) || (0 < pEVar51->_hallowedGroundCountdown)) { - FUN_00435bf0(&DAT_00c34ba0); + BitSet128::operator__(&DAT_00c34ba0); } local_468 = &pEVar51->field_0x1488; local_464 = (float *)local_468; cVar2 = HasCollectible(0x84,0); if (cVar2 != '\0') { - FUN_00435bf0(&DAT_00c34b30); + BitSet128::operator__(&DAT_00c34b30); local_468 = &pEVar51->field_0x1488; } cVar2 = HasCollectible(0x20c,0); if (cVar2 != '\0') { - FUN_00435bf0(&DAT_00c345a0); + BitSet128::operator__(&DAT_00c345a0); } cVar2 = HasCollectible(0x105,0); if ((cVar2 != '\0') || (cVar2 = TemporaryEffects::HasCollectibleEffect(0x105), cVar2 != '\0')) { - FUN_00435bf0(&DAT_00c34c40); + BitSet128::operator__(&DAT_00c34c40); } cVar2 = HasCollectible(0xb9,0); if (((((((cVar2 != '\0') || (cVar2 = HasCollectible(0x73,0), cVar2 != '\0')) || @@ -492285,7 +492285,7 @@ LAB_00769200: (cVar2 = TemporaryEffects::HasNullEffect(0x42), cVar2 != '\0')) || (cVar2 = TemporaryEffects::HasNullEffect(0x65), cVar2 != '\0')) || (cVar2 = TemporaryEffects::HasNullEffect(0x70), cVar2 != '\0')))) { - FUN_00435bf0(&DAT_00c34bb0); + BitSet128::operator__(&DAT_00c34bb0); } cVar2 = HasCollectible(0x30,0); if (((((cVar2 != '\0') || (cVar2 = HasCollectible(0xed,0), cVar2 != '\0')) || @@ -492294,46 +492294,46 @@ LAB_00769200: (iVar6 = GetZodiacEffect(), iVar6 == 0x132)))))) || (cVar2 = HasWeaponType(8), cVar2 != '\0')) || (cVar2 = HasCollectible(0x150,0), cVar2 != '\0')) { - FUN_00435bf0(&DAT_00c34b50); + BitSet128::operator__(&DAT_00c34b50); } cVar2 = HasCollectible(0xa9,0); if (cVar2 != '\0') { - FUN_00435bf0(&DAT_00c34910); + BitSet128::operator__(&DAT_00c34910); local_468 = (undefined1 *)local_464; } cVar2 = HasCollectible(0x131,0); if ((cVar2 != '\0') || (iVar6 = GetZodiacEffect(), iVar6 == 0x131)) { - FUN_00435bf0(&DAT_00c34bd0); + BitSet128::operator__(&DAT_00c34bd0); } cVar2 = HasCollectible(0x68,0); if (cVar2 != '\0') { - FUN_00435bf0(&DAT_00c34850); + BitSet128::operator__(&DAT_00c34850); } cVar2 = HasCollectible(5,0); if ((cVar2 != '\0') || (cVar2 = TemporaryEffects::HasCollectibleEffect(5), cVar2 != '\0')) { - FUN_00435bf0(&DAT_00c34860); + BitSet128::operator__(&DAT_00c34860); } cVar2 = HasTrinket(10,0); if (cVar2 != '\0') { uVar8 = BitSet128::operator_or(&DAT_00c34bb0); - FUN_00435bf0(uVar8); + BitSet128::operator__(uVar8); } cVar2 = HasTrinket(0x1a,0); if (cVar2 != '\0') { uVar8 = BitSet128::operator_or(&DAT_00c34bb0); - FUN_00435bf0(uVar8); + BitSet128::operator__(uVar8); } cVar2 = HasCollectible(0x95,0); if ((cVar2 != '\0') && ((cVar2 = HasWeaponType(8), cVar2 == '\0' || (cVar2 = HasCollectible(0x21c,0), cVar2 != '\0') ))) { uVar8 = BitSet128::operator_or(&DAT_00c34bd0); - FUN_00435bf0(uVar8); + BitSet128::operator__(uVar8); } cVar2 = HasCollectible(0xe9,0); if (cVar2 != '\0') { uVar8 = BitSet128::operator_or(&DAT_00c34bb0); - FUN_00435bf0(uVar8); + BitSet128::operator__(uVar8); } cVar2 = HasCollectible(0xde,0); if ((((cVar2 != '\0') && (cVar2 = HasWeaponType(8), cVar2 == '\0')) && @@ -492341,98 +492341,98 @@ LAB_00769200: ((cVar2 = HasWeaponType(1), cVar2 == '\0' || ((cVar2 = HasCollectible(0x13c,0), cVar2 == '\0' && (cVar2 = HasCollectible(0x45,0), cVar2 == '\0')))))) { - FUN_00435bf0(&DAT_00c34b40); + BitSet128::operator__(&DAT_00c34b40); } cVar2 = HasCollectible(0xe0,0); if (cVar2 != '\0') { - FUN_00435bf0(&DAT_00c34880); + BitSet128::operator__(&DAT_00c34880); } cVar2 = HasCollectible(0xdd,0); if (cVar2 != '\0') { - FUN_00435bf0(&DAT_00c34b80); + BitSet128::operator__(&DAT_00c34b80); } cVar2 = HasCollectible(0x13b,0); if (cVar2 != '\0') { - FUN_00435bf0(&DAT_00c34b20); + BitSet128::operator__(&DAT_00c34b20); } cVar2 = HasTrinket(9,0); if (cVar2 != '\0') { - FUN_00435bf0(&DAT_00c34890); + BitSet128::operator__(&DAT_00c34890); } cVar2 = HasCollectible(0x135,0); if (((cVar2 != '\0') || (iVar6 = GetZodiacEffect(), iVar6 == 0x135)) || ((cVar2 = HasCollectible(0x167,0), cVar2 != '\0' || ((cVar2 = HasTrinket(0x4d,0), cVar2 != '\0' || (cVar2 = HasCollectible(0x250,0), cVar2 != '\0')))))) { - FUN_00435bf0(&DAT_00c34ae0); + BitSet128::operator__(&DAT_00c34ae0); } cVar2 = HasTrinket(0xb,0); if (cVar2 != '\0') { uVar8 = BitSet128::operator_or(&DAT_00c34bb0); - FUN_00435bf0(uVar8); + BitSet128::operator__(uVar8); } cVar2 = HasTrinket(0xc,0); if (cVar2 != '\0') { - FUN_00435bf0(&DAT_00c348b0); + BitSet128::operator__(&DAT_00c348b0); } cVar2 = HasTrinket(0x60,0); if (cVar2 != '\0') { uVar8 = BitSet128::operator_or(&DAT_00c34bb0); - FUN_00435bf0(uVar8); + BitSet128::operator__(uVar8); } cVar2 = HasCollectible(0x14b,0); if (cVar2 != '\0') { - FUN_00435bf0(&DAT_00c34920); + BitSet128::operator__(&DAT_00c34920); } cVar2 = HasCollectible(0x171,0); if (cVar2 != '\0') { uVar8 = BitSet128::operator_or(&DAT_00c34bb0); - FUN_00435bf0(uVar8); + BitSet128::operator__(uVar8); } cVar2 = HasCollectible(0x18d,0); if (cVar2 != '\0') { - FUN_00435bf0(&DAT_00c34580); + BitSet128::operator__(&DAT_00c34580); } cVar2 = HasCollectible(0x215,0); if (cVar2 != '\0') { - FUN_00435bf0(&DAT_00c345d0); + BitSet128::operator__(&DAT_00c345d0); } cVar2 = HasCollectible(0x101,0); if ((cVar2 != '\0') || (cVar2 = TemporaryEffects::HasCollectibleEffect(0x101), cVar2 != '\0')) { - FUN_00435bf0(&DAT_00c34c00); + BitSet128::operator__(&DAT_00c34c00); } cVar2 = HasCollectible(0x13d,0); if ((cVar2 != '\0') || (cVar2 = TemporaryEffects::HasCollectibleEffect(0x13d), cVar2 != '\0')) { - FUN_00435bf0(&DAT_00c34ac0); + BitSet128::operator__(&DAT_00c34ac0); } cVar2 = HasCollectible(0x103,0); if ((cVar2 != '\0') || (cVar2 = TemporaryEffects::HasCollectibleEffect(0x103), cVar2 != '\0')) { - FUN_00435bf0(&DAT_00c34820); + BitSet128::operator__(&DAT_00c34820); } cVar2 = HasCollectible(0x1c5,0); if (cVar2 != '\0') { - FUN_00435bf0(&DAT_00c348f0); + BitSet128::operator__(&DAT_00c348f0); } cVar2 = HasCollectible(0x1ce,0); if (cVar2 != '\0') { uVar8 = BitSet128::operator_or(&DAT_00c34940); - FUN_00435bf0(uVar8); + BitSet128::operator__(uVar8); } cVar2 = HasCollectible(0x1ee,0); if (cVar2 != '\0') { - FUN_00435bf0(&DAT_00c34900); + BitSet128::operator__(&DAT_00c34900); } cVar2 = HasCollectible(0x214,0); if (cVar2 != '\0') { - FUN_00435bf0(&DAT_00c345c0); + BitSet128::operator__(&DAT_00c345c0); } cVar2 = HasCollectible(0x211,0); if (cVar2 != '\0') { - FUN_00435bf0(&DAT_00c345b0); + BitSet128::operator__(&DAT_00c345b0); } cVar2 = HasCollectible(0x21c,0); if (cVar2 != '\0') { - FUN_00435bf0(&DAT_00c345e0); + BitSet128::operator__(&DAT_00c345e0); } cVar2 = HasCollectible(0xd5,0); if (cVar2 == '\0') { @@ -492442,12 +492442,12 @@ LAB_00769200: } else { LAB_00769c23: - FUN_00435bf0(&DAT_00c34c60); + BitSet128::operator__(&DAT_00c34c60); local_464 = (float *)&pEVar51->field_0x1508; } cVar2 = HasCollectible(0x1fa,0); if (cVar2 != '\0') { - FUN_00435bf0(&DAT_00c34700); + BitSet128::operator__(&DAT_00c34700); } LuaEngine::EvaluateItems(DAT_00c71690,pEVar51,0x20); fVar49 = pEVar51->_tearPoisonDamage; @@ -492658,7 +492658,7 @@ LAB_0076a3c8: cVar2 = FUN_00429550(); if (cVar2 != '\0') { Game::GetPlayerManager(); - FUN_0060d180(local_5f0,pEVar51); + Entity_Familiar::GetPlayerSlot(local_5f0,pEVar51); uVar8 = Color::Color(); Color::operator_assign(uVar8); } @@ -493974,7 +493974,7 @@ LAB_0076aac4: local_46c = pEVar40; Level::GetCurrentRoom(); pEVar39 = (Entity_NPC *)FUN_00428a60(); - NpcAI::ENTITY_MASK(pEVar39); + EntityList::QuerySublist(pEVar39); local_8 = (float)CONCAT31(local_8._1_3_,2); iVar6 = EntityList::Size(); if (iVar6 != 0) { @@ -494098,7 +494098,7 @@ LAB_0076aac4: iVar6 = Entity::Variant(); if ((iVar6 == 1) && (iVar6 = GetBabySkin(), iVar6 == 0x3b)) { LAB_0076ef58: - FUN_0042c850(&local_48c); + std::vector::push_back(&local_48c); } else { iVar6 = Entity::Variant(); @@ -494119,7 +494119,7 @@ LAB_0076ef58: do { Game::GetPlayerManager(); puVar16 = (undefined4 *)FUN_00708a50(); - FUN_009ba000(*puVar16,0); + PlayerManager::RemoveCoPlayer(*puVar16,0); FUN_007dc650(); iVar6 = std::vector::size(); } while ((int)pEVar40 < iVar6); @@ -494134,11 +494134,11 @@ LAB_0076ef58: Entity::SetParent(pEVar51); uVar8 = Vector::Vector(); uVar8 = Vector::__add(local_610,uVar8); - FUN_004288f0(uVar8); + Entity::SetPosition(uVar8); FUN_007cb090(); local_494->_tearPoisonDamage = 9.18341e-41; EvaluateItems(); - FUN_0042c850(&local_494); + std::vector::push_back(&local_494); iVar6 = std::vector::size(); } cVar2 = FUN_0060d1e0(); @@ -494149,7 +494149,7 @@ LAB_0076ef58: do { Game::GetPlayerManager(); puVar16 = (undefined4 *)FUN_00708a50(); - FUN_009ba000(*puVar16,0); + PlayerManager::RemoveCoPlayer(*puVar16,0); FUN_007dc650(); iVar6 = std::vector::size(); } while ((int)piVar15 < iVar6); @@ -494164,11 +494164,11 @@ LAB_0076ef58: Entity::SetParent(pEVar51); uVar8 = Vector::Vector(); uVar8 = Vector::__add(local_620,uVar8); - FUN_004288f0(uVar8); + Entity::SetPosition(uVar8); GetEffects(); TemporaryEffects::AddCollectibleEffect(0x29b,1,1); - FUN_007bc740(); - FUN_0042c850(&local_498); + Entity_Player::InitPostLevelInitStats(); + std::vector::push_back(&local_498); iVar6 = std::vector::size(); } } @@ -494279,7 +494279,7 @@ LAB_0076f605: local_470 = (int *)0x0; Level::GetCurrentRoom(); pEVar39 = (Entity_NPC *)FUN_00428a60(); - NpcAI::ENTITY_MASK(pEVar39); + EntityList::QuerySublist(pEVar39); local_8 = 7.00649e-45; uVar5 = 0; iVar6 = EntityList::Size(); @@ -494382,7 +494382,7 @@ LAB_0076f605: } fVar49 = 2.0; if ((float)pcVar46 < 2.0) { - FUN_00505b40(); + pow_wrapper(); } else { fVar49 = ((float)pcVar46 - 2.0) * 2.77259 + 4.0; @@ -494392,7 +494392,7 @@ LAB_0076f605: Vector::operator_assign(uVar8); local_544 = 2.0; if ((float)local_46c < 2.0) { - FUN_00505b40(); + pow_wrapper(); } else { local_544 = ((float)local_46c - 2.0) * 2.77259 + 4.0; @@ -494486,7 +494486,7 @@ LAB_0076fc8b: (((uint)pEVar51->_tearPoisonDamage & 0x1b) != 0)) { fVar49 = (pEVar51->_damage * 30.0) / (pEVar51->_maxfiredelay + 1.0); FUN_00431260(); - FUN_00505b40(); + pow_wrapper(); local_470 = (int *)(fVar49 * 2.161616 - 2.0); fVar49 = *(float *)&pEVar51->_canFly; FUN_009bfc00(); @@ -494647,8 +494647,8 @@ LAB_00770492: pEVar51->_tearfallspeed = -fVar49; fVar49 = pEVar51->_tearPoisonDamage; } - if ((((uint)fVar49 & 0x10) != 0) && (iVar6 = FUN_007db860(), 0 < iVar6)) { - iVar6 = FUN_007db860(); + if ((((uint)fVar49 & 0x10) != 0) && (iVar6 = is_achievement_79_unlocked(), 0 < iVar6)) { + iVar6 = is_achievement_79_unlocked(); *(float *)&pEVar51->_canFly = (float)iVar6 * 0.2 + *(float *)&pEVar51->_canFly; } pEVar51->_tearPoisonDamage = 0.0; @@ -494779,7 +494779,7 @@ bool Entity_Player::HasCollectible(Game *param_1,char param_2) return true; } if ((int)param_1 < 0) { - uVar2 = FUN_009e04b0(param_1); + uVar2 = collectible_set_has(param_1); return (bool)uVar2; } if (param_2 != '\0') goto LAB_00770c3e; @@ -494885,7 +494885,7 @@ LAB_00770a3e: bVar1 = *(byte *)(in_ECX + 0x2028) & 0x40; goto LAB_00770a3e; } - iVar5 = FUN_007db8d0(); + iVar5 = Entity_Player::get_seeded_variant(); if (param_1 == (Game *)0x14a) { if (iVar5 == 1) { return true; @@ -494894,11 +494894,11 @@ LAB_00770a3e: else if ((param_1 == (Game *)0x99) && (iVar5 == 2)) { return true; } - iVar5 = FUN_007db860(); + iVar5 = is_achievement_79_unlocked(); uVar9 = extraout_ECX; if (8 < iVar5) { iVar4 = Seeds::GetStartSeed(); - iVar5 = FUN_007db860(); + iVar5 = is_achievement_79_unlocked(); local_14 = 0x1b00000001; local_18 = 1; if (1 < (uint)(iVar5 + iVar4)) { @@ -494912,7 +494912,7 @@ LAB_00770a3e: uVar9 = extraout_ECX_00; iVar4 = local_20; } - cVar3 = FUN_00771200(param_1,uVar9); + cVar3 = Entity_Player::IsInnateCollectible(param_1,uVar9); if (((cVar3 == '\0') && ((param_1 != (Game *)0x76 || (cVar3 = TemporaryEffects::HasCollectibleEffect(0x76), cVar3 == '\0')))) && @@ -494925,13 +494925,13 @@ LAB_00770a3e: return false; } if ((((((*(int *)(in_ECX + 0x1f84) == 0) || - (FUN_00557b00(&local_24,&local_28), local_24 == *(Game **)(in_ECX + 0x1f80))) || + (std::set::find(&local_24,&local_28), local_24 == *(Game **)(in_ECX + 0x1f80))) || (*(int *)&local_24->field_0x14 < 1)) && (((((*(Game **)(in_ECX + 0x1fb8) == (Game *)0x0 || (*(Game **)(in_ECX + 0x1fb8) != param_1) ) && (iVar4 = FUN_009e0650(param_1), iVar4 < 1)) && - (((local_20 == 0 || (cVar3 = FUN_007307b0(), cVar3 == '\0')) || + (((local_20 == 0 || (cVar3 = ItemConfig_Item::is_mom_item(), cVar3 == '\0')) || (cVar3 = TemporaryEffects::HasCollectibleEffect(param_1), cVar3 == '\0')))) && - (iVar4 = FUN_007911c0(param_1), iVar4 < 0)))) && + (iVar4 = Entity_Player::GetActiveItemSlot(param_1), iVar4 < 0)))) && (((param_1 == (Game *)0xbf || (cVar3 = HasCollectible(0xbf,0), cVar3 == '\0')) || (param_1 != *(Game **)(in_ECX + 0x1390))))) && ((cVar3 = TemporaryEffects::HasCollectibleEffect(0x1e8), cVar3 == '\0' || @@ -494973,7 +494973,7 @@ int __thiscall Entity_Player::GetCollectibleNum(Entity_Player *this,int param_2, if (-1 < param_2) { while (iVar6 < *(int *)&this->field_0x16cc - *(int *)&this->field_0x16c8 >> 2) { if ((this->_variant != 1) || - (pEVar2 = (Entity_Player *)FUN_007ce270(), pEVar2 == (Entity_Player *)0x0)) { + (pEVar2 = (Entity_Player *)Entity_Player::GetMainPlayer(), pEVar2 == (Entity_Player *)0x0)) { iVar7 = *(int *)(*(int *)&this->field_0x16c8 + iVar6 * 4); piVar3 = (int *)ItemConfig::GetCollectible(iVar6); if ((piVar3 != (int *)0x0) && (*piVar3 == 3)) { @@ -495079,7 +495079,7 @@ int __thiscall Entity_Player::GetCollectibleNum(Entity_Player *this,int param_2, } } switchD_00770e4b_caseD_63: - cVar1 = FUN_00771200(iVar6,piVar5); + cVar1 = Entity_Player::IsInnateCollectible(iVar6,piVar5); if (cVar1 != '\0') { iVar8 = iVar8 + 1; } @@ -495105,7 +495105,7 @@ switchD_00770e4b_caseD_63: iVar8 = iVar8 + 1; } LAB_00770f59: - iVar7 = FUN_007db8d0(); + iVar7 = Entity_Player::get_seeded_variant(); if (iVar6 == 0x14a) { if (iVar7 == 1) { iVar8 = iVar8 + 1; @@ -495133,7 +495133,7 @@ LAB_00770f59: } if (this->_hasCurseMistEffect == 0) { if ((*(int *)&this->field_0x1f84 != 0) && - (FUN_00557b00(local_c,¶m_2), iVar6 = param_2, + (std::set::find(local_c,¶m_2), iVar6 = param_2, local_c[0] != *(int *)&this->field_0x1f80)) { iVar8 = iVar8 + *(int *)(local_c[0] + 0x14); } @@ -495147,7 +495147,7 @@ LAB_00770f59: uVar4 = 0; } iVar8 = iVar8 + uVar4; - if ((piVar3 != (int *)0x0) && (cVar1 = FUN_007307b0(), cVar1 != '\0')) { + if ((piVar3 != (int *)0x0) && (cVar1 = ItemConfig_Item::is_mom_item(), cVar1 != '\0')) { iVar7 = TemporaryEffects::GetCollectibleEffectNum(iVar6); iVar8 = iVar8 + iVar7; } @@ -495210,9 +495210,9 @@ uint __thiscall Entity_Player::VoidHasCollectible(Entity_Player *this,int param_ } -//@@ 00771200 FUN_00771200 +//@@ 00771200 Entity_Player::IsInnateCollectible -undefined4 FUN_00771200(int param_1) +undefined4 Entity_Player::IsInnateCollectible(int param_1) { int iVar1; @@ -495351,10 +495351,10 @@ void FUN_00771410(void) uVar5 = 0; iVar4 = in_ECX; do { - cVar2 = FUN_00771200(uVar5,iVar4); + cVar2 = Entity_Player::IsInnateCollectible(uVar5,iVar4); iVar4 = DAT_00c71678; if (cVar2 == '\0') { - FUN_00771200(uVar5,extraout_ECX); + Entity_Player::IsInnateCollectible(uVar5,extraout_ECX); cVar2 = Entity_Player::HasCollectible(uVar5,0); iVar4 = extraout_ECX_01; if (cVar2 == '\0') { @@ -495487,9 +495487,9 @@ LAB_007716b5: } -//@@ 007716c0 FUN_007716c0 +//@@ 007716c0 is_trinket_unpickable_id -int FUN_007716c0(uint param_1) +int is_trinket_unpickable_id(uint param_1) { uint3 uVar1; @@ -495532,7 +495532,7 @@ undefined4 Entity_Player::TryHoldTrinket(undefined4 param_1) } uVar4 = *puVar3; if (((uVar4 & 0x7fff) == 0x35) && - (cVar2 = FUN_007716c0(param_1), uVar4 = extraout_ECX, cVar2 != '\0')) { + (cVar2 = is_trinket_unpickable_id(param_1), uVar4 = extraout_ECX, cVar2 != '\0')) { bVar1 = true; } else { @@ -495935,7 +495935,7 @@ undefined4 Entity_Player::TryRemoveTrinket(uint param_1) puVar7 = puVar7 + 1; } while (uVar6 < piVar8); if ((*(int *)(in_ECX + 0x2c) == 0) && (*(char *)(in_ECX + 0x20a9) == '\0')) { - uVar3 = FUN_00772260(param_1); + uVar3 = Entity_Player::TryRemoveSmeltedTrinket(param_1); ExceptionList = local_10; return uVar3; } @@ -495977,11 +495977,11 @@ undefined4 Entity_Player::TryRemoveTrinket(uint param_1) } -//@@ 00772260 FUN_00772260 +//@@ 00772260 Entity_Player::TryRemoveSmeltedTrinket /* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */ -uint FUN_00772260(uint param_1) +uint Entity_Player::TryRemoveSmeltedTrinket(uint param_1) { int iVar1; @@ -496190,12 +496190,12 @@ uint FUN_00772530(void) } -//@@ 007729d0 FUN_007729d0 +//@@ 007729d0 Entity_Player::take_damage_impl /* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */ /* WARNING: Type propagation algorithm not settling */ -undefined4 FUN_007729d0(Game *param_1,uint param_2,uint param_3,int *param_4,undefined4 param_5) +undefined4 Entity_Player::take_damage_impl(Game *param_1,uint param_2,uint param_3,int *param_4,undefined4 param_5) { Entity_Player *pEVar1; @@ -496628,8 +496628,8 @@ LAB_007737e8: if (cVar5 == '\0') { cVar5 = Entity::IsEnemy(); if (cVar5 == '\0') { - cVar5 = FUN_00431540(); - if ((cVar5 == '\0') && (cVar5 = FUN_00431530(), cVar5 == '\0')) goto LAB_007737e8; + cVar5 = Entity::IsProjectile(); + if ((cVar5 == '\0') && (cVar5 = Entity::IsTear(), cVar5 == '\0')) goto LAB_007737e8; Entity::Position(local_1c); Vector::__sub(local_34,&in_ECX->_pos); Vector::Resized(&local_148,0x41200000); @@ -496643,7 +496643,7 @@ LAB_007737e8: Entity_Projectile::Reflect((Entity_Projectile *)local_100[0],in_ECX,&local_148); } if (iVar10 != 0) { - FUN_0067a080(in_ECX,&local_148); + Entity_Projectile::Deflect(in_ECX,&local_148); } uVar39 = 0x3fa00000; *(undefined4 *)&in_ECX->field_0x1efc = 0x41600000; @@ -496818,7 +496818,7 @@ LAB_00778ff1: local_b4 = local_124; local_bc[0] = param_1; local_b0 = param_3; - FUN_00499960(piVar11); + EntityRef::operator_(piVar11); FUN_006b7db0(local_bc); *(uint *)&in_ECX->field_0x18 = *(uint *)&in_ECX->field_0x18 | local_124; *(uint *)&in_ECX->field_0x1c = *(uint *)&in_ECX->field_0x1c | param_3; @@ -496880,7 +496880,7 @@ LAB_00773d11: } Isaac::GetItemConfig(); uVar9 = Config::GetNullItem(0x1d); - cVar5 = FUN_009305c0(uVar9); + cVar5 = vector_contains_int(uVar9); if (cVar5 != '\0') { local_100[0] = (Game *)0x3f800000; Game::GetField26614(); @@ -496980,12 +496980,12 @@ LAB_0077403f: uVar9 = ItemConfig::GetCollectible(0x139); Entity_Player::RemoveCostume(in_ECX,uVar9); } - iVar10 = FUN_007db330(0x3c); + iVar10 = Game::damage_cooldown_scale(0x3c); in_ECX->_damageCooldown = iVar10; cVar5 = Entity_Player::HasTrinket(0x51,0); if (cVar5 != '\0') { iVar10 = Entity_Player::GetTrinketMultiplier(0x51); - iVar10 = FUN_007db330(iVar10 * 2); + iVar10 = Game::damage_cooldown_scale(iVar10 * 2); in_ECX->_damageCooldown = in_ECX->_damageCooldown * iVar10; } qVar4 = in_ECX->_flags; @@ -497002,7 +497002,7 @@ LAB_0077403f: pcVar2 = *(code **)(*(int *)&in_ECX->field_0x0 + 0x3c); uVar9 = Color::Color(0x3f800000,0x40,0x40,0x80); (*pcVar2)(uVar9,0xf,0xff,1,1); - iVar10 = FUN_007db330(8); + iVar10 = Game::damage_cooldown_scale(8); in_ECX->_damageCooldown = iVar10; LAB_007736fb: qVar4 = in_ECX->_flags; @@ -497037,13 +497037,13 @@ LAB_007736fb: } FUN_0065d090(); Player_stats_add(3,in_ECX); - FUN_00499960(piVar11); + EntityRef::operator_(piVar11); *(uint *)&in_ECX->_lastDamageFlags = local_124; *(uint *)((int)&in_ECX->_lastDamageFlags + 4) = param_3; in_ECX->field_0x13b5 = 1; *(undefined4 *)&in_ECX->field_0x1ef4 = 0; in_ECX->_damageCooldown = 4; - FUN_007cf8f0(); + Entity_Player::IsLocalPlayer(); local_134 = pGVar12; if (local_111 != '\0') { *(int *)&in_ECX->field_0x16b0 = *(int *)&in_ECX->field_0x16b0 + (int)local_104; @@ -497214,7 +497214,7 @@ LAB_0077490b: uVar42 = 1; uVar39 = 1; uVar9 = ItemConfig::GetTrinket(0x28); - uVar9 = FUN_00435f80(uVar9); + uVar9 = TemporaryEffect::TemporaryEffect(uVar9); TemporaryEffects::AddEffect(uVar9,uVar39,uVar42); } } @@ -497278,7 +497278,7 @@ LAB_00774b06: local_134 = (Game *)0x0; Level::GetCurrentRoom(); npc = (Entity_NPC *)FUN_00428a60(); - NpcAI::ENTITY_MASK(npc); + EntityList::QuerySublist(npc); local_8 = 10; iVar10 = EntityList::Size(); if (iVar10 != 0) { @@ -497289,7 +497289,7 @@ LAB_00774b06: pEVar17 = (Entity_Player *)Entity_Familiar::Player(); if (pEVar17 == in_ECX) { fVar34 = (float10)Entity::MaxHitPoints(); - FUN_00435d20((float)fVar34); + Entity::SetField380((float)fVar34); local_134 = (Game *)((int)&local_134->_stage + 1); } uVar8 = uVar8 + 1; @@ -497376,7 +497376,7 @@ LAB_00774c43: if (iVar10 == 0) { Isaac::GetItemConfig(); uVar9 = ItemConfig::GetCollectible(0x3a); - FUN_00435f80(uVar9); + TemporaryEffect::TemporaryEffect(uVar9); Isaac::GetItemConfig(); iVar10 = ItemConfig::GetCollectible(0xa2); local_4c = *(undefined4 *)(iVar10 + 0x78); @@ -497396,7 +497396,7 @@ LAB_00774c43: } Isaac::GetItemConfig(); uVar9 = ItemConfig::GetCollectible(0x75); - FUN_00435f80(uVar9); + TemporaryEffect::TemporaryEffect(uVar9); Game::GetField26614(); cVar5 = FUN_00429550(); if (cVar5 != '\0') { @@ -497473,7 +497473,7 @@ LAB_007751a5: if (cVar5 != '\0') { Isaac::GetItemConfig(); uVar9 = ItemConfig::GetCollectible(0xd6); - FUN_00435f80(uVar9); + TemporaryEffect::TemporaryEffect(uVar9); Game::GetField26614(); cVar5 = FUN_00429550(); if (cVar5 != '\0') { @@ -497726,7 +497726,7 @@ LAB_007757f6: uVar42 = 1; uVar39 = 1; uVar9 = ItemConfig::GetCollectible(0x41); - uVar9 = FUN_00435f80(uVar9); + uVar9 = TemporaryEffect::TemporaryEffect(uVar9); TemporaryEffects::AddEffect(uVar9,uVar39,uVar42); } cVar5 = Entity_Player::HasTrinket(0x43,0); @@ -497860,7 +497860,7 @@ LAB_00775c66: if (cVar5 != '\0') { Entity::AddEntityFlags(0,4); EntityRef::constructor(in_ECX); - FUN_00499960(local_ac); + EntityRef::operator_(local_ac); if (*(int *)&in_ECX->field_0x138c < 1) { *(undefined4 *)&in_ECX->field_0x138c = 600; } @@ -497896,7 +497896,7 @@ LAB_00775c66: if (iVar10 == 0) { Isaac::GetItemConfig(); uVar9 = ItemConfig::GetCollectible(0xd6); - FUN_00435f80(uVar9); + TemporaryEffect::TemporaryEffect(uVar9); local_4c = 0x3c; TemporaryEffects::AddEffect(local_54,1,1); } @@ -497915,7 +497915,7 @@ LAB_0077606b: } local_100[0] = (Game *)0x0; do { - FUN_00a10350(local_1c,((float)(int)local_100[0] * 360.0) / 10.0); + Vector::FromAngle(local_1c,((float)(int)local_100[0] * 360.0) / 10.0); local_13c = (undefined1 *)0x41200000; Vector::operator_mul_assign(&local_13c); uVar9 = Random(); @@ -498110,7 +498110,7 @@ LAB_007767bc: cVar5 = Entity_Player::HasCollectible(0x1f6,0); if (cVar5 != '\0') { random_float(); - uVar9 = FUN_00a10350(local_1c,(float)pGVar12 * 360.0); + uVar9 = Vector::FromAngle(local_1c,(float)pGVar12 * 360.0); Entity_Player::DoZitEffect(uVar9); } cVar5 = Entity_Player::HasTrinket(0x61,0); @@ -498234,7 +498234,7 @@ LAB_007767bc: if (iVar10 == 0) { if (local_13c != (undefined1 *)0x0) { GridEntity::GetType(); - cVar5 = FUN_0070bf80(); + cVar5 = is_grid_type_floor_special(); if (cVar5 != '\0') goto LAB_00776c4d; } pRVar25 = (Room *)Level::GetCurrentRoom(); @@ -498271,9 +498271,9 @@ LAB_00776c4d: piVar11 = (int *)FUN_0042c810(puVar31); if (((0 < *piVar11) && (cVar5 = Entity_Player::CanRerollCollectible(in_ECX,puVar31,0), cVar5 != '\0')) && - (iVar10 = FUN_007911c0(puVar31), iVar10 < 0)) { + (iVar10 = Entity_Player::GetActiveItemSlot(puVar31), iVar10 < 0)) { local_13c = puVar31; - FUN_0042c850(&local_13c); + std::vector::push_back(&local_13c); } puVar31 = puVar31 + 1; puVar26 = (undefined1 *)std::vector::size(); @@ -498286,7 +498286,7 @@ LAB_00776c4d: uVar9 = RNG::RandomInt(uVar9); puVar13 = (undefined4 *)FUN_0042c810(uVar9); Entity_Player::DropCollectible(in_ECX,*puVar13,0,1); - FUN_007cf8f0(); + Entity_Player::IsLocalPlayer(); SoundEffects::PlayWithFartOverride(0x385,2,0,0x3f800000); } local_8 = 0xffffffff; @@ -498302,7 +498302,7 @@ LAB_00776c4d: piVar11 = local_12c; do { std::vector::operator_index(pGVar12); - cVar5 = FUN_0042a250(); + cVar5 = Entity::IsFamiliar(); if (cVar5 == '\0') { std::vector::operator_index(local_118); cVar5 = Entity::IsEnemy(); @@ -498501,7 +498501,7 @@ LAB_00777601: local_11c = (Game *)0x0; do { uVar9 = Random(); - FUN_00a10350(local_74,((float)(int)local_11c / 10.0 + local_14c) * 360.0); + Vector::FromAngle(local_74,((float)(int)local_11c / 10.0 + local_14c) * 360.0); local_13c = (undefined1 *)0x41200000; uVar39 = Vector::__mul(local_138,&local_13c); pEVar22 = (Entity_Tear *)Game::Spawn(2,0x1d,&pEVar17->_pos,uVar39,pEVar17,0,uVar9) @@ -498640,7 +498640,7 @@ LAB_00777601: local_11c = (Game *)0x0; do { uVar9 = Random(); - FUN_00a10350(local_74,((float)(int)local_11c / 10.0 + local_18) * 360.0); + Vector::FromAngle(local_74,((float)(int)local_11c / 10.0 + local_18) * 360.0); local_30 = 0x41200000; uVar39 = Vector::__mul(local_150,&local_30); pEVar22 = (Entity_Tear *)Game::Spawn(2,0x1d,&in_ECX->_pos,uVar39,in_ECX,0,uVar9); @@ -498805,10 +498805,10 @@ LAB_00777f89: uVar9 = EntityRef::EntityRef(); (*pcVar2)(uVar9); } - uVar7 = FUN_007afc20(); + uVar7 = Entity_Player::try_trigger_astral_projection(); piVar11 = local_12c; local_10c = (Game *)CONCAT13(uVar7,(undefined3)local_10c); - FUN_00499960(local_12c); + EntityRef::operator_(local_12c); if (local_10c._3_1_ != '\0') { Game::GetField26614(); cVar5 = FUN_00429550(); @@ -498937,7 +498937,7 @@ LAB_007781da: if (cVar5 != '\0') { Isaac::GetItemConfig(); uVar9 = ItemConfig::GetCollectible(0x3a); - FUN_00435f80(uVar9); + TemporaryEffect::TemporaryEffect(uVar9); local_4c = 0x96; TemporaryEffects::AddEffect(local_54,1,1); } @@ -498988,7 +498988,7 @@ LAB_007781da: } local_18 = 2.8026e-45; piVar11 = (int *)std::min(); - iVar10 = FUN_007db330(*piVar11 * 0x3c); + iVar10 = Game::damage_cooldown_scale(*piVar11 * 0x3c); puVar31 = (undefined1 *)((int)&in_ECX->_flags + 4); *(uint *)puVar31 = *(uint *)puVar31 & 0xffffffef; in_ECX->_damageCooldown = iVar10; @@ -499000,7 +499000,7 @@ LAB_007781da: TemporaryEffects::AddCollectibleEffect(0x2a5,1,1); Isaac::GetItemConfig(); uVar9 = ItemConfig::GetCollectible(0x2a5); - FUN_00435f80(uVar9); + TemporaryEffect::TemporaryEffect(uVar9); local_4c = 0x96; Level::GetCurrentRoom(); FUN_004360d0(); @@ -499019,13 +499019,13 @@ LAB_007781da: Game::SetColorModifier(DAT_00c71678,uVar9,1); Game::MakeShockwave(DAT_00c71678,&in_ECX->_pos,0x3d4ccccd,0x3d8f5c29,0xc); SoundEffects::PlayWithFartOverride(0x141,2,0,0x3f800000); - iVar10 = FUN_007db330(0x3c); + iVar10 = Game::damage_cooldown_scale(0x3c); in_ECX->_damageCooldown = in_ECX->_damageCooldown + iVar10; } cVar5 = Entity_Player::HasTrinket(0x51,0); if (cVar5 != '\0') { iVar10 = Entity_Player::GetTrinketMultiplier(0x51); - iVar10 = FUN_007db330(iVar10 * 2); + iVar10 = Game::damage_cooldown_scale(iVar10 * 2); in_ECX->_damageCooldown = iVar10 * in_ECX->_damageCooldown; } cVar5 = Entity_Player::HasTrinket(0x80,0); @@ -499045,7 +499045,7 @@ LAB_007781da: } } if (((local_111 != '\0') && (cVar5 = Entity_Player::HasCollectible(0x160,0), cVar5 != '\0')) && - (local_144 = (float)FUN_007911c0(0x160), -1 < (int)local_144)) { + (local_144 = (float)Entity_Player::GetActiveItemSlot(0x160), -1 < (int)local_144)) { Entity_Player::RemoveCollectible (*(undefined4 *)(&in_ECX->field_0x1580 + (int)local_144 * 0x20),0,local_144,1); Entity_Player::AddCollectible(0x1da,0,0,local_144,0,0); @@ -499062,7 +499062,7 @@ LAB_007781da: if (cVar5 == '\0') { Isaac::GetItemConfig(); uVar9 = ItemConfig::GetCollectible(0xd6); - FUN_00435f80(uVar9); + TemporaryEffect::TemporaryEffect(uVar9); Game::GetField26614(); cVar5 = FUN_00429550(); if (cVar5 != '\0') { @@ -499875,7 +499875,7 @@ void __thiscall RoomTransition::Update(RoomTransition *this) } local_5c = fVar11; if (*(int *)&this[0xd].field_0x220 == 1) { - iVar6 = FUN_006ac8d0(); + iVar6 = Entity::get_velocity_direction(); *(int *)&this[9].field_0x208 = iVar6; } if (iVar6 != -1) { @@ -500562,7 +500562,7 @@ void FUN_0077b020(void) ((local_27d != 0 && (local_285 != '\0')))) { local_2c6 = 1; } - cVar5 = FUN_007b9f60(&local_2a4,0); + cVar5 = Entity_Player::GetMouseAimTarget(&local_2a4,0); if ((cVar5 == '\0') && ((byte)local_284 == 0)) { local_27d = 0; LAB_0077b373: @@ -501204,7 +501204,7 @@ LAB_0077c4aa: iVar11 = Room::GetFrameCount(pRVar18); if (5 < iVar11) { if (0x96 < *(int *)&in_ECX->field_0x1ee0) { - FUN_00a10350(local_2b0,*(float *)&in_ECX->field_0x1ae4 + 180.0); + Vector::FromAngle(local_2b0,*(float *)&in_ECX->field_0x1ae4 + 180.0); Entity_Player::GetLaserOffset(in_ECX,&local_29c,0xffffffff,local_2b0); local_298 = (NPCAI_Pathfinder *) ((float)local_298 - *(float *)&in_ECX->field_0x14fc * 4.0); @@ -501405,11 +501405,11 @@ LAB_0077cde3: Entity::SetParent(local_294); FUN_00435eb0(*(undefined4 *)&local_294->field_0x1404); FUN_0043eea0(*(undefined4 *)&local_294->field_0x1404); - FUN_00a10350(&local_29c,*(float *)&local_294->field_0x1404 + 90.0); + Vector::FromAngle(&local_29c,*(float *)&local_294->field_0x1404 + 90.0); local_28c = (NPCAI_Pathfinder *)0x41f00000; uVar12 = Vector::__mul(local_2b0,&local_28c); uVar12 = Vector::__add(local_2c4,uVar12); - FUN_004288f0(uVar12); + Entity::SetPosition(uVar12); in_ECX = local_294; (**(code **)(*piVar14 + 0x3c))(&local_294->field_0x1498,0xffffffff,0xff,0,1); (**(code **)(*piVar14 + 0xc))(); @@ -501456,12 +501456,12 @@ LAB_0077cde3: LerpAngleDeg(); local_28c = pNVar16; FUN_0043eea0(pNVar16); - FUN_00a10350(&local_29c,(float)local_28c + 90.0); + Vector::FromAngle(&local_29c,(float)local_28c + 90.0); local_28c = (NPCAI_Pathfinder *)0x41f00000; uVar12 = Vector::__mul(local_2b0,&local_28c); uVar12 = Vector::__add(local_2c4,uVar12); pNVar16 = local_2b4; - FUN_004288f0(uVar12); + Entity::SetPosition(uVar12); (**(code **)((int)pNVar16->_entity + 0x3c))(&in_ECX->field_0x1498,0xffffffff,0xff,0,1); local_28c = (NPCAI_Pathfinder *)&DAT_00000007; piVar14 = (int *)std::max(); @@ -501471,7 +501471,7 @@ LAB_0077cde3: if (cVar5 != '\0') { pNVar16 = (NPCAI_Pathfinder *)0x3f800000; local_2b8 = (NPCAI_Pathfinder *)0x3f800000; - cVar5 = FUN_007cf8c0(); + cVar5 = Entity_Player::IsLocalPlayer(); if (cVar5 == '\0') { FUN_00417900(); FUN_00925df0(); @@ -501522,7 +501522,7 @@ LAB_0077cde3: if (cVar5 != '\0') { Level::GetCurrentRoom(); npc = (Entity_NPC *)FUN_00428a60(); - NpcAI::ENTITY_MASK(npc); + EntityList::QuerySublist(npc); local_8 = 7.00649e-45; pNVar16 = (NPCAI_Pathfinder *)0x0; local_2c0 = (NPCAI_Pathfinder *)0x0; @@ -501537,7 +501537,7 @@ LAB_0077cde3: ((iVar11 = FUN_00753d30(), -1 < iVar11 && (iVar11 = FUN_00753d30(), iVar11 <= (int)local_2cc)))) { FUN_00753d40(local_2cc); - FUN_00435d60(local_29c,local_298); + Entity::SetTargetPosition(local_29c,local_298); local_2b4 = (NPCAI_Pathfinder *)((int)&local_2b4->_entity + 1); local_2cc = (void *)((int)local_2cc + 0xc); } @@ -501568,14 +501568,14 @@ LAB_0077cde3: fVar29 = (float10)Vector::GetAngleDegrees(); FUN_00435eb0((float)fVar29); fVar29 = (float10)Entity_Effect::Rotation(); - FUN_00a10350(local_2b0,(float)fVar29); + Vector::FromAngle(local_2b0,(float)fVar29); local_28c = (NPCAI_Pathfinder *)0x41200000; uVar12 = Vector::__mul(local_300,&local_28c); uVar12 = Vector::__sub(local_2f4,uVar12); - FUN_004288f0(uVar12); + Entity::SetPosition(uVar12); local_28c = (NPCAI_Pathfinder *)0x41200000; uVar12 = Vector::__mul(local_2d8,&local_28c); - FUN_00428910(uVar12); + Entity::SetVelocity(uVar12); Entity_Effect::SetTimeout(0x1e); (**(code **)(*piVar14 + 0xc))(); in_ECX = local_294; @@ -501643,7 +501643,7 @@ LAB_0077cde3: Entity::SetParent(local_294); FUN_00435eb0(*(undefined4 *)&local_294->field_0x1408); FUN_0043eea0(*(undefined4 *)&local_294->field_0x1408); - FUN_00a10350(&local_29c,*(float *)&local_294->field_0x1408 + 90.0); + Vector::FromAngle(&local_29c,*(float *)&local_294->field_0x1408 + 90.0); local_28c = (NPCAI_Pathfinder *)0x42340000; uVar12 = Vector::__mul(local_2d8,&local_28c); Vector::__add(local_2f4,uVar12); @@ -501651,7 +501651,7 @@ LAB_0077cde3: local_2c0 = (NPCAI_Pathfinder *)0x41200000; uVar12 = Vector::__mul(local_31c,&local_2c0); uVar12 = Vector::__add(local_a8,uVar12); - FUN_004288f0(uVar12); + Entity::SetPosition(uVar12); uVar12 = Vector::Vector(); Entity::SetPositionOffset(uVar12); (**(code **)(*piVar14 + 0x3c))(&local_294->field_0x1498,0xffffffff,0xff,0,1); @@ -501700,7 +501700,7 @@ LAB_0077cde3: LerpAngleDeg(); local_28c = pNVar16; FUN_0043eea0(pNVar16); - FUN_00a10350(local_2b0,(float)local_28c + 90.0); + Vector::FromAngle(local_2b0,(float)local_28c + 90.0); local_28c = (NPCAI_Pathfinder *)0x42340000; uVar12 = Vector::__mul(local_2d8,&local_28c); Vector::__add(local_2f4,uVar12); @@ -501709,7 +501709,7 @@ LAB_0077cde3: uVar12 = Vector::__mul(local_31c,&local_2c0); uVar12 = Vector::__add(local_a8,uVar12); pNVar16 = local_2b4; - FUN_004288f0(uVar12); + Entity::SetPosition(uVar12); (**(code **)((int)pNVar16->_entity + 0x3c))(&in_ECX->field_0x1498,0xffffffff,0xff,0,1); local_28c = (NPCAI_Pathfinder *)&DAT_00000007; piVar14 = (int *)std::max(); @@ -501790,20 +501790,20 @@ LAB_0077cde3: piVar14 = (int *)Game::Spawn(8,8,uVar36,&DAT_00c7b640,in_ECX,0,uVar12); Entity::SetParent(in_ECX); puVar10 = (undefined4 *)Vector::Vector(); - FUN_00435d60(*puVar10,puVar10[1]); + Entity::SetTargetPosition(*puVar10,puVar10[1]); fVar29 = (float10)Vector::GetAngleDegrees(); FUN_005b15d0((float)fVar29); uVar12 = Vector::Vector(); Entity::SetPositionOffset(uVar12); uVar12 = Entity::SpriteScale(); Entity::SetSpriteScale(uVar12); - FUN_009680d0(); + Entity_Knife::SetAttackAnimation(); FUN_00665bc0(1); FUN_00753770(0); (**(code **)(*piVar14 + 0x40))(0x42da0000); (**(code **)(*piVar14 + 0xc))(); *(undefined4 *)&in_ECX->field_0x1604 = 5; - iVar11 = FUN_007911c0(0x1e1); + iVar11 = Entity_Player::GetActiveItemSlot(0x1e1); if (-1 < iVar11) { Entity_Player::DischargeActiveItem(iVar11,0); } @@ -501856,7 +501856,7 @@ switchD_0077e14f_caseD_2a: piVar22 = (int *)EntityList::Size(); (**(code **)(*piVar22 + 0x44))(piVar14); } - cVar5 = FUN_007cf8c0(); + cVar5 = Entity_Player::IsLocalPlayer(); if (cVar5 == '\0') { uVar12 = Entity::GetColor(); Color::operator_assign(uVar12); @@ -501906,7 +501906,7 @@ LAB_0077e64e: piVar22 = (int *)EntityList::Size(); (**(code **)(*piVar22 + 0x44))(piVar14); } - cVar5 = FUN_007cf8c0(); + cVar5 = Entity_Player::IsLocalPlayer(); if (cVar5 == '\0') { uVar12 = Entity::GetColor(); Color::operator_assign(uVar12); @@ -502369,20 +502369,20 @@ switchD_0077f19d_caseD_2c5: piVar14 = (int *)Game::Spawn(8,4,uVar36,&DAT_00c7b640,in_ECX,0,uVar12); Entity::SetParent(in_ECX); puVar10 = (undefined4 *)Vector::Vector(); - FUN_00435d60(*puVar10,puVar10[1]); + Entity::SetTargetPosition(*puVar10,puVar10[1]); fVar29 = (float10)Vector::GetAngleDegrees(); FUN_005b15d0((float)fVar29); uVar12 = Vector::Vector(); Entity::SetPositionOffset(uVar12); uVar12 = Entity::SpriteScale(); Entity::SetSpriteScale(uVar12); - FUN_009680d0(); + Entity_Knife::SetAttackAnimation(); FUN_00665bc0(1); FUN_00753770(0); (**(code **)(*piVar14 + 0x40))(0x3f800000); (**(code **)(*piVar14 + 0xc))(); *(undefined4 *)&in_ECX->field_0x1604 = 5; - iVar11 = FUN_007911c0(0x2c6); + iVar11 = Entity_Player::GetActiveItemSlot(0x2c6); if (-1 < iVar11) { Entity_Player::DischargeActiveItem(iVar11,0); } @@ -502423,7 +502423,7 @@ switchD_0077f19d_caseD_2c5: uVar12 = Random(); piVar14 = (int *)Game::Spawn(3,0xf0,&in_ECX->_pos,&DAT_00c7b640,in_ECX,0,uVar12); Entity::ClearEntityFlags(4,0); - FUN_00435d60(local_2e4,local_2e0); + Entity::SetTargetPosition(local_2e4,local_2e0); FUN_005b18f0(1); (**(code **)(*piVar14 + 0xc))(); local_28c = (NPCAI_Pathfinder *)((int)&local_28c->_entity + 1); @@ -502458,8 +502458,8 @@ LAB_0077ed7e: Entity::ClearEntityFlags(4,0); Entity::AddEntityFlags(0,0x4000000); puVar10 = (undefined4 *)Vector::Vector(); - FUN_00435d60(*puVar10,puVar10[1]); - FUN_00428910(&local_2d0); + Entity::SetTargetPosition(*puVar10,puVar10[1]); + Entity::SetVelocity(&local_2d0); FUN_005b18f0(1); (**(code **)(*piVar14 + 0xc))(); uVar12 = Random(); @@ -503061,11 +503061,11 @@ undefined4 Entity_Player::GetBombVariant(void) } -//@@ 00780ec0 FUN_00780ec0 +//@@ 00780ec0 Entity_Player::check_bomb_tearflags /* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ -void FUN_00780ec0(uint param_1,uint param_2,uint param_3,uint param_4) +void Entity_Player::check_bomb_tearflags(uint param_1,uint param_2,uint param_3,uint param_4) { char cVar1; @@ -503242,7 +503242,7 @@ void FUN_00780f40(void) uStack_48 = uStack_58; uStack_44 = uStack_54; fVar15 = fStack_60; - FUN_00780ec0(fStack_60,uStack_5c,uStack_58,uStack_54); + Entity_Player::check_bomb_tearflags(fStack_60,uStack_5c,uStack_58,uStack_54); fStack_b8 = (float)in_ECX[0xd8] * 0.1; fStack_b4 = (float)in_ECX[0xd9] * 0.1; fStack_94 = fVar15; @@ -504313,15 +504313,15 @@ void FUN_00782af0(void) uVar10 = 0; *(Entity_Player **)(iVar11 + 0x1e6c) = in_ECX; EntityPtr::Ref(0); - FUN_004cf1d0(uVar10); - FUN_004cf1d0(0); + EntityPtr::Set(uVar10); + EntityPtr::Set(0); FUN_007a6680(0); FUN_004173a0(0); *(undefined1 *)(in_ECX->_redStewBonusDuration + 0x172) = 0; *(undefined4 *)(in_ECX->_redStewBonusDuration + 0x161c) = 0xffffffff; Level::GetCurrentRoom(); npc = (Entity_NPC *)FUN_00428a60(); - NpcAI::ENTITY_MASK(npc); + EntityList::QuerySublist(npc); local_8 = 1; uVar9 = 0; iVar11 = EntityList::Size(); @@ -504351,8 +504351,8 @@ void FUN_00782af0(void) } else { local_14c = (Entity_Player *)&in_ECX->_otherTwin; - FUN_004cf1d0(in_ECX->_redStewBonusDuration); - FUN_004cf1d0(in_ECX); + EntityPtr::Set(in_ECX->_redStewBonusDuration); + EntityPtr::Set(in_ECX); *(undefined4 *)(in_ECX->_redStewBonusDuration + 0x1e6c) = 0; local_120[0] = (Entity_Player *)in_ECX->_controllerIndex; in_ECX->_redStewBonusDuration = 0; @@ -504373,7 +504373,7 @@ void FUN_00782af0(void) iVar11 = EntityPtr::Ref(pEVar16,uVar10); if (*(char *)(iVar11 + 0x1824) == '\0') { EntityPtr::Ref(pEVar16,uVar10); - FUN_007bc740(); + Entity_Player::InitPostLevelInitStats(); } iVar11 = EntityPtr::Ref(pEVar16,uVar10); *(undefined1 *)(iVar11 + 0x172) = 1; @@ -504383,16 +504383,16 @@ void FUN_00782af0(void) local_120[0] = (Entity_Player *)0x41700000; uVar10 = Vector::operator_mul(uVar10); uVar10 = Vector::__add(local_17c,uVar10); - FUN_004288f0(uVar10); + Entity::SetPosition(uVar10); EntityPtr::Ref(); - FUN_00428910(&in_ECX->_velocity); + Entity::SetVelocity(&in_ECX->_velocity); Game::GetPlayerManager(); uVar10 = EntityPtr::Ref(); FUN_009b9f60(uVar10); uVar10 = 0xffffffff; in_stack_fffffdbc = (undefined4 *)EntityPtr::Ref(0xffffffff); in_stack_fffffdb8 = (Vector *)0x782e27; - FUN_007596a0(in_stack_fffffdbc,uVar10); + Entity_Player::SyncConsumables(in_stack_fffffdbc,uVar10); iVar11 = EntityPtr::Ref(); in_XMM0_Da = 0.0; *(undefined4 *)(iVar11 + 0x13f0) = 0; @@ -504505,7 +504505,7 @@ LAB_0078328a: local_120[0] = (Entity_Player *)*pfVar14; (in_ECX->_targetPosition).x = (float)local_120[0]; uVar10 = Entity::Position(&local_16c); - uVar10 = FUN_00a101c0(uVar10,0); + uVar10 = vector_lerp(uVar10,0); Vector::operator_assign(uVar10); Vector::operator_assign(&DAT_00c7b640); ExceptionList = local_10; @@ -504552,7 +504552,7 @@ LAB_0078328a: } } Game::GetPlayerManager(); - FUN_009ba000(in_ECX,0); + PlayerManager::RemoveCoPlayer(in_ECX,0); FUN_004242b0(); ExceptionList = local_10; return; @@ -504577,31 +504577,31 @@ LAB_0078328a: } pVVar58 = &in_ECX->_pos; if (*(int *)&in_ECX->field_0x143c != 0) { - FUN_004288f0(pVVar58); - FUN_00428910(&DAT_00c7b640); + Entity::SetPosition(pVVar58); + Entity::SetVelocity(&DAT_00c7b640); } if (*(int *)&in_ECX->field_0x1440 != 0) { - FUN_004288f0(pVVar58); - FUN_00428910(&DAT_00c7b640); + Entity::SetPosition(pVVar58); + Entity::SetVelocity(&DAT_00c7b640); } local_120[0] = *(Entity_Player **)&in_ECX->field_0x1444; if (local_120[0] != (Entity_Player *)0x0) { uVar10 = Vector::Vector(); Entity::SetPositionOffset(uVar10); - FUN_004288f0(pVVar58); - FUN_00428910(&DAT_00c7b640); + Entity::SetPosition(pVVar58); + Entity::SetVelocity(&DAT_00c7b640); } if (*(int *)&in_ECX->field_0x1e78 != 0) { - FUN_004288f0(pVVar58); - FUN_00428910(&DAT_00c7b640); + Entity::SetPosition(pVVar58); + Entity::SetVelocity(&DAT_00c7b640); } if (*(int *)&in_ECX->field_0x1e7c != 0) { - FUN_004288f0(pVVar58); - FUN_00428910(&DAT_00c7b640); + Entity::SetPosition(pVVar58); + Entity::SetVelocity(&DAT_00c7b640); } if (*(int *)&in_ECX->field_0x1e80 != 0) { - FUN_004288f0(pVVar58); - FUN_00428910(&DAT_00c7b640); + Entity::SetPosition(pVVar58); + Entity::SetVelocity(&DAT_00c7b640); } iVar11 = EntityPtr::Ref(); if (iVar11 != 0) { @@ -504609,14 +504609,14 @@ LAB_0078328a: pEVar16 = (Entity_Player *)Entity::Target(); if (pEVar16 == in_ECX) { EntityPtr::Ref(); - FUN_004288f0(pVVar58); + Entity::SetPosition(pVVar58); EntityPtr::Ref(); - FUN_00428910(&in_ECX->_velocity); + Entity::SetVelocity(&in_ECX->_velocity); } } if (in_ECX->_marsCooldown != 0) { - FUN_004288f0(pVVar58); - FUN_00428910(&DAT_00c7b640); + Entity::SetPosition(pVVar58); + Entity::SetVelocity(&DAT_00c7b640); } FUN_00757a10(); in_ECX->_speedMultiplier = in_XMM0_Da; @@ -504717,7 +504717,7 @@ LAB_0078328a: } else { local_140 = (byte *)((uint)local_140 & 0xffffff00); - FUN_004561a0(local_128); + std::iterator_copy(local_128); uVar10 = FUN_00456190(local_120); cVar5 = FUN_0042c710(uVar10); if (cVar5 != '\0') { @@ -504728,7 +504728,7 @@ LAB_0078328a: iVar11 = EntityPtr::Ref(); if (*(int *)(iVar11 + 0x10) != 0) { iVar11 = EntityPtr::Ref(); - FUN_00499960(iVar11 + 0x10); + EntityRef::operator_(iVar11 + 0x10); } iVar11 = EntityPtr::Ref(); local_140 = (byte *)((uint)local_140 & 0xff); @@ -504867,7 +504867,7 @@ joined_r0x00783ce0: Entity::SetSpriteScale(uVar10); Entity::SpriteScale(); uVar10 = Vector::Vector(); - FUN_00a10510(&local_184,uVar10); + Vector::Mul(&local_184,uVar10); uVar10 = Entity_Player::GetFlyingOffset(local_17c); uVar10 = Vector::__add(&local_174,uVar10); FUN_004563c0(uVar10); @@ -504946,7 +504946,7 @@ LAB_0078438c: else { do { std::vector::operator_index(uVar9); - local_120[0] = (Entity_Player *)FUN_00435e40(); + local_120[0] = (Entity_Player *)Entity::ToTear(); if (local_120[0] != (Entity_Player *)0x0) { puVar56 = &DAT_00c34810; Entity_Tear::TearFlags(&local_24); @@ -505151,13 +505151,13 @@ LAB_007852a3: pLVar20 = (Level *)Config::GetCollectibles(); Level::InitializeDevilAngelRoom(pLVar20,1,0); local_120[0] = (Entity_Player *)0xffffffff; - FUN_0042c850(local_120); + std::vector::push_back(local_120); } else { pLVar20 = (Level *)Config::GetCollectibles(); Level::InitializeDevilAngelRoom(pLVar20,0,1); local_120[0] = (Entity_Player *)0xffffffff; - FUN_0042c850(local_120); + std::vector::push_back(local_120); } goto LAB_007852b2; } @@ -505194,7 +505194,7 @@ LAB_007852a3: local_120[0] = (Entity_Player *)0x12; FUN_007dc620(local_120); local_120[0] = (Entity_Player *)0xfffffffe; - FUN_0042c850(local_120); + std::vector::push_back(local_120); } else { if (iVar13 == 5) { @@ -505279,7 +505279,7 @@ LAB_00785224: goto LAB_00785224; } local_120[0] = (Entity_Player *)0xfffffffe; - FUN_0042c850(local_120); + std::vector::push_back(local_120); } else if (iVar13 == 6) { local_129 = '\x01'; @@ -505333,7 +505333,7 @@ LAB_00785224: FUN_007dc620(local_120); } local_120[0] = (Entity_Player *)0xfffffffa; - FUN_0042c850(local_120); + std::vector::push_back(local_120); } LAB_007852b2: FUN_005cbe20(); @@ -505359,8 +505359,8 @@ LAB_007852b2: piVar17 = (int *)FUN_0042c810(uVar9); if (*(int *)(*(int *)&local_130->field_0x10 + 8) == *piVar17) { local_140 = *(byte **)local_130; - FUN_00557b00(&local_138,&local_140); - uVar10 = FUN_004561a0(local_120); + std::set::find(&local_138,&local_140); + uVar10 = std::iterator_copy(local_120); cVar5 = FUN_00557bb0(uVar10); if (cVar5 != '\0') { std::set::insert(&local_16c,&local_140); @@ -505374,7 +505374,7 @@ LAB_007852b2: cVar5 = local_129; } if (cVar5 != '\0') { - FUN_0042c850(&local_140); + std::vector::push_back(&local_140); } } } @@ -505554,7 +505554,7 @@ LAB_007854cf: (cVar5 = Entity_Player::IsExtraAnimationFinished(), cVar5 != '\0')) { pcVar33 = "Appear"; Config::GetPillEffects(); - pbVar22 = (byte *)FUN_00407380(); + pbVar22 = (byte *)_string_holder_c_str(); do { bVar6 = *pbVar22; bVar34 = bVar6 < (byte)*pcVar33; @@ -505578,7 +505578,7 @@ LAB_007858c5: else { pcVar33 = "Glitch"; Config::GetPillEffects(); - pbVar22 = (byte *)FUN_00407380(); + pbVar22 = (byte *)_string_holder_c_str(); do { bVar6 = *pbVar22; bVar34 = bVar6 < (byte)*pcVar33; @@ -505602,8 +505602,8 @@ LAB_00785915: } } if (in_ECX->_heldEntity != (void *)0x0) { - FUN_004288f0(&in_ECX->_pos); - FUN_00428910(&in_ECX->_velocity); + Entity::SetPosition(&in_ECX->_pos); + Entity::SetVelocity(&in_ECX->_velocity); cVar5 = FUN_004173b0(); if (cVar5 != '\0') { pvVar2 = in_ECX->_heldEntity; @@ -505643,7 +505643,7 @@ joined_r0x00785a7e: } else { EntityPtr::clear(); - cVar5 = FUN_007b9f60(&local_16c,0); + cVar5 = Entity_Player::GetMouseAimTarget(&local_16c,0); if (cVar5 == '\0') goto joined_r0x00785a7e; } TemporaryEffects::RemoveCollectibleEffect(0x1f1,1); @@ -505655,7 +505655,7 @@ joined_r0x00785a7e: play_sound_with_fart_seed(0x50,2,0,0x3f800000); Game::ShakeScreen(10); uVar10 = Color::Color(); - FUN_006b66a0(uVar10); + Entity::MakeGroundPoofAtSelf(uVar10); in_stack_fffffdb8 = (Vector *)0x42480000; in_stack_fffffda0._4_4_ = in_ECX; in_stack_fffffda0._0_4_ = &in_ECX->_pos; @@ -505690,7 +505690,7 @@ LAB_00785bc0: goto LAB_00785bc0; Vector::operator_assign(&DAT_00c7b640); } - pEVar16 = (Entity_Player *)FUN_00499da0(); + pEVar16 = (Entity_Player *)Entity::ToPlayer(); local_154 = pEVar16; cVar5 = Entity_Player::IsHologram(in_ECX); if (cVar5 != '\0') { @@ -505928,7 +505928,7 @@ LAB_00785d5e: iVar11 = FUN_00435df0(); if (iVar11 != 0) { fVar35 = (float10)Entity_Projectile::Damage(); - FUN_00a10350(local_13c,(float)fVar35); + Vector::FromAngle(local_13c,(float)fVar35); local_120[0] = (Entity_Player *)0xc1600000; uVar10 = Vector::operator_mul(local_13c); FUN_00753750(uVar10); @@ -506054,7 +506054,7 @@ LAB_00785d5e: ((cVar5 = ANM2::IsPlaying(&DAT_00b1a4ec), cVar5 != '\0' && (iVar11 = Sprite::GetNullFrame("ItemWalk"), iVar11 != 0)))) { Sprite::Scale(); - uVar10 = FUN_00a10510(local_13c,iVar11 + 0x10); + uVar10 = Vector::Mul(local_13c,iVar11 + 0x10); Sprite::SetScale(uVar10); } local_16c = DAT_00c3793c; @@ -506104,13 +506104,13 @@ LAB_00785d5e: auVar39 = ZEXT416((uint)((float)iVar11 * (float)local_140)); FUN_00417150(); fVar37 = (auVar39._0_4_ * 0.5 + 0.5) * 1.2; - FUN_00505b40(); + pow_wrapper(); local_154 = (Entity_Player *)((fVar37 - 0.2) * (float)local_130 + 1.0); iVar11 = Game::GetFrameCount(); auVar39 = ZEXT416((uint)((float)(iVar11 + -3) * (float)local_140)); FUN_00417150(); fVar37 = (auVar39._0_4_ * 0.5 + 0.5) * 1.2; - FUN_00505b40(); + pow_wrapper(); fVar37 = (fVar37 - 0.2) * (float)local_160 * (float)local_160; local_148 = (Entity_Player *)((1.0 / (float)local_154 - 1.0) * 0.5 + 1.0 + fVar37); _local_128 = (undefined1 *)(fVar37 * 0.5 + (float)local_154); @@ -506118,13 +506118,13 @@ LAB_00785d5e: auVar39 = ZEXT416((uint)((float)(iVar11 + 10) * (float)local_140)); FUN_00417150(); fVar37 = (auVar39._0_4_ * 0.5 + 0.5) * 1.2; - FUN_00505b40(); + pow_wrapper(); local_154 = (Entity_Player *)((fVar37 - 0.2) * (float)local_130); iVar11 = Game::GetFrameCount(); auVar39 = ZEXT416((uint)((float)(iVar11 + 0x14) * (float)local_140)); FUN_00417150(); fVar37 = (auVar39._0_4_ * 0.5 + 0.5) * 1.2; - FUN_00505b40(); + pow_wrapper(); local_18c = (undefined1 *)((fVar37 - 0.2) * (float)local_18c * 0.1 + 1.0); local_188 = (Entity_Player *)(1.0 / (float)local_18c); } @@ -506149,7 +506149,7 @@ LAB_00785d5e: } } } - FUN_005cd460(8); + Entity::AddFlagsLow(8); Color::Color(); Color::Color(); cVar5 = Entity_Player::HasCollectible(0xca,0); @@ -506175,7 +506175,7 @@ LAB_00785d5e: if (0.0 < (float)local_160) { if (1.0 <= (float)local_160) { Game::GetFrameCount(); - FUN_00417160(); + sinf_wrapper(); } goto LAB_00786ffb; } @@ -506184,7 +506184,7 @@ LAB_00785d5e: local_160 = (Entity_Player *)((float)iVar11 / (float)in_ECX->_maxBladderCharge); if (in_ECX->_maxBladderCharge <= iVar11) { Game::GetFrameCount(); - FUN_00417160(); + sinf_wrapper(); } LAB_00786ffb: uVar10 = Color::Color(); @@ -506193,7 +506193,7 @@ LAB_00786ffb: if ((0 < *(int *)&in_ECX->field_0x1ae8) || (iVar11 = TemporaryEffects::GetCollectibleEffectNum(699), iVar11 == 4)) { Game::GetFrameCount(); - FUN_00417160(); + sinf_wrapper(); uVar10 = Color::Color(); Color::__mul(uVar10); } @@ -506221,11 +506221,11 @@ LAB_00786ffb: fVar37 = *pfVar14; *(float *)&in_ECX->field_0x1efc = fVar37; fVar37 = ((fVar37 + fVar37) * 3.1415927) / 10.0; - FUN_00417160(); + sinf_wrapper(); fVar36 = *(float *)&in_ECX->field_0x1efc + 1.0; local_160 = (Entity_Player *)(1.0 - (*(float *)&in_ECX->field_0x1efc / 20.0) * fVar37 * 0.4); fVar37 = ((fVar36 + fVar36) * 3.1415927) / 10.0; - FUN_00417160(); + sinf_wrapper(); fVar37 = 1.0 - ((*(float *)&in_ECX->field_0x1efc + 1.0) / 20.0) * fVar37 * 0.4; _local_128 = (undefined1 *)((float)local_160 * (float)_local_128); local_148 = (Entity_Player *)((2.0 - (float)local_160) * (float)local_148); @@ -506287,10 +506287,10 @@ LAB_00786ffb: cVar5 = TemporaryEffects::HasCollectibleEffect(0x2c0); if (cVar5 != '\0') { fVar37 = *(float *)&in_ECX->field_0x3a4 * 1.5707964; - FUN_00417160(); + sinf_wrapper(); local_174 = (ANM2 *)(fVar37 + (float)local_174); fVar37 = *(float *)&in_ECX->field_0x3a4 * 1.2566371; - FUN_00417160(); + sinf_wrapper(); auVar40._0_4_ = (Entity_Player *)((SUB124(ZEXT812(0x3f800000),0) - (fVar37 * 0.5 + 0.5)) * 0.4); auVar40._4_8_ = SUB128(ZEXT812(0x3f800000),4); @@ -506332,7 +506332,7 @@ LAB_00786ffb: Entity_Player::GetBombVariant (in_stack_fffffdb8,in_stack_fffffdbc,uVar10,pfVar14,uVar19); FUN_00435bc0(0,0); - FUN_00780ec0(in_stack_fffffdbc,uVar10,pfVar14,uVar19); + Entity_Player::check_bomb_tearflags(in_stack_fffffdbc,uVar10,pfVar14,uVar19); if (1.5 <= fVar37) { local_14c = (Entity_Player *)0x42dc0000; } @@ -506401,7 +506401,7 @@ LAB_0078784d: Color::__mul(&local_6c); Color::__mul(&local_6c); } - cVar5 = FUN_007cf8c0(); + cVar5 = Entity_Player::IsLocalPlayer(); if (cVar5 == '\0') { FUN_00417900(); FUN_00925df0(); @@ -506430,11 +506430,11 @@ LAB_00787961: Color::operator_assign(puVar27); puVar18 = (undefined4 *)&in_ECX->field_0x1500; if (local_121 == '\0') { - uVar10 = FUN_00a10510(local_144,&in_ECX->field_0x14f8); + uVar10 = Vector::Mul(local_144,&in_ECX->field_0x14f8); Sprite::GetLayer(iVar11); Vector::operator_assign(uVar10); - FUN_00a10510(local_198,&in_ECX->field_0x1500); - uVar10 = FUN_00a10510(&fStack_1c,&local_16c); + Vector::Mul(local_198,&in_ECX->field_0x1500); + uVar10 = Vector::Mul(&fStack_1c,&local_16c); Sprite::GetLayer(iVar11); Vector::operator_assign(uVar10); iVar13 = Sprite::GetLayer(iVar11); @@ -506546,7 +506546,7 @@ LAB_00787c20: cVar5 = Entity::HasEntityFlags(0x4000,0); if (cVar5 == '\0') { FUN_0042c770(&local_140); - uVar10 = FUN_004561a0(&local_14c); + uVar10 = std::iterator_copy(&local_14c); cVar5 = FUN_0042c710(uVar10); if (cVar5 != '\0') { local_160 = (Entity_Player *)&in_ECX->field_0x1220; @@ -506554,7 +506554,7 @@ LAB_00787c20: puVar18 = (undefined4 *)FUN_005cba30(); pAVar26 = (ANM2 *)FUN_005cbd10(*puVar18); local_138 = pAVar26; - FUN_005cd460(8); + Entity::AddFlagsLow(8); ANM2::Update(pAVar26); FUN_0041e470(); cVar5 = FUN_004073a0(); @@ -506601,8 +506601,8 @@ LAB_00787ec4: } } } - FUN_006518f0(&local_130,0); - uVar10 = FUN_004561a0(&local_14c); + set_iterator_post_increment(&local_130,0); + uVar10 = std::iterator_copy(&local_14c); cVar5 = FUN_0042c710(uVar10); } while (cVar5 != '\0'); in_ECX = local_134; @@ -506668,13 +506668,13 @@ LAB_00787ec4: local_138 = (ANM2 *)ANM2::GetLayer((ANM2 *)&in_ECX->field_0x48,"extra"); if (local_138 != (ANM2 *)0x0) { Config::GetPillEffects(); - uVar10 = FUN_00452be0(); + uVar10 = _ptr_deref_or_minus1(); iVar11 = AnimationState::GetLayerFrame(uVar10); if (iVar11 != 0) { FUN_0067f2e0(); uVar10 = Vector::Vector(); Vector::__add(&local_184,uVar10); - uVar10 = FUN_00a10510(local_17c,&in_ECX->field_0x14f0); + uVar10 = Vector::Mul(local_17c,&in_ECX->field_0x14f0); Vector::operator_add_assign(uVar10); } } @@ -506708,14 +506708,14 @@ LAB_00787ec4: auVar40._4_12_ = auVar41; local_14c = auVar40._0_4_; Vector::__mul(local_17c,&local_14c); - uVar10 = FUN_00a10510(&local_174,&DAT_00c3793c); + uVar10 = Vector::Mul(&local_174,&DAT_00c3793c); Entity::SetSpriteScale(uVar10); FUN_00440e90(0xfffff830); } iVar11 = Entity::GetIntervalTicks(); if (iVar11 != 0) { Config::GetCollectibles(); - iVar11 = FUN_004360f0(); + iVar11 = _get_index_plus_one_if_kind_4_5(); local_14c = (Entity_Player *)((float)iVar11 * 0.2 + 2.0); local_138 = (ANM2 *)(in_ECX->_size + 40.0); auVar40 = ZEXT416(local_138); @@ -506735,7 +506735,7 @@ LAB_00787ec4: )) { LAB_0078863e: std::vector::operator_index(pEVar16); - cVar5 = FUN_00431540(); + cVar5 = Entity::IsProjectile(); if ((cVar5 != '\0') && (bStack_125 == false)) { std::vector::operator_index(pEVar16); cVar5 = Entity::IsDead(); @@ -506887,7 +506887,7 @@ LAB_00788a4d: if (iVar11 != 0) { do { uVar10 = Sprite::Scale(); - uVar10 = FUN_00a10510(&fStack_1c,uVar10); + uVar10 = Vector::Mul(&fStack_1c,uVar10); Sprite::GetLayer(uVar9); Vector::operator_assign(uVar10); iVar11 = Sprite::GetLayer(uVar9); @@ -507159,7 +507159,7 @@ LAB_00788e85: } cVar5 = FUN_0040c2d0(); if ((cVar5 == '\0') && (cVar5 = Entity_Player::IsExtraAnimationFinished(), cVar5 != '\0')) { - uVar10 = FUN_0040d0c0(); + uVar10 = std::string::c_str(); Entity_Player::PlayExtraAnimation(uVar10); FUN_0040c2f0(); } @@ -507256,7 +507256,7 @@ LAB_007894ef: local_12a = FUN_0082ee30(); if (local_12a != 0) goto LAB_00789743; Config::GetPillEffects(); - pbVar23 = (byte *)FUN_00407380(); + pbVar23 = (byte *)_string_holder_c_str(); do { bVar6 = *pbVar23; bVar34 = bVar6 < *pbVar22; @@ -507328,7 +507328,7 @@ LAB_007895db: Game::GetField26614(); cVar5 = FUN_00429550(); if (cVar5 == '\0') { - FUN_00959130(); + Game::DeleteSaveState(); FUN_0095a680(); } } @@ -507367,7 +507367,7 @@ LAB_007897da: } else { FUN_00417920(); - iVar11 = FUN_0090ac70(in_ECX); + iVar11 = InputManager::GetDeviceByPlayerEntity(in_ECX); if (iVar11 == 0) goto LAB_007897da; iVar11 = FUN_00753d50(); cVar5 = iVar11 == 0; @@ -507383,12 +507383,12 @@ LAB_007897da: (local_154->field_0x74 != '\0')))) { EntityPtr::clear(); Config::GetPillEffects(); - uVar10 = FUN_00452be0(); + uVar10 = _ptr_deref_or_minus1(); local_138 = (ANM2 *)AnimationState::GetLayerFrame(uVar10); if ((local_138 != (ANM2 *)0x0) && (local_138->field_0x2c != '\0')) { Config::GetPillEffects(); iVar11 = GridEntity::GetType(); - iVar13 = FUN_00452be0(); + iVar13 = _ptr_deref_or_minus1(); if (-1 < *(int *)(iVar11 + 0x38 + iVar13 * 4)) { Config::GetPillEffects(); GridEntity::GetType(); @@ -507552,7 +507552,7 @@ LAB_00789f05: *(undefined4 *)(iVar11 + 0x16ac) = uVar10; puVar27 = &local_134->field_0x167c; EntityPtr::Ref(puVar27); - FUN_00499960(puVar27); + EntityRef::operator_(puVar27); piVar17 = (int *)EntityPtr::Ref(); pcVar1 = *(code **)(*piVar17 + 0x24); uVar10 = EntityRef::EntityRef(); @@ -507853,7 +507853,7 @@ LAB_0078aa68: } cVar5 = Entity_Player::HasInstantDeathCurse(in_ECX); if (cVar5 == '\0') { - iVar11 = FUN_00435db0(); + iVar11 = Entity::GetHitPointsLost(); uVar9 = *(int *)&in_ECX->field_0x138c - iVar11; *(uint *)&in_ECX->field_0x138c = uVar9; if ((int)uVar9 < 1) { @@ -507932,7 +507932,7 @@ LAB_0078ace4: uVar10 = Vector::__mul(local_198,&local_138); puVar27 = (undefined1 *)Vector::__add(&local_16c,uVar10); } - FUN_004288f0(puVar27); + Entity::SetPosition(puVar27); } cVar5 = Game::IsGreedMode(DAT_00c71678); if (cVar5 == '\0') { @@ -508060,7 +508060,7 @@ LAB_0078b0f0: thunk_FUN_007dce00(); } FUN_0060c560(local_1ac); - uVar53 = FUN_00499270(&fStack_20); + uVar53 = _range_to_span(&fStack_20); uVar19 = 0x78b149; cVar5 = FUN_0060c450(uVar53); while (cVar5 != '\0') { @@ -508076,7 +508076,7 @@ LAB_0078b0f0: else { FUN_0060c410(); } - uVar53 = FUN_00499270(&fStack_20); + uVar53 = _range_to_span(&fStack_20); uVar19 = 0x78b1c5; cVar5 = FUN_0060c450(uVar53); } @@ -508488,13 +508488,13 @@ void FUN_0078b640(float *param_1,undefined4 param_2) if (0x7fffffffU - iVar5 < 8) { LAB_0078c992: /* WARNING: Subroutine does not return */ - FUN_0040ccc0(); + std::string::_Xlen(); } puVar6 = puVar14; if (0xf < *(uint *)&in_ECX->field_0x1334) { puVar6 = *(undefined1 **)puVar14; } - FUN_00421680(local_7c,iVar5,puVar6,iVar5,"_Overlay",8); + std::string::concat(local_7c,iVar5,puVar6,iVar5,"_Overlay",8); local_88 = local_2c[0]; local_98 = (float)FUN_0040bcd0(); if (0xf < local_18) { @@ -508510,7 +508510,7 @@ LAB_0078c992: if (0xf < *(uint *)&in_ECX->field_0x1334) { puVar14 = *(undefined1 **)puVar14; } - FUN_00421680(local_7c,iVar5,puVar14,iVar5,"_Overlay",8); + std::string::concat(local_7c,iVar5,puVar14,iVar5,"_Overlay",8); local_8 = (undefined4 ******)CONCAT31(local_8._1_3_,2); pppppppuVar7 = local_2c; if (0xf < local_18) { @@ -508780,7 +508780,7 @@ LAB_0078c2c7: LAB_0078c2d5: cVar3 = Entity_Player::IsHoldingItem(); if (cVar3 != '\0') { - cVar3 = FUN_007cf8c0(); + cVar3 = Entity_Player::IsLocalPlayer(); if (cVar3 == '\0') { FUN_00925df0(); local_78 = pfVar8; @@ -509023,7 +509023,7 @@ void FUN_0078ca00(float *param_1) if (0.001 <= local_5c) { pfStack_138 = (float *)0x78cc57; FUN_0042d060(); - cVar4 = FUN_007cf8c0(); + cVar4 = Entity_Player::IsLocalPlayer(); if (cVar4 == '\0') { fStack_34 = local_7c; } @@ -509049,7 +509049,7 @@ void FUN_0078ca00(float *param_1) local_50 = (local_58 + *local_88 + *(float *)(iVar7 + 0x2650c)) - fVar9 * 0.5; local_4c = (fVar11 + local_88[1] + *(float *)(iVar7 + 0x26510)) - fVar12 * 0.5; fStack_13c = 1.1094137e-38; - FUN_00a10e70(); + render_quad_set_rect(); fStack_13c = 1.1094153e-38; pfStack_138 = (float *)((int)in_ECX + 0x201c); KAGE::SmartPointer::operator_assign(); @@ -509171,7 +509171,7 @@ void FUN_0078ca00(float *param_1) *(float *)(iVar7 + 0xe4) = local_78 * local_44; *(float *)(iVar7 + 0xe8) = local_70 * local_5c; *(float *)(*(int *)((int)in_ECX + 0x1410) + 0xec) = local_54 + local_58; - cVar4 = FUN_007cf8c0(); + cVar4 = Entity_Player::IsLocalPlayer(); if (cVar4 == '\0') { *(float *)(*(int *)((int)in_ECX + 0x1410) + 0xfc) = local_4c * local_7c; } @@ -509241,7 +509241,7 @@ LAB_0078d290: *(float *)(iVar7 + 0xe4) = local_78 * local_44; *(float *)(iVar7 + 0xe8) = local_70 * local_5c; *(float *)(*(int *)((int)in_ECX + 0x1410) + 0xec) = local_54 + local_58; - cVar4 = FUN_007cf8c0(); + cVar4 = Entity_Player::IsLocalPlayer(); if (cVar4 == '\0') { *(float *)(*(int *)((int)in_ECX + 0x1410) + 0xfc) = local_4c * local_7c; } @@ -509415,7 +509415,7 @@ LAB_0078d290: uStack_a8 = 0x3f19999a; fStack_a4 = 1.0; fStack_13c = 1.1099176e-38; - FUN_00a1af90(); + Font::DrawString(); LAB_0078dbfd: ExceptionList = local_10; return; @@ -509842,7 +509842,7 @@ LAB_0078e48c: (**(code **)(*piVar16 + 0x40))(uStack_64); piVar15[0x5b] = piVar15[0x5b] | 4; piVar15[0x5a] = piVar15[0x5a]; - FUN_009680d0(); + Entity_Knife::SetAttackAnimation(); (**(code **)(*piVar15 + 0xc))(); *(undefined4 *)&this->field_0x1ef8 = 9; } @@ -510230,7 +510230,7 @@ LAB_0078e48c: pEStack_90 = this; cVar3 = (**(code **)(*(int *)param_2 + 0x20))(fVar17,0x40,0,&iStack_b4,0xf); if ((cVar3 != '\0') && (bStack_c5 != '\0')) { - iVar4 = FUN_004360f0(); + iVar4 = _get_index_plus_one_if_kind_4_5(); fStack_cc = (param_2->_pos).y - (this->_pos).y; fStack_bc = (float)iVar4 * 2.1 + 15.0; pcStack_d0 = (code *)((param_2->_pos).x - (this->_pos).x); @@ -510465,7 +510465,7 @@ void __thiscall Entity_Player::RemoveCollectibleByHistoryIndex(Entity_Player *th && (iVar1 = iVar3 + param_2 * 0x1c, *(char *)(iVar3 + 4 + param_2 * 0x1c) == '\0')) { iVar3 = *(int *)(iVar1 + 8); if (iVar3 < 0) { - cVar4 = FUN_009e04b0(iVar3); + cVar4 = collectible_set_has(iVar3); if (cVar4 != '\0') goto LAB_0078ff31; } else if (0 < *(int *)(*(int *)&this->field_0x16c8 + iVar3 * 4)) { @@ -510523,7 +510523,7 @@ void FUN_0078ff90(int param_1) } if (param_1 < 0x12f) { if ((param_1 == 0x12e) || (param_1 == 0xc)) { - FUN_0075e320(0xd,0xffffffff); + Entity_Player::IncrementPlayerFormCounter(0xd,0xffffffff); } else if (param_1 == 0x51) { iVar2 = Entity_Player::GetCollectibleNum(); @@ -510597,7 +510597,7 @@ switchD_0079018f_caseD_fc: else { if (param_1 == 0x23) { switchD_0079018f_caseD_106: - FUN_0075e320(0xf,0xffffffff); + Entity_Player::IncrementPlayerFormCounter(0xf,0xffffffff); goto switchD_0079018f_caseD_fd; } if (param_1 != 0x8b) goto switchD_0079018f_caseD_fd; @@ -511173,9 +511173,9 @@ Entity_Player::FireTear } -//@@ 007910f0 FUN_007910f0 +//@@ 007910f0 Entity_Player::GetTotalActiveCharge -int FUN_007910f0(int param_1) +int Entity_Player::GetTotalActiveCharge(int param_1) { int *piVar1; @@ -511219,9 +511219,9 @@ int FUN_007910f0(int param_1) } -//@@ 007911c0 FUN_007911c0 +//@@ 007911c0 Entity_Player::GetActiveItemSlot -uint FUN_007911c0(int param_1) +uint Entity_Player::GetActiveItemSlot(int param_1) { uint uVar1; @@ -511241,9 +511241,9 @@ uint FUN_007911c0(int param_1) } -//@@ 007911f0 FUN_007911f0 +//@@ 007911f0 Entity_Player::GetCollectibleMaxCharge -uint FUN_007911f0(int param_1,uint param_2) +uint Entity_Player::GetCollectibleMaxCharge(int param_1,uint param_2) { char cVar1; @@ -511294,7 +511294,7 @@ uint FUN_007911f0(int param_1,uint param_2) //@@ 00791320 Entity_Player::GetActiveMaxCharge -/* DB: slot->item/varData, slot 3 returns 0; calls per-item max charge 007911f0 */ +/* DB: slot->item/varData, slot 3 returns 0; calls per-item max charge 007911f0 Entity_Player::GetCollectibleMaxCharge undefined4 Entity_Player::GetActiveMaxCharge(int param_1) @@ -511307,7 +511307,7 @@ undefined4 Entity_Player::GetActiveMaxCharge(int param_1) (*(int *)(DAT_00c71678 + 0x26584) == 0x2c)))) { return 0; } - uVar1 = FUN_007911f0(*(undefined4 *)((param_1 + 0xac) * 0x20 + in_ECX), + uVar1 = Entity_Player::GetCollectibleMaxCharge(*(undefined4 *)((param_1 + 0xac) * 0x20 + in_ECX), *(undefined4 *)(param_1 * 0x20 + 0x159c + in_ECX),in_ECX); return uVar1; } @@ -511339,7 +511339,7 @@ undefined4 FUN_00791380(int param_1) (iVar1 == 1)) { return 1; } - uVar4 = FUN_007911f0(iVar2,iVar1,param_1); + uVar4 = Entity_Player::GetCollectibleMaxCharge(iVar2,iVar1,param_1); return uVar4; } @@ -511369,7 +511369,7 @@ void Entity_Player::SetActiveCharge(int param_1,int param_2) if (3 < param_2) { return; } - iVar2 = FUN_007910f0(param_2); + iVar2 = Entity_Player::GetTotalActiveCharge(param_2); if (*(int *)((param_2 + 0xac) * 0x20 + in_ECX) != 0) { iVar3 = Entity_Player::GetActiveMaxCharge(param_2); iVar4 = param_1; @@ -511386,7 +511386,7 @@ void Entity_Player::SetActiveCharge(int param_1,int param_2) } *(int *)(param_2 * 0x20 + 0x158c + in_ECX) = iVar3; } - iVar3 = FUN_007910f0(param_2); + iVar3 = Entity_Player::GetTotalActiveCharge(param_2); if ((iVar2 != iVar3) && ((cVar1 = HasTrinket(0x65,0), cVar1 != '\0' || (cVar1 = HasTrinket(100,0), cVar1 != '\0')))) { *(uint *)(in_ECX + 0x1574) = *(uint *)(in_ECX + 0x1574) | 0x41f; @@ -511472,7 +511472,7 @@ Entity_Player::AddActiveCharge } while (uVar9 < 4); return iVar8; } - local_c = FUN_007910f0(param_3); + local_c = Entity_Player::GetTotalActiveCharge(param_3); iVar10 = 0; local_10 = param_3 * 0x20 + 0x1580; if (*(int *)(&this->field_0x1580 + param_3 * 0x20) != 0) { @@ -511578,7 +511578,7 @@ Entity_Player::AddActiveCharge AnimateCollectible(this,0x160,"UseItem","PlayerPickupSparkle"); } } - iVar8 = FUN_007910f0(0); + iVar8 = Entity_Player::GetTotalActiveCharge(0); if ((iVar8 != local_c) && ((cVar1 = HasTrinket(0x65,0), cVar1 != '\0' || (cVar1 = HasTrinket(100,0), cVar1 != '\0')))) { this->_tearPoisonDamage = (float)((uint)this->_tearPoisonDamage | 0x41f); @@ -511754,7 +511754,7 @@ LAB_00791acf: piVar14 = DAT_00c7169c + 0x12cf6; local_43 = DAT_00c7169c[0xa8f5] == 0; if (*piVar14 != DAT_00c7169c[0x12cf7]) { - iVar6 = FUN_0090ac70(in_ECX); + iVar6 = InputManager::GetDeviceByPlayerEntity(in_ECX); piVar14 = extraout_ECX; if (iVar6 != 0) { local_43 = *(int *)(iVar6 + 0x3d0) == 0; @@ -511819,7 +511819,7 @@ LAB_00791bd4: local_41 = '\x01'; local_42 = '\x01'; } - local_a0 = FUN_007910f0(param_1); + local_a0 = Entity_Player::GetTotalActiveCharge(param_1); if ((in_ECX->_vampireCharmKills == 0x2c5) || ((in_ECX->_suplexLandPos).x != 0.0)) { if ((in_ECX->_suplexLandPos).x != 2.8026e-45) { ExceptionList = local_10; @@ -512070,13 +512070,13 @@ LAB_00792293: Entity_Player::RemoveCollectible(piVar14,0,0,0); uVar15 = Game::IsGreedMode(DAT_00c71678); uVar12 = RNG::Next(); - FUN_007d58f0(&in_ECX->_pos,extraout_ECX_04,uVar12,(uVar15 & 0xff) << 4); + Entity_Player::tainted_cain_pedestal_burst(&in_ECX->_pos,extraout_ECX_04,uVar12,(uVar15 & 0xff) << 4); } } HUD::ShowItemText((HUD *)&(DAT_00c71678->_hud).field_0x58,in_ECX,local_48); uVar12 = ItemPool::GetFirstItemPoolForCollectible (&DAT_00c71678->_itemPool,*(undefined4 *)&in_ECX->field_0x1f4c); - FUN_0075e050(local_48,local_48[0x32],0,0,uVar12); + Entity_Player::SetQueuedItem(local_48,local_48[0x32],0,0,uVar12); cVar5 = Entity_Player::HasCollectible(0x248,0); if (cVar5 != '\0') { pVVar21 = &in_ECX->_pos; @@ -512267,7 +512267,7 @@ LAB_007929ba: local_41 = '\x01'; if (iVar6 != 0x93) { if (iVar6 == 0x2d2) { - NpcAI::ENTITY_MASK((Entity_NPC *)((int)DAT_00c71678->_room + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)((int)DAT_00c71678->_room + 0x1218)); iVar6 = 0; fVar16 = 1e+09; piVar14 = (int *)0x0; @@ -512294,7 +512294,7 @@ LAB_007929ba: } else { if (iVar6 != 0x2d9) goto LAB_00792c68; - NpcAI::ENTITY_MASK((Entity_NPC *)((int)DAT_00c71678->_room + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)((int)DAT_00c71678->_room + 0x1218)); piVar14 = (int *)0x0; if (local_7c != (int *)0x0) { do { @@ -512373,7 +512373,7 @@ LAB_00792df3: if (cVar5 == '\0') { local_70 = CONCAT13(1,(undefined3)local_70); if (iVar6 == 0x1ab) { - NpcAI::ENTITY_MASK((Entity_NPC *)((int)DAT_00c71678->_room + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)((int)DAT_00c71678->_room + 0x1218)); local_8 = 2; if (local_7c != (int *)0x0) { local_54 = (int *)0x0; @@ -512415,7 +512415,7 @@ LAB_00792df3: } else { local_50 = (int *)FUN_00791380(param_1); - iVar6 = FUN_007910f0(param_1); + iVar6 = Entity_Player::GetTotalActiveCharge(param_1); local_50 = (int *)((int)local_50 - iVar6); lVar19 = Entity_Player::GetHealthType(); local_4c = 2 - (uint)((int)lVar19 != 3); @@ -512423,7 +512423,7 @@ LAB_00792df3: } iVar6 = local_4c; if (local_4c < in_ECX->_soulHearts + in_ECX->_hearts + in_ECX->_boneHearts) { - FUN_007cf8f0(); + Entity_Player::IsLocalPlayer(); SoundEffects::PlayWithFartOverride(0x38a,2,0,0x3f800000); iVar9 = 0; if (local_50 != (int *)0x0) { @@ -512466,7 +512466,7 @@ LAB_00793587: if (iVar7 == 3) { iVar9 = iVar9 + 1; iVar6 = FUN_00791380(local_5c); - iVar7 = FUN_007910f0(local_5c); + iVar7 = Entity_Player::GetTotalActiveCharge(local_5c); if (iVar7 < iVar6) { Entity_Player::AddActiveCharge(); } @@ -512584,7 +512584,7 @@ switchD_00792e5b_caseD_24: } local_50 = *(int **)(&in_ECX->field_0x159c + (int)param_1 * 0x20); if ((DAT_00c71678->_challenge == 0x20) && (param_1 == (float *)0x0)) { - FUN_0043eca0(DAT_00c7169c + 0xa901); + std::vector::copy_constructor(DAT_00c7169c + 0xa901); piVar14 = local_84; local_8 = 1; local_9c = param_1; @@ -512744,7 +512744,7 @@ LAB_00793653: } } } - if (((local_5c == (float *)0x0) && (iVar6 = FUN_007910f0(0), local_a0 != iVar6)) && + if (((local_5c == (float *)0x0) && (iVar6 = Entity_Player::GetTotalActiveCharge(0), local_a0 != iVar6)) && ((cVar5 = Entity_Player::HasTrinket(0x65,0), cVar5 != '\0' || (cVar5 = Entity_Player::HasTrinket(100,0), cVar5 != '\0')))) { in_ECX->_tearPoisonDamage = (float)((uint)in_ECX->_tearPoisonDamage | 0x41f); @@ -512952,8 +512952,8 @@ switchD_00794b06_caseD_42: local_a4 = 8.32371e-43; seed_fart_sound_override(); SoundEffects::Play(local_a4,0x3f800000,2,0,0x3f800000,0); - FUN_007afc20(); - FUN_007eb870(); + Entity_Player::try_trigger_astral_projection(); + Level::UpdateBackwardsPathStages(); if ((in_ECX->_suplexLandPos).x != 2.8026e-45) { ExceptionList = local_10; return; @@ -513049,7 +513049,7 @@ LAB_00793a80: } cVar2 = Entity_Player::HasCollectible(0x248,0); if (cVar2 != '\0') { - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); local_8 = 0; fVar11 = 0.0; fVar12 = local_cc; @@ -513658,7 +513658,7 @@ void FUN_00794e50(void) (0x1e < DAT_00c71678->_frameCount - *(int *)((int)DAT_00c71678->_room + 0x11f0))))) && (cVar3 = Entity::IsFrame(), cVar3 != '\0')) && ((uVar22 = Random(), uVar22 % 5 == 0 && (*(int *)((int)DAT_00c71678->_room + 0x1bb0) != 6)))) { - iVar4 = NpcAI::ENTITY_MASK((Entity_NPC *)((int)DAT_00c71678->_room + 0x1218)); + iVar4 = EntityList::QuerySublist((Entity_NPC *)((int)DAT_00c71678->_room + 0x1218)); uVar22 = *(uint *)(iVar4 + 0xc); if (local_db0 == '\0') { local_14 = 0; @@ -513677,7 +513677,7 @@ void FUN_00794e50(void) Vector::Vector(); piVar6 = (int *)Game::Spawn(); Entity::Position(); - FUN_00435d60(); + Entity::SetTargetPosition(); (**(code **)(*piVar6 + 0x40))(); (**(code **)(*piVar6 + 0xc))(); } @@ -513713,7 +513713,7 @@ void FUN_00794e50(void) iVar4 = TemporaryEffects::GetCollectibleEffect(); if ((iVar4 != 0) && (*(int *)(iVar4 + 8) % 5 == 0)) { Level::GetCurrentRoom(); - FUN_00813460(); + Room::get_random_pickup_position(); Random(); Game::Spawn(); local_a28 = (int *)__RTDynamicCast(); @@ -513755,7 +513755,7 @@ void FUN_00794e50(void) pEVar23 = local_9fc; if (iVar4 == 0) { std::vector::operator_index(); - FUN_0042c850(); + std::vector::push_back(); } } pEVar23 = (Entity_Player *)&pEVar23->field_0x1; @@ -513984,7 +513984,7 @@ LAB_00795cf2: } } } - FUN_00682f50(); + KColor::FromRGBA255(); FUN_00683010(); (**(code **)(*(int *)in_ECX + 0x3c))(); } @@ -514068,7 +514068,7 @@ LAB_007960af: } } } - local_a28 = (int *)FUN_007911c0(); + local_a28 = (int *)Entity_Player::GetActiveItemSlot(); if (-1 < (int)local_a28) { iVar4 = Entity_Player::GetActiveMaxCharge(); local_a28 = *(int **)(&in_ECX->field_0x1588 + (int)local_a28 * 0x20); @@ -514081,7 +514081,7 @@ LAB_007960af: (cVar3 = TemporaryEffects::HasCollectibleEffect(), cVar3 != '\0')) { iVar4 = Entity::FrameCount(); fVar29 = (float)iVar4 * 3.1415927 * 0.5; - FUN_00417160(); + sinf_wrapper(); local_9fc = (Entity_Player *)(fVar29 * 0.5 + 0.5); iVar4 = 0x3f19999a; FUN_00a155c0(); @@ -514153,7 +514153,7 @@ LAB_00796537: ((cVar3 = Entity::IsFrame(), cVar3 != '\0' && (iVar4 = Isaac::Random(), iVar4 == 0)))) { Isaac::GetItemConfig(); ItemConfig::GetTrinket(); - FUN_00435f80(); + TemporaryEffect::TemporaryEffect(); iVar4 = Entity_Player::GetTrinketMultiplier(); iVar13 = Isaac::Random(); local_db8 = iVar4 * (iVar13 + 3) * 0x1e; @@ -514210,7 +514210,7 @@ LAB_00796889: TemporaryEffects::RemoveCollectibleEffect(); Isaac::GetItemConfig(); ItemConfig::GetCollectible(); - FUN_00435f80(); + TemporaryEffect::TemporaryEffect(); local_dc8 = 0xb4; TemporaryEffects::AddEffect(); } @@ -514259,7 +514259,7 @@ LAB_00796a3f: } Isaac::GetItemConfig(); ItemConfig::GetCollectible(); - FUN_00435f80(); + TemporaryEffect::TemporaryEffect(); local_dd8 = 300; TemporaryEffects::AddEffect(); } @@ -514421,7 +514421,7 @@ LAB_007971e6: Entity::Velocity(); local_b0c = 0x3f000000; Vector::__mul(); - FUN_00428910(); + Entity::SetVelocity(); Entity_Projectile::AddProjectileFlags(); } } @@ -514444,7 +514444,7 @@ LAB_007971e6: Entity::Velocity(); local_b10 = 0x3f000000; Vector::__mul(); - FUN_00428910(); + Entity::SetVelocity(); FUN_00435bc0(); Entity_Tear::TearFlags(); pfVar5 = (float *)BitSet128::operator_or(); @@ -514823,7 +514823,7 @@ LAB_00797c41: if (((int)local_a08 <= iVar4) && ((iVar4 - (int)local_a08) % 6 == 0)) { TemporaryEffects::AddNullEffect(); Level::GetCurrentRoom(); - FUN_00813460(); + Room::get_random_pickup_position(); Random(); LAB_007980ae: piVar6 = (int *)Game::Spawn(); @@ -514841,7 +514841,7 @@ LAB_007980ae: (**(code **)(**(int **)&in_ECX->field_0x1fc0 + 0x28))(); } Level::GetCurrentRoom(); - FUN_00813460(); + Room::get_random_pickup_position(); Random(); goto LAB_007980ae; } @@ -514854,7 +514854,7 @@ LAB_007980ae: } local_a08 = *(Entity_Player **)&in_ECX->field_0x1e74; if (0 < (int)local_a08) { - local_b18 = FUN_00435db0(); + local_b18 = Entity::GetHitPointsLost(); local_b18 = *(int *)&in_ECX->field_0x1e74 - local_b18; local_b1c = 0; piVar6 = (int *)std::max(); @@ -514907,7 +514907,7 @@ LAB_007980ae: local_a00 = pEVar23; iVar4 = Entity::FrameCount(); if (2 < iVar4) { - cVar3 = FUN_00431540(); + cVar3 = Entity::IsProjectile(); if ((cVar3 == '\0') || (uVar22 = Entity_Projectile::ProjectileFlags(), (uVar22 & 0x80000000) != 0)) { cVar3 = Entity::IsActiveEnemy((Entity *)pEVar23); @@ -514994,7 +514994,7 @@ LAB_007980ae: if (0.4 < local_a64) { Vector::Resize(); } - FUN_00428910(); + Entity::SetVelocity(); local_14 = CONCAT31(local_14._1_3_,5); guard_check_icall(); } @@ -515230,7 +515230,7 @@ LAB_00798e34: cVar3 = Entity::IsFrame(); if (cVar3 != '\0') { Config::GetCollectibles(); - iVar4 = FUN_004360f0(); + iVar4 = _get_index_plus_one_if_kind_4_5(); local_a14 = (Entity *)((float)iVar4 * 0.5 + 3.0); auVar32 = ZEXT416(local_a14); Level::GetCurrentRoom(); @@ -515242,13 +515242,13 @@ LAB_00798e34: pfVar5 = (float *)std::vector::operator_index(); pEVar23 = (Entity_Player *)*pfVar5; local_a00 = pEVar23; - cVar3 = FUN_00431540(); + cVar3 = Entity::IsProjectile(); if ((((cVar3 == '\0') || (cVar3 = Entity::IsDead(), cVar3 != '\0')) || (iVar4 = Entity::EntityCollisionClass(), iVar4 == 0)) || (cVar3 = Entity::HasEntityFlags(), cVar3 != '\0')) { Game::GetField26614(); cVar3 = FUN_00429550(); - if (((cVar3 != '\0') && (cVar3 = FUN_00431530(), cVar3 != '\0')) && + if (((cVar3 != '\0') && (cVar3 = Entity::IsTear(), cVar3 != '\0')) && ((cVar3 = Entity::IsDead(), cVar3 == '\0' && (iVar4 = Entity::EntityCollisionClass(), iVar4 != 0)))) { Entity::InitSeed(); @@ -515272,13 +515272,13 @@ LAB_00798e34: BitSet128::operator_and(); cVar3 = BitSet128::IsNonZero(); if (cVar3 != '\0') { - FUN_00435bf0(); + BitSet128::operator__(); } Entity_Tear::TearFlags(); BitSet128::operator_and(); cVar3 = BitSet128::IsNonZero(); if (cVar3 != '\0') { - FUN_00435bf0(); + BitSet128::operator__(); } Entity_Tear::SetTearFlags(); pcVar2 = *(code **)(*(int *)pEVar23 + 0x40); @@ -515342,11 +515342,11 @@ LAB_00798e34: BitSet128::operator_or(); uVar22 = Entity_Projectile::ProjectileFlags(); if ((uVar22 & 2) != 0) { - FUN_00435bf0(); + BitSet128::operator__(); } uVar22 = Entity_Projectile::ProjectileFlags(); if ((uVar22 & 0x10000) != 0) { - FUN_00435bf0(); + BitSet128::operator__(); } pEVar23 = local_a30; Entity_Tear::SetTearFlags(); @@ -515465,7 +515465,7 @@ LAB_00799685: play_sound_with_fart_seed(); Game::ShakeScreen(); Color::Color(); - FUN_006b66a0(); + Entity::MakeGroundPoofAtSelf(); Game::DamageRadius(); auVar32 = ZEXT816(0x3f800000); pcVar2 = *(code **)(*(int *)in_ECX + 0x3c); @@ -515514,7 +515514,7 @@ LAB_007999a3: } Level::GetCurrentRoom(); FUN_00428a60(); - FUN_0041ab50(); + EntityList::query_player_capsule_hits(); local_14 = 0xc; local_a14 = (Entity *)0x0; iVar4 = EntityList::Size(); @@ -515525,7 +515525,7 @@ LAB_007999a3: local_a0c = pEVar16; cVar3 = Entity::IsActiveEnemy(pEVar16); if ((cVar3 == '\0') || (cVar3 = Entity::HasEntityFlags(), cVar3 != '\0')) { - cVar3 = FUN_00431540(); + cVar3 = Entity::IsProjectile(); if (cVar3 != '\0') { uVar22 = Entity_Projectile::ProjectileFlags(); if ((uVar22 & 0x80000000) == 0) goto LAB_00799a98; @@ -515610,7 +515610,7 @@ LAB_00799a98: Sprite::SetScale(); Entity_Effect::SetRadii(); (**(code **)(*piVar6 + 0xc))(); - FUN_004288f0(); + Entity::SetPosition(); Entity::GetSprite(); local_bc4 = 0x3f800000; Vector::operator_mul(); @@ -515644,7 +515644,7 @@ LAB_00799a98: Vector::__add(); Vector::Vector(); MusicManager::RandomVector(); - FUN_00a10510(); + Vector::Mul(); random_float(); local_bbc = auVar32._0_4_; Vector::__mul(); @@ -515690,7 +515690,7 @@ LAB_00799a98: Vector::__add(); Vector::Vector(); MusicManager::RandomVector(); - FUN_00a10510(); + Vector::Mul(); random_float(); local_ba0 = auVar32._0_4_; Vector::__mul(); @@ -515856,7 +515856,7 @@ LAB_0079a6f8: local_a1c = (Vector *)ItemConfig::GetCollectible(); local_a14 = (Entity *)FUN_00930a00(); if ((local_a14 != (Entity *)0x0) && (*(int *)((int)local_a14 + 8) < 4)) { - FUN_00435f80(); + TemporaryEffect::TemporaryEffect(); local_de8 = 4 - *(int *)((int)local_a14 + 8); TemporaryEffects::AddEffect(); } @@ -515991,7 +515991,7 @@ LAB_0079aeb9: Vector::Normalized(); cVar3 = Entity::IsEnemy(); if (cVar3 != '\0') { - cVar3 = FUN_00417220(); + cVar3 = Entity::IsType(); if (cVar3 == '\0') { if (local_a00 == (Entity_Player *)0x2c5) { cVar3 = Entity_Player::TryHoldEntity(); @@ -516342,7 +516342,7 @@ LAB_0079bd65: pEVar23 = local_a24; Entity_Player::AddItemWisp(); Entity::HitPoints(); - FUN_00435d20(); + Entity::SetField380(); Isaac::GetItemConfig(); local_a1c = (Vector *)ItemConfig::GetCollectible(); if (local_a1c != (Vector *)0x0) { @@ -516361,7 +516361,7 @@ LAB_0079bd65: (cVar3 = ANM2::IsPlaying(), cVar3 == '\0')) { Level::GetCurrentRoom(); pEVar20 = (Entity_NPC *)FUN_00428a60(); - NpcAI::ENTITY_MASK(pEVar20); + EntityList::QuerySublist(pEVar20); local_14 = 0x10; uVar22 = 0; iVar4 = EntityList::Size(); @@ -516445,7 +516445,7 @@ LAB_0079bd65: } } else { - local_c20 = FUN_00435db0(); + local_c20 = Entity::GetHitPointsLost(); local_c20 = *(int *)&pEVar23->field_0x1ec8 - local_c20; local_c1c = 0; puVar8 = (undefined4 *)std::max(); @@ -516674,7 +516674,7 @@ LAB_0079c87f: do { std::vector::operator_index(); iVar4 = FUN_00435e30(); - if (((iVar4 != 0) && (cVar3 = FUN_00417220(), cVar3 != '\0')) && + if (((iVar4 != 0) && (cVar3 = Entity::IsType(), cVar3 != '\0')) && ((iVar4 = Entity_Pickup::Timeout(), 0 < iVar4 && (cVar3 = Entity::IsDead(), cVar3 == '\0')))) { Entity::Position(); @@ -516684,7 +516684,7 @@ LAB_0079c87f: auVar33 = ZEXT416(local_a04); if (16.0 < (float)local_a04) { Vector::Resized(); - FUN_00428910(); + Entity::SetVelocity(); FUN_0044bfa0(); } } @@ -516707,7 +516707,7 @@ LAB_0079c87f: if (iVar4 != 0) { Level::GetCurrentRoom(); pEVar20 = (Entity_NPC *)FUN_00428a60(); - NpcAI::ENTITY_MASK(pEVar20); + EntityList::QuerySublist(pEVar20); local_14 = 0x17; local_a04 = (Vector *)0x0; iVar4 = EntityList::Size(); @@ -516745,7 +516745,7 @@ LAB_0079ce72: } Level::GetCurrentRoom(); pEVar20 = (Entity_NPC *)FUN_00428a60(); - NpcAI::ENTITY_MASK(pEVar20); + EntityList::QuerySublist(pEVar20); local_14 = 0x18; uVar22 = 0; iVar4 = EntityList::Size(); @@ -516759,7 +516759,7 @@ LAB_0079ce72: } while (uVar22 < uVar14); } Level::GetCurrentRoom(); - FUN_00813460(); + Room::get_random_pickup_position(); FUN_005cbd00(); RNG::Next(); piVar6 = (int *)Game::Spawn(); @@ -516804,7 +516804,7 @@ LAB_0079cfcb: auVar33 = ZEXT416((uint)local_a70); local_a1c = (Vector *)(float)fVar28; if (((float)local_a1c < local_a70) && (0.0 < (float)local_a1c)) { - FUN_00a105d0(); + Vector::__div_assign(); Entity::Velocity(); fVar28 = (float10)Vector::Dot(); local_a1c = (Vector *)(float)fVar28; @@ -516862,7 +516862,7 @@ LAB_0079cfcb: if (cVar3 != '\0') { Level::GetCurrentRoom(); pEVar20 = (Entity_NPC *)FUN_00428a60(); - NpcAI::ENTITY_MASK(pEVar20); + EntityList::QuerySublist(pEVar20); local_14 = 0x1a; FUN_00424510(); local_14 = CONCAT31(local_14._1_3_,0x1b); @@ -516880,7 +516880,7 @@ LAB_0079cfcb: if (((pEVar24 != pEVar23) && (cVar3 = Entity::IsDead(), cVar3 == '\0')) && (cVar3 = Entity::Visible(), cVar3 != '\0')) { local_c08 = pEVar24; - FUN_0042c850(); + std::vector::push_back(); } uVar14 = (int)local_a04 + 1; local_a04 = (Vector *)uVar14; @@ -516904,7 +516904,7 @@ LAB_0079cfcb: cVar3 = FUN_00429550(); if ((cVar3 == '\0') || (cVar3 = Entity::IsDescendantOf(), cVar3 != '\0')) { local_c04 = iVar4; - FUN_0042c850(); + std::vector::push_back(); } } fVar25 = (float)((int)local_a04 + 1); @@ -516969,7 +516969,7 @@ LAB_0079d585: Vector::Distance(); Entity_Laser::SetMaxDistance(); (**(code **)(*piVar6 + 0x40))(); - FUN_00447720(); + set_field_0x37c(); pcVar2 = *(code **)(*piVar6 + 0x3c); Color::Color(); (*pcVar2)(); @@ -517132,7 +517132,7 @@ LAB_0079d585: local_a28 = (int *)(*(float *)&pEVar23->field_0x1ae4 + 180.0); local_a04 = (Vector *)FUN_00435df0(); if (local_a04 != (Vector *)0x0) { - FUN_00a10350(); + Vector::FromAngle(); fVar28 = (float10)Entity_Projectile::Damage(); local_a1c = (Vector *)(float)fVar28; LerpAngleDeg(); @@ -517259,7 +517259,7 @@ LAB_0079d585: Entity::SetParent(); (**(code **)(*piVar6 + 0x40))(); (**(code **)(*piVar6 + 0xc))(); - FUN_004cf1d0(); + EntityPtr::Set(); } iVar4 = EntityPtr::Ref(); if (iVar4 != 0) { @@ -517337,7 +517337,7 @@ LAB_0079d585: Entity::SetTarget(); pEVar23 = local_a24; Entity::SetParent(); - FUN_00435d60(); + Entity::SetTargetPosition(); fVar28 = (float10)Entity_Tear::FallingAcceleration(); local_a1c = (Vector *)(float)fVar28; if (0.0 < (float)local_a1c) { @@ -517363,7 +517363,7 @@ LAB_0079d585: cVar3 = Entity::IsDescendantOf(); if (cVar3 == '\0') { std::vector::operator_index(); - cVar3 = FUN_00431530(); + cVar3 = Entity::IsTear(); if (cVar3 != '\0') { std::vector::operator_index(); iVar4 = __RTDynamicCast(); @@ -517387,7 +517387,7 @@ LAB_0079d585: Entity::SetTarget(); Entity::SetParent(); Entity::SetSpawnerEntity(); - FUN_00435d60(); + Entity::SetTargetPosition(); } else { Entity::Position(); @@ -517526,7 +517526,7 @@ LAB_0079eac8: if (iVar4 == 0) goto LAB_0079ef52; if (0x1d < *(int *)(iVar4 + 8)) goto LAB_0079ee43; fVar29 = (float)*(int *)(iVar4 + 8) * 0.1; - FUN_00417160(); + sinf_wrapper(); local_a34 = (int *)fVar29; if (fVar29 <= 0.0) goto LAB_0079ef52; } @@ -518504,7 +518504,7 @@ int * Entity_Player::FireBomb(float *param_1,float *param_2,int *param_3) } piStack_c8 = piStack_48; fVar12 = fStack_54; - FUN_00780ec0(fStack_54,iStack_50,iStack_4c); + Entity_Player::check_bomb_tearflags(fStack_54,iStack_50,iStack_4c); if (0.55 < fStack_40) { if (fStack_40 <= 0.75) { iStack_b8 = 0x3f4ccccd; @@ -519158,7 +519158,7 @@ LAB_007a1335: cVar5 = PlayerManager::IsCoopPlay(); pEVar16 = extraout_ECX_01; if ((cVar5 != '\0') && - (((uVar7 = FUN_009bfa00(), pEVar16 = extraout_ECX_02, 1 < uVar7 && + (((uVar7 = PlayerManager::GetNumAlivePlayers(), pEVar16 = extraout_ECX_02, 1 < uVar7 && (*(char *)(uVar20 + 0x20a9) == '\0')) && (puVar23 != DAT_00c812a4)))) { do { pEVar16 = (Entity_Player *)0x0; @@ -519189,7 +519189,7 @@ LAB_007a1335: *(undefined4 *)(*DAT_00c812a0 + 0x1344) = 0; *(undefined4 *)(*DAT_00c812a0 + 0x13c0) = 0xc; pEVar17->_tearPoisonDamage = (float)((uint)pEVar17->_tearPoisonDamage | 0xffff); - FUN_007bebb0(); + Entity_Player::update_player_skin(); EvaluateItems(); TryPreventDeath(pEVar17); pEVar16 = extraout_ECX_30; @@ -519238,7 +519238,7 @@ LAB_007a1335: uVar20 = uVar20 >> ((byte)puVar23[1] & 0x1f) ^ uVar20; uVar20 = uVar20 << ((byte)puVar23[2] & 0x1f) ^ uVar20; *puVar23 = uVar20 >> ((byte)puVar23[3] & 0x1f) ^ uVar20; - FUN_007cbcd0(); + Entity_Player::init_forgotten_twin(); UpdateCanShoot(); (**(code **)(*piVar10 + 0x60))(); puVar23 = DAT_00c812a4; @@ -519268,7 +519268,7 @@ LAB_007a1335: TemporaryEffects::RemoveEffect(local_74,0xffffffff); iVar21 = extraout_ECX_05; } - FUN_009ba000(*DAT_00c812a0,iVar21); + PlayerManager::RemoveCoPlayer(*DAT_00c812a0,iVar21); RemoveCollectible(0x29b,0,0,1); iVar21 = 5; do { @@ -519340,7 +519340,7 @@ LAB_007a1335: spawn_gibs(ppEVar13,pEVar17,uVar9,&DAT_00c7b640,0x3f800000); uVar9 = extraout_ECX_27; LAB_007a1f38: - FUN_009ba000(*DAT_00c812a0,uVar9); + PlayerManager::RemoveCoPlayer(*DAT_00c812a0,uVar9); return 1; LAB_007a15d3: if (pEVar17 == (Entity_Player *)0x0) goto LAB_007a12d4; @@ -519603,10 +519603,10 @@ void __thiscall LuaEngine::RunScript(LuaEngine *this,int param_2,char param_3) } *(undefined4 *)&this[0x89].field_0x8 = 4; *(undefined4 *)&this[0x89]._debug = 0xffffffff; - FUN_007592a0(); + Entity_Player::UpdateBlackHeartMask(); this[0x98]._unloadModFuncRef = (void *)((uint)this[0x98]._unloadModFuncRef | 0xffff); Entity_Player::EvaluateItems(); - FUN_007bebb0(); + Entity_Player::update_player_skin(); if (param_3 != '\0') { if (this[0x1a]._unloadModFuncRef == (void *)0x0) { if (!bVar3) { @@ -519767,7 +519767,7 @@ LAB_007a267e: } this[0x98]._unloadModFuncRef = (void *)((uint)this[0x98]._unloadModFuncRef | 0xffff); Entity_Player::EvaluateItems(); - FUN_007bebb0(); + Entity_Player::update_player_skin(); if (param_3 != '\0') { if (this[0x1a]._unloadModFuncRef == (void *)0x0) { if (!bVar3) { @@ -519888,7 +519888,7 @@ LAB_007a267e: local_34[0] = iVar12; TemporaryEffects::AddEffect(local_34,1,1); } - FUN_007bebb0(); + Entity_Player::update_player_skin(); Entity_Player::EvaluateItems(); pvVar1 = this[0xd2]._unloadModFuncRef; this[10].field_0x9 = 1; @@ -520111,7 +520111,7 @@ void FUN_007a3430(int param_1) } in_ECX->_tearPoisonDamage = (float)((uint)in_ECX->_tearPoisonDamage | 0xffff); Entity_Player::EvaluateItems(); - FUN_007bebb0(); + Entity_Player::update_player_skin(); if (*(int *)&in_ECX->field_0x3bc == 0) { if (!bVar3) { uVar9 = 0xe; @@ -520148,7 +520148,7 @@ void FUN_007a3430(int param_1) } in_ECX->_tearPoisonDamage = (float)((uint)in_ECX->_tearPoisonDamage | 0xffff); Entity_Player::EvaluateItems(); - FUN_007bebb0(); + Entity_Player::update_player_skin(); if (*(int *)&in_ECX->field_0x3bc == 0) { if (!bVar3) { uVar9 = 5; @@ -520334,7 +520334,7 @@ LAB_007a38d8: *piVar6 = 0; uVar8 = extraout_ECX; } - FUN_009ba000(iVar9,uVar8); + PlayerManager::RemoveCoPlayer(iVar9,uVar8); } return; } @@ -520541,7 +520541,7 @@ void FUN_007a3d30(void) LAB_007a3da4: bVar7 = *(int *)(DAT_00c7169c + 0x2a3d4) == 0; if ((*(int *)(DAT_00c7169c + 0x4b3d8) != *(int *)(DAT_00c7169c + 0x4b3dc)) && - (iVar5 = FUN_0090ac70(in_ECX), iVar5 != 0)) { + (iVar5 = InputManager::GetDeviceByPlayerEntity(in_ECX), iVar5 != 0)) { bVar7 = *(int *)(iVar5 + 0x3d0) == 0; } uVar6 = 10; @@ -520583,7 +520583,7 @@ LAB_007a3da4: } if ((((in_ECX->_isControlsEnabled != 0) && (in_ECX->_controlsCooldown < 1)) && (bVar4 != 0)) && (cVar3 = ANM2::IsPlaying("UseItem"), cVar3 == '\0')) { - FUN_00705ee0(0xffffffff); + Game::save_rewind_state(0xffffffff); *(undefined1 *)(DAT_00c71678 + 0x68d70) = 1; /* WARNING: Subroutine does not return */ KAGE_LogMessage(1,"Action PillCard Triggered\n"); @@ -520633,7 +520633,7 @@ void FUN_007a42b0(void) cVar3 = input_is_action_triggered(0xb,local_10[0],in_ECX,0); uVar10 = extraout_ECX; if (cVar3 == '\0') goto LAB_007a457c; - cVar3 = FUN_007cc200(0,0); + cVar3 = Entity_Player::init_player_type_state(0,0); if (cVar3 == '\0') { local_18[0] = (int *)0x0; piVar4 = (int *)(in_ECX + 0x17a8); @@ -520727,7 +520727,7 @@ LAB_007a43f6: mark_all_slots_dirty(0,0); } } - iVar7 = FUN_007db860(); + iVar7 = is_achievement_79_unlocked(); uVar10 = extraout_ECX_00; if (0 < iVar7) { local_18[0] = (int *)0x33c; @@ -521032,7 +521032,7 @@ void FUN_007a49e0(void) cVar2 = Entity_Player::HasCollectible(0x1b8,0); if (((cVar2 == '\0') && (*(int *)(in_ECX + 0x13c0) != 5)) && (*(int *)(in_ECX + 0x13c0) != 0x1a) ) { - uVar3 = FUN_00456240(0,0,0,0xb4,0xf4,0xf4,0); + uVar3 = ColorParams::set_from_bytes(0,0,0,0xb4,0xf4,0xf4,0); (**(code **)(*piVar4 + 0x3c))(uVar3,0xffffffff,0xff,0,1); } (**(code **)(*piVar4 + 0xc))(); @@ -521131,7 +521131,7 @@ void FUN_007a4ba0(char param_1) puVar4 = local_dc; } else { - iVar3 = FUN_004360f0(local_18); + iVar3 = _get_index_plus_one_if_kind_4_5(local_18); if ((iVar3 != 1) || (cVar2 = Level::IsAscent(), cVar2 != '\0')) { pfVar5 = (float *)FUN_009bc690(local_d4,in_ECX,&DAT_00c7b640,&pLVar16[1].field_0x3770); fVar12 = *pfVar5; @@ -521319,7 +521319,7 @@ LAB_007a50ce: TemporaryEffects::RemoveEffect(local_94,0xffffffff); } TemporaryEffects::RemoveNullEffect(0x6d,0xffffffff); - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)&DAT_00c71678->field_0x18300 + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)&DAT_00c71678->field_0x18300 + 0x1218)); local_8 = 0; uVar9 = 0; if (local_68 != 0) { @@ -521457,7 +521457,7 @@ LAB_007a5236: Entity_Player::AddHearts((Entity_Player *)in_ECX->_subPlayer,2,0,0); } if (in_ECX->_isCoopGhost == 0) { - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)&DAT_00c71678->field_0x18300 + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)&DAT_00c71678->field_0x18300 + 0x1218)); local_8._0_1_ = 1; uVar9 = 0; if (local_b8 != 0) { @@ -521588,7 +521588,7 @@ LAB_007a5236: uVar20 = 0; } else { - uVar20 = FUN_007911f0(0x93,*(undefined4 *)(&in_ECX->field_0x159c + uVar9 * 0x20),0x93); + uVar20 = Entity_Player::GetCollectibleMaxCharge(0x93,*(undefined4 *)(&in_ECX->field_0x159c + uVar9 * 0x20),0x93); } LAB_007a5a54: Entity_Player::AddActiveCharge(in_ECX,uVar20,uVar9,0,0,1); @@ -521616,7 +521616,7 @@ LAB_007a5a54: uVar20 = 0; } else { - uVar20 = FUN_007911f0(0x23,1,0); + uVar20 = Entity_Player::GetCollectibleMaxCharge(0x23,1,0); } Entity_Player::AddActiveCharge(in_ECX,uVar20,uVar9,0,0,1); ItemOverlay::Show((ItemOverlay *)&DAT_00c71678[1].field_0x3cfc,0x2f,3,0); @@ -521636,7 +521636,7 @@ LAB_007a5a54: } while (uVar9 < 4); if (cVar2 == '\0') { *(undefined4 *)&in_ECX->field_0x159c = 1; - uVar20 = FUN_007911f0(*(undefined4 *)&in_ECX->field_0x1580,1,0); + uVar20 = Entity_Player::GetCollectibleMaxCharge(*(undefined4 *)&in_ECX->field_0x1580,1,0); Entity_Player::AddActiveCharge(in_ECX,uVar20,0,0,0,1); ItemOverlay::Show((ItemOverlay *)&DAT_00c71678[1].field_0x3cfc,0x2f,3,0); } @@ -521725,10 +521725,10 @@ LAB_007a5d32: } Entity_Player::AddHearts(in_ECX,iVar17,0,0); uVar20 = Random(); - uVar10 = FUN_00813460(local_ec,0,0); + uVar10 = Room::get_random_pickup_position(local_ec,0,0); Game::Spawn(5,10,uVar10,&DAT_00c7b640,0,1,uVar20); uVar20 = Random(); - uVar10 = FUN_00813460(local_f4,0,0); + uVar10 = Room::get_random_pickup_position(local_f4,0,0); Game::Spawn(5,10,uVar10,&DAT_00c7b640,0,1,uVar20); } goto LAB_007a5eb3; @@ -522060,7 +522060,7 @@ void FUN_007a6680(char param_1) } } if (piVar6 == *(int **)&in_ECX->field_0x1514) { - FUN_004b39b0(piVar6,local_30); + std::vector::_Emplace_reallocate(piVar6,local_30); } else { *piVar6 = iVar4; @@ -522199,7 +522199,7 @@ LAB_007a6b37: } } LAB_007a6c2c: - FUN_009ba000(in_ECX,piVar7); + PlayerManager::RemoveCoPlayer(in_ECX,piVar7); } } return; @@ -522498,7 +522498,7 @@ LAB_007a6f9e: *(undefined4 *)&pLVar19->field_0x18310); if ((*(int *)(*(int *)(iVar10 + 0x10) + 8) == 0x10) && ((*(uint *)(*(int *)(*(int *)&DAT_00c71678->field_0x18300 + 4) + 0x44) & 0x10000) != 0)) { - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)&DAT_00c71678->field_0x18300 + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)&DAT_00c71678->field_0x18300 + 0x1218)); local_8 = 1; if (local_cc != 0) { fVar22 = *(float *)(*local_d4 + 0x340); @@ -522629,7 +522629,7 @@ LAB_007a766b: local_e8 = 0; local_100 = _DAT_00bac030; auVar24 = _DAT_00bac030; - FUN_009960b0(&local_110); + Game::start_poop_cloud_screen_effect(&local_110); } cVar9 = Entity_Player::HasCollectible(0x1f9,0); if (((cVar9 != '\0') && (*(char *)(*(int *)&DAT_00c71678->field_0x18300 + 1) != '\0')) && @@ -522666,7 +522666,7 @@ LAB_007a766b: EntityRef::constructor(in_ECX); Entity::AddCharmed(pEVar15,local_160,0xffffffff,0,0); (**(code **)(*(int *)pEVar15 + 0xc))(); - FUN_00436220(0); + Entity::SetVisibleFlag(0); local_98 = iVar10 << 0x14; _Find_lower_bound<>(local_e4,&local_98); FUN_00694d20(local_6c,0x14); @@ -522675,7 +522675,7 @@ LAB_007a766b: if (0xf < local_58) { pppppppuVar17 = local_6c[0]; } - uVar14 = FUN_009586f0(DAT_00c7169c + 0x4a920,"#POKE_GO_APPEAR_NOTIFY"); + uVar14 = string_table_translate(DAT_00c7169c + 0x4a920,"#POKE_GO_APPEAR_NOTIFY"); sprintf(local_54,uVar14,pppppppuVar17); FUN_009a3590(local_54,uVar14,pppppppuVar17); local_8 = 0xffffffff; @@ -523062,7 +523062,7 @@ void __thiscall Entity_Player::TriggerNewRoom_TemporaryEffects(Entity_Player *th iVar3 = GetTrinketMultiplier(0x84); if (((int)(4 / (longlong)iVar3) == 0) || (uVar4 = Random(), (int)((ulonglong)uVar4 % (4 / (longlong)iVar3 & 0xffffffffU)) == 0)) { - FUN_007dbba0(); + Entity_Player::add_random_drug_item_effect(); } } cVar2 = HasTrinket(0x99,0); @@ -523070,7 +523070,7 @@ void __thiscall Entity_Player::TriggerNewRoom_TemporaryEffects(Entity_Player *th iVar3 = GetTrinketMultiplier(0x99); if (((int)(4 / (longlong)iVar3) == 0) || (uVar4 = Random(), (int)((ulonglong)uVar4 % (4 / (longlong)iVar3 & 0xffffffffU)) == 0)) { - FUN_007dbc80(); + Entity_Player::AddRandomMomItemEffect(); } } cVar2 = HasCollectible(0x2a1,0); @@ -523103,7 +523103,7 @@ void __thiscall Entity_Player::TriggerNewRoom_TemporaryEffects(Entity_Player *th iVar3 = GetTrinketMultiplier(0xa6); iVar3 = RNG::RandomInt((int)(2 / (longlong)iVar3)); if (iVar3 == 0) { - FUN_007dbd70(aiStack_20 + 2); + Entity_Player::ModelingClay_roll(aiStack_20 + 2); } } } @@ -523552,7 +523552,7 @@ LAB_007a907b: local_68 = (uint *)0x0; } else { - local_68 = (uint *)FUN_007911f0(*(undefined4 *)(&this->field_0x0 + (int)local_5c), + local_68 = (uint *)Entity_Player::GetCollectibleMaxCharge(*(undefined4 *)(&this->field_0x0 + (int)local_5c), *(undefined4 *) (&this->field_0x159c + (int)local_60 * 0x20),local_60 ); @@ -523631,7 +523631,7 @@ LAB_007a9338: } if (0 < this->_rottenHearts) { iVar4 = 0; - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)((int)DAT_00c71678 + 0x18300) + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)((int)DAT_00c71678 + 0x18300) + 0x1218)); pfVar5 = (float *)0x0; local_8 = 0; if (pfStack_48 != (float *)0x0) { @@ -523972,7 +523972,7 @@ LAB_007a9c21: uVar3 = uVar3 >> ((byte)*(undefined4 *)(iVar4 + 0xa3c) & 0x1f) ^ uVar3; *(uint *)(iVar4 + 0xa30) = uVar3; WeightedOutcomePicker::PickOutcome(uVar3,0x900000005,7); - FUN_00639000(this); + Entity_Familiar::ThrowDip(this); local_8 = 0xffffffff; if ((float *)uStack_50 != (float *)0x0) { if ((0xfff < (uint)(((int)pfStack_48 - (int)(float *)uStack_50 >> 3) * 8)) && @@ -524061,7 +524061,7 @@ LAB_007a9c21: local_18 = 0; Entity::AddCharmed(pEVar7,&uStack_3c,0xffffffff,0,0); (**(code **)(*(int *)pEVar7 + 0xc))(); - FUN_00436220(0); + Entity::SetVisibleFlag(0); fVar13 = *(float *)&pEVar7->field_0x384 + *(float *)&pEVar7->field_0x384; local_20 = 0; local_1c = 0; @@ -524211,7 +524211,7 @@ LAB_007aa32a: if (local_44 == (float *)0x0) { local_44 = pfVar5; LAB_007aa43d: - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)((int)DAT_00c71678 + 0x18300) + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)((int)DAT_00c71678 + 0x18300) + 0x1218)); pfVar5 = (float *)0x0; local_8 = 4; if (pfStack_48 != (float *)0x0) { @@ -524319,7 +524319,7 @@ LAB_007aa526: } piVar9 = *(int **)&this->field_0x1510; if (piVar9 == *(int **)&this->field_0x1514) { - FUN_004b39b0(); + std::vector::_Emplace_reallocate(); } else { *piVar9 = iVar4; @@ -524898,7 +524898,7 @@ LAB_007ab1d6: if (uVar3 != 0) goto LAB_007ab226; std::string::string(param_1); local_44 = 3; - iVar4 = FUN_00557bd0(0,"Collectible",0xb); + iVar4 = std::string::find(0,"Collectible",0xb); if ((iVar4 != -1) && (*(int *)(DAT_00c71678 + 0x26614) < 2)) { local_3d = '\x01'; goto LAB_007ab230; @@ -525772,7 +525772,7 @@ LAB_007ac194: } else { RNG::Next(); - iVar4 = FUN_009dcc70(); + iVar4 = ItemPool::CreateGlitchedCollectible(); piVar5 = (int *)ItemConfig::GetCollectible(iVar4); if (*piVar5 != 3) goto LAB_007ac2d2; } @@ -525787,7 +525787,7 @@ LAB_007ac194: } uVar6 = RNG::RandomInt(100); if (uVar6 < uVar3) { - FUN_007911f0(*(undefined4 *)(in_ECX + 0x1580),*(undefined4 *)(in_ECX + 0x159c), + Entity_Player::GetCollectibleMaxCharge(*(undefined4 *)(in_ECX + 0x1580),*(undefined4 *)(in_ECX + 0x159c), extraout_ECX); Entity_Player::AddActiveCharge(); } @@ -525803,7 +525803,7 @@ LAB_007ac2d2: ((((char)param_2 == '\0' && (piVar5 = (int *)ItemConfig::GetCollectible(uVar8), piVar5 != (int *)0x0)) && (*piVar5 == 3)))) { - FUN_007cf8f0(); + Entity_Player::IsLocalPlayer(); SoundEffects::PlayWithFartOverride(0x385,2,0,0x3f800000); Entity_Player::DropCollectible(); } @@ -526145,7 +526145,7 @@ LAB_007aca80: uVar10 = 0; } else { - uVar10 = FUN_00753da0(); + uVar10 = Entity_Player::constructor(); } local_14 = 0xffffffff; *(undefined4 *)(&local_5c[0x3a].field_0x0 + iVar9 * 4) = uVar10; @@ -526167,7 +526167,7 @@ LAB_007aca80: piVar12[0x769] = 0; piVar12[0x4d3] = 6; piVar12[0x4d4] = -1; - FUN_007592a0(); + Entity_Player::UpdateBlackHeartMask(); piVar12[0x553] = *(int *)&in_ECX->field_0x154c; piVar12[0x554] = *(int *)&in_ECX->field_0x1550; piVar12[0x555] = *(int *)&in_ECX->field_0x1554; @@ -526175,7 +526175,7 @@ LAB_007aca80: piVar12[0x557] = *(int *)&in_ECX->field_0x155c; piVar12[0x558] = (int)in_ECX->_movespeed; piVar12[0x5ad] = in_ECX->_totalDamageTaken; - FUN_007596a0(piVar12,0xffffffff); + Entity_Player::SyncConsumables(piVar12,0xffffffff); iVar9 = *(int *)&in_ECX->field_0x1770; *(undefined1 *)(piVar12 + 0x77e) = 1; piVar12 = *(int **)&local_58->field_0x1dec; @@ -526322,7 +526322,7 @@ LAB_007acefb: *(undefined4 *)(*(int *)&in_ECX->field_0x16c8 + *(int *)(iVar9 + 8) * 4); *(undefined4 *)(*(int *)&in_ECX->field_0x16c8 + *(int *)(iVar9 + 8) * 4) = 0; History::AddHistoryItem(iVar9); - piVar12 = (int *)FUN_00722140(&piStack_7c,iVar9); + piVar12 = (int *)std::vector::erase(&piStack_7c,iVar9); iVar9 = *piVar12; local_58->_tearPoisonDamage = (float)((uint)local_58->_tearPoisonDamage | local_68[0x15]); @@ -526365,7 +526365,7 @@ LAB_007ad16e: puVar2[2] = uVar17; puVar2[3] = uVar20; AnimateCollectible(pEVar14,0x2bf,"UseItem","PlayerPickupSparkle"); - FUN_007596a0(pEVar14,0xffffffff); + Entity_Player::SyncConsumables(pEVar14,0xffffffff); pEVar14->_isControlsEnabled = 1; pEVar14->_controlsCooldown = 1; cVar7 = HasCollectible(0x248,0); @@ -526761,10 +526761,10 @@ void __thiscall Entity_Player::TriggerTrinketAdded(Entity_Player *this,uint para *(int *)(iVar3 + 0x1a7a8) = *(int *)(iVar3 + 0x1a7a8) + 5; break; case 0x30: - FUN_0075e320(0xf,1); + Entity_Player::IncrementPlayerFormCounter(0xf,1); break; case 0x47: - FUN_0075e320(4,1); + Entity_Player::IncrementPlayerFormCounter(4,1); break; case 0x6d: iVar3 = GetTrinketMultiplier(0x6d); @@ -526780,15 +526780,15 @@ void __thiscall Entity_Player::TriggerTrinketAdded(Entity_Player *this,uint para break; case 0x84: if (1 < *(int *)(DAT_00c71678 + 0x26614)) { - FUN_007dbba0(); + Entity_Player::add_random_drug_item_effect(); } break; case 0x92: - FUN_0074d920(); + Level::update_treasure_room_doors_for_trinket(); break; case 0x99: if (1 < *(int *)(DAT_00c71678 + 0x26614)) { - FUN_007dbc80(); + Entity_Player::AddRandomMomItemEffect(); } break; case 0x9c: @@ -526798,11 +526798,11 @@ void __thiscall Entity_Player::TriggerTrinketAdded(Entity_Player *this,uint para goto LAB_007ad9e6; case 0xa6: if (1 < *(int *)(DAT_00c71678 + 0x26614)) { - FUN_007dbd70(*(int *)&this->field_0x177c + 0xa60); + Entity_Player::ModelingClay_roll(*(int *)&this->field_0x177c + 0xa60); } break; case 0xa9: - FUN_0075e320(0,(uVar4 != 0) + '\x01'); + Entity_Player::IncrementPlayerFormCounter(0,(uVar4 != 0) + '\x01'); break; case 0xb0: FUN_007d83f0(); @@ -526881,7 +526881,7 @@ void __thiscall Entity_Player::TriggerTrinketRemoved(Entity_Player *this,uint pa } break; case 0x92: - FUN_0074d920(); + Level::update_treasure_room_doors_for_trinket(); break; case 0x99: if (((1 < *(int *)(DAT_00c71678 + 0x26614)) && (cVar1 = HasTrinket(param_2,0), cVar1 == '\0')) @@ -526913,7 +526913,7 @@ void __thiscall Entity_Player::TriggerTrinketRemoved(Entity_Player *this,uint pa iVar3 = -1 - (uint)((param_2 & 0x8000) != 0); uVar6 = 0; LAB_007adda7: - FUN_0075e320(uVar6,iVar3); + Entity_Player::IncrementPlayerFormCounter(uVar6,iVar3); break; case 0xb7: if ((1 < *(int *)(DAT_00c71678 + 0x26614)) && (cVar1 = HasTrinket(param_2,0), cVar1 == '\0')) { @@ -527321,7 +527321,7 @@ void FUN_007ae4b0(int *param_1) Entity_Player::RemoveSkinCostume(); FUN_007ad4e0(); in_ECX->_playerType = *param_1; - FUN_007bebb0(); + Entity_Player::update_player_skin(); (**(code **)(*(int *)in_ECX + 0x60))(); } if (((*(char *)((int)DAT_00c71678 + 0x269eb) != '\0') && (in_ECX->_isCoopGhost != 0)) && @@ -527732,7 +527732,7 @@ void FUN_007ae4b0(int *param_1) else { PlayerManager::SpawnCoPlayerBaby((int)*psVar18); FUN_007ae430((int)local_40 + (int)local_48); - FUN_009ba000(extraout_ECX,extraout_ECX); + PlayerManager::RemoveCoPlayer(extraout_ECX,extraout_ECX); piVar19 = local_58; } local_40 = (int *)piVar19[0xe3]; @@ -527903,7 +527903,7 @@ void FUN_007ae4b0(int *param_1) local_40 = (int *)((int)local_48 >> 2); local_4c = *(undefined4 **)&pEVar21->field_0x1fa4; if ((int *)(*(int *)&pEVar21->field_0x1fac - (int)local_4c >> 2) < local_40) { - FUN_006a0d30(local_40); + std::vector::reserve_clear(local_40); local_4c = *(undefined4 **)&pEVar21->field_0x1fa4; } memmove(local_4c,local_5c,(size_t)local_48); @@ -528082,7 +528082,7 @@ void FUN_007ae4b0(int *param_1) local_50->field_0x1eec = (char)local_58[0x174]; *(uint *)&local_50->field_0x1ef0 = (uint)*(byte *)((int)local_58 + 0x5d1); local_50->_dead = 0; - FUN_007afc20(); + Entity_Player::try_trigger_astral_projection(); if (local_54 != (int *)0x0) { uVar15 = (int)local_44 - (int)local_54 & 0xfffffffc; piVar19 = local_54; @@ -528102,9 +528102,9 @@ void FUN_007ae4b0(int *param_1) } -//@@ 007afc20 FUN_007afc20 +//@@ 007afc20 Entity_Player::try_trigger_astral_projection -undefined4 FUN_007afc20(void) +undefined4 Entity_Player::try_trigger_astral_projection(void) { int *piVar1; @@ -528260,7 +528260,7 @@ undefined4 FUN_007afc20(void) local_14 = DAT_00c7b644; local_10 = 0; local_c = 0; - FUN_00499960(&local_30); + EntityRef::operator_(&local_30); } uVar5 = EntityRef::EntityRef(); (**(code **)(*in_ECX + 0x24))(uVar5); @@ -528424,7 +528424,7 @@ void FUN_007b0070(int param_1) local_5c = (float)((int)local_64 >> 2); local_6c = *(undefined4 **)(in_ECX + 0x173c); if ((uint)(*(int *)(in_ECX + 0x1744) - (int)local_6c >> 2) < (uint)local_5c) { - FUN_006a0d30(local_5c); + std::vector::reserve_clear(local_5c); local_6c = *(undefined4 **)(in_ECX + 0x173c); } memmove(local_6c,local_54,(size_t)local_64); @@ -528531,7 +528531,7 @@ LAB_007b0760: fStack_48 = *(float *)((int)local_6c + 0xc + *(int *)(param_1 + 0x518)); pfVar10 = *(float **)(in_ECX + 0x1510); if (pfVar10 == *(float **)(in_ECX + 0x1514)) { - FUN_004b39b0(pfVar10,&local_50); + std::vector::_Emplace_reallocate(pfVar10,&local_50); iVar5 = DAT_00c7169c; } else { @@ -528591,7 +528591,7 @@ LAB_007b0760: (**(code **)(*piVar11 + 0xc))(); } if (*(char *)(in_ECX + 0x20a9) != '\0') { - FUN_007d9b70(); + Entity_Player::reset_body_sprite(); *(undefined1 *)(in_ECX + 0x139a) = 0; ANM2::Reset((ANM2 *)(in_ECX + 0x41c)); *(undefined4 *)(in_ECX + 0x14c) = 0x3f800000; @@ -528948,7 +528948,7 @@ void FUN_007b0be0(undefined4 *param_1,char param_2) local_40 = (int *)((int)local_44 >> 2); local_38 = (int *)puVar13[0x140]; if ((int *)(puVar13[0x142] - (int)local_38 >> 2) < local_40) { - FUN_006a0d30(local_40); + std::vector::reserve_clear(local_40); local_38 = (int *)puVar13[0x140]; } memmove(local_38,local_3c,(size_t)local_44); @@ -529117,7 +529117,7 @@ void FUN_007b0be0(undefined4 *param_1,char param_2) local_40 = (int *)((int)local_44 >> 2); local_38 = (int *)puVar13[0x5a]; if ((int *)(puVar13[0x5c] - (int)local_38 >> 2) < local_40) { - FUN_006a0d30(local_40); + std::vector::reserve_clear(local_40); local_38 = (int *)puVar13[0x5a]; } memmove(local_38,local_3c,(size_t)local_44); @@ -529129,7 +529129,7 @@ void FUN_007b0be0(undefined4 *param_1,char param_2) local_40 = (int *)((int)local_44 >> 2); local_38 = (int *)puVar13[0x5d]; if ((int *)(puVar13[0x5f] - (int)local_38 >> 2) < local_40) { - FUN_006a0d30(local_40); + std::vector::reserve_clear(local_40); local_38 = (int *)puVar13[0x5d]; } memmove(local_38,local_3c,(size_t)local_44); @@ -529280,7 +529280,7 @@ void FUN_007b0be0(undefined4 *param_1,char param_2) local_3c = (int *)((int)local_40 >> 2); local_44 = (int *)puVar13[0x71]; if ((int *)(puVar13[0x73] - (int)local_44 >> 2) < local_3c) { - FUN_006a0d30(local_3c); + std::vector::reserve_clear(local_3c); local_44 = (int *)puVar13[0x71]; } memmove(local_44,local_48,(size_t)local_40); @@ -529415,7 +529415,7 @@ LAB_007b1f9d: FUN_007dee40(*(undefined4 *)(in_ECX + 0x246c),*(undefined4 *)(in_ECX + 0x2470),local_48); } puVar13[0xdf] = (int)(puVar13[0xe1] - puVar13[0xe0]) / 0x34; - FUN_007525e0(in_ECX + 0x173c); + std::vector::assign(in_ECX + 0x173c); if (((*(uint *)(in_ECX + 0x16c) & 4) == 0) || (*(int *)(in_ECX + 0x28c) != in_ECX)) { uVar7 = 0; } @@ -529889,7 +529889,7 @@ LAB_007b23cf: } Isaac::GetItemConfig(); uVar25 = ItemConfig::GetCollectible(0x4d); - FUN_00435f80(uVar25); + TemporaryEffect::TemporaryEffect(uVar25); if (local_2a1 != 0) { iStack_448 = iStack_448 * 2; } @@ -530021,7 +530021,7 @@ LAB_007b319e: uVar7 = local_2a8; uVar25 = ItemConfig::GetCollectible(0x41); LAB_007b327d: - uVar25 = FUN_00435f80(uVar25); + uVar25 = TemporaryEffect::TemporaryEffect(uVar25); TemporaryEffects::AddEffect(uVar25,uVar7,uVar23); break; case 0x12: @@ -530306,7 +530306,7 @@ LAB_007b2675: case 0x21: Level::GetCurrentRoom(); pEVar17 = (Entity_NPC *)FUN_00428a60(); - NpcAI::ENTITY_MASK(pEVar17); + EntityList::QuerySublist(pEVar17); uStack_8 = 3; pEVar18 = (Entity_Player *)0x0; apEStack_2bc[1] = (Entity_Player *)0x0; @@ -530354,7 +530354,7 @@ LAB_007b2675: if (cVar5 != '\0') { Isaac::GetItemConfig(); uVar25 = ItemConfig::GetCollectible(0x278); - FUN_00435f80(uVar25); + TemporaryEffect::TemporaryEffect(uVar25); uStack_478 = 600; TemporaryEffects::AddEffect(auStack_480,1,1); } @@ -530386,7 +530386,7 @@ LAB_007b2675: case 0x27: Isaac::GetItemConfig(); uVar25 = ItemConfig::GetCollectible(0x3a); - FUN_00435f80(uVar25); + TemporaryEffect::TemporaryEffect(uVar25); uStack_468 = 600; TemporaryEffects::AddEffect(auStack_470,local_2a8,1); pIVar16 = (ItemOverlay *)Game::GetItemOverlay(); @@ -530480,13 +530480,13 @@ LAB_007b2675: uVar23 = Vector::__add(auStack_360,uVar23); Game::Spawn(1000,0xf,uVar23,&DAT_00c7b640,0,0,uVar25); FUN_0060d1f0(4); - FUN_006ee750(); + Entity_Pickup::RemoveOtherOptions(); iVar29 = FUN_005b1960(); if (iVar29 != -1) { Game::GetPlayerManager(); - uVar7 = FUN_009bfa00(); + uVar7 = PlayerManager::GetNumAlivePlayers(); if (iVar29 + 1U < uVar7) { - FUN_0042c850(&local_298); + std::vector::push_back(&local_298); } } } @@ -530545,7 +530545,7 @@ LAB_007b2675: if (iVar29 != 0x11) goto LAB_007b4865; } Game::GetAmbush(); - FUN_00833420(); + Ambush::StartChallenge(); } LAB_007b4865: uStack_8 = 0xffffffff; @@ -530577,7 +530577,7 @@ LAB_007b4865: case 0x2b: Level::GetCurrentRoom(); pEVar17 = (Entity_NPC *)FUN_00428a60(); - NpcAI::ENTITY_MASK(pEVar17); + EntityList::QuerySublist(pEVar17); uStack_8 = 2; uVar7 = 0; iVar29 = EntityList::Size(); @@ -530589,7 +530589,7 @@ LAB_007b4865: &IsaacRepentancePlus::Entity_Pickup:: RTTI_Type_Descriptor,0); if ((local_29c != (Room *)0x0) && (iVar29 = Entity_Pickup::Price(), iVar29 != 0)) { - FUN_006e2570(0); + Entity_Pickup::update_price_sprite(0); } uVar7 = uVar7 + 1; uVar13 = EntityList::Size(); @@ -530769,11 +530769,11 @@ LAB_007b3d9f: Game::ShakeScreen(0x1e); Isaac::GetItemConfig(); uVar25 = Config::GetNullItem(0x29); - cVar5 = FUN_009305c0(uVar25); + cVar5 = vector_contains_int(uVar25); if (cVar5 == '\0') { Isaac::GetItemConfig(); uVar25 = Config::GetNullItem(0x29); - FUN_00435f80(uVar25); + TemporaryEffect::TemporaryEffect(uVar25); TemporaryEffects::AddEffect(auStack_390,local_2a8,1); TemporaryEffects::AddCollectibleEffect(0x12e,0,1); } @@ -530789,7 +530789,7 @@ LAB_007b3d9f: FUN_005cbd00(0x35); uVar23 = RNG::Next(); uVar23 = ItemPool::GetCard(uVar23,1,0,0); - FUN_00a10350(auStack_374,(float)(int)pRStack_2b0 * -90.0); + Vector::FromAngle(auStack_374,(float)(int)pRStack_2b0 * -90.0); local_2d8 = (Entity_Pickup *)0x40000000; uVar24 = Vector::__mul(auStack_300,&local_2d8); in_ECX = local_2d0; @@ -530800,7 +530800,7 @@ LAB_007b3d9f: case 0x36: Isaac::GetItemConfig(); uVar25 = Config::GetNullItem(0x2a); - FUN_00435f80(uVar25); + TemporaryEffect::TemporaryEffect(uVar25); TemporaryEffects::AddEffect(auStack_390,1,1); Level::GetCurrentRoom(); FUN_004360d0(); @@ -530879,7 +530879,7 @@ LAB_007b3d9f: ItemPool::ResetRoomBlacklist(); Level::GetCurrentRoom(); pEVar17 = (Entity_NPC *)FUN_00428a60(); - NpcAI::ENTITY_MASK(pEVar17); + EntityList::QuerySublist(pEVar17); uStack_8 = 5; uVar23 = 0xb; local_298 = (Room *)0x0; @@ -530932,7 +530932,7 @@ LAB_007b3d9f: case (Room *)0x3: Isaac::GetItemConfig(); uVar25 = ItemConfig::GetCollectible(0x3a); - FUN_00435f80(uVar25); + TemporaryEffect::TemporaryEffect(uVar25); uStack_224 = 0x5a; TemporaryEffects::AddEffect(auStack_22c,local_2a8,1); break; @@ -531377,7 +531377,7 @@ LAB_007b57d2: do { uVar7 = std::vector::size(); if (2 < uVar7) break; - FUN_0042c850(&pRStack_2b0); + std::vector::push_back(&pRStack_2b0); iVar29 = iVar29 + 1; piVar26 = (int *)FUN_0042c810(pRStack_2b0); } while (iVar29 < *piVar26); @@ -531621,7 +531621,7 @@ LAB_007b57d2: local_2ac = 0; Level::GetCurrentRoom(); pEVar17 = (Entity_NPC *)FUN_00428a60(); - NpcAI::ENTITY_MASK(pEVar17); + EntityList::QuerySublist(pEVar17); uStack_8 = 9; pEVar18 = (Entity_Player *)0x0; apEStack_2bc[1] = (Entity_Player *)0x0; @@ -531749,14 +531749,14 @@ LAB_007b684f: uVar25 = Color::Color(0x3f800000,0x40400000,0x4019999a,0x3f800000,0x3f800000,0,0,0); (*pcVar2)(uVar25,0xffffffff,0xff,0,1); pRVar8 = pRStack_2b0; - cVar5 = FUN_00417220(5,100,0xffffffff); + cVar5 = Entity::IsType(5,100,0xffffffff); if (cVar5 == '\0') { (**(code **)(*(int *)pRVar8 + 0x28))(); } else { FUN_0060d1f0(4); } - FUN_006ee750(); + Entity_Pickup::RemoveOtherOptions(); uVar7 = local_2ac + 1; uStack_8 = CONCAT31(uStack_8._1_3_,9); local_2ac = uVar7; @@ -531810,7 +531810,7 @@ switchD_007b66d7_caseD_b: if (pRVar8 == (Room *)&DAT_00000004) { Game::GetSeeds(); Config::GetCollectibles(); - uVar25 = FUN_004360f0(); + uVar25 = _get_index_plus_one_if_kind_4_5(); Seeds::ForgetStageSeed(uVar25); Game::StartStageTransition(1,0,0); } @@ -531880,7 +531880,7 @@ switchD_007b66d7_caseD_b: local_2ac = Room::GetGridHeight(); pRStack_2c8 = (Room *)(local_2ac * uVar7); pEVar17 = (Entity_NPC *)FUN_00428a60(); - NpcAI::ENTITY_MASK(pEVar17); + EntityList::QuerySublist(pEVar17); uStack_8 = CONCAT31(uStack_8._1_3_,0xd); if (0 < (int)pRStack_2c8) { iVar29 = 0; @@ -531895,7 +531895,7 @@ switchD_007b66d7_caseD_b: if (iVar15 == 0) { if (local_29c != (Room *)0x0) { GridEntity::GetType(); - cVar5 = FUN_0070bf80(); + cVar5 = is_grid_type_floor_special(); if (cVar5 != '\0') goto LAB_007b6f0b; } pRStack_2b0 = (Room *)0x0; @@ -532214,7 +532214,7 @@ LAB_007b31f0: case 0x51: Level::GetCurrentRoom(); pEVar17 = (Entity_NPC *)FUN_00428a60(); - NpcAI::ENTITY_MASK(pEVar17); + EntityList::QuerySublist(pEVar17); uStack_8 = 0xf; pRVar8 = (Room *)0x0; local_29c = (Room *)0x0; @@ -532286,7 +532286,7 @@ LAB_007b31f0: case 0x54: Isaac::GetItemConfig(); uVar25 = ItemConfig::GetCollectible(0x2c1); - FUN_00435f80(uVar25); + TemporaryEffect::TemporaryEffect(uVar25); iStack_458 = 0x5a - iStack_458; TemporaryEffects::AddEffect(auStack_460,1,1); TemporaryEffects::AddNullEffect(0x80,1,1); @@ -532342,13 +532342,13 @@ LAB_007b31f0: case 0x57: Isaac::GetItemConfig(); uVar25 = ItemConfig::GetCollectible(0x2c0); - FUN_00435f80(uVar25); + TemporaryEffect::TemporaryEffect(uVar25); uStack_388 = 300; TemporaryEffects::AddEffect(auStack_390,1,1); play_sound_with_fart_seed(0x250,2,0,0x3f800000); play_sound_with_fart_seed(0x28a,2,0,0x3f800000); Level::GetCurrentRoom(); - FUN_007eb870(); + Level::UpdateBackwardsPathStages(); break; case 0x58: Game::GetField26614(); @@ -532425,7 +532425,7 @@ LAB_007b31f0: if ((piVar26 != (int *)0x0) && (*piVar26 == 4)) { cVar5 = Item::HasTags(0x8000000,0); if ((cVar5 == '\0') || (cVar5 = HasCollectible(piVar26[1],0), cVar5 == '\0')) { - FUN_0042c850(piVar26 + 1); + std::vector::push_back(piVar26 + 1); } } } @@ -532451,7 +532451,7 @@ LAB_007b81fb: } SoundEffects::PlayWithFartOverride(0x80,2,0,0x3f800000); AnimateCollectible((Entity_Player *)in_ECX,local_29c,"Pickup","PlayerPickupSparkle"); - FUN_0075e050(uVar25,0xffffffff,0,0,0xffffffff); + Entity_Player::SetQueuedItem(uVar25,0xffffffff,0,0,0xffffffff); local_2de = 0; } uStack_8 = 0xffffffff; @@ -532505,11 +532505,11 @@ LAB_007b81fb: Entity::SetParent(in_ECX); uVar25 = Vector::Vector(); uVar25 = Vector::__add(auStack_300,uVar25); - FUN_004288f0(uVar25); + Entity::SetPosition(uVar25); GetEffects(); TemporaryEffects::AddNullEffect(0x78,1,1); - FUN_007cbcd0(); - FUN_007bc740(); + Entity_Player::init_forgotten_twin(); + Entity_Player::InitPostLevelInitStats(); AddBoneHearts((Entity_Player *)pRVar8,1); AddHearts((Entity_Player *)pRVar8,2,1,0); uVar25 = Random(); @@ -532549,17 +532549,17 @@ LAB_007b81fb: Entity::SetParent(in_ECX); uVar25 = Vector::Vector(); uVar25 = Vector::__add(auStack_308,uVar25); - FUN_004288f0(uVar25); + Entity::SetPosition(uVar25); GetEffects(); TemporaryEffects::AddNullEffect(0x79,1,1); - FUN_007cbcd0(); - FUN_007bc740(); + Entity_Player::init_forgotten_twin(); + Entity_Player::InitPostLevelInitStats(); uVar25 = FUN_005cbd00(0x2bf); pRStack_2c8 = (Room *)&pRVar8->field_0x1dec; uStack_2c4 = CONCAT44(uVar25,(uint)uStack_2c4); FUN_005b16f0(1); local_2d8 = (Entity_Pickup *)Config::GetCollectibles(); - FUN_004561a0(&local_298); + std::iterator_copy(&local_298); uVar25 = FUN_00456190(&pRStack_2ec); cVar5 = FUN_0042c710(uVar25); while (cVar5 != '\0') { @@ -532767,7 +532767,7 @@ void FUN_007b8cb0(void) local_44 = (undefined1 *)((float)dVar10 / (float)local_5c); local_5c = *(undefined1 **)(*(int *)(DAT_00c71678 + 0x18300) + 0x11fc); local_54 = *(float *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1200); - FUN_0041c770(); + shared_ptr::assign(); local_8 = 0; pcVar1 = *(code **)(*local_4c + 0x2c); __ftoui3(); @@ -532864,7 +532864,7 @@ void FUN_007b8cb0(void) } local_54 = *(float *)(*(int *)(DAT_00c71678 + 0x18300) + 0x11fc); local_44 = *(undefined1 **)(*(int *)(DAT_00c71678 + 0x18300) + 0x1200); - FUN_0041c770(); + shared_ptr::assign(); local_8 = 1; (**(code **)(*piStack_7c + 0x2c)) (&local_ac,(int)(local_48 - local_54),(int)(local_50 - (float)local_44)); @@ -532919,9 +532919,9 @@ void FUN_007b8cb0(void) 0.16000001 < fVar8 * fVar8 + fVar9 * fVar9)) { FUN_00683680(); DAT_00c798e4 = DAT_00c798e4 & 0xfffffffd; - FUN_0041c770(); + shared_ptr::assign(); local_8 = 2; - FUN_00a18300(local_74,0); + KAGE_Graphics::SetRenderTarget(local_74,0); local_8 = 0xffffffff; FUN_0041c710(); uVar3 = DAT_00c79910; @@ -532956,7 +532956,7 @@ void FUN_007b8cb0(void) local_70 = 20.0; local_4c = (int *)((local_50 - local_54) - 10.0); local_48 = (fVar9 - (float)local_64) - 10.0; - FUN_00a10e70(&local_4c,pfVar4,extraout_ECX); + render_quad_set_rect(&local_4c,pfVar4,extraout_ECX); FUN_00682260(); uVar13 = CONCAT44(0x7b9800,pfVar4); Color::Color(); @@ -532968,14 +532968,14 @@ void FUN_007b8cb0(void) uStack_b8 = 0x3f800000; uStack_b4 = 0x3e75c28f; (**(code **)(*DAT_00c79844 + 0x1c))(local_130,&local_c0); - FUN_00a19180(); - FUN_006836c0(); + _glfw_context_reset(); + pop_render_target(); DAT_00c79900 = local_84; DAT_00c79904 = uStack_80; DAT_00c79908 = piStack_7c; DAT_00c7990c = fStack_78; DAT_00c79910 = uVar3; - FUN_00a14050(); + shader_cache_find(); } } } @@ -533084,7 +533084,7 @@ void FUN_007b9a60(void) return; } if (*(int *)(in_ECX + 0x2c) == 1) { - FUN_009ba000(in_ECX,in_ECX); + PlayerManager::RemoveCoPlayer(in_ECX,in_ECX); } return; } @@ -533329,9 +533329,9 @@ LAB_007b9e7b: } -//@@ 007b9f60 FUN_007b9f60 +//@@ 007b9f60 Entity_Player::GetMouseAimTarget -undefined1 FUN_007b9f60(float *param_1,char param_2) +undefined1 Entity_Player::GetMouseAimTarget(float *param_1,char param_2) { float fVar1; @@ -533636,7 +533636,7 @@ LAB_007bb576: } LAB_007bade5: if (*(int *)((int)in_ECX + 0x1aec) == 0x28) { - FUN_007ce270(uVar4); + Entity_Player::GetMainPlayer(uVar4); cVar3 = TemporaryEffects::HasCollectibleEffect(0xf8); if (cVar3 != '\0') goto LAB_007bae5e; cVar3 = Entity::IsFrame(0x1e,0); @@ -533652,7 +533652,7 @@ LAB_007bad98: } LAB_007bae5e: if (*(int *)((int)in_ECX + 0x1aec) == 0x29) { - FUN_007ce270(uVar4); + Entity_Player::GetMainPlayer(uVar4); cVar3 = TemporaryEffects::HasCollectibleEffect(0xce); if (cVar3 == '\0') { cVar3 = Entity::IsFrame(0x1e,0); @@ -533666,7 +533666,7 @@ LAB_007bae5e: } } if (*(int *)((int)in_ECX + 0x1aec) == 0x2b) { - FUN_007ce270(uVar4); + Entity_Player::GetMainPlayer(uVar4); cVar3 = TemporaryEffects::HasCollectibleEffect(0x7a); if (cVar3 == '\0') { cVar3 = Entity::IsFrame(0x1e,0); @@ -533680,7 +533680,7 @@ LAB_007bae5e: } } if (*(int *)((int)in_ECX + 0x1aec) == 0x2d) { - FUN_007ce270(uVar4); + Entity_Player::GetMainPlayer(uVar4); cVar3 = TemporaryEffects::HasCollectibleEffect(0xd6); if (cVar3 == '\0') { cVar3 = Entity::IsFrame(0x1e,0); @@ -533725,7 +533725,7 @@ LAB_007bae5e: if (iVar7 != 0x32) { LAB_007bb2d2: if (*(int *)((int)in_ECX + 0x1aec) == 0x33) { - FUN_007ce270(); + Entity_Player::GetMainPlayer(); cVar3 = TemporaryEffects::HasCollectibleEffect(0x22); if (cVar3 == '\0') { cVar3 = Entity::IsFrame(0x1e,0); @@ -533764,8 +533764,8 @@ LAB_007bb3c8: } else { if ((*(int *)((int)in_ECX + 0x1aec) == 0x31) && - (iVar7 = FUN_007ce270(), *(int *)(iVar7 + 0x18e0) < 1)) { - iVar10 = FUN_007ce270(); + (iVar7 = Entity_Player::GetMainPlayer(), *(int *)(iVar7 + 0x18e0) < 1)) { + iVar10 = Entity_Player::GetMainPlayer(); iVar7 = *(int *)(iVar10 + 0x18e0); if (iVar7 < 0x96) { iVar7 = 0x96; @@ -533822,7 +533822,7 @@ LAB_007bb56b: } goto LAB_007bb58c; } - FUN_007ce270(); + Entity_Player::GetMainPlayer(); cVar3 = TemporaryEffects::HasCollectibleEffect(0x19b); if (cVar3 != '\0') goto LAB_007bb2d2; cVar3 = Entity::IsFrame(0x1e,0); @@ -534141,7 +534141,7 @@ LAB_007bb56b: goto LAB_007bade5; } if (iVar7 != 0x27) goto LAB_007bade5; - FUN_007ce270(uVar4); + Entity_Player::GetMainPlayer(uVar4); cVar3 = TemporaryEffects::HasCollectibleEffect(0x14); if (cVar3 != '\0') goto LAB_007bade5; cVar3 = Entity::IsFrame(0x1e,0); @@ -534154,7 +534154,7 @@ LAB_007bad9f: LAB_007bada9: local_8c = 0x96; local_88 = (float *)0x0; - FUN_007ce270(); + Entity_Player::GetMainPlayer(); TemporaryEffects::AddEffect(local_a4 + 4,1,1); } LAB_007bb58c: @@ -534531,7 +534531,7 @@ void FUN_007bbbd0(void) piVar4 = (int *)0x0; } else { - piVar4 = (int *)FUN_00753da0(); + piVar4 = (int *)Entity_Player::constructor(); } local_8 = 0xffffffff; *(int **)(in_ECX + 0x1e6c) = piVar4; @@ -534546,7 +534546,7 @@ void FUN_007bbbd0(void) if (iVar7 == 0x12) { cVar3 = Entity_Player::HasCollectible(0x248,0); if (cVar3 != '\0') { - FUN_0075e320(10,1); + Entity_Player::IncrementPlayerFormCounter(10,1); } goto LAB_007bbfd5; } @@ -534558,7 +534558,7 @@ void FUN_007bbbd0(void) } if (iVar7 != 0x25) goto LAB_007bbfd5; } - FUN_007cbcd0(); + Entity_Player::init_forgotten_twin(); LAB_007bbfd5: Entity_Player::AddBlackHearts(); Entity_Player::AddBrokenHearts(); @@ -534753,7 +534753,7 @@ LAB_007bbfd5: if (*(int *)(local_30 + 100) != 0) { Entity_Player::AddCoins(*(int *)(local_30 + 100)); } - FUN_007592a0(); + Entity_Player::UpdateBlackHeartMask(); } pGVar2 = DAT_00c71678; local_38 = 0x21; @@ -534774,11 +534774,11 @@ LAB_007bbfd5: } -//@@ 007bc740 FUN_007bc740 +//@@ 007bc740 Entity_Player::InitPostLevelInitStats /* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */ -void FUN_007bc740(void) +void Entity_Player::InitPostLevelInitStats(void) { Entity_Player *pEVar1; @@ -534985,7 +534985,7 @@ void FUN_007bc740(void) else { Entity_Player::AddPocketItem(local_8c,iVar6,1); } - FUN_0043eca0(local_a4 + 0x35); + std::vector::copy_constructor(local_a4 + 0x35); uVar15 = local_94; local_8 = 0; if (DAT_00c71678->_challenge == 0) { @@ -535036,11 +535036,11 @@ void FUN_007bc740(void) case 3: pEVar5->_donateLuck = pEVar5->_donateLuck + 7; local_9c = 0x17e; - FUN_0042c850(&local_9c); + std::vector::push_back(&local_9c); local_a0 = 200; - FUN_0042c850(&local_a0); + std::vector::push_back(&local_a0); local_98 = 0x3f; - FUN_0042c850(&local_98); + std::vector::push_back(&local_98); break; case 5: piVar7 = (int *)(*(int *)&pEVar5->field_0x16d4 + 0x48); @@ -535056,82 +535056,82 @@ void FUN_007bc740(void) break; case 6: local_98 = 0x8a; - FUN_0042c850(&local_98); + std::vector::push_back(&local_98); local_9c = 7; - FUN_0042c850(&local_9c); + std::vector::push_back(&local_9c); local_a0 = 0x53; - FUN_0042c850(&local_a0); + std::vector::push_back(&local_a0); break; case 8: local_98 = 0x1f; - FUN_0042c850(&local_98); + std::vector::push_back(&local_98); local_9c = 0x29; - FUN_0042c850(&local_9c); + std::vector::push_back(&local_9c); local_a0 = 0x37; - FUN_0042c850(&local_a0); + std::vector::push_back(&local_a0); break; case 9: local_98 = 0xa3; - FUN_0042c850(&local_98); + std::vector::push_back(&local_98); local_9c = 0x43; - FUN_0042c850(&local_9c); + std::vector::push_back(&local_9c); local_a0 = 8; - FUN_0042c850(&local_a0); + std::vector::push_back(&local_a0); local_88 = 0x10c; - FUN_0042c850(&local_88); + std::vector::push_back(&local_88); local_78 = 0x109; - FUN_0042c850(&local_78); + std::vector::push_back(&local_78); local_74 = (int *)0xf7; - FUN_0042c850(&local_74); + std::vector::push_back(&local_74); break; case 10: local_74 = (int *)0xaf; - FUN_0042c850(&local_74); + std::vector::push_back(&local_74); local_78 = 0xaa; - FUN_0042c850(&local_78); + std::vector::push_back(&local_78); local_88 = 0x74; - FUN_0042c850(&local_88); + std::vector::push_back(&local_88); break; case 0xb: local_74 = (int *)0xbf; - FUN_0042c850(&local_74); + std::vector::push_back(&local_74); local_78 = 0x1a2; - FUN_0042c850(&local_78); + std::vector::push_back(&local_78); local_88 = 0xae; - FUN_0042c850(&local_88); + std::vector::push_back(&local_88); break; case 0xc: local_74 = (int *)0x34; - FUN_0042c850(&local_74); + std::vector::push_back(&local_74); local_78 = 0x16e; - FUN_0042c850(&local_78); + std::vector::push_back(&local_78); local_88 = 0x14a; - FUN_0042c850(&local_88); + std::vector::push_back(&local_88); local_98 = 0x247; - FUN_0042c850(&local_98); + std::vector::push_back(&local_98); break; case 0xd: local_a0 = 0x1a8; - FUN_0042c850(&local_a0); + std::vector::push_back(&local_a0); break; case 0xe: local_80 = local_84; local_a0 = 0x51; - FUN_0042c850(&local_a0); + std::vector::push_back(&local_a0); break; case 0x10: local_a0 = 0x30; - FUN_0042c850(&local_a0); + std::vector::push_back(&local_a0); break; case 0x11: local_a0 = 0x84; - FUN_0042c850(&local_a0); + std::vector::push_back(&local_a0); local_9c = 0xad; - FUN_0042c850(&local_9c); + std::vector::push_back(&local_9c); break; case 0x12: local_9c = 0x5d; - FUN_0042c850(&local_9c); + std::vector::push_back(&local_9c); if (*(int *)(DAT_00c7169c + 0x2a420) - *(int *)(DAT_00c7169c + 0x2a41c) >> 2 < 0x24) { Entity_Player::AddCostume(pEVar5,0,0); } @@ -535141,232 +535141,232 @@ void FUN_007bc740(void) break; case 0x13: local_9c = 0x84; - FUN_0042c850(&local_9c); + std::vector::push_back(&local_9c); local_a0 = 0x4a; - FUN_0042c850(&local_a0); + std::vector::push_back(&local_a0); Entity_Player::AddKeys(pEVar5,1); break; case 0x14: local_74 = (int *)0x91; - FUN_0042c850(&local_74); + std::vector::push_back(&local_74); local_78 = 0x86; - FUN_0042c850(&local_78); + std::vector::push_back(&local_78); local_88 = 0xd4; - FUN_0042c850(&local_88); + std::vector::push_back(&local_88); break; case 0x16: local_74 = (int *)0x17a; - FUN_0042c850(&local_74); + std::vector::push_back(&local_74); local_78 = 6; - FUN_0042c850(&local_78); + std::vector::push_back(&local_78); local_88 = 0xd1; - FUN_0042c850(&local_88); + std::vector::push_back(&local_88); local_98 = 0x123; - FUN_0042c850(&local_98); + std::vector::push_back(&local_98); break; case 0x17: local_74 = (int *)0x96; - FUN_0042c850(&local_74); + std::vector::push_back(&local_74); local_78 = 0x1be; - FUN_0042c850(&local_78); + std::vector::push_back(&local_78); local_88 = 0x56; - FUN_0042c850(&local_88); + std::vector::push_back(&local_88); break; case 0x18: local_74 = (int *)0x14a; - FUN_0042c850(&local_74); + std::vector::push_back(&local_74); local_78 = 0x1b4; - FUN_0042c850(&local_78); + std::vector::push_back(&local_78); break; case 0x19: local_74 = (int *)0x174; - FUN_0042c850(&local_74); + std::vector::push_back(&local_74); local_78 = 0x74; - FUN_0042c850(&local_78); + std::vector::push_back(&local_78); local_88 = 0x3f; - FUN_0042c850(&local_88); + std::vector::push_back(&local_88); local_98 = 0x164; - FUN_0042c850(&local_98); + std::vector::push_back(&local_98); local_9c = 0x8b; - FUN_0042c850(&local_9c); + std::vector::push_back(&local_9c); break; case 0x1a: local_74 = (int *)0x19d; - FUN_0042c850(&local_74); + std::vector::push_back(&local_74); local_78 = 0x186; - FUN_0042c850(&local_78); + std::vector::push_back(&local_78); local_88 = 499; - FUN_0042c850(&local_88); + std::vector::push_back(&local_88); break; case 0x1b: local_74 = (int *)&DAT_00000068; - FUN_0042c850(&local_74); + std::vector::push_back(&local_74); local_78 = 0x18d; - FUN_0042c850(&local_78); + std::vector::push_back(&local_78); local_88 = 0x1c9; - FUN_0042c850(&local_88); + std::vector::push_back(&local_88); break; case 0x1d: local_74 = (int *)&DAT_00000043; - FUN_0042c850(&local_74); + std::vector::push_back(&local_74); local_78 = 8; - FUN_0042c850(&local_78); + std::vector::push_back(&local_78); local_88 = 0xa3; - FUN_0042c850(&local_88); + std::vector::push_back(&local_88); local_98 = 99; - FUN_0042c850(&local_98); + std::vector::push_back(&local_98); local_9c = 100; - FUN_0042c850(&local_9c); + std::vector::push_back(&local_9c); local_a0 = 0x142; - FUN_0042c850(&local_a0); + std::vector::push_back(&local_a0); break; case 0x1e: local_74 = (int *)0x111; - FUN_0042c850(&local_74); + std::vector::push_back(&local_74); local_78 = 0x13c; - FUN_0042c850(&local_78); + std::vector::push_back(&local_78); local_88 = 0x173; - FUN_0042c850(&local_88); + std::vector::push_back(&local_88); local_98 = 0x51; - FUN_0042c850(&local_98); + std::vector::push_back(&local_98); local_9c = 0x81; - FUN_0042c850(&local_9c); + std::vector::push_back(&local_9c); break; case 0x1f: local_74 = (int *)0xb4; - FUN_0042c850(&local_74); + std::vector::push_back(&local_74); local_78 = 0x1bf; - FUN_0042c850(&local_78); + std::vector::push_back(&local_78); local_88 = 0x1e4; - FUN_0042c850(&local_88); + std::vector::push_back(&local_88); local_98 = 0x74; - FUN_0042c850(&local_98); + std::vector::push_back(&local_98); break; case 0x20: local_74 = (int *)0x44; - FUN_0042c850(&local_74); + std::vector::push_back(&local_74); local_78 = 0x243; - FUN_0042c850(&local_78); + std::vector::push_back(&local_78); break; case 0x21: local_74 = (int *)0x11a; - FUN_0042c850(&local_74); + std::vector::push_back(&local_74); local_78 = 0x13a; - FUN_0042c850(&local_78); + std::vector::push_back(&local_78); break; case 0x22: local_74 = (int *)0x1a8; - FUN_0042c850(&local_74); + std::vector::push_back(&local_74); local_78 = 0xa6; - FUN_0042c850(&local_78); + std::vector::push_back(&local_78); break; case 0x23: local_74 = (int *)0xd2; - FUN_0042c850(&local_74); + std::vector::push_back(&local_74); local_78 = 0x24; - FUN_0042c850(&local_78); + std::vector::push_back(&local_78); local_88 = 0x178; - FUN_0042c850(&local_88); + std::vector::push_back(&local_88); break; case 0x24: local_74 = (int *)0x12; - FUN_0042c850(&local_74); + std::vector::push_back(&local_74); break; case 0x25: local_74 = (int *)0x7f; - FUN_0042c850(&local_74); + std::vector::push_back(&local_74); break; case 0x26: local_74 = (int *)0x1e0; - FUN_0042c850(&local_74); + std::vector::push_back(&local_74); local_78 = 0x97; - FUN_0042c850(&local_78); + std::vector::push_back(&local_78); local_88 = 0x10c; - FUN_0042c850(&local_88); + std::vector::push_back(&local_88); break; case 0x27: local_74 = (int *)0xf5; - FUN_0042c850(&local_74); + std::vector::push_back(&local_74); local_78 = 0x7b; - FUN_0042c850(&local_78); + std::vector::push_back(&local_78); local_88 = 0x5f; - FUN_0042c850(&local_88); + std::vector::push_back(&local_88); break; case 0x28: local_74 = (int *)0x76; - FUN_0042c850(&local_74); + std::vector::push_back(&local_74); local_78 = 0x26; - FUN_0042c850(&local_78); + std::vector::push_back(&local_78); local_88 = 0xdd; - FUN_0042c850(&local_88); + std::vector::push_back(&local_88); local_98 = 0x139; - FUN_0042c850(&local_98); + std::vector::push_back(&local_98); local_9c = 3; - FUN_0042c850(&local_9c); + std::vector::push_back(&local_9c); break; case 0x2a: local_74 = (int *)0xb6; - FUN_0042c850(&local_74); + std::vector::push_back(&local_74); local_78 = 0xb3; - FUN_0042c850(&local_78); + std::vector::push_back(&local_78); local_88 = 0x176; - FUN_0042c850(&local_88); + std::vector::push_back(&local_88); break; case 0x2b: local_74 = (int *)0xe8; - FUN_0042c850(&local_74); + std::vector::push_back(&local_74); local_78 = 0x151; - FUN_0042c850(&local_78); + std::vector::push_back(&local_78); break; case 0x2d: local_74 = (int *)0x13a; - FUN_0042c850(&local_74); + std::vector::push_back(&local_74); local_78 = 0x81; - FUN_0042c850(&local_78); + std::vector::push_back(&local_78); break; case 0x2e: local_74 = (int *)0x34; - FUN_0042c850(&local_74); + std::vector::push_back(&local_74); local_78 = 0x16e; - FUN_0042c850(&local_78); + std::vector::push_back(&local_78); break; case 0x2f: local_74 = (int *)0x192; - FUN_0042c850(&local_74); + std::vector::push_back(&local_74); break; case 0x30: local_74 = (int *)0x9c; - FUN_0042c850(&local_74); + std::vector::push_back(&local_74); local_78 = 0x11e; - FUN_0042c850(&local_78); + std::vector::push_back(&local_78); local_88 = 0x4a; - FUN_0042c850(&local_88); + std::vector::push_back(&local_88); local_98 = 0x4b; - FUN_0042c850(&local_98); + std::vector::push_back(&local_98); break; case 0x31: local_74 = (int *)0x13c; - FUN_0042c850(&local_74); + std::vector::push_back(&local_74); local_78 = 0x173; - FUN_0042c850(&local_78); + std::vector::push_back(&local_78); local_88 = 0x16e; - FUN_0042c850(&local_88); + std::vector::push_back(&local_88); local_98 = 0x111; - FUN_0042c850(&local_98); + std::vector::push_back(&local_98); break; case 0x32: local_74 = (int *)0x11e; - FUN_0042c850(&local_74); + std::vector::push_back(&local_74); local_78 = 0x4b; - FUN_0042c850(&local_78); + std::vector::push_back(&local_78); local_88 = 0x9c; - FUN_0042c850(&local_88); + std::vector::push_back(&local_88); break; case 0x33: local_74 = (int *)0xf9; - FUN_0042c850(&local_74); + std::vector::push_back(&local_74); local_78 = 0x19e; - FUN_0042c850(&local_78); + std::vector::push_back(&local_78); break; case 0x34: local_80 = local_84; @@ -535884,13 +535884,13 @@ LAB_007be608: if (*(int *)&pEVar5[1].field_0x1c == 0) { iVar4 = pEVar5->_playerType; if (iVar4 == 0x13) { - FUN_007d2000(0x14); - FUN_007bc740(); + Entity_Player::InitTwin(0x14); + Entity_Player::InitPostLevelInitStats(); } else if (iVar4 == 0x23) { if (pEVar5->_isCoopGhost == 0) { - FUN_007d2000(0x28); - FUN_007bc740(); + Entity_Player::InitTwin(0x28); + Entity_Player::InitPostLevelInitStats(); } } else if (iVar4 == 0x22) { @@ -536048,7 +536048,7 @@ code_r0x007be352: uVar15 = local_94 & 0xffff; } local_a4[0x121] = uVar15; - iVar4 = FUN_0090ac70(pEVar5); + iVar4 = InputManager::GetDeviceByPlayerEntity(pEVar5); if (iVar4 == 0) goto LAB_007be602; cVar3 = (**(code **)(*(int *)(iVar4 + 0x370) + 0x14))(); uVar13 = local_90; @@ -536059,11 +536059,11 @@ code_r0x007be352: } -//@@ 007bebb0 FUN_007bebb0 +//@@ 007bebb0 Entity_Player::update_player_skin /* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */ -void FUN_007bebb0(void) +void Entity_Player::update_player_skin(void) { undefined4 uVar1; @@ -536112,7 +536112,7 @@ void FUN_007bebb0(void) ExceptionList = &local_1c; local_24 = uVar2; if (in_ECX->_isCoopGhost != 0) { - FUN_007d9b70(); + Entity_Player::reset_body_sprite(); ExceptionList = local_1c; return; } @@ -538629,7 +538629,7 @@ LAB_007c285a: LAB_007c2911: local_148 = param_1->_tearScale; if (1.0 < local_148) { - FUN_006dac30(); + log_precise(); local_148 = local_148 + 1.0; } fVar18 = local_128; @@ -538665,7 +538665,7 @@ LAB_007c2911: if (cVar4 != '\0') { *(undefined4 *)¶m_1->field_0x14 = 0x3e4ccccd; } - iVar6 = FUN_007db8d0(); + iVar6 = Entity_Player::get_seeded_variant(); if (iVar6 != -1) { param_1->_tearVariant = 0xd; fVar18 = param_1->_knockbackMultiplier; @@ -538678,7 +538678,7 @@ LAB_007c2911: uStack_d0 = 0x3f800000; uStack_cc = 0x3f800000; uStack_c8 = 0x3f800000; - FUN_004e46d0(&local_d4); + Color::apply_to_kcolor(&local_d4); Color::Reset(); local_100 = local_120; uStack_fc = uStack_11c; @@ -538697,7 +538697,7 @@ LAB_007c2911: *(undefined4 *)¶m_1->field_0x30 = local_d8; } } - uVar10 = FUN_007db8d0(); + uVar10 = Entity_Player::get_seeded_variant(); switch(uVar10) { case 3: param_1->_tearScale = param_1->_tearScale + param_1->_tearScale; @@ -538738,9 +538738,9 @@ LAB_007c2911: } -//@@ 007c2d50 FUN_007c2d50 +//@@ 007c2d50 get_tear_trinket_multiplier -void FUN_007c2d50(undefined4 param_1) +void get_tear_trinket_multiplier(undefined4 param_1) { switch(param_1) { @@ -539243,7 +539243,7 @@ void Entity_Player::ResetItemState(void) iVar3 = iVar3 + 0x130; } else { - piVar2 = (int *)FUN_005cbd20(local_8,iVar3); + piVar2 = (int *)std::vector::erase(local_8,iVar3); iVar3 = *piVar2; } } while (iVar3 != *(int *)(in_ECX + 0x1224)); @@ -539788,7 +539788,7 @@ void Entity_Player::UsePill(uint param_1,uint param_2,uint param_3) local_240 = param_3; } else { - iVar9 = FUN_0090ac70(in_ECX); + iVar9 = InputManager::GetDeviceByPlayerEntity(in_ECX); if ((iVar9 == 0) || (cVar6 = (**(code **)(*(int *)(iVar9 + 0x370) + 0x14))(uVar8), cVar6 != '\0')) { local_240 = param_3; @@ -539862,7 +539862,7 @@ void Entity_Player::UsePill(uint param_1,uint param_2,uint param_3) } LAB_007c4477: if (local_23c != 0) { - ppppppuVar11 = (undefined4 ******)FUN_00724af0(local_d8 + 6,0x14); + ppppppuVar11 = (undefined4 ******)PocketItemConfig::GetName(local_d8 + 6,0x14); if (&local_104 != (undefined4 *******)ppppppuVar11) { if (0xf < local_f4._4_4_) { uVar10 = local_f4._4_4_ + 1; @@ -539914,10 +539914,10 @@ LAB_007c453e: if (*pcVar12 == '#') { local_208 = (ItemPool *)(pcVar12 + 1); local_214 = (float)((uint)local_214 & 0xffffff); - FUN_00a26af0("PocketItems",local_20c,local_208,(int)&local_214 + 3); + StringTable::get_string("PocketItems",local_20c,local_208,(int)&local_214 + 3); if (local_214._3_1_ == '\0') { local_216 = '\0'; - pcVar12 = (char *)FUN_00a26af0("PocketItems",local_20c,local_208,&local_216); + pcVar12 = (char *)StringTable::get_string("PocketItems",local_20c,local_208,&local_216); } } local_13c[0] = (undefined4 ******)0x0; @@ -539963,11 +539963,11 @@ LAB_007c46b3: } if (piVar21 != *(int **)&(pGVar15->_seedEffects).field_0x54) { local_214 = (float)((uint)local_214 & 0xffffff); - FUN_00a26af0("PocketItems",*(undefined4 *)&DAT_00c7169c[0x9c].field_0x130,"QUESTION_MARKS_NAME", + StringTable::get_string("PocketItems",*(undefined4 *)&DAT_00c7169c[0x9c].field_0x130,"QUESTION_MARKS_NAME", (int)&local_214 + 3); if (local_214._3_1_ == '\0') { local_216 = '\0'; - pcVar12 = (char *)FUN_00a26af0("PocketItems",*(undefined4 *)&pIVar37[0x9c].field_0x130, + pcVar12 = (char *)StringTable::get_string("PocketItems",*(undefined4 *)&pIVar37[0x9c].field_0x130, "QUESTION_MARKS_NAME",&local_216); } else { @@ -539994,7 +539994,7 @@ LAB_007c46b3: } if (piVar21 != *(int **)&(pGVar15->_seedEffects).field_0x54) { std::string::string(&local_104); - ppppppuVar11 = (undefined4 ******)FUN_00682b90(); + ppppppuVar11 = (undefined4 ******)string_scramble_seeded(); if (&local_104 != (undefined4 *******)ppppppuVar11) { if (0xf < local_f4._4_4_) { uVar10 = local_f4._4_4_ + 1; @@ -540030,7 +540030,7 @@ LAB_007c48c4: operator_delete(uVar10,uVar28); } std::string::string(&local_11c); - ppppppuVar11 = (undefined4 ******)FUN_00682b90(); + ppppppuVar11 = (undefined4 ******)string_scramble_seeded(); if (&local_11c != (undefined4 *******)ppppppuVar11) { if ((undefined4 *****)0xf < pppppuStack_108) { pppppuVar29 = (undefined4 *****)((int)pppppuStack_108 + 1); @@ -540082,7 +540082,7 @@ LAB_007c49a4: if (0xf < local_f4._4_4_) { ppppppuVar13 = local_104; } - FUN_009a3410(in_ECX,ppppppuVar13,ppppppuVar11); + PlayerHUD::show_pill_name(in_ECX,ppppppuVar13,ppppppuVar11); goto LAB_007c4a29; } LAB_007c4a2e: @@ -540181,7 +540181,7 @@ LAB_007c4b59: local_d8[0] = 0x3f800000; local_d8[1] = 0; local_d8[2] = 0x3f800000; - FUN_009960b0(extraout_ECX); + Game::start_poop_cloud_screen_effect(extraout_ECX); AnimatePill(param_2,"UseItem"); break; } @@ -540254,7 +540254,7 @@ LAB_007c4eaa: else { uVar22 = **(undefined4 **)&DAT_00c7169c[0x58].field_0x3bc; } - FUN_00435f80(uVar22); + TemporaryEffect::TemporaryEffect(uVar22); local_220 = (int *)&DAT_0000003c; TemporaryEffects::AddEffect(extraout_ECX_01,1,1); if ((char)local_204 != '\0') { @@ -540333,7 +540333,7 @@ LAB_007c4df2: } AddCostume(in_ECX,uVar22,0); AnimateSad(); - FUN_0075e320(0xb,1); + Entity_Player::IncrementPlayerFormCounter(0xb,1); break; case 10: if (cVar6 != '\0') { @@ -540702,7 +540702,7 @@ LAB_007c7497: local_d8[0] = 0; local_d8[1] = 0x3f800000; local_d8[2] = 0x3f800000; - FUN_009960b0(extraout_ECX_11); + Game::start_poop_cloud_screen_effect(extraout_ECX_11); AnimatePill(param_2,"UseItem"); } break; @@ -540788,7 +540788,7 @@ LAB_007c7497: else { uVar22 = *(undefined4 *)(*(int *)&DAT_00c7169c[0x58].field_0x3bc + 0x70); } - FUN_00435f80(uVar22); + TemporaryEffect::TemporaryEffect(uVar22); local_220 = (int *)0x1e; if ((char)local_204 != '\0') { local_220 = (int *)0x12c; @@ -540815,7 +540815,7 @@ LAB_007c548c: local_220 = (int *)0x0; local_21c = (int *)0x0; local_14 = CONCAT31(local_14._1_3_,4); - iVar14 = FUN_0071f600(1); + iVar14 = Level::filter_curses(1); piVar21 = (int *)0x0; if (iVar14 == 0) { local_22c = (ItemPool *)0x1; @@ -540823,7 +540823,7 @@ LAB_007c548c: local_210 = local_21c; piVar21 = local_220; } - iVar14 = FUN_0071f600(4); + iVar14 = Level::filter_curses(4); if (iVar14 == 0) { local_22c = (ItemPool *)&DAT_00000004; if (piVar21 == local_210) { @@ -540837,7 +540837,7 @@ LAB_007c548c: piVar21 = local_220; } } - iVar14 = FUN_0071f600(8); + iVar14 = Level::filter_curses(8); if (iVar14 == 0) { local_22c = (ItemPool *)&DAT_00000008; if (piVar21 == local_210) { @@ -540851,7 +540851,7 @@ LAB_007c548c: piVar21 = local_220; } } - iVar14 = FUN_0071f600(0x40); + iVar14 = Level::filter_curses(0x40); if (iVar14 == 0) { local_22c = (ItemPool *)0x40; if (piVar21 == local_210) { @@ -540881,7 +540881,7 @@ LAB_007c679f: case 0x20: AnimatePill(param_2,"UseItem"); in_ECX->_tearPoisonDamage = (float)((uint)in_ECX->_tearPoisonDamage | 0x800); - FUN_0075e320(0xd,(local_204 & 0xff) + 1); + Entity_Player::IncrementPlayerFormCounter(0xd,(local_204 & 0xff) + 1); break; case 0x21: AnimatePill(param_2,"UseItem"); @@ -540981,7 +540981,7 @@ LAB_007c679f: else { uVar22 = *(undefined4 *)&local_22c->field_0xa4; } - cVar6 = FUN_009305c0(uVar22); + cVar6 = vector_contains_int(uVar22); if (cVar6 == '\0') { if (iVar14 < 0x2a) { uVar22 = 0; @@ -540989,7 +540989,7 @@ LAB_007c679f: else { uVar22 = *(undefined4 *)&local_22c->field_0xa4; } - FUN_00435f80(uVar22); + TemporaryEffect::TemporaryEffect(uVar22); TemporaryEffects::AddEffect(extraout_ECX_12,1,1); TemporaryEffects::AddCollectibleEffect(0x12e,0,1); } @@ -541313,7 +541313,7 @@ LAB_007c5631: piVar2 = local_220; local_20c = (ItemPool *)&local_20c->field_0x1; } while (local_20c < &DAT_00000006); - FUN_005cc070(local_224,local_220); + RNG::Shuffle(local_224,local_220); if ((*local_224 == 0) && (cVar6 = CanUsePill(in_ECX,6), cVar6 == '\0')) { *local_224 = piVar2[-1]; piVar2[-1] = 0; @@ -541351,7 +541351,7 @@ LAB_007c5631: if (local_215 == '\0') { if (local_214._3_1_ == '\0') { sprintf(&uStack_e0,local_13c[piVar21[1]],&DAT_00b6b4c0,1); - pcVar24 = (char *)FUN_009586f0(&DAT_00c7169c[0x9c].field_0x130,&uStack_e0); + pcVar24 = (char *)string_table_translate(&DAT_00c7169c[0x9c].field_0x130,&uStack_e0); pcVar12 = pcVar24; do { cVar6 = *pcVar12; @@ -541366,7 +541366,7 @@ LAB_007c5631: *(undefined2 *)((int)puVar25 + 1) = 0x202c; *(undefined1 *)((int)puVar25 + 3) = 0; sprintf(&uStack_e0,local_13c[*piVar21],&DAT_00b6b4b8,2); - pcVar24 = (char *)FUN_009586f0(&DAT_00c7169c[0x9c].field_0x130,&uStack_e0); + pcVar24 = (char *)string_table_translate(&DAT_00c7169c[0x9c].field_0x130,&uStack_e0); pcVar12 = pcVar24; do { cVar6 = *pcVar12; @@ -541393,7 +541393,7 @@ LAB_007c5631: } else { sprintf(&uStack_e0,local_13c[*piVar21],&DAT_00b6b4b8,1); - pcVar24 = (char *)FUN_009586f0(&DAT_00c7169c[0x9c].field_0x130,&uStack_e0); + pcVar24 = (char *)string_table_translate(&DAT_00c7169c[0x9c].field_0x130,&uStack_e0); pcVar12 = pcVar24; do { cVar6 = *pcVar12; @@ -541404,7 +541404,7 @@ LAB_007c5631: } else { sprintf(&uStack_e0,local_13c[piVar21[1]],&DAT_00b6b4c0,1); - pcVar24 = (char *)FUN_009586f0(&DAT_00c7169c[0x9c].field_0x130,&uStack_e0); + pcVar24 = (char *)string_table_translate(&DAT_00c7169c[0x9c].field_0x130,&uStack_e0); pcVar12 = pcVar24; do { cVar6 = *pcVar12; @@ -541418,7 +541418,7 @@ LAB_007c5631: if (0xf < local_f4._4_4_) { ppppppuVar11 = local_104; } - FUN_009a3410(in_ECX,ppppppuVar11,local_a8); + PlayerHUD::show_pill_name(in_ECX,ppppppuVar11,local_a8); } if (local_215 == '\0') { if (local_214._3_1_ == '\0') { @@ -541679,7 +541679,7 @@ undefined1 FUN_007c7b10(uint param_1,int param_2) local_10 = ExceptionList; uVar2 = DAT_00bf93b4 ^ (int)register0x00000010 - 4U; ExceptionList = &local_10; - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); local_8 = 0; uVar8 = 0; if (local_18 != 0) { @@ -541964,11 +541964,11 @@ void FUN_007c7d70(char param_1) } -//@@ 007c8050 FUN_007c8050 +//@@ 007c8050 Entity_Player::AddImmaculateConceptionCounter /* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */ -void FUN_007c8050(int param_1) +void Entity_Player::AddImmaculateConceptionCounter(int param_1) { uint uVar1; @@ -542184,7 +542184,7 @@ void FUN_007c8240(void) local_34 = local_18 * (fVar14 / local_24); local_38 = local_14 * (fVar14 / local_24); } - FUN_0067a080(); + Entity_Projectile::Deflect(); } else { fVar14 = 7.0; @@ -542218,7 +542218,7 @@ void FUN_007c8240(void) fVar12 = (float10)Vector::Length(); fVar13 = (float)fVar12; local_28 = fVar13; - FUN_00a105d0(&local_28); + Vector::__div_assign(&local_28); fVar13 = (fVar13 - (*(float *)(in_ECX + 0x370) + pEVar4->_size)) + *(float *)&pEVar4->field_0x37c; assert_lerp_range(0x3f800000); @@ -543014,7 +543014,7 @@ void FUN_007c97f0(uint param_1) *(undefined4 *)(in_ECX + 0x1348) = 0; *(undefined4 *)(in_ECX + 0x13c0) = 10; Entity_Player::EvaluateItems(); - FUN_007bebb0(); + Entity_Player::update_player_skin(); Entity_Player::UpdateCanShoot(); if (*(int *)(DAT_00c71678 + 0x26774) < 4) { ExceptionList = local_10; @@ -544182,19 +544182,19 @@ void FUN_007cb090(void) Entity_Player::AddHearts(); return; case 0x1d: - pEVar1 = (Entity_Player *)FUN_007ce270(); + pEVar1 = (Entity_Player *)Entity_Player::GetMainPlayer(); Entity_Player::AddEternalHearts(pEVar1,1); return; case 0x1e: Entity_Player::AddSoulHearts(2,0); return; case 0x2a: - FUN_007ce270(); + Entity_Player::GetMainPlayer(); Entity_Player::SetFullHearts(); return; case 0x3a: local_8 = in_ECX; - iVar2 = FUN_007ce270(); + iVar2 = Entity_Player::GetMainPlayer(); uVar3 = Random(); piVar4 = (int *)Game::Spawn(1000,0x72,iVar2 + 0x33c,&DAT_00c7b640,0,0,uVar3); if (piVar4[0xf0] != 0) { @@ -544714,14 +544714,14 @@ float10 Entity_Player::GetGreedDonationBreakChance(void) { float in_XMM0_Da; - FUN_007cbb90(0); + Entity_Player::GetGreedDonationJamChance(0); return (float10)in_XMM0_Da; } -//@@ 007cbb90 FUN_007cbb90 +//@@ 007cbb90 Entity_Player::GetGreedDonationJamChance -void FUN_007cbb90(int param_1) +void Entity_Player::GetGreedDonationJamChance(int param_1) { int iVar1; @@ -544784,11 +544784,11 @@ void FUN_007cbcb0(void) } -//@@ 007cbcd0 FUN_007cbcd0 +//@@ 007cbcd0 Entity_Player::init_forgotten_twin /* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */ -void FUN_007cbcd0(void) +void Entity_Player::init_forgotten_twin(void) { int iVar1; @@ -544823,7 +544823,7 @@ void FUN_007cbcd0(void) } else { local_8 = piVar4; - piVar4 = (int *)FUN_00753da0(); + piVar4 = (int *)Entity_Player::constructor(); } local_8 = (int *)0xffffffff; *(int **)(in_ECX + 0x1d98) = piVar4; @@ -544997,11 +544997,11 @@ int * FUN_007cbef0(void) } -//@@ 007cc200 FUN_007cc200 +//@@ 007cc200 Entity_Player::init_player_type_state /* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */ -undefined4 FUN_007cc200(char param_1,char param_2) +undefined4 Entity_Player::init_player_type_state(char param_1,char param_2) { undefined1 uVar1; @@ -545534,7 +545534,7 @@ LAB_007ccfa0: } pfVar15 = *(float **)&in_ECX->field_0x1510; if (pfVar15 == *(float **)&in_ECX->field_0x1514) { - FUN_004b39b0(pfVar15,&local_6c); + std::vector::_Emplace_reallocate(pfVar15,&local_6c); local_5c = local_6c; } else { @@ -545611,7 +545611,7 @@ LAB_007cd080: } pfVar15 = *(float **)&in_ECX->field_0x1510; if (pfVar15 == *(float **)&in_ECX->field_0x1514) { - FUN_004b39b0(pfVar15,&local_6c); + std::vector::_Emplace_reallocate(pfVar15,&local_6c); local_54 = local_6c; } else { @@ -545697,7 +545697,7 @@ LAB_007cd27a: } pfVar15 = *(float **)&in_ECX->field_0x1510; if (pfVar15 == *(float **)&in_ECX->field_0x1514) { - FUN_004b39b0(pfVar15,&local_6c); + std::vector::_Emplace_reallocate(pfVar15,&local_6c); local_54 = local_6c; } else { @@ -545884,7 +545884,7 @@ LAB_007cd657: } pfVar15 = (float *)puVar23[2]; if (pfVar15 == (float *)puVar23[3]) { - FUN_004b39b0(pfVar15,&local_6c); + std::vector::_Emplace_reallocate(pfVar15,&local_6c); local_54 = local_6c; } else { @@ -545992,7 +545992,7 @@ LAB_007cd90a: *(undefined4 *)&pEVar17->field_0x1884 = 10; Entity_Player::EvaluateItems(); FUN_007ad4e0(); - FUN_007bebb0(); + Entity_Player::update_player_skin(); Entity_Knife::Init(); ExceptionList = local_1c; return 1; @@ -546140,7 +546140,7 @@ LAB_007cdbce: iVar8 = DAT_00c71678; *(undefined4 *)(in_ECX + 0x360) = DAT_00c7b640; *(undefined4 *)(in_ECX + 0x364) = DAT_00c7b644; - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)(iVar8 + 0x18300) + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)(iVar8 + 0x18300) + 0x1218)); local_8 = 1; fVar18 = 0.5; _param_3 = 0; @@ -546150,7 +546150,7 @@ LAB_007cdbce: do { iVar2 = *(int *)(iVar8 + _param_3 * 4); if (*(int *)(iVar2 + 0x410) == in_ECX) { - cVar5 = FUN_00612890(); + cVar5 = Entity_Familiar::is_detached_from_follow(); if (((cVar5 == '\0') && (*(int *)(iVar2 + 0xd70) < 0)) && (*(int *)(iVar2 + 0x2c) != 0x3e)) { if (*(int *)(iVar2 + 0x2c) == 900) { @@ -546187,7 +546187,7 @@ LAB_007cdbce: } } else { - puVar11 = (undefined4 *)FUN_0063b4a0(local_4c,0); + puVar11 = (undefined4 *)Entity_Familiar::GetFollowTargetPosition(local_4c,0); *(undefined4 *)(iVar2 + 0x33c) = *puVar11; *(undefined4 *)(iVar2 + 0x340) = puVar11[1]; LAB_007cdd90: @@ -546435,9 +546435,9 @@ LAB_007ce227: } -//@@ 007ce270 FUN_007ce270 +//@@ 007ce270 Entity_Player::GetMainPlayer -int FUN_007ce270(void) +int Entity_Player::GetMainPlayer(void) { int iVar1; @@ -546758,7 +546758,7 @@ void Entity_Player::ChangePlayerType(int param_1,char param_2) if (param_1 == 0x10) { if (in_ECX->_playerType == 0x11) { LAB_007cea0f: - FUN_007cc200(1,1); + Entity_Player::init_player_type_state(1,1); ExceptionList = local_10; return; } @@ -546844,7 +546844,7 @@ LAB_007cea0f: in_ECX = local_3c; } local_34 = pppppppbVar10; - FUN_007cbcd0(); + Entity_Player::init_forgotten_twin(); if (in_ECX->_subPlayer != 0) { iVar18 = GetHealthType(); if (iVar18 == 1) { @@ -546929,8 +546929,8 @@ LAB_007ceccc: if (in_ECX->_playerType == 0x13) { LAB_007cecd9: if (param_2 == '\0') { - local_3c = (Entity_Player *)FUN_007d2000(0x14); - FUN_007bc740(); + local_3c = (Entity_Player *)Entity_Player::InitTwin(0x14); + Entity_Player::InitPostLevelInitStats(); uVar8 = *(uint *)(*(int *)&in_ECX->field_0x1770 + 0x1e20); uVar17 = (in_ECX->_maxHearts + 1) / 2; uVar16 = uVar17 & 0x80000001; @@ -547066,7 +547066,7 @@ LAB_007cecd9: AddCostume(local_3c,local_34,0); } History::AddHistoryItem(iVar18); - piVar15 = (int *)FUN_00722140(&local_50,iVar18); + piVar15 = (int *)std::vector::erase(&local_50,iVar18); iVar18 = *piVar15; FUN_007220a0((iVar18 - *(int *)&in_ECX->field_0x1dec) / 0x1c); local_2d = '\x01'; @@ -547108,8 +547108,8 @@ LAB_007cecd9: *psVar2 = *psVar2 + 1; } History::AddHistoryItem(iVar18); - FUN_00772260(*(undefined4 *)(iVar18 + 8)); - piVar15 = (int *)FUN_00722140(&local_54,iVar18); + Entity_Player::TryRemoveSmeltedTrinket(*(undefined4 *)(iVar18 + 8)); + piVar15 = (int *)std::vector::erase(&local_54,iVar18); iVar18 = *piVar15; FUN_007220a0((iVar18 - *(int *)&in_ECX->field_0x1dec) / 0x1c); local_2d = '\x01'; @@ -547167,7 +547167,7 @@ LAB_007cecd9: iVar18 = iVar12; } in_ECX->_rottenHearts = iVar18; - FUN_007592a0(); + Entity_Player::UpdateBlackHeartMask(); } if ((in_ECX->_playerType == 0x12) && (0 < in_ECX->_soulHearts)) { AddSoulCharge(in_ECX->_soulHearts); @@ -547207,7 +547207,7 @@ LAB_007cecd9: local_2d = in_ECX->field_0x8c; local_44 = *(int *)&in_ECX->field_0x88; ANM2::Load((ANM2 *)&in_ECX->field_0x48,*(int *)&in_ECX->field_0x330 + 0x74,0); - FUN_007bebb0(); + Entity_Player::update_player_skin(); (**(code **)(*(int *)in_ECX + 0x60))(); RemoveCollectible(in_ECX,local_48,extraout_ECX_00); if (local_1c == 0) goto LAB_007cf515; @@ -547267,8 +547267,8 @@ LAB_007cf48b: LAB_007cf515: if (param_2 == '\0') { if (in_ECX->_playerType == 0x23) { - FUN_007d2000(0x28); - FUN_007bc740(); + Entity_Player::InitTwin(0x28); + Entity_Player::InitPostLevelInitStats(); } else if ((in_ECX->_playerType == 0x1d) && (in_ECX->_redStewBonusDuration == 0)) { local_34 = (byte *******)operator_new(0x2f00); @@ -547277,7 +547277,7 @@ LAB_007cf515: piVar15 = (int *)0x0; } else { - piVar15 = (int *)FUN_00753da0(); + piVar15 = (int *)Entity_Player::constructor(); } local_8 = (byte ******)((uint)local_8._1_3_ << 8); in_ECX->_redStewBonusDuration = (int)piVar15; @@ -547384,7 +547384,7 @@ LAB_007cf690: if (0 < *(int *)(*(int *)&this->field_0x16c8 + iVar1 * 4)) { RemoveCollectible(iVar1,1,0,1); } - piVar3 = (int *)FUN_00722140(local_30,iVar5); + piVar3 = (int *)std::vector::erase(local_30,iVar5); iVar5 = *piVar3; } else { @@ -547439,9 +547439,9 @@ LAB_007cf6f6: } -//@@ 007cf8c0 FUN_007cf8c0 +//@@ 007cf8c0 Entity_Player::IsLocalPlayer -undefined4 FUN_007cf8c0(void) +undefined4 Entity_Player::IsLocalPlayer(void) { undefined4 uVar1; @@ -547455,9 +547455,9 @@ undefined4 FUN_007cf8c0(void) } -//@@ 007cf8f0 FUN_007cf8f0 +//@@ 007cf8f0 Entity_Player::IsLocalPlayer -void FUN_007cf8f0(void) +void Entity_Player::IsLocalPlayer(void) { char cVar1; @@ -547521,7 +547521,7 @@ float10 FUN_007cf9a0(undefined4 param_1,undefined4 param_2,undefined4 param_3) local_18 = 0; local_14 = 0; local_8 = 0; - FUN_00a1af90(&DAT_00c82240,param_2,&local_2c); + Font::DrawString(&DAT_00c82240,param_2,&local_2c); iVar1 = FUN_00a1b8e0(&DAT_00c82240,0xffffffff); ExceptionList = local_10; return (float10)(float)((double)iVar1 + (double)(&DAT_00bacb00)[-(iVar1 >> 0x1f)]); @@ -547703,8 +547703,8 @@ void FUN_007cfba0(float *param_1) (*(float *)(iVar4 + 0x26198) - *(float *)(iVar4 + 0x26190) == 47.0)))) { local_80 = 120.0; local_7c = (char *)0x40e00000; - uVar1 = FUN_00a10e70(&local_6c,&local_80,&local_cc); - FUN_00a1dfd0(uVar1); + uVar1 = render_quad_set_rect(&local_6c,&local_80,&local_cc); + render_color_shader_pass(uVar1); KColor::SetFromARGB(0xffffffff); FUN_007cf9a0(&local_6c,extraout_ECX_01,"Player items"); local_68 = (Entity_Player *)((float)local_64 + 3.0); @@ -547725,7 +547725,7 @@ void FUN_007cfba0(float *param_1) local_7c = (char *)local_64; local_74 = 0x42f00000; local_70 = 0x40e00000; - local_a4 = FUN_00a10e70(&local_6c,&local_74,&local_cc); + local_a4 = render_quad_set_rect(&local_6c,&local_74,&local_cc); if ((*(float *)(local_a4 + 0x40) + *(float *)(local_a4 + 0x2c) + *(float *)(local_a4 + 0x54) + *(float *)(local_a4 + 0x68)) * 0.25 != 0.0) { FUN_00a140c0("KAGE_ColorShader"); @@ -547774,7 +547774,7 @@ LAB_007d021d: local_6c = *local_a0 + 128.0; local_68 = (Entity_Player *)(local_a0[1] + 0.0); local_64 = local_68; - iVar4 = FUN_00a10e70(&local_6c,&local_74,&local_cc); + iVar4 = render_quad_set_rect(&local_6c,&local_74,&local_cc); if ((*(float *)(iVar4 + 0x40) + *(float *)(iVar4 + 0x2c) + *(float *)(iVar4 + 0x54) + *(float *)(iVar4 + 0x68)) * 0.25 != fVar13) { FUN_00a140c0("KAGE_ColorShader"); @@ -547825,7 +547825,7 @@ LAB_007d021d: iVar4 = 0; } fStack_8c = ((float)iVar4 + 0.0) / 255.0; - local_ac = (Entity_Player *)FUN_00a10e70(&local_6c,&local_74,&local_cc); + local_ac = (Entity_Player *)render_quad_set_rect(&local_6c,&local_74,&local_cc); if ((*(float *)&local_ac->field_0x40 + (float)local_ac->_variant + *(float *)&local_ac->field_0x54 + *(float *)&local_ac->field_0x68) * 0.25 != 0.0) { FUN_00a140c0("KAGE_ColorShader"); @@ -547871,7 +547871,7 @@ LAB_007d021d: do { local_68 = local_64; local_7c = (char *)FUN_007cfa90(); - iVar6 = FUN_00a10e70(&local_6c,&local_74,&local_cc); + iVar6 = render_quad_set_rect(&local_6c,&local_74,&local_cc); if ((*(float *)(iVar6 + 0x40) + *(float *)(iVar6 + 0x2c) + *(float *)(iVar6 + 0x54) + *(float *)(iVar6 + 0x68)) * 0.25 != 0.0) { FUN_00a140c0("KAGE_ColorShader"); @@ -547920,7 +547920,7 @@ LAB_007d021d: local_6c = *local_a0 + 256.0; local_68 = (Entity_Player *)(local_a0[1] + 0.0); local_64 = local_68; - iVar4 = FUN_00a10e70(&local_6c,&local_74,&local_cc); + iVar4 = render_quad_set_rect(&local_6c,&local_74,&local_cc); if ((*(float *)(iVar4 + 0x40) + *(float *)(iVar4 + 0x2c) + *(float *)(iVar4 + 0x54) + *(float *)(iVar4 + 0x68)) * 0.25 != fVar13) { FUN_00a140c0("KAGE_ColorShader"); @@ -547958,7 +547958,7 @@ LAB_007d021d: local_74 = 0x42f00000; local_70 = 0x40e00000; local_64 = local_68; - iVar4 = FUN_00a10e70(&local_6c,&local_74,&local_cc); + iVar4 = render_quad_set_rect(&local_6c,&local_74,&local_cc); if ((*(float *)(iVar4 + 0x40) + *(float *)(iVar4 + 0x2c) + *(float *)(iVar4 + 0x54) + *(float *)(iVar4 + 0x68)) * 0.25 != 0.0) { FUN_00a140c0("KAGE_ColorShader"); @@ -548000,7 +548000,7 @@ LAB_007d021d: local_14 = 0; local_74 = 0x42f00000; local_70 = 0x40e00000; - iVar4 = FUN_00a10e70(&local_6c,&local_74,&local_cc); + iVar4 = render_quad_set_rect(&local_6c,&local_74,&local_cc); if ((*(float *)(iVar4 + 0x40) + *(float *)(iVar4 + 0x2c) + *(float *)(iVar4 + 0x54) + *(float *)(iVar4 + 0x68)) * 0.25 != 0.0) { FUN_00a140c0("KAGE_ColorShader"); @@ -548091,7 +548091,7 @@ LAB_007d021d: } local_74 = 0x42f00000; local_70 = 0x40e00000; - iVar4 = FUN_00a10e70(&local_6c,&local_74,&local_cc); + iVar4 = render_quad_set_rect(&local_6c,&local_74,&local_cc); if ((*(float *)(iVar4 + 0x40) + *(float *)(iVar4 + 0x2c) + *(float *)(iVar4 + 0x54) + *(float *)(iVar4 + 0x68)) * 0.25 != 0.0) { FUN_00a140c0("KAGE_ColorShader"); @@ -548141,8 +548141,8 @@ LAB_007d021d: local_74 = 0x42f00000; local_70 = 0x40e00000; local_64 = local_68; - uVar1 = FUN_00a10e70(&local_6c,&local_74,&local_cc); - FUN_00a1dfd0(uVar1); + uVar1 = render_quad_set_rect(&local_6c,&local_74,&local_cc); + render_color_shader_pass(uVar1); local_7c = (char *)in_ECX->_brokenHearts; uVar1 = Entity_Player::GetHeartLimit(1); uVar7 = Entity_Player::GetHeartLimit(0); @@ -548153,8 +548153,8 @@ LAB_007d021d: local_74 = 0x42f00000; local_70 = 0x40e00000; local_64 = local_68; - uVar1 = FUN_00a10e70(&local_6c,&local_74,&local_cc); - FUN_00a1dfd0(uVar1); + uVar1 = render_quad_set_rect(&local_6c,&local_74,&local_cc); + render_color_shader_pass(uVar1); KColor::SetFromARGB(0xffffffff); pEVar11 = local_b4; FUN_007cf9a0(&local_6c,extraout_ECX_13,"Golden hearts: %d",local_b4->_goldenHearts); @@ -548162,8 +548162,8 @@ LAB_007d021d: local_74 = 0x42f00000; local_70 = 0x40e00000; local_64 = local_68; - uVar1 = FUN_00a10e70(&local_6c,&local_74,&local_cc); - FUN_00a1dfd0(uVar1); + uVar1 = render_quad_set_rect(&local_6c,&local_74,&local_cc); + render_color_shader_pass(uVar1); KColor::SetFromARGB(0xffffffff); FUN_007cf9a0(&local_6c,extraout_ECX_14,"Strength HP given: %d", *(undefined4 *)&pEVar11->field_0x18a0); @@ -548171,8 +548171,8 @@ LAB_007d021d: local_74 = 0x42f00000; local_70 = 0x40e00000; local_64 = local_68; - uVar1 = FUN_00a10e70(&local_6c,&local_74,&local_cc); - FUN_00a1dfd0(uVar1); + uVar1 = render_quad_set_rect(&local_6c,&local_74,&local_cc); + render_color_shader_pass(uVar1); KColor::SetFromARGB(0xffffffff); FUN_007cf9a0(&local_6c,extraout_ECX_15,"HP overflow from items: %d", *(undefined4 *)&pEVar11->field_0x1950); @@ -548180,8 +548180,8 @@ LAB_007d021d: local_74 = 0x42f00000; local_70 = 0x40e00000; local_64 = local_68; - uVar1 = FUN_00a10e70(&local_6c,&local_74,&local_cc); - FUN_00a1dfd0(uVar1); + uVar1 = render_quad_set_rect(&local_6c,&local_74,&local_cc); + render_color_shader_pass(uVar1); KColor::SetFromARGB(0xffffffff); FUN_007cf9a0(&local_6c,extraout_ECX_16,"Greed\'s Gullet: %d (overflow:%d)", (int)*(short *)&pEVar11->field_0x1544,(int)*(short *)&pEVar11->field_0x1546); @@ -548189,8 +548189,8 @@ LAB_007d021d: local_74 = 0x42f00000; local_70 = 0x40e00000; local_64 = local_68; - uVar1 = FUN_00a10e70(&local_6c,&local_74,&local_cc); - FUN_00a1dfd0(uVar1); + uVar1 = render_quad_set_rect(&local_6c,&local_74,&local_cc); + render_color_shader_pass(uVar1); KColor::SetFromARGB(0xffffffff); FUN_007cf9a0(&local_6c,extraout_ECX_17,&DAT_00b1a4ec); local_68 = (Entity_Player *)((float)local_64 + 8.0); @@ -548208,8 +548208,8 @@ LAB_007d021d: if (local_a0 != (float *)0x0) { local_74 = 0x42f00000; local_70 = 0x40e00000; - uVar1 = FUN_00a10e70(&local_6c,&local_74,&local_cc); - FUN_00a1dfd0(uVar1); + uVar1 = render_quad_set_rect(&local_6c,&local_74,&local_cc); + render_color_shader_pass(uVar1); local_a4 = *(uint *)(&pEVar11->field_0x17dc + uVar10 * 4); pcVar16 = (char *)((int)local_a0 + 0x10); if (0xf < *(uint *)((int)local_a0 + 0x24)) { @@ -548219,10 +548219,10 @@ LAB_007d021d: if (*pcVar16 == '#') { local_75 = '\0'; local_7c = pcVar16 + 1; - FUN_00a26af0("Default",0,local_7c,&local_75); + StringTable::get_string("Default",0,local_7c,&local_75); if (local_75 == '\0') { local_75 = '\0'; - pcVar16 = (char *)FUN_00a26af0("Default",0,local_7c,&local_75); + pcVar16 = (char *)StringTable::get_string("Default",0,local_7c,&local_75); } } KColor::SetFromARGB(0xffffffff); @@ -548250,8 +548250,8 @@ LAB_007d021d: else { local_80 = 120.0; local_7c = (char *)0x40e00000; - uVar1 = FUN_00a10e70(&local_6c,&local_80,&local_cc); - FUN_00a1dfd0(uVar1); + uVar1 = render_quad_set_rect(&local_6c,&local_80,&local_cc); + render_color_shader_pass(uVar1); KColor::SetFromARGB(0xffffffff); FUN_007cf9a0(&local_6c,extraout_ECX,"History"); local_68 = (Entity_Player *)((float)local_64 + 3.0); @@ -548269,8 +548269,8 @@ LAB_007d021d: local_b4 = local_64; local_a8 = 0x43960000; local_a4 = 0x40e00000; - uVar1 = FUN_00a10e70(&local_6c,&local_a8,&local_cc); - FUN_00a1dfd0(uVar1); + uVar1 = render_quad_set_rect(&local_6c,&local_a8,&local_cc); + render_color_shader_pass(uVar1); uVar10 = puVar5[6]; if (((int)uVar10 < 0) || (0x1e < uVar10)) { puVar8 = &DAT_00b1a4ec; @@ -548297,8 +548297,8 @@ LAB_007d021d: local_ac = local_64; local_80 = 300.0; local_7c = (char *)0x40e00000; - uVar1 = FUN_00a10e70(&local_6c,&local_80,&local_cc); - FUN_00a1dfd0(uVar1); + uVar1 = render_quad_set_rect(&local_6c,&local_80,&local_cc); + render_color_shader_pass(uVar1); uVar10 = puVar5[6]; if (((int)uVar10 < 0) || (0x1e < uVar10)) { puVar8 = &DAT_00b1a4ec; @@ -548420,7 +548420,7 @@ LAB_007d14a0: bVar1 = false; } else { - iVar3 = NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); + iVar3 = EntityList::QuerySublist((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); bVar7 = true; if (*(int *)(iVar3 + 0xc) != 0) goto LAB_007d14a0; bVar1 = true; @@ -548895,7 +548895,7 @@ LAB_007d1f00: cVar2 = Entity_Player::HasCollectible(0x248,0); if (cVar2 != '\0') { iVar4 = 0; - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); uVar3 = 0; local_8 = 0; iVar5 = iVar4; @@ -548937,9 +548937,9 @@ LAB_007d1f00: } -//@@ 007d2000 FUN_007d2000 +//@@ 007d2000 Entity_Player::InitTwin -Entity_Player * FUN_007d2000(undefined4 param_1) +Entity_Player * Entity_Player::InitTwin(undefined4 param_1) { float fVar1; @@ -549304,7 +549304,7 @@ LAB_007d299b: void Entity_Player::AddFriendlyDip(void) { - FUN_00639000(); + Entity_Familiar::ThrowDip(); return; } @@ -549316,7 +549316,7 @@ void Entity_Player::AddFriendlyDip(void) void Entity_Player::ThrowFriendlyDip(void) { - FUN_006393a0(); + spawn_dip_at(); return; } @@ -549462,12 +549462,12 @@ LAB_007d2bd3: iVar6 = 0; } else { - iVar6 = FUN_007911f0(*(undefined4 *)((uVar7 + 0xac) * 0x20 + in_ECX), + iVar6 = Entity_Player::GetCollectibleMaxCharge(*(undefined4 *)((uVar7 + 0xac) * 0x20 + in_ECX), *(undefined4 *)(uVar7 * 0x20 + 0x159c + in_ECX),uVar5); } iVar2 = Entity_Player::GetActiveMaxCharge(uVar7); if (((local_8 != 0) && (iVar2 != 1)) && (0 < iVar6)) { - iVar2 = FUN_007910f0(uVar7); + iVar2 = Entity_Player::GetTotalActiveCharge(uVar7); if (*(int *)(in_ECX + 0x13c0) == 0x12) { iVar3 = *(int *)(in_ECX + 0x1da8); } @@ -549599,12 +549599,12 @@ LAB_007d2e53: iVar6 = 0; } else { - iVar6 = FUN_007911f0(*(undefined4 *)((uVar7 + 0xac) * 0x20 + in_ECX), + iVar6 = Entity_Player::GetCollectibleMaxCharge(*(undefined4 *)((uVar7 + 0xac) * 0x20 + in_ECX), *(undefined4 *)(uVar7 * 0x20 + 0x159c + in_ECX),uVar5); } iVar2 = Entity_Player::GetActiveMaxCharge(uVar7); if (((local_8 != 0) && (iVar2 != 1)) && (0 < iVar6)) { - iVar2 = FUN_007910f0(uVar7); + iVar2 = Entity_Player::GetTotalActiveCharge(uVar7); if (*(int *)(in_ECX + 0x13c0) == 0x24) { iVar3 = *(int *)(in_ECX + 0x1dac); } @@ -549700,7 +549700,7 @@ void __thiscall Entity_Player::AddRottenHearts(Entity_Player *this,int param_2,c ClampGoldenHearts(0); update_bone_hearts(this); if (iVar2 < this->_rottenHearts) { - FUN_009a90b0(this); + _player_hud_set_heart_anim_state(this); return; } } @@ -549800,7 +549800,7 @@ LAB_007d327a: uVar3 = 0; } else { - uVar3 = FUN_007911f0(iVar5,*(undefined4 *)&this->field_0x159c,puVar4); + uVar3 = Entity_Player::GetCollectibleMaxCharge(iVar5,*(undefined4 *)&this->field_0x159c,puVar4); } *(undefined4 *)&this->field_0x1588 = uVar3; *(undefined4 *)&this->field_0x158c = 0; @@ -550185,7 +550185,7 @@ undefined4 FUN_007d35b0(void) *(undefined4 *)(iVar5 + 0x676c8) = uVar7; *(undefined4 *)(iVar5 + 0x676cc) = *(undefined4 *)(iVar5 + 0x676e4); *(undefined1 *)(iVar5 + 0x676b4) = 0; - FUN_007afc20(); + Entity_Player::try_trigger_astral_projection(); if (*(char *)((int)in_ECX + 0x173) == '\0') { iVar5 = in_ECX[0x4ef]; if (iVar5 < 0x78) { @@ -550567,7 +550567,7 @@ void FUN_007d4390(void) SoundEffects::Play(local_7ac,0x3f800000,2,0,0x3f800000,0); cVar3 = Entity_Player::HasCollectible(0x248,0); if (cVar3 != '\0') { - NpcAI::ENTITY_MASK((Entity_NPC *)((int)DAT_00c71678->_room + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)((int)DAT_00c71678->_room + 0x1218)); piVar15 = (int *)0x0; local_8 = 0; if (local_18 != (int *)0x0) { @@ -550816,7 +550816,7 @@ LAB_007d46cc: } iVar11 = Room::GetGridCollision(pRVar2,iVar14); if ((iVar11 == 0) || (((char)in_ECX[0x55c] != '\0' && (iVar11 < 4)))) { - FUN_007e31a0(in_ECX); + PathFinder::Init(in_ECX); local_8 = 2; cVar3 = NPCAI_Pathfinder::HasPathToPos(&local_7a8,in_ECX + 1999,0); if (cVar3 != '\0') { @@ -550928,7 +550928,7 @@ uint Entity_Player::bag_of_crafting_collect(int param_1) } else if ((uVar4 == 0x15e) || (((uVar4 == 0x45 || (uVar4 == 0x29)) || (uVar4 != 0x2a)))) goto switchD_007d5299_caseD_4; - if ((*(int *)(param_1 + 0x534) != 0) && (uVar4 = FUN_006e83a0(in_ECX), (char)uVar4 == '\0')) + if ((*(int *)(param_1 + 0x534) != 0) && (uVar4 = Entity_Pickup::can_player_buy(in_ECX), (char)uVar4 == '\0')) goto switchD_007d5299_caseD_4; iVar5 = *(int *)(param_1 + 0x2c); uVar11 = *(uint *)(param_1 + 0x30); @@ -551152,7 +551152,7 @@ LAB_007d54e0: (**(code **)(*local_50 + 0x3c))(&local_48,0xffffffff,0xff,0,1); } (**(code **)(*local_50 + 0xc))(); - FUN_006ee750(); + Entity_Pickup::RemoveOtherOptions(); local_50 = (int *)(iVar12 + 0x48); *(undefined4 *)(iVar12 + 0x360) = DAT_00c7b640; *(undefined4 *)(iVar12 + 0x364) = DAT_00c7b644; @@ -551204,7 +551204,7 @@ LAB_007d5675: SoundEffects::Play(local_50,0x3f800000,2,0,0x3f800000,0); iVar5 = local_4c; if (*(int *)(local_4c + 0x534) != 0) { - FUN_006e84d0(in_ECX,0); + Entity_Pickup::CollectTrinket(in_ECX,0); iVar5 = extraout_ECX; } if (uVar11 < 8) { @@ -551268,11 +551268,11 @@ LAB_007d57e0: return CONCAT31((int3)((uint)piVar9 >> 8),1); } -//@@ 007d58f0 FUN_007d58f0 +//@@ 007d58f0 Entity_Player::tainted_cain_pedestal_burst /* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */ -void FUN_007d58f0(undefined4 param_1,undefined4 param_2,uint param_3,int param_4) +void Entity_Player::tainted_cain_pedestal_burst(undefined4 param_1,undefined4 param_2,uint param_3,int param_4) { uint uVar1; @@ -552703,9 +552703,9 @@ void Entity_Player::UsePoopSpell(uint param_1) } -//@@ 007d7740 FUN_007d7740 +//@@ 007d7740 Entity_Player::UpdateFamiliarCounts -void FUN_007d7740(undefined4 *param_1) +void Entity_Player::UpdateFamiliarCounts(undefined4 *param_1) { undefined4 *puVar1; @@ -553277,7 +553277,7 @@ int __thiscall Entity_Player::AddItemCard(Entity_Player *this,int param_2) } if (param_2 == 0) { uVar4 = RNG::Next(); - param_2 = FUN_007376c0(uVar4); + param_2 = ItemPool::GetCardImpl(uVar4); } iVar5 = param_2; piVar2 = *(int **)&this->field_0x1fa8; @@ -553620,9 +553620,9 @@ void Entity_Player::AddCurseMistEffect(void) iStack_20 = 0; uStack_1c = 0; uStack_18 = 0; - FUN_00759950(&local_34); + Entity_Player::restore_curse_mist_backup(&local_34); *(undefined4 *)(in_ECX + 0x2054) = *(undefined4 *)(in_ECX + 0x2050); - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); local_8 = 0; local_14 = 0; if (uStack_18 != 0) { @@ -553815,7 +553815,7 @@ void Entity_Player::RemoveCurseMistEffect(void) iVar3 = iVar13; } *(int *)(in_ECX + 0x2048) = iVar3; - FUN_00759950(piVar9); + Entity_Player::restore_curse_mist_backup(piVar9); cVar12 = *(char *)(in_ECX + 0x170); } *(undefined4 *)(in_ECX + 0x17a0) = *(undefined4 *)(in_ECX + 0x2060); @@ -553847,17 +553847,17 @@ void Entity_Player::RemoveCurseMistEffect(void) _Find_lower_bound<>(local_28,puVar14); if (((*(char *)(local_20 + 0xd) != '\0') || (*puVar14 < *(uint *)(local_20 + 0x10))) || (local_20 == local_1c[0])) { - puVar4 = (undefined4 *)FUN_00651990(puVar14); + puVar4 = (undefined4 *)map_find_value(puVar14); *puVar4 = 0; } - puVar5 = (uint *)FUN_00651990(puVar14); + puVar5 = (uint *)map_find_value(puVar14); uVar7 = *puVar5; local_1c[2] = uVar7; if (*puVar14 == 0xe7) { uVar6 = Random(); Game::Spawn(3,0xe7,in_ECX + 0x33c,&DAT_00c7b640,in_ECX,puVar14[1],uVar6); } - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); local_8._0_1_ = 1; if (local_2c != 0) { uVar7 = -(uint)(uVar7 != 0) & uVar7; @@ -553895,7 +553895,7 @@ void Entity_Player::RemoveCurseMistEffect(void) } local_8 = local_8 & 0xffffff00; } - piVar9 = (int *)FUN_00651990(puVar14); + piVar9 = (int *)map_find_value(puVar14); *piVar9 = uVar7 + 1; puVar5 = puVar14 + 0xc; puVar14 = puVar14 + 0xd; @@ -553991,7 +553991,7 @@ void FUN_007d9200(int param_1) local_1c = 0x28a; seed_fart_sound_override(); SoundEffects::Play(local_1c,0x3f800000,2,0,0x3f800000,0); - FUN_007eb870(); + Level::UpdateBackwardsPathStages(); } *(uint *)(in_ECX + 0x1574) = *(uint *)(in_ECX + 0x1574) | 0x1000; *(undefined1 *)(in_ECX + 0x1518) = 1; @@ -554060,7 +554060,7 @@ void __thiscall Entity_Player::RevivePlayerGhost(Entity_Player *this) iVar2 = 0x74; } ANM2::Load((ANM2 *)&this->field_0x48,iVar2,0); - FUN_007bebb0(); + Entity_Player::update_player_skin(); if (*(char *)(DAT_00c71678 + 0x269eb) == '\0') { PlayExtraAnimation("Appear"); } @@ -554119,8 +554119,8 @@ void __thiscall Entity_Player::RevivePlayerGhost(Entity_Player *this) uVar4 = Random(); Game::SpawnEx(1000,0xf,&this->_pos,&DAT_00c7b640,0,0,uVar4,0); if (this->_playerType == 0x23) { - iVar3 = FUN_007d2000(0x28); - FUN_007bc740(); + iVar3 = Entity_Player::InitTwin(0x28); + Entity_Player::InitPostLevelInitStats(); *(undefined1 *)(iVar3 + 0x139a) = 0; ANM2::Reset((ANM2 *)(iVar3 + 0x41c)); *(undefined4 *)(iVar3 + 0x14c) = 0x3f800000; @@ -554175,7 +554175,7 @@ void __thiscall Entity_Player::MorphToCoopGhost(Entity_Player *this) if (this->_playerType == 0x23) { piVar1 = &this->_otherTwin; if ((this->_otherTwin != 0) && - (FUN_009ba000(this->_otherTwin,DAT_00c71678 + 0x1baa8), *piVar1 != 0)) { + (PlayerManager::RemoveCoPlayer(this->_otherTwin,DAT_00c71678 + 0x1baa8), *piVar1 != 0)) { local_14 = piVar1; std::multiset::erase(&local_14); *piVar1 = 0; @@ -554183,7 +554183,7 @@ void __thiscall Entity_Player::MorphToCoopGhost(Entity_Player *this) } Revive(this,uVar5); if ((this->_playerType == 0x11) && (*(int *)&this->field_0x1d9c != 0)) { - FUN_007cc200(1,0); + Entity_Player::init_player_type_state(1,0); } TemporaryEffects::RemoveNullEffect(0x70,1); if (1 < *(int *)(DAT_00c71678 + 0x26614)) { @@ -554236,7 +554236,7 @@ void __thiscall Entity_Player::MorphToCoopGhost(Entity_Player *this) } *(undefined4 *)&this->field_0x20cc = uVar7; *(undefined4 *)&this->field_0x20d0 = uVar6; - FUN_007d9b70(); + Entity_Player::reset_body_sprite(); this->field_0x139a = 0; ANM2::Reset(&this->_bodySprite); *(undefined4 *)&this->field_0x14c = 0x3f800000; @@ -554258,7 +554258,7 @@ void __thiscall Entity_Player::MorphToCoopGhost(Entity_Player *this) this->_isInvicible = 1; this->_visible = 1; EvaluateItems(); - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); local_8 = 0; uVar5 = 0; if (local_18 != 0) { @@ -554270,7 +554270,7 @@ void __thiscall Entity_Player::MorphToCoopGhost(Entity_Player *this) uVar5 = uVar5 + 1; } while (uVar5 < local_18); } - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); local_8 = CONCAT31(local_8._1_3_,1); uVar5 = 0; if (local_28 != 0) { @@ -554320,9 +554320,9 @@ void __thiscall Entity_Player::MorphToCoopGhost(Entity_Player *this) } -//@@ 007d9b70 FUN_007d9b70 +//@@ 007d9b70 Entity_Player::reset_body_sprite -void FUN_007d9b70(void) +void Entity_Player::reset_body_sprite(void) { int in_ECX; @@ -555075,7 +555075,7 @@ LAB_007daaa6: piVar8[0xd6] = 0x41200000; (**(code **)(*piVar8 + 0xc))(); if (param_3 != 0) { - FUN_007afc20(); + Entity_Player::try_trigger_astral_projection(); } return piVar7; } @@ -555226,7 +555226,7 @@ void __thiscall Entity_Player::ResetPlayer(Entity_Player *this) int local_14 [4]; if ((this->_variant == 0) && (this->_isCoopGhost == 0)) { - FUN_007bc740(); + Entity_Player::InitPostLevelInitStats(); uVar4 = 0; if (*(int *)&this->field_0x20e0 - *(int *)&this->field_0x20dc >> 2 != 0) { do { @@ -555235,7 +555235,7 @@ void __thiscall Entity_Player::ResetPlayer(Entity_Player *this) } while (uVar4 < (uint)(*(int *)&this->field_0x20e0 - *(int *)&this->field_0x20dc >> 2)); } EvaluateItems(); - FUN_007d7740(0); + Entity_Player::UpdateFamiliarCounts(0); } puVar3 = &this->field_0x20dc; if (local_14 != (int *)puVar3) { @@ -555485,9 +555485,9 @@ undefined4 FUN_007db2d0(void) } -//@@ 007db330 FUN_007db330 +//@@ 007db330 Game::damage_cooldown_scale -uint FUN_007db330(uint param_1) +uint Game::damage_cooldown_scale(uint param_1) { uint uVar1; @@ -555565,7 +555565,7 @@ void FUN_007db3b0(void) } local_20 = (undefined1 *)in_ECX[0x586]; ExceptionList = &local_10; - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); local_8 = 0; uVar7 = 0; if (local_30 != 0) { @@ -555803,9 +555803,9 @@ void __thiscall Entity_Player::TriggerEchoChamber(Entity_Player *this,int param_ } -//@@ 007db860 FUN_007db860 +//@@ 007db860 is_achievement_79_unlocked -undefined1 FUN_007db860(void) +undefined1 is_achievement_79_unlocked(void) { int iVar1; @@ -555826,18 +555826,18 @@ undefined1 FUN_007db860(void) } -//@@ 007db8d0 FUN_007db8d0 +//@@ 007db8d0 Entity_Player::get_seeded_variant /* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */ -int FUN_007db8d0(void) +int Entity_Player::get_seeded_variant(void) { int iVar1; uint uVar2; uint uVar3; - iVar1 = FUN_007db860(); + iVar1 = is_achievement_79_unlocked(); switch(iVar1) { case 0: case 1: @@ -555941,11 +555941,11 @@ switchD_007dbabc_caseD_16: } -//@@ 007dbba0 FUN_007dbba0 +//@@ 007dbba0 Entity_Player::add_random_drug_item_effect /* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */ -void FUN_007dbba0(void) +void Entity_Player::add_random_drug_item_effect(void) { int iVar1; @@ -555985,11 +555985,11 @@ void FUN_007dbba0(void) } -//@@ 007dbc80 FUN_007dbc80 +//@@ 007dbc80 Entity_Player::AddRandomMomItemEffect /* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */ -void FUN_007dbc80(void) +void Entity_Player::AddRandomMomItemEffect(void) { int iVar1; @@ -556036,9 +556036,9 @@ void FUN_007dbc80(void) } -//@@ 007dbd70 FUN_007dbd70 +//@@ 007dbd70 Entity_Player::ModelingClay_roll -void FUN_007dbd70(uint *param_1) +void Entity_Player::ModelingClay_roll(uint *param_1) { undefined4 *puVar1; @@ -556351,11 +556351,11 @@ LAB_007dc222: } -//@@ 007dc2d0 FUN_007dc2d0 +//@@ 007dc2d0 _Entity_Player::SpawnTrinketRandomPickup /* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */ -uint FUN_007dc2d0(void) +uint _Entity_Player::SpawnTrinketRandomPickup(void) { undefined4 uVar1; @@ -556595,7 +556595,7 @@ void FUN_007dc740(undefined8 *param_1) void FUN_007dc7b0(void) { - FUN_004b0f50(); + std::deque::push_back(); return; } @@ -557207,7 +557207,7 @@ void FUN_007dd090(int param_1) uVar9 = uVar9 + 1; } do { - FUN_004b0f50(*(int *)(*(int *)(param_1 + 4) + (uVar10 >> 1 & *(int *)(param_1 + 8) - 1U) * 4) + + std::deque::push_back(*(int *)(*(int *)(param_1 + 4) + (uVar10 >> 1 & *(int *)(param_1 + 8) - 1U) * 4) + (uVar10 & 1) * 8); uVar10 = uVar10 + 1; } while (uVar10 != uVar4); @@ -557496,7 +557496,7 @@ undefined4 * FUN_007dd4b0(undefined4 *param_1) else { if (uVar7 == 0x7fffffff) { /* WARNING: Subroutine does not return */ - FUN_0040ccc0(uVar4); + std::string::_Xlen(uVar4); } uVar9 = uVar7 + 1 | 0xf; if (uVar9 < 0x80000000) { @@ -558660,7 +558660,7 @@ void FUN_007de660(undefined1 *param_1,undefined1 *param_2) *in_ECX = _Dst; } /* WARNING: Subroutine does not return */ - FUN_0040ccc0(uVar4); + std::string::_Xlen(uVar4); } @@ -559609,9 +559609,9 @@ void FUN_007df600(void) } -//@@ 007df690 FUN_007df690 +//@@ 007df690 Music::SetPitchAll -void FUN_007df690(void) +void Music::SetPitchAll(void) { char cVar1; @@ -560272,7 +560272,7 @@ LAB_007e0145: if (0xf < local_28) { ppppppuVar13 = local_3c[0]; } - FUN_00421680(fStack_10224,uVar8,ppppppuVar13,local_2c,pcVar30,uVar8); + std::string::concat(fStack_10224,uVar8,ppppppuVar13,local_2c,pcVar30,uVar8); uStack_1021c = uStack_1021c | 1; local_14._0_1_ = 6; ppppppiVar12 = (int ******) @@ -560365,7 +560365,7 @@ LAB_007e038a: if (0xf < local_28) { ppppppuVar13 = local_3c[0]; } - FUN_00421680(fStack_10224,uVar8,ppppppuVar13,local_2c,pcVar30,uVar8); + std::string::concat(fStack_10224,uVar8,ppppppuVar13,local_2c,pcVar30,uVar8); uStack_1021c = uStack_1021c | 2; local_14._0_1_ = 7; ppppppiVar12 = (int ******) @@ -560446,7 +560446,7 @@ LAB_007e0508: if (0xf < local_28) { ppppppuVar13 = local_3c[0]; } - FUN_00421680(fStack_10224,uVar8,ppppppuVar13,local_2c,pcVar30,uVar8); + std::string::concat(fStack_10224,uVar8,ppppppuVar13,local_2c,pcVar30,uVar8); uStack_1021c = uStack_1021c | 4; local_14._0_1_ = 8; piVar28 = (int *)ModManager::TryRedirectPath @@ -560523,13 +560523,13 @@ LAB_007e0685: if (0x7fffffffU - local_2c < uVar8) { LAB_007e1407: /* WARNING: Subroutine does not return */ - FUN_0040ccc0(); + std::string::_Xlen(); } ppppppuVar13 = local_3c; if (0xf < local_28) { ppppppuVar13 = local_3c[0]; } - FUN_00421680(fStack_10224,uVar8,ppppppuVar13,local_2c,pcVar30,uVar8); + std::string::concat(fStack_10224,uVar8,ppppppuVar13,local_2c,pcVar30,uVar8); uStack_1021c = uStack_1021c | 8; local_14._0_1_ = 9; piVar28 = (int *)ModManager::TryRedirectPath @@ -560929,7 +560929,7 @@ LAB_007e0c9d: if (0xf < local_28) { ppppppuVar13 = local_3c[0]; } - FUN_00421680(fStack_10224,uVar8,ppppppuVar13,local_2c,pcVar30,uVar8); + std::string::concat(fStack_10224,uVar8,ppppppuVar13,local_2c,pcVar30,uVar8); uStack_1021c = uStack_1021c | 0x10; local_14 = (undefined4 *****)CONCAT31(local_14._1_3_,0xc); piVar15 = (int *)ModManager::TryRedirectPath @@ -560996,7 +560996,7 @@ LAB_007e0d95: if (0xf < local_28) { ppppppuVar13 = local_3c[0]; } - FUN_00421680(fStack_10224,uVar8,ppppppuVar13,local_2c,pcVar30,uVar8); + std::string::concat(fStack_10224,uVar8,ppppppuVar13,local_2c,pcVar30,uVar8); uStack_1021c = uStack_1021c | 0x20; local_14 = (undefined4 *****)CONCAT31(local_14._1_3_,0xd); piVar15 = (int *)ModManager::TryRedirectPath @@ -561601,10 +561601,10 @@ void FUN_007e17b0(void) else { local_30 = (double)*(int *)(iVar4 + 0x4abbc) * 0.05000000074505806; puVar5 = (uint *)in_ECX[0xc5]; - FUN_006dac30(); + log_precise(); fVar8 = 2.0; local_1c = puVar5; - FUN_006dac30(); + log_precise(); local_1c = (uint *)((float)local_1c / fVar8); dVar6 = local_30 * 0.8; libm_sse2_sin_precise(); @@ -561621,10 +561621,10 @@ void FUN_007e17b0(void) } if ((*(uint *)(*(int *)(*(int *)(iVar2 + 0x18300) + 4) + 0x44) >> 10 & 1) != 0) { local_30 = (double)*(int *)(iVar4 + 0x4abbc) * 0.009999999776482582; - FUN_006dac30(); + log_precise(); fVar7 = 2.0; local_18 = (int *)fVar8; - FUN_006dac30(); + log_precise(); local_18 = (int *)((float)local_18 / fVar7); dVar6 = local_30 * 0.8; libm_sse2_sin_precise(); @@ -561649,7 +561649,7 @@ void FUN_007e17b0(void) } local_1c = (uint *)0x2; do { - FUN_007df690(); + Music::SetPitchAll(); local_1c = (uint *)((int)local_1c + -1); } while (local_1c != (uint *)0x0); in_ECX[0xd0] = in_ECX[0xc5]; @@ -562099,7 +562099,7 @@ void __thiscall Music::ResetPitch(Music *this) { this->_pitch = 1.0; this->_targetPitch = 1.0; - FUN_007df690(); + Music::SetPitchAll(); return; } @@ -562896,9 +562896,9 @@ void FUN_007e3190(void) } -//@@ 007e31a0 FUN_007e31a0 +//@@ 007e31a0 PathFinder::Init -void FUN_007e31a0(undefined4 param_1) +void PathFinder::Init(undefined4 param_1) { int iVar1; @@ -563394,7 +563394,7 @@ LAB_007e3c41: local_8 = 1; auStack_7 = (undefined1 [3])0x0; local_5c = (int *)(*piVar18 + 0x178); - FUN_007e86b0((*(int *)(*piVar18 + 0x17c) - *local_5c >> 3) + 1); + std::vector<8byte>::reserve((*(int *)(*piVar18 + 0x17c) - *local_5c >> 3) + 1); if (local_1c == local_18) { std::vector::_Emplace_reallocate(local_1c,&local_68); local_40 = local_64; @@ -565798,9 +565798,9 @@ void FUN_007e8620(void) } -//@@ 007e86b0 FUN_007e86b0 +//@@ 007e86b0 std::vector<8byte>::reserve -void FUN_007e86b0(uint param_1) +void std::vector<8byte>::reserve(uint param_1) { int *in_ECX; @@ -568418,9 +568418,9 @@ LAB_007eb7d5: } -//@@ 007eb870 FUN_007eb870 +//@@ 007eb870 Level::UpdateBackwardsPathStages -uint FUN_007eb870(void) +uint Level::UpdateBackwardsPathStages(void) { uint *puVar1; @@ -568721,9 +568721,9 @@ uint __thiscall Room::SpawnGridEntityDesc(Room *this,int param_2,int *param_3) } -//@@ 007ebe20 FUN_007ebe20 +//@@ 007ebe20 ItemPool::get_pool_from_room_entities -undefined4 FUN_007ebe20(int *param_1) +undefined4 ItemPool::get_pool_from_room_entities(int *param_1) { float fVar1; @@ -568885,7 +568885,7 @@ void ItemPool::GetSeededCollectible(void) undefined4 in_ECX; undefined1 in_DL; - iVar1 = FUN_007ebe20(0); + iVar1 = ItemPool::get_pool_from_room_entities(0); if (iVar1 == -1) { GetCollectible((ItemPool *)(DAT_00c71678 + 0x1a740),0,in_ECX,in_DL,0,0); return; @@ -569281,7 +569281,7 @@ LAB_007ec9c4: (DAT_00c71678->_currentRoomIdx == -0xc)))))))) { cVar2 = Level::IsNextStageAvailable(); if (cVar2 == '\0') goto LAB_007ec9c4; - cVar2 = FUN_0074b830(10,1); + cVar2 = Level::IsStageWithinEnd(10,1); if (cVar2 != '\0') goto LAB_007ec98c; } } @@ -569844,7 +569844,7 @@ LAB_007ed9e7: EntitySaveState::constructor(local_78); } piVar11 = (int *)(iVar7 + 0x5c8); - FUN_006eee10(); + EntitySaveStateRef::Set(); local_64 = 0xf00000005; *(undefined4 *)*piVar11 = *(undefined4 *)(iVar7 + 0x28); *(undefined4 *)(*piVar11 + 4) = *(undefined4 *)(iVar7 + 0x2c); @@ -570065,7 +570065,7 @@ LAB_007ed926: if (*(int *)(local_24 + (int)((int)local_38 + 9) * 4) != 0) goto LAB_007ed567; local_2c = (uint)local_20._4_2_; local_6c = (undefined1 *)0x0; - local_31 = FUN_006b8410(); + local_31 = Room::has_room_config_flag(); local_3c = (uint *)0x2; puVar13 = local_24; if (iVar8 < 0x515) { @@ -570811,9 +570811,9 @@ LAB_007eed43: } -//@@ 007eeeb0 FUN_007eeeb0 +//@@ 007eeeb0 Entity_Pickup::CanFlip -undefined4 FUN_007eeeb0(Entity_Pickup *param_1,int *param_2,char param_3) +undefined4 Entity_Pickup::CanFlip(Entity_Pickup *param_1,int *param_2,char param_3) { undefined1 *puVar1; @@ -570942,10 +570942,10 @@ LAB_007ef00e: FUN_004d7190(¶m_1->field_0x5c8); local_8 = CONCAT31(local_8._1_3_,1); local_14 = 3; - uVar6 = FUN_004d3130(local_1c); + uVar6 = EntitySaveState::copy(local_1c); } local_8 = 2; - FUN_006eee10(uVar6); + EntitySaveStateRef::Set(uVar6); if ((local_14 & 1) != 0) { FUN_004d7130(); ExceptionList = local_10; @@ -570992,7 +570992,7 @@ LAB_007ef00e: param_2[0x14] = *(int *)&(param_1->_priceANM2).field_0x8; param_2[0x15] = (int)(param_1->_priceANM2)._animState._nullLayerFrames; *(undefined1 *)(param_2 + 0x18) = 0xff; - iVar5 = FUN_006a89d0(); + iVar5 = Entity::GetLastSpawner(); if ((iVar5 != 0) && (*(int *)(iVar5 + 0x28) == 1)) { *(undefined1 *)(param_2 + 0x18) = *(undefined1 *)(iVar5 + 0x161c); } @@ -571053,9 +571053,9 @@ LAB_007ef00e: } -//@@ 007ef420 FUN_007ef420 +//@@ 007ef420 Entity_Pickup::RestoreState -void FUN_007ef420(Entity_Pickup *param_1,int param_2) +void Entity_Pickup::RestoreState(Entity_Pickup *param_1,int param_2) { double dVar1; @@ -571101,7 +571101,7 @@ void FUN_007ef420(Entity_Pickup *param_1,int param_2) if (*(int *)(param_2 + 8) != 0) { param_1->_charge = *(int *)(param_2 + 0x10); } - FUN_006e2570(*(undefined4 *)(param_2 + 0x14)); + Entity_Pickup::update_price_sprite(*(undefined4 *)(param_2 + 0x14)); param_1->_isAutoUpdatePrice = *(byte *)(param_2 + 0x60); iVar9 = *(int *)(param_2 + 0x18); if (iVar9 < -1) { @@ -571150,7 +571150,7 @@ void FUN_007ef420(Entity_Pickup *param_1,int param_2) FUN_004d74a0((int *)(param_2 + 0x6c)); ANM2::Reset(¶m_1->_altPedestalANM2); } - FUN_006e17c0(); + Entity_Pickup::UpdateLootPreview(); if (((DAT_00c71678->_currentRoomIdx == -0xc) && (DAT_00c71678->_isStartingFromState != 0)) && ((param_1->_variant == 100 && (-1 < param_1->_spawnGridIndex)))) { uVar7 = *(undefined4 *)((int)¶m_1->_flags + 4); @@ -571167,7 +571167,7 @@ void FUN_007ef420(Entity_Pickup *param_1,int param_2) if (iVar9 == 10) { *(undefined4 *)&(param_1->_priceANM2).field_0x14 = *(undefined4 *)(param_2 + 0x10); } - FUN_00665500(*(undefined4 *)(param_2 + 0x30)); + Entity_Slot::SetPrizeType(*(undefined4 *)(param_2 + 0x30)); return; } if (iVar9 == 1000) { @@ -571528,16 +571528,16 @@ void FUN_007efa50(void) piStack_b4 = (int *)0x0; local_8 = 1; if (*(int *)(iVar19 + 0x3c0) != 0) { - cVar15 = FUN_007eeeb0(*(int *)(iVar19 + 0x3c0),&local_124,1); + cVar15 = Entity_Pickup::CanFlip(*(int *)(iVar19 + 0x3c0),&local_124,1); if (cVar15 != '\0') { - cVar15 = FUN_007eeeb0(iVar19,&local_ac,0); + cVar15 = Entity_Pickup::CanFlip(iVar19,&local_ac,0); if (cVar15 != '\0') { pvVar3 = in_ECX->_descriptor; if (*(int *)((int)pvVar3 + 0x78) == *(int *)((int)pvVar3 + 0x7c)) { FUN_004d7530(*(int *)((int)pvVar3 + 0x78),&local_ac); } else { - FUN_004d3130(&local_ac); + EntitySaveState::copy(&local_ac); *(int *)((int)pvVar3 + 0x78) = *(int *)((int)pvVar3 + 0x78) + 0x78; } pvVar3 = in_ECX->_descriptor; @@ -571545,7 +571545,7 @@ void FUN_007efa50(void) FUN_004d7530(*(int *)((int)pvVar3 + 0x78),&local_124); } else { - FUN_004d3130(&local_124); + EntitySaveState::copy(&local_124); *(int *)((int)pvVar3 + 0x78) = *(int *)((int)pvVar3 + 0x78) + 0x78; } } @@ -571567,14 +571567,14 @@ void FUN_007efa50(void) } } else { - cVar15 = FUN_007eeeb0(iVar19,&local_ac,0); + cVar15 = Entity_Pickup::CanFlip(iVar19,&local_ac,0); if (cVar15 != '\0') { pvVar3 = in_ECX->_descriptor; if (*(int *)((int)pvVar3 + 0x78) == *(int *)((int)pvVar3 + 0x7c)) { FUN_004d7530(*(int *)((int)pvVar3 + 0x78),&local_ac); } else { - FUN_004d3130(&local_ac); + EntitySaveState::copy(&local_ac); *(int *)((int)pvVar3 + 0x78) = *(int *)((int)pvVar3 + 0x78) + 0x78; } } @@ -571639,7 +571639,7 @@ void __thiscall Room::RestoreState(Room *this) pEVar2 = (Entity *) Game::SpawnEx(*piVar7,piVar8[0x1f],local_20,&DAT_00c7b640,0,piVar8[0x20], piVar8[0x2b],0); - FUN_007ef420(pEVar2,piVar7); + Entity_Pickup::RestoreState(pEVar2,piVar7); fVar10 = (float)piVar8[0x14] * 0.017453292; fVar11 = fVar10; cos(); @@ -571653,7 +571653,7 @@ void __thiscall Room::RestoreState(Room *this) } else { uVar3 = Game::SpawnEx(*piVar8,piVar8[1],local_20,&DAT_00c7b640,0,piVar8[2],piVar8[0xd],0); - FUN_007ef420(uVar3,piVar8); + Entity_Pickup::RestoreState(uVar3,piVar8); } local_1c = this->_descriptor; piVar8 = piVar8 + 0x1e; @@ -571817,7 +571817,7 @@ void FUN_007f01c0(void) bVar12 = *(int *)(iVar19 + 0xc) != 2; } if ((bVar12) && (fVar14 < 25.0)) { - FUN_00705ee0(uVar11); + Game::save_rewind_state(uVar11); pGVar4 = DAT_00c71678; if ((int)uVar11 < 0) { uVar5 = 0xffffffff; @@ -572573,7 +572573,7 @@ void FUN_007f1380(void) default: pLVar11 = DAT_00c71678; if (iVar9 == -0x11) { - FUN_007523e0(local_74 + 2,local_74); + Level::boss_count_adjust(local_74 + 2,local_74); local_74[3] = local_74[2]; local_64 = local_74[0]; pLVar11 = extraout_EDX; @@ -573074,14 +573074,14 @@ LAB_007f1c03: } if (DAT_00c797bc != (int *)0x0) { local_60 = 0; - FUN_006856c0(&local_60); - puVar7 = (undefined4 *)FUN_00684f30(); + std::vector::resize(&local_60); + puVar7 = (undefined4 *)std::deque::back(); if ((byte *)(puVar7 + 1) != (byte *)0x0) { *(byte *)(puVar7 + 1) = (byte)(DAT_00c798e4 >> 5) & 1; } *puVar7 = DAT_00c79948; - FUN_00a18300(DAT_00c797ec,0); - FUN_00a18230(); + KAGE_Graphics::SetRenderTarget(DAT_00c797ec,0); + RenderTarget::Clear(); local_38 = DAT_00c79900; uStack_34._0_4_ = DAT_00c79904; uStack_34._4_4_ = DAT_00c79908; @@ -573102,8 +573102,8 @@ LAB_007f1c03: DAT_00c79908 = uStack_34._4_4_; DAT_00c7990c = uStack_2c; DAT_00c79910 = local_60._4_4_; - FUN_00a19180(1); - FUN_006836c0(); + _glfw_context_reset(1); + pop_render_target(); } ExceptionList = local_1c; return; @@ -573147,9 +573147,9 @@ void FUN_007f2070(void) } -//@@ 007f20e0 FUN_007f20e0 +//@@ 007f20e0 room_shape_get_door_grid_index -int FUN_007f20e0(int param_1,int param_2) +int room_shape_get_door_grid_index(int param_1,int param_2) { int iVar1; @@ -573732,7 +573732,7 @@ LAB_007f7b57: ((*(char *)(DAT_00c7169c + 0x1e3) != '\0' || ((*(int *)(DAT_00c7169c + 8) == 2 && (((pGVar13->_dailyChallenge)._id != 0 || (pGVar13->_isDebug != 0)))))))))) && - ((local_30 = (float)FUN_0074bae0(), local_30 != 0.0 && + ((local_30 = (float)_RoomDescriptor::GetShapeGridCount(), local_30 != 0.0 && (((param_2 != '\0' || (local_30 != 5.60519e-45)) || (cVar2 = Level::IsMausoleumHeartStage(), cVar2 == '\0')) )))) { pRVar15 = local_18; @@ -574119,7 +574119,7 @@ undefined4 Room::TrySpawnDevilRoomDoor(char param_1,char param_2) local_2c = (int *)((int)local_2c + 1); } while ((int)local_2c < 8); if (1 < (uint)((int)puVar14 - (int)local_58 >> 2)) { - FUN_005cc070((int)local_58,puVar14); + RNG::Shuffle((int)local_58,puVar14); local_40 = 0; do { iVar3 = *(int *)((int)local_58 + local_40 * 4); @@ -574710,7 +574710,7 @@ LAB_007f9e6f: ((*(char *)(DAT_00c7169c + 0xe7) != '\0' || ((uVar2 = DAT_00c7169c, *(int *)(DAT_00c7169c + 8) == 2 && ((piVar1[0x998c] != 0 || (*(char *)((int)piVar1 + 0x26589) != '\0')))))))) { - uVar2 = FUN_006dae20(); + uVar2 = Game::IsChallengeOrDaily(); if (((char)uVar2 == '\0') || (extraout_DL != '\0')) goto LAB_007f9e6f; } return uVar2 & 0xffffff00; @@ -574977,7 +574977,7 @@ void FUN_007fa360(uint *param_1) } else { if (puVar1[1] == 0xe) { - NpcAI::ENTITY_MASK((Entity_NPC *)(in_ECX + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(in_ECX + 0x1218)); uVar11 = 0; local_8 = 0; if (local_28 != 0.0) { @@ -575659,7 +575659,7 @@ LAB_007fb3f3: piVar14 = *(int **)((int)in_ECX->_descriptor + 0x10); if ((piVar14 != (int *)0x0) && ((piVar14[2] == 0x10 && (*piVar14 == 0x23)))) { PersistentGameData::IncreaseEventCounter((PersistentGameData *)(DAT_00c7169c + 0x14),1,1); - FUN_0095a7b0(0xe); + PlayerManager::unlock_completion_mark(0xe); PersistentGameData::IncreaseEventCounter((PersistentGameData *)(DAT_00c7169c + 0x14),0x1ec,1); Game::End(DAT_00c71678,0xe); goto switchD_007fd7f9_caseD_3; @@ -575800,7 +575800,7 @@ LAB_007fb6b7: if (cVar5 != '\0') { iVar7 = PlayerManager::GetTrinketMultiplier(0x8f); fVar8 = (float)iVar7; - FUN_009bea40(); + vector_iterate_noop(); local_70 = (fVar23 * 0.03 + 0.2) * fVar8; fVar22 = (float10)RNG::RandomFloat(); in_ECX = local_8c; @@ -575862,21 +575862,21 @@ LAB_007fb6b7: local_68 = fVar23; local_90 = fVar23; if (DAT_00c71678->_currentRoomIdx == -0x11) { - FUN_007523e0(&local_90,&local_78); + Level::boss_count_adjust(&local_90,&local_78); fVar23 = local_90; LAB_007fbbc4: local_68 = fVar23; } else { - iVar7 = FUN_0071f600(2); + iVar7 = Level::filter_curses(2); if (((iVar7 != 0) && ((int)fVar23 < 8)) || (DAT_00c71678->_challenge == 0x2c)) { fVar23 = (float)((int)fVar23 + 1); goto LAB_007fbbc4; } } local_90 = (float)Game::GetChallengeParams(); - local_95 = FUN_0074b830(10,0); - iVar7 = FUN_0074b830(10,1); + local_95 = Level::IsStageWithinEnd(10,0); + iVar7 = Level::IsStageWithinEnd(10,1); local_81 = (char)iVar7; if ((DAT_00c71678->_difficulty == 2) || (DAT_00c71678->_difficulty == 3)) { LAB_007fbc83: @@ -575910,7 +575910,7 @@ LAB_007fbc61: local_78 = (float)(uint)((int)fVar23 < *(int *)((int)local_90 + 0x40)); } if (in_ECX->_roomType == 0x11) { - FUN_0095a7b0(3); + PlayerManager::unlock_completion_mark(3); PersistentGameData::IncreaseEventCounter((PersistentGameData *)(DAT_00c7169c + 0x14),0x6f,1); pGVar4 = DAT_00c71678; qVar3 = DAT_00c71678->_gameStateFlags; @@ -575983,15 +575983,15 @@ switchD_007fbd6e_caseD_e79: } cVar5 = PlayerManager::IsCoopPlay(); if ((cVar5 != '\0') && (local_6a != false)) { - FUN_009bfae0(); + PlayerManager::revive_player_ghosts(); } if ((DAT_00c71678->_currentRoomIdx == -10) && (in_ECX->_roomType == 5)) { if (local_68 == 8.40779e-45) { PersistentGameData::IncreaseEventCounter((PersistentGameData *)(DAT_00c7169c + 0x14),1,1); - FUN_0095a7b0(0); + PlayerManager::unlock_completion_mark(0); } else if (local_68 == 1.12104e-44) { - FUN_0095a7b0(0xd); + PlayerManager::unlock_completion_mark(0xd); PersistentGameData::IncreaseEventCounter ((PersistentGameData *)(DAT_00c7169c + 0x14),0x1eb,1); if (*(char *)((int)local_90 + 0x7f) != '\0') { @@ -576024,7 +576024,7 @@ LAB_007fcf52: Game::Spawn(5,0x172,&local_80,&DAT_00c7b640,0,0,uVar10); } else { - iVar7 = FUN_0071f600(2); + iVar7 = Level::filter_curses(2); local_95 = iVar7 != 0; if (*(int *)((int)local_90 + 0x80) == 3) { cVar5 = FUN_007ed240(); @@ -576055,31 +576055,31 @@ LAB_007fcf96: } } LAB_007fd052: - if ((in_ECX->_bossId == 0x26) && (cVar5 = FUN_00732d00(0xb5,1), cVar5 != '\0')) { + if ((in_ECX->_bossId == 0x26) && (cVar5 = ItemPool::is_collectible_available(0xb5,1), cVar5 != '\0')) { iVar7 = 0xb5; LAB_007fd2ec: ItemPool::RemoveCollectible(iVar7,0,0); } else { - if ((in_ECX->_bossId == 0x16) && (cVar5 = FUN_00732d00(0x82,1), cVar5 != '\0')) { + if ((in_ECX->_bossId == 0x16) && (cVar5 = ItemPool::is_collectible_available(0x82,1), cVar5 != '\0')) { iVar7 = 0x82; goto LAB_007fd2ec; } - if ((in_ECX->_bossId == 0x15) && (cVar5 = FUN_00732d00(0x60,1), cVar5 != '\0')) { + if ((in_ECX->_bossId == 0x15) && (cVar5 = ItemPool::is_collectible_available(0x60,1), cVar5 != '\0')) { PersistentGameData::TryUnlock((PersistentGameData *)(DAT_00c7169c + 0x14),0x19); iVar7 = 0x60; goto LAB_007fd2ec; } - if ((in_ECX->_bossId == 0x13) && (cVar5 = FUN_00732d00(99,1), cVar5 != '\0')) { + if ((in_ECX->_bossId == 0x13) && (cVar5 = ItemPool::is_collectible_available(99,1), cVar5 != '\0')) { PersistentGameData::TryUnlock((PersistentGameData *)(DAT_00c7169c + 0x14),0x17); iVar7 = 99; goto LAB_007fd2ec; } if ((in_ECX->_bossId == 0x14) && - ((cVar5 = FUN_00732d00(0x32,1), cVar5 != '\0' || - (cVar5 = FUN_00732d00(100,1), cVar5 != '\0')))) { + ((cVar5 = ItemPool::is_collectible_available(0x32,1), cVar5 != '\0' || + (cVar5 = ItemPool::is_collectible_available(100,1), cVar5 != '\0')))) { PersistentGameData::TryUnlock((PersistentGameData *)(DAT_00c7169c + 0x14),0x18); - cVar5 = FUN_00732d00(100,1); + cVar5 = ItemPool::is_collectible_available(100,1); if ((cVar5 == '\0') || (iVar7 = RNG::RandomInt(6), iVar7 == 0)) { iVar7 = 0x32; } @@ -576112,7 +576112,7 @@ LAB_007fd2ec: goto LAB_007fd2ec; } if ((in_ECX->_bossId == 0x54) && (*(int *)&in_ECX->field_0x73f0 == -1)) { - cVar5 = FUN_00732d00(0x28a,1); + cVar5 = ItemPool::is_collectible_available(0x28a,1); iVar7 = DAT_00c7169c; if (cVar5 != '\0') { *(undefined4 *)&in_ECX->field_0x73f0 = 0; @@ -576138,7 +576138,7 @@ LAB_007fd2ec: uVar10 = Game::Spawn(5,100,&local_a0,&DAT_00c7b640,0,0xfb,uVar10); iVar7 = __RTDynamicCast(uVar10,uVar25,pTVar26,pTVar27,uVar28); if (local_71 != '\0') { - FUN_006eea30(0xfffffffe); + Entity_Pickup::MakeShopItem(0xfffffffe); } DAT_00c71674 = DAT_00c71674 + -1; *(undefined4 *)(iVar7 + 0x588) = 0; @@ -576172,7 +576172,7 @@ LAB_007fd2ec: fVar23 = (float)__RTDynamicCast(uVar10,uVar25,pTVar26,pTVar27,uVar28); local_70 = fVar23; if (local_71 != '\0') { - FUN_006eea30(0xfffffffe); + Entity_Pickup::MakeShopItem(0xfffffffe); } puVar16 = &DAT_00c71678->field_0x1baa8; *(undefined4 *)((int)fVar23 + 0x588) = 0; @@ -576198,9 +576198,9 @@ LAB_007fd2ec: uVar10 = Game::Spawn(5,100,&local_c0,&DAT_00c7b640,0,uVar10,uVar25); iVar7 = __RTDynamicCast(uVar10,uVar28,pTVar26,pTVar27,uVar29); if (local_71 != '\0') { - FUN_006eea30(0xfffffffe); + Entity_Pickup::MakeShopItem(0xfffffffe); } - iVar11 = FUN_006eed30(); + iVar11 = Entity_Pickup::AssignOptionsIndex(); *(undefined4 *)(iVar7 + 0x588) = 0; *(int *)(iVar7 + 0x528) = iVar11; } @@ -576224,10 +576224,10 @@ LAB_007fd2ec: uVar10 = Game::Spawn(5,100,&local_c0,&DAT_00c7b640,0,local_b4,uVar10); iVar7 = __RTDynamicCast(uVar10,uVar25,pTVar26,pTVar27,uVar28); if (local_71 != '\0') { - FUN_006eea30(0xfffffffe); + Entity_Pickup::MakeShopItem(0xfffffffe); } if (iVar11 == -1) { - iVar11 = FUN_006eed30(); + iVar11 = Entity_Pickup::AssignOptionsIndex(); } *(int *)(iVar7 + 0x528) = iVar11; *(undefined4 *)(iVar7 + 0x588) = 0; @@ -576251,7 +576251,7 @@ LAB_007fd2ec: PersistentGameData::IncreaseEventCounter((PersistentGameData *)(DAT_00c7169c + 0x14),0x1a,1) ; FUN_0092a5e0(0x37); - FUN_0095a7b0(6); + PlayerManager::unlock_completion_mark(6); if (*(char *)((int)local_90 + 0x74) == '\0') { if ((local_78._0_1_ == '\0') || (local_69 == false)) { Game::End(DAT_00c71678,8); @@ -576342,7 +576342,7 @@ LAB_007fc299: uVar25 = RNG::Next(); iVar7 = Game::Spawn(5,100,&local_d8,&DAT_00c7b640,0,uVar10,uVar25); if (local_71 != '\0') { - FUN_006eea30(local_70); + Entity_Pickup::MakeShopItem(local_70); } *(undefined4 *)(iVar7 + 0x588) = 0; } @@ -576366,7 +576366,7 @@ LAB_007fc47e: uVar10 = Game::Spawn(5,100,&local_f0,&DAT_00c7b640,0,0x147,uVar10); iVar7 = __RTDynamicCast(uVar10,uVar25,pTVar26,pTVar27,uVar28); ItemPool::RemoveCollectible(0x147,0,0); - uVar10 = FUN_006eed30(); + uVar10 = Entity_Pickup::AssignOptionsIndex(); *(undefined4 *)(iVar7 + 0x5c0) = 0; *(undefined4 *)(iVar7 + 0x588) = 0; FUN_007f9ee0(&local_e8); @@ -576475,7 +576475,7 @@ LAB_007fce68: if (local_68 == 1.12104e-44) { PersistentGameData::IncreaseEventCounter ((PersistentGameData *)(DAT_00c7169c + 0x14),1,1); - FUN_0095a7b0(0); + PlayerManager::unlock_completion_mark(0); iVar7 = RNG::RandomInt(10); if ((((iVar7 == 0) && (local_78._0_1_ != '\0')) && (local_69 != false)) && (iVar7 = Game::GetChallengeParams(), *(int *)(iVar7 + 0x40) != 0xc)) { @@ -576484,7 +576484,7 @@ LAB_007fce68: } } else if (local_68 == 1.26117e-44) { - FUN_0095a7b0(9); + PlayerManager::unlock_completion_mark(9); PersistentGameData::IncreaseEventCounter ((PersistentGameData *)(DAT_00c7169c + 0x14),0x9e,1); PersistentGameData::TryUnlock((PersistentGameData *)(DAT_00c7169c + 0x14),0x140); @@ -576493,7 +576493,7 @@ LAB_007fce68: } else if (local_68 == 1.54143e-44) { if (DAT_00c71678->_stageType == 0) { - FUN_0095a7b0(5); + PlayerManager::unlock_completion_mark(5); PersistentGameData::IncreaseEventCounter ((PersistentGameData *)(DAT_00c7169c + 0x14),0x19,1); PersistentGameData::TryUnlock((PersistentGameData *)(DAT_00c7169c + 0x14),0x15c); @@ -576529,7 +576529,7 @@ LAB_007fce68: if (((DAT_00c71678->_challenge == 0) && ((DAT_00c71678->_dailyChallenge)._id == 0)) && (cVar5 = Game::IsGreedMode(DAT_00c71678), cVar5 == '\0')) { if ((*(int *)(DAT_00c7169c + 0x4b3d8) == *(int *)(DAT_00c7169c + 0x4b3dc)) || - (uVar6 = FUN_009b9480(), uVar6 < 2)) { + (uVar6 = PlayerManager::count_main_players(), uVar6 < 2)) { GenericPrompt::Show(&pGVar4->_genericPrompt,0); } else { @@ -576540,7 +576540,7 @@ LAB_007fce68: in_ECX = local_8c; } else { - FUN_0095a7b0(4); + PlayerManager::unlock_completion_mark(4); PersistentGameData::IncreaseEventCounter ((PersistentGameData *)(DAT_00c7169c + 0x14),0x18,1); } @@ -576575,12 +576575,12 @@ LAB_007fca07: } else if (local_68 == 1.4013e-44) { if (DAT_00c71678->_stageType == 0) { - FUN_0095a7b0(2); + PlayerManager::unlock_completion_mark(2); PersistentGameData::TryUnlock((PersistentGameData *)(DAT_00c7169c + 0x14),3); uVar10 = 0xd; } else { - FUN_0095a7b0(1); + PlayerManager::unlock_completion_mark(1); uVar10 = 0xb; } PersistentGameData::IncreaseEventCounter @@ -576602,7 +576602,7 @@ LAB_007fca07: } else if (local_68 == 1.68156e-44) { if (in_ECX->_bossId == 0x46) { - FUN_0095a7b0(0xc); + PlayerManager::unlock_completion_mark(0xc); PersistentGameData::TryUnlock((PersistentGameData *)(DAT_00c7169c + 0x14),0x152); PersistentGameData::TryUnlock((PersistentGameData *)(DAT_00c7169c + 0x14),0x165); PersistentGameData::IncreaseEventCounter @@ -576660,7 +576660,7 @@ LAB_007fca07: uVar28 = 0; uVar10 = Game::Spawn(5,100,&local_e8,&DAT_00c7b640,0,uVar10,uVar25); iVar7 = __RTDynamicCast(uVar10,uVar28,pTVar26,pTVar27,uVar29); - uVar10 = FUN_006eed30(); + uVar10 = Entity_Pickup::AssignOptionsIndex(); *(undefined4 *)(iVar7 + 0x528) = uVar10; *(undefined4 *)(iVar7 + 0x588) = 0; } @@ -576739,7 +576739,7 @@ LAB_007fd7ca: if (in_ECX->_roomType != 1) { if ((in_ECX->_roomType != 5) || (in_ECX->_bossId != 0x3e)) goto switchD_007fd7f9_caseD_3; MusicManager::Crossfade(0x25,0x3da3d70a); - NpcAI::ENTITY_MASK((Entity_NPC *)&in_ECX->field_0x1218); + EntityList::QuerySublist((Entity_NPC *)&in_ECX->field_0x1218); local_8 = 0.0; local_b4 = DAT_00c7b640; local_90 = DAT_00c7b644; @@ -576872,7 +576872,7 @@ LAB_007fdf6a: } while ((uint)local_78 < (uint)local_b8); } else { - local_b8 = (float)FUN_009b9480(); + local_b8 = (float)PlayerManager::count_main_players(); if (local_b8 != 0.0) goto LAB_007fdc21; } local_d8 = local_80; @@ -576896,9 +576896,9 @@ LAB_007fdf6a: FUN_007f9ee0(&local_d8); uVar10 = RNG::Next(); Game::Spawn(5,0x154,&local_d8,&DAT_00c7b640,0,0,uVar10); - FUN_0095a7b0(7); + PlayerManager::unlock_completion_mark(7); if (DAT_00c71678->_difficulty == 3) { - FUN_0095a7b0(0xb); + PlayerManager::unlock_completion_mark(0xb); } if (local_38 == '\0') { local_8 = 1.4013e-45; @@ -578187,7 +578187,7 @@ void Room::UpdateGreedWave(void) piVar4[0x5b] = piVar4[0x5b]; (**(code **)(*piVar4 + 0xc))(); } - FUN_00823080(0); + Room::ClearGreedWaveSpawns(0); local_10 = 0xbe; seed_fart_sound_override(); SoundEffects::Play(local_10,0x3f800000,2,0,0x3f800000,0); @@ -578461,9 +578461,9 @@ void FUN_008024f0(void) } -//@@ 00802670 FUN_00802670 +//@@ 00802670 Room::update_door_targets -void FUN_00802670(void) +void Room::update_door_targets(void) { GridEntity_Door *pGVar1; @@ -578835,7 +578835,7 @@ LAB_00802b01: local_9a8 = (Entity *)uVar6; if ((Game *)(uVar7 + (int)local_9a4) != local_9a4) { iVar5 = local_a10 + (int)(uVar7 + (int)local_9a4) * 0x78; - FUN_004d3130((int)local_99c + local_a10); + EntitySaveState::copy((int)local_99c + local_a10); local_14._0_1_ = 1; FUN_004d3230(iVar5); FUN_004d3230(afStack_28c + 7); @@ -578868,14 +578868,14 @@ LAB_00802b01: iVar5 = Game::Spawn(in_stack_fffff4f8,in_stack_fffff4fc,in_stack_fffff500, &DAT_00c7b640,0,uVar31,uVar8); in_ECX = local_9cc; - FUN_007ef420(); + Entity_Pickup::RestoreState(); local_99c = (float *)((int)local_99c + 0x78); local_9a4 = (Game *)((int)local_9a4 + 1); *(undefined4 *)(iVar5 + 0x32c) = 0xffffffff; } while ((int)local_9a4 < (int)local_9b4); } local_14 = 0xffffffff; - FUN_00708e20(); + std::vector::_Tidy(); pGVar23 = DAT_00c71678; piVar24 = (int *)puStack_20; } @@ -579072,7 +579072,7 @@ LAB_008030f1: for (piVar24 = *(int **)&in_ECX->field_0x7314; piVar24 != *(int **)&in_ECX->field_0x7318; piVar24 = piVar24 + 4) { if ((*(int *)*piVar24 == 0) && (((int *)*piVar24)[1] == 0x40)) { - FUN_009960b0(&DAT_00c5d108); + Game::start_poop_cloud_screen_effect(&DAT_00c5d108); break; } } @@ -579081,7 +579081,7 @@ LAB_008030f1: in_stack_fffff500 = (int **)0x3e8; in_stack_fffff4fc = (float *)local_a90; in_stack_fffff4f8 = 0x8033e4; - NpcAI::ENTITY_MASK((Entity_NPC *)&in_ECX->field_0x1218); + EntityList::QuerySublist((Entity_NPC *)&in_ECX->field_0x1218); local_14 = 3; if (local_a84 == 0) { uVar35 = 0; @@ -579383,10 +579383,10 @@ LAB_0080377c: in_stack_fffff500 = (int **)&DAT_00000005; in_stack_fffff4fc = &local_a58; in_stack_fffff4f8 = 0x803d67; - NpcAI::ENTITY_MASK((Entity_NPC *)&in_ECX->field_0x1218); + EntityList::QuerySublist((Entity_NPC *)&in_ECX->field_0x1218); local_14 = 5; if (local_a4c == 0) { - FUN_00833420(); + Ambush::StartChallenge(); } local_14 = 0xffffffff; if (local_a58._0_1_ == '\0') { @@ -579428,7 +579428,7 @@ LAB_0080377c: } *(int *)&in_ECX->field_0x7224 = iVar5; FUN_004186c0(0); - FUN_00993a70(0); + Camera::Update(0); if (in_ECX->field_0x1d0d != '\0') { AnimationState::Update(); AnimationState::Update(); @@ -579471,7 +579471,7 @@ LAB_00803f16: FUN_0083a080(); if ((*(char *)in_ECX != '\0') && (DAT_00c71678->_frameCount - *(int *)&in_ECX->field_0x11f0 == 1)) { - FUN_007eb870(); + Level::UpdateBackwardsPathStages(); } if (in_ECX->field_0x7321 == '\0') { for (piVar24 = *(int **)&in_ECX->field_0x7314; piVar24 != *(int **)&in_ECX->field_0x7318; @@ -579494,7 +579494,7 @@ LAB_00803f16: } *(float *)(iVar5 + 0x2a2d0) = fVar29; *(float *)(iVar5 + 0x2a2d4) = fVar29; - FUN_007df690(); + Music::SetPitchAll(); iVar5 = DAT_00c7169c; uVar6 = Random(); if ((uVar6 & 3) == 0) { @@ -579512,7 +579512,7 @@ LAB_00803f16: else { *(undefined4 *)(DAT_00c7169c + 0x2a2d0) = 0x3f800000; *(undefined4 *)(iVar5 + 0x2a2d4) = 0x3f800000; - FUN_007df690(); + Music::SetPitchAll(); } break; } @@ -579529,7 +579529,7 @@ LAB_00803f16: iVar5 = iVar20; } if (((iVar5 < 1) && (in_ECX->_greedWaveTimer < 1)) && (in_ECX->_roomClearDelay < 1)) { - FUN_00823080(9); + Room::ClearGreedWaveSpawns(9); pvVar17 = in_ECX->_descriptor; } } @@ -580097,7 +580097,7 @@ LAB_008046e2: iVar5 = *(int *)&in_ECX->field_0x7230; if (0 < iVar5) { if (iVar5 % 5 == 0) { - FUN_00813460(local_a48,0,0); + Room::get_random_pickup_position(local_a48,0,0); uVar8 = Random(); uVar35 = 0; uVar33 = 0xc5d83800c5d5dc; @@ -580115,7 +580115,7 @@ LAB_008046e2: iVar5 = *(int *)(*(int *)&in_ECX->field_0x125c + uVar6 * 4); iVar20 = *(int *)(iVar5 + 0x28); if (iVar20 == 5) { - FUN_006e17c0(); + Entity_Pickup::UpdateLootPreview(); } else if ((((1 < *(int *)&DAT_00c71678->field_0x26614) && (iVar20 == 1)) || (iVar20 - 10U < 0x3de)) && @@ -580421,7 +580421,7 @@ LAB_00805a6e: piVar24 = local_9e0; } if (piVar24 == local_9e0) { - local_a14 = (Game *)FUN_006eed30(); + local_a14 = (Game *)Entity_Pickup::AssignOptionsIndex(); local_a18 = *(int **)&pGVar23->field_0x528; FUN_005cc710(); } @@ -580704,7 +580704,7 @@ void __thiscall Room::TriggerClear(Room *this,char param_2) iVar10 = iVar7; } if (iVar10 == 6) { - FUN_00802670(); + Room::update_door_targets(); } pLVar11 = DAT_00c71678; } @@ -580759,10 +580759,10 @@ void __thiscall Room::TriggerClear(Room *this,char param_2) } else if (((this->_roomType != 5) || (this->_bossId != 0x3e)) || (cVar6 = PlayerManager::IsCoopPlay(), cVar6 == '\0')) goto LAB_00806c0a; - FUN_009bfae0(); + PlayerManager::revive_player_ghosts(); } LAB_00806c0a: - FUN_00705ee0(0xffffffff); + Game::save_rewind_state(0xffffffff); return; } @@ -580902,7 +580902,7 @@ void __thiscall Game::Render(Game *this,Entity_Player *param_2,float *param_3) do { local_130 = *(float **)(*(int *)&local_108->field_0x20 + (int)local_154); FUN_0040b4d0(); - pcVar3 = (char *)FUN_0040d0c0(); + pcVar3 = (char *)std::string::c_str(); if ((*pcVar3 == '*') && (pfVar2[0xd] != 0.0)) { local_130 = (float *)AnimationState::GetNullFrameById(); if ((local_130 != (float *)0x0) && @@ -580930,7 +580930,7 @@ void __thiscall Game::Render(Game *this,Entity_Player *param_2,float *param_3) local_78._4_4_ = pfVar2[0x33]; Color::__mul(); Color::operator_assign(); - FUN_004e46d0(); + Color::apply_to_kcolor(); Color::Reset(); Color::SetTint(); Color::operator_assign(); @@ -581356,7 +581356,7 @@ LAB_00808404: local_48 = *(undefined8 *)¶m_2->field_0x110; Color::__mul(); Color::operator_assign(); - FUN_004e46d0(); + Color::apply_to_kcolor(); FUN_00a0f750(); ANM2::GetLayer((ANM2 *)¶m_2->field_0x48); local_68 = *(int *)¶m_2->field_0xf0; @@ -581371,7 +581371,7 @@ LAB_00808404: local_48 = *(undefined8 *)¶m_2->field_0x110; Color::__mul(); Color::operator_assign(); - FUN_004e46d0(); + Color::apply_to_kcolor(); local_15c = local_1c8; local_fc = local_1c4; if (local_1c8 * 0.7152 + local_1cc * 0.2126 + (float)local_1c4 * 0.0722 <= @@ -581418,13 +581418,13 @@ LAB_00807d20: if (local_fc != (ANM2 *)0x0) { Entity::GetSprite(); Config::GetPillEffects(); - FUN_00452be0(); + _ptr_deref_or_minus1(); iVar12 = AnimationState::GetLayerFrame(); if ((iVar12 != 0) && (*(char *)(iVar12 + 0x2c) != '\0')) { local_fc = (void *)0x3f000000; Vector::operator_mul(); Vector::__sub(); - FUN_00a10510(); + Vector::Mul(); Vector::__add(); Entity::GetSprite(); Sprite::Rotation(); @@ -581481,7 +581481,7 @@ LAB_00807d20: Entity::GetSprite(); pAVar8 = (ANM2 *)&this->field_0x6e40; local_108 = pAVar8; - cVar1 = FUN_00652a90(); + cVar1 = _has_flag_0x110(); if (cVar1 == '\0') { Color::Color(); uVar5 = Entity::GetColor(); @@ -581528,7 +581528,7 @@ LAB_008087da: Color::operator_assign(uVar5); FUN_004072e0(); Sprite::SetColor(); - FUN_00a10510(); + Vector::Mul(); Entity::SpriteScale(); Vector::__mul(); pAVar8 = local_108; @@ -581560,14 +581560,14 @@ LAB_008087da: else { pAVar8 = local_108; } - FUN_00a101c0(); + vector_lerp(); Isaac::GetRenderPosition(); Vector::__sub(); fVar14 = (float10)Vector::LengthSquared(); local_15c = (float)fVar14; if (0.0 <= local_15c) { Vector::operator_assign(); - FUN_00a101c0(); + vector_lerp(); Isaac::GetRenderPosition(); Vector::__add(); ANM2::Render(pAVar8); @@ -581588,14 +581588,14 @@ LAB_008087da: iVar12 = FUN_0042f160(); if (iVar12 != 0) { do { - FUN_0042f150(); + std::vector::operator__(); Isaac::GetRenderPosition(); Vector::__sub(); fVar14 = (float10)Vector::LengthSquared(); local_fc = (ANM2 *)(float)fVar14; if (0.0 <= (float)local_fc) { Vector::operator_assign(); - FUN_0042f150(); + std::vector::operator__(); Isaac::GetRenderPosition(); Vector::__add(); ANM2::Render(pAVar8); @@ -581821,9 +581821,9 @@ LAB_00809c21: switchD_008072ae_caseD_5: cVar1 = Entity::IsEnemy(); if ((((cVar1 == '\0') || (uVar9 = Entity::GetEntityFlags(), (uVar9 & 0x1000) == 0)) && - (cVar1 = FUN_00417220(), cVar1 == '\0')) && - ((cVar1 = FUN_00417220(), cVar1 == '\0' && (cVar1 = FUN_00417220(), cVar1 == '\0')))) { - cVar1 = FUN_00417220(); + (cVar1 = Entity::IsType(), cVar1 == '\0')) && + ((cVar1 = Entity::IsType(), cVar1 == '\0' && (cVar1 = Entity::IsType(), cVar1 == '\0')))) { + cVar1 = Entity::IsType(); if (cVar1 == '\0') break; } Color::Color(); @@ -581902,7 +581902,7 @@ LAB_0080b3a9: local_130 = *(float **)((int)&local_14c->field_0x0 + *(int *)&local_12c->field_0x18); Entity::GetSprite(); Sprite::GetLayer(); - FUN_00407320(); + _get_name_string(); local_14._0_1_ = 1; cVar1 = str_eq_cstr(); local_14 = (uint)local_14._1_3_ << 8; @@ -582047,8 +582047,8 @@ LAB_0080b3a9: Entity::Position(); local_130 = (float *)Room::GetGridIndex(); local_12c = (ANM2 *)&this->field_0x7308; - FUN_00557b00(); - FUN_004561a0(); + std::set::find(); + std::iterator_copy(); cVar1 = FUN_00557bb0(); if (cVar1 != '\0') { pfVar2 = (float *)Entity::SpriteScale(); @@ -582083,7 +582083,7 @@ LAB_0080b3a9: if ((iVar12 != 0) && (((1 < *(int *)&DAT_00c71678->field_0x26614 && (*(int *)(iVar12 + 0x28) == 1)) || (*(int *)(iVar12 + 0x28) - 10U < 0x3de)))) { - cVar1 = FUN_006d8e10(); + cVar1 = is_local_player_owned(); if (cVar1 == '\0') break; } iVar12 = AnimationState::GetLayerFrame(); @@ -582260,16 +582260,16 @@ LAB_0080a3bc: iVar12 = Entity::SubType(); if (iVar12 != 1) break; Entity::GetSprite(); - FUN_0040a7c0(); + _empty_check_0x34(); local_fc = pAVar8; Entity::GetSprite(); Config::GetPillEffects(); iVar12 = AnimationState::GetAnimationLength(); local_fc = (ANM2 *)(1.0 - (float)local_fc / (float)iVar12); - FUN_00a0f690(); + KColor::KColor(); Entity::GetSprite(); Sprite::Color(); - FUN_004e46d0(); + Color::apply_to_kcolor(); pAVar8 = (ANM2 *)&local_f8->field_0x6e40; Color::Color(); Sprite::SetColor(); @@ -582407,8 +582407,8 @@ LAB_0080a2e8: Entity::Position(); local_130 = (float *)Room::GetGridIndex(); local_12c = (ANM2 *)&this->field_0x7308; - FUN_00557b00(); - FUN_004561a0(); + std::set::find(); + std::iterator_copy(); cVar1 = FUN_00557bb0(); if (cVar1 != '\0') { Entity::GetColor(); @@ -582503,7 +582503,7 @@ switchD_00809dea_caseD_2: LAB_00807b3d: cVar1 = Entity::IsEnemy(); if (((cVar1 != '\0') && (cVar1 = FUN_004567d0(), cVar1 != '\0')) && - (cVar1 = FUN_006d8e10(), cVar1 != '\0')) { + (cVar1 = is_local_player_owned(), cVar1 != '\0')) { Color::Color(); Sprite::SetColor(); Sprite::SetScale(); @@ -582894,7 +582894,7 @@ void FUN_0080c810(float param_1,float *param_2) pGVar13 = DAT_00c71678; local_10 = (float *)DAT_00c71678->_frameCount; local_1c = (float)in_ECX; - iVar9 = FUN_0074bae0(); + iVar9 = _RoomDescriptor::GetShapeGridCount(); switch(*(undefined4 *)((int)param_1 + 4)) { case 7: iVar9 = *(int *)(in_ECX + 0x1d18); @@ -583662,7 +583662,7 @@ switchD_0080e3e0_caseD_5: iVar5 = 0x2a5; } LAB_0080e7b8: - cVar3 = FUN_00732d00(iVar5,0); + cVar3 = ItemPool::is_collectible_available(iVar5,0); if (cVar3 == '\0') { *param_1 = 0; } @@ -583729,17 +583729,17 @@ void FUN_0080ea80(void) local_e8 = 0; local_f4 = in_ECX; - FUN_006856c0(); - puVar6 = (undefined4 *)FUN_00684f30(); + std::vector::resize(); + puVar6 = (undefined4 *)std::deque::back(); if ((byte *)(puVar6 + 1) != (byte *)0x0) { *(byte *)(puVar6 + 1) = (byte)(DAT_00c798e4 >> 5) & 1; } *puVar6 = DAT_00c79948; - FUN_00a18300(DAT_00c797b4,0); - FUN_00a18230(); + KAGE_Graphics::SetRenderTarget(DAT_00c797b4,0); + RenderTarget::Clear(); FUN_00419b50(); - FUN_00a19180(); - FUN_006836c0(); + _glfw_context_reset(); + pop_render_target(); local_b4 = *DAT_00c71678; local_ec = (float)DAT_00c71678[1]; if (*(char *)(DAT_00c7169c + 0x2a3c3) == '\0') goto LAB_0080f1ce; @@ -583748,14 +583748,14 @@ void FUN_0080ea80(void) Seeds::GetPreventedCurses(); } local_118 = 0; - FUN_006856c0(); - puVar6 = (undefined4 *)FUN_00684f30(); + std::vector::resize(); + puVar6 = (undefined4 *)std::deque::back(); if ((byte *)(puVar6 + 1) != (byte *)0x0) { *(byte *)(puVar6 + 1) = (byte)(DAT_00c798e4 >> 5) & 1; } *puVar6 = DAT_00c79948; - FUN_00a18300(DAT_00c797cc,1); - FUN_00a18230(); + KAGE_Graphics::SetRenderTarget(DAT_00c797cc,1); + RenderTarget::Clear(); local_e0 = *(float *)&in_ECX->field_0x1b5c; local_118 = CONCAT44(local_118._4_4_,DAT_00c379b8); local_d0 = *(undefined4 *)&in_ECX->field_0x1b6c; @@ -583772,8 +583772,8 @@ void FUN_0080ea80(void) local_110 = local_e0; fStack_dc = local_b8; fStack_d8 = local_bc; - FUN_00a10d00(DAT_00c79980,&local_e0); - FUN_00a1dfd0(); + render_quad_set_uniform_color(DAT_00c79980,&local_e0); + render_color_shader_pass(); DAT_00c79904 = 1; DAT_00c79900 = 0; if ((DAT_00c798e4 & 4) == 0) { @@ -583917,13 +583917,13 @@ void FUN_0080ea80(void) FUN_00817830(); } LAB_0080f17b: - FUN_00a19180(); + _glfw_context_reset(); if (DAT_00c79790 == 0) { /* WARNING: Subroutine does not return */ KAGE_LogMessage(0x10,"PopRenderTarget: stack is empty!\n"); } - puVar6 = (undefined4 *)FUN_00684f30(); - FUN_00a18300(*puVar6,*(undefined1 *)(puVar6 + 1)); + puVar6 = (undefined4 *)std::deque::back(); + KAGE_Graphics::SetRenderTarget(*puVar6,*(undefined1 *)(puVar6 + 1)); DAT_00c79790 = DAT_00c79790 + -1; if (DAT_00c79790 == 0) { DAT_00c7978c = 0; @@ -584154,14 +584154,14 @@ LAB_0080f352: ((pGVar27->_stage == 1 && (uVar9 = Level::GetCurses(uVar9), (uVar9 & 2) != 0)))))) { local_206 = '\x01'; local_1f8 = 0; - FUN_006856c0(); - puVar10 = (undefined4 *)FUN_00684f30(); + std::vector::resize(); + puVar10 = (undefined4 *)std::deque::back(); if ((byte *)(puVar10 + 1) != (byte *)0x0) { *(byte *)(puVar10 + 1) = (byte)(DAT_00c798e4 >> 5) & 1; } *puVar10 = DAT_00c79948; - FUN_00a18300(DAT_00c79854,1); - FUN_00a18230(); + KAGE_Graphics::SetRenderTarget(DAT_00c79854,1); + RenderTarget::Clear(); DAT_00c79904 = (Game *)0x1; DAT_00c79900 = 0.0; DAT_00c79908 = (Game *)0x7; @@ -584178,14 +584178,14 @@ LAB_0080f352: } if (0.0 < (float)local_20c) { local_1f8 = 0; - FUN_006856c0(); - puVar10 = (undefined4 *)FUN_00684f30(); + std::vector::resize(); + puVar10 = (undefined4 *)std::deque::back(); if ((byte *)(puVar10 + 1) != (byte *)0x0) { *(byte *)(puVar10 + 1) = (byte)(DAT_00c798e4 >> 5) & 1; } *puVar10 = DAT_00c79948; - FUN_00a18300(DAT_00c797fc,1); - FUN_00a18230(); + KAGE_Graphics::SetRenderTarget(DAT_00c797fc,1); + RenderTarget::Clear(); DAT_00c79904 = (Game *)0x1; DAT_00c79900 = 0.0; DAT_00c79908 = (Game *)0x7; @@ -584200,14 +584200,14 @@ LAB_0080f352: ((*(int *)&in_ECX->field_0x70d8 < *(int *)&in_ECX->field_0x70dc || (*(int *)&in_ECX->field_0x70f4 < *(int *)&in_ECX->field_0x70f8)))) { local_1f8 = 0; - FUN_006856c0(); - puVar10 = (undefined4 *)FUN_00684f30(); + std::vector::resize(); + puVar10 = (undefined4 *)std::deque::back(); if ((byte *)(puVar10 + 1) != (byte *)0x0) { *(byte *)(puVar10 + 1) = (byte)(DAT_00c798e4 >> 5) & 1; } *puVar10 = DAT_00c79948; - FUN_00a18300(DAT_00c797d4,1); - FUN_00a18230(); + KAGE_Graphics::SetRenderTarget(DAT_00c797d4,1); + RenderTarget::Clear(); DAT_00c79904 = (Game *)0x1; DAT_00c79900 = 0.0; DAT_00c79908 = (Game *)0x7; @@ -584220,14 +584220,14 @@ LAB_0080f352: } if (local_1e5 != '\0') { local_1f8 = 0; - FUN_006856c0(); - puVar10 = (undefined4 *)FUN_00684f30(); + std::vector::resize(); + puVar10 = (undefined4 *)std::deque::back(); if ((byte *)(puVar10 + 1) != (byte *)0x0) { *(byte *)(puVar10 + 1) = (byte)(DAT_00c798e4 >> 5) & 1; } *puVar10 = DAT_00c79948; - FUN_00a18300(DAT_00c797e4,1); - FUN_00a18230(); + KAGE_Graphics::SetRenderTarget(DAT_00c797e4,1); + RenderTarget::Clear(); DAT_00c79904 = (Game *)0x1; DAT_00c79900 = 0.0; DAT_00c79908 = (Game *)0x7; @@ -584240,14 +584240,14 @@ LAB_0080f352: } if (local_205 != '\0') { local_1f8 = 0; - FUN_006856c0(); - puVar10 = (undefined4 *)FUN_00684f30(); + std::vector::resize(); + puVar10 = (undefined4 *)std::deque::back(); if ((byte *)(puVar10 + 1) != (byte *)0x0) { *(byte *)(puVar10 + 1) = (byte)(DAT_00c798e4 >> 5) & 1; } *puVar10 = DAT_00c79948; - FUN_00a18300(DAT_00c7984c,1); - FUN_00a18230(); + KAGE_Graphics::SetRenderTarget(DAT_00c7984c,1); + RenderTarget::Clear(); DAT_00c79904 = (Game *)0x1; DAT_00c79900 = 0.0; DAT_00c79908 = (Game *)0x7; @@ -584290,12 +584290,12 @@ LAB_0080f949: local_ac = (Game *)(fVar29 * 26.0); local_c0 = (Game *)(fVar26 + 52.0); pGStack_c4 = (Game *)(fVar28 + 52.0); - FUN_00a10e70(&pGStack_c4,&local_b0,&local_1a0); - FUN_00a1dfd0(); + render_quad_set_rect(&pGStack_c4,&local_b0,&local_1a0); + render_color_shader_pass(); } else { KColor::SetFromARGB(); - FUN_004e46d0(); + Color::apply_to_kcolor(); KColor::SetFromARGB(); pfVar14 = &local_1a0; uVar9 = 0xc; @@ -584462,7 +584462,7 @@ LAB_0080f949: uVar12 = Seeds::GetForcedCurses(); uVar13 = Seeds::GetPreventedCurses(); if ((~uVar13 & (uVar12 | uVar9 | uVar2) & 1) == 0) { - FUN_00a13510(); + set_blend_mode(); in_ECX = local_200; FUN_00817830(); DAT_00c79900 = local_e8; @@ -584522,8 +584522,8 @@ LAB_0080f949: uVar32 = CONCAT44(pGVar27,10000); FUN_004199d0(10000,pGVar27); if (local_205 != '\0') { - FUN_00a19180(); - FUN_006836c0(); + _glfw_context_reset(); + pop_render_target(); pfVar14 = (float *)BlendMode::SetMode(1,extraout_ECX); DAT_00c79900 = *pfVar14; DAT_00c79904 = (Game *)pfVar14[1]; @@ -584540,7 +584540,7 @@ LAB_0080f949: local_170 = 0x3f800000; local_164 = 0; KColor::SetFromARGB(); - FUN_00a10d00(DAT_00c78edc,extraout_ECX_00); + render_quad_set_uniform_color(DAT_00c78edc,extraout_ECX_00); pGVar27 = DAT_00c71678; pGVar22 = (Game *)&DAT_00c79618; if ((DAT_00c7961c & 1) == 0) { @@ -584571,11 +584571,11 @@ LAB_0080f949: (float)local_1e4 / (float)local_1d4) * DAT_00bf93e8) / local_218); pGStack_c8 = local_ac; local_ac = (Game *)((float)(pGVar27->_frameCount % 0x3c) / 60.0); - FUN_00a14c00("Ratio",0xb,&pGStack_cc,(int)((ulonglong)dVar30 >> 0x20)); - FUN_00a14c00("Amount",8,&local_ac,extraout_ECX_01); + Shader::set_uniform("Ratio",0xb,&pGStack_cc,(int)((ulonglong)dVar30 >> 0x20)); + Shader::set_uniform("Amount",8,&local_ac,extraout_ECX_01); (**(code **)(*DAT_00c7984c + 0x14))(&local_184,local_2c8); uVar32 = 0x81049f; - FUN_00a14050(); + shader_cache_find(); } pGVar27 = local_200; if (*(int *)&local_200->field_0x1d18 == 0x39) { @@ -584637,8 +584637,8 @@ LAB_0080f949: } FUN_009947b0(); if (local_1e5 != '\0') { - FUN_00a19180(); - FUN_006836c0(); + _glfw_context_reset(); + pop_render_target(); pfVar14 = (float *)BlendMode::SetMode(1,extraout_ECX_02); DAT_00c79900 = *pfVar14; DAT_00c79904 = (Game *)pfVar14[1]; @@ -584655,7 +584655,7 @@ LAB_0080f949: local_170 = 0x3f800000; local_164 = 0; KColor::SetFromARGB(); - FUN_00a10d00(DAT_00c78edc,extraout_ECX_03); + render_quad_set_uniform_color(DAT_00c78edc,extraout_ECX_03); pGVar27 = DAT_00c71678; pGVar22 = (Game *)&DAT_00c79578; if ((DAT_00c7957c & 1) == 0) { @@ -584685,10 +584685,10 @@ LAB_0080f949: (float)dVar31 / (float)local_1d4) * DAT_00bf93e8) / (float)local_214); pGStack_c8 = local_1e0; local_ac = (Game *)((float)(pGVar27->_frameCount % 0x3c) / 60.0); - FUN_00a14c00("Ratio",0xb,&pGStack_cc,(int)((ulonglong)dVar30 >> 0x20)); - FUN_00a14c00("Amount",8,&local_ac,extraout_ECX_04); + Shader::set_uniform("Ratio",0xb,&pGStack_cc,(int)((ulonglong)dVar30 >> 0x20)); + Shader::set_uniform("Amount",8,&local_ac,extraout_ECX_04); (**(code **)(*DAT_00c797e4 + 0x14))(&local_184,local_2c8); - FUN_00a14050(); + shader_cache_find(); pGVar27 = local_200; } Color::Color(); @@ -584943,7 +584943,7 @@ LAB_0080f949: pGStack_e0 = (Game *)0x3f800000; pGStack_dc = local_ac; KColor::SetFromARGB(); - uVar18 = FUN_00a10d00(DAT_00c78edc,extraout_ECX_05); + uVar18 = render_quad_set_uniform_color(DAT_00c78edc,extraout_ECX_05); (*pcVar4)(uVar18,&local_e8); if (0.0 < *(float *)&DAT_00c71678[1].field_0x300) { pGVar27 = (Game *)(*(float *)&DAT_00c71678[1].field_0x300 * 0.5); @@ -584993,7 +584993,7 @@ LAB_0080f949: DAT_00c79910 = (Game *)puVar10[4]; pcVar4 = *(code **)(*DAT_00c79824 + 0x1c); KColor::SetFromARGB(); - uVar18 = FUN_00a10d00(DAT_00c78edc,extraout_ECX_08); + uVar18 = render_quad_set_uniform_color(DAT_00c78edc,extraout_ECX_08); (*pcVar4)(uVar18,&DAT_00c37944); DAT_00c79900 = local_e8; DAT_00c79904 = pGStack_e4; @@ -585005,9 +585005,9 @@ LAB_0080f949: if ((*(char *)(DAT_00c7169c + 0x2a3c4) != '\0') && ((*(int *)&pGVar22->field_0x70d8 < *(int *)&pGVar22->field_0x70dc || (*(int *)&pGVar22->field_0x70f4 < *(int *)&pGVar22->field_0x70f8)))) { - FUN_00a19180(); - FUN_006836c0(); - FUN_00a18230(); + _glfw_context_reset(); + pop_render_target(); + RenderTarget::Clear(); pfVar14 = (float *)BlendMode::SetMode(1,extraout_ECX_09); pGVar27 = (Game *)&pGVar22->field_0x1204; DAT_00c79900 = *pfVar14; @@ -585028,9 +585028,9 @@ LAB_0080f949: ((Vector *)&pGVar22->field_0x11fc)->y + ((Vector *)&pGVar22->field_0x1204)->y + 52.0); local_1f8._4_4_ = (Game *)(((float)*(int *)&pGVar22->field_0x10 - 2.0) * 26.0); - FUN_00a10e70(&local_b0,&local_1f8,&local_1a0); + render_quad_set_rect(&local_b0,&local_1f8,&local_1a0); uVar18 = 0x811600; - FUN_00a1dfd0(); + render_color_shader_pass(); if (*(char *)(DAT_00c7169c + 0x2a3c3) != '\0') { if (*(float *)&DAT_00c71678->field_0x26518 <= 0.0) { Seeds::GetForcedCurses(); @@ -585059,7 +585059,7 @@ LAB_0080f949: pGStack_c4 = local_1f8._4_4_; pcVar4 = *(code **)(*DAT_00c797cc + 0x1c); KColor::SetFromARGB(); - uVar18 = FUN_00a10d00(DAT_00c78edc,extraout_ECX_10); + uVar18 = render_quad_set_uniform_color(DAT_00c78edc,extraout_ECX_10); (*pcVar4)(uVar18,&local_d0); DAT_00c79904 = pGStack_e4; DAT_00c79900 = local_e8; @@ -585121,7 +585121,7 @@ LAB_0080f949: KColor::SetFromARGB(); pGVar16 = (Game *)0x0; fVar29 = DAT_00c78edc; - FUN_00a10d00(DAT_00c78edc,extraout_ECX_11); + render_quad_set_uniform_color(DAT_00c78edc,extraout_ECX_11); local_204 = (Game *)0xc3160000; pGVar27 = (Game *)&DAT_00c79488; if ((DAT_00c7948c & 1) == 0) { @@ -585180,11 +585180,11 @@ LAB_0080f949: local_b0 = local_1f0; local_1f8._0_4_ = local_218; local_1f8._4_4_ = local_220; - FUN_00a14c00("Shockwave1",0xb,&pGStack_e4,piVar19); - FUN_00a14c00("Shockwave2",0xb,&local_b8,extraout_ECX_14); - FUN_00a14c00("Ratio",9,&local_1f8,extraout_ECX_15); + Shader::set_uniform("Shockwave1",0xb,&pGStack_e4,piVar19); + Shader::set_uniform("Shockwave2",0xb,&local_b8,extraout_ECX_14); + Shader::set_uniform("Ratio",9,&local_1f8,extraout_ECX_15); (**(code **)(*DAT_00c797d4 + 0x14))(&local_184,local_160 + 2,&DAT_00c37944); - FUN_00a13510(); + set_blend_mode(); } if (local_207 != '\0') { DAT_00c7977f = 0; @@ -585192,9 +585192,9 @@ LAB_0080f949: FUN_00995e00(); local_204 = (Game *)0x258; if (0.0 < (float)local_20c) { - FUN_00a19180(); - FUN_006836c0(); - FUN_00a13510(); + _glfw_context_reset(); + pop_render_target(); + set_blend_mode(); local_174 = 0; local_184 = 0; local_178 = 0; @@ -585205,7 +585205,7 @@ LAB_0080f949: local_170 = 0x3f800000; local_164 = 0; KColor::SetFromARGB(); - FUN_00a10d00(DAT_00c78edc,extraout_ECX_16); + render_quad_set_uniform_color(DAT_00c78edc,extraout_ECX_16); local_1e0 = (Game *)&DAT_00c795c8; if ((DAT_00c795cc & 1) == 0) { local_1e0 = DAT_00c379b8; @@ -585256,16 +585256,16 @@ LAB_0080f949: } local_1f8._4_4_ = (Game *)((float)(int)(uVar9 + (DAT_00c71678->_frameCount % (int)local_204) * 2) / 120.0); - FUN_00a14c00("TextureSize",9,&local_b0,uVar9); - FUN_00a14c00("Ratio",0xb,&pGStack_e4,extraout_ECX_17); - FUN_00a14c00(&DAT_00b6837c,8,(int)&local_1f8 + 4,extraout_ECX_18); - FUN_00a14c00("Amount",8,&local_210,extraout_ECX_19); + Shader::set_uniform("TextureSize",9,&local_b0,uVar9); + Shader::set_uniform("Ratio",0xb,&pGStack_e4,extraout_ECX_17); + Shader::set_uniform(&DAT_00b6837c,8,(int)&local_1f8 + 4,extraout_ECX_18); + Shader::set_uniform("Amount",8,&local_210,extraout_ECX_19); (**(code **)(*DAT_00c797fc + 0x14))(&local_184,local_160 + 2,&DAT_00c37944); } if (local_206 != '\0') { - FUN_00a19180(); - FUN_006836c0(); - FUN_00a13510(); + _glfw_context_reset(); + pop_render_target(); + set_blend_mode(); local_174 = 0x3f800000; local_184 = 0x3f800000; local_178 = 0; @@ -585277,7 +585277,7 @@ LAB_0080f949: local_164 = 0; KColor::SetFromARGB(); fVar29 = DAT_00c78edc; - FUN_00a10d00(DAT_00c78edc,extraout_ECX_20); + render_quad_set_uniform_color(DAT_00c78edc,extraout_ECX_20); if (*(char *)(DAT_00c7169c + 0x2a3ca) == '\0') { pGVar27 = (Game *)&DAT_00c79118; if ((DAT_00c7911c & 1) == 0) { @@ -585340,14 +585340,14 @@ LAB_0080f949: } local_1f8._4_4_ = (Game *)((float)(int)(uVar9 + (DAT_00c71678->_frameCount % 600) * 2) / 120.0); - FUN_00a14c00("TextureSize",9,&local_b0,uVar9); - FUN_00a14c00("Ratio",0xb,&pGStack_e4,extraout_ECX_21); - FUN_00a14c00(&DAT_00b6837c,8,(int)&local_1f8 + 4,extraout_ECX_22); + Shader::set_uniform("TextureSize",9,&local_b0,uVar9); + Shader::set_uniform("Ratio",0xb,&pGStack_e4,extraout_ECX_21); + Shader::set_uniform(&DAT_00b6837c,8,(int)&local_1f8 + 4,extraout_ECX_22); } (**(code **)(*DAT_00c79854 + 0x14))(&local_184,local_2c8,&DAT_00c37944); } DAT_00c79a4c = 0.0; - FUN_00a14050(); + shader_cache_find(); if (((uint)DAT_00c71678->_debugFlags >> 4 & 1) != 0) { local_160[0] = "Null"; local_160[1] = "Default"; @@ -585404,7 +585404,7 @@ LAB_0080f949: pGStack_194 = (Game *)0x0; local_190 = 0; local_14 = CONCAT31(local_14._1_3_,1); - FUN_00a1af90(local_a8,&DAT_00c5d134,&local_1a8); + Font::DrawString(local_a8,&DAT_00c5d134,&local_1a8); std::string::_Tidy_deallocate(); } ExceptionList = local_1c; @@ -585467,7 +585467,7 @@ void FUN_008128f0(float *param_1) uStack_74 = 0x3f800000; uStack_70 = 0; uStack_6c = 0x3e4ccccd; - FUN_00a10d00(local_60 + 13.0,&local_78); + render_quad_set_uniform_color(local_60 + 13.0,&local_78); FUN_00a1d8f0(); sprintf_s(local_58,0x40,&DAT_00b1bb84,*(undefined4 *)(in_ECX + 0x76c + iVar3 * 4)); local_80 = 0; @@ -585483,8 +585483,8 @@ void FUN_008128f0(float *param_1) uVar1 = FUN_00a1bb10(local_90,local_58,&local_80,&DAT_00c3793c); local_8 = CONCAT31(local_8._1_3_,1); FUN_00a1bd80(uVar1,0x3f800000,0x3f800000,0x3f800000,0x3f800000,0,0x3e4ccccd,0,&local_80); - FUN_00a55d60(); - FUN_0069dac0(); + std::vector<12byte>::clear(); + std::vector<12byte>::_Tidy(); iVar3 = iVar3 + 1; iVar2 = *(int *)(in_ECX + 0xc); } while (iVar3 < *(int *)(in_ECX + 0x10) * iVar2); @@ -585882,9 +585882,9 @@ undefined4 FUN_00813420(int param_1,int param_2) } -//@@ 00813460 FUN_00813460 +//@@ 00813460 Room::get_random_pickup_position -undefined4 FUN_00813460(undefined4 param_1,undefined4 param_2,undefined4 param_3) +undefined4 Room::get_random_pickup_position(undefined4 param_1,undefined4 param_2,undefined4 param_3) { float fVar1; @@ -586437,7 +586437,7 @@ LAB_00814854: } piVar11 = local_20; puVar9 = local_24; - FUN_005cc070(local_24,local_20); + RNG::Shuffle(local_24,local_20); piVar11 = (int *)((int)piVar11 - (int)puVar9 >> 2); iVar8 = 0; local_18 = (int *)&DAT_00000008; @@ -586538,7 +586538,7 @@ LAB_00814854: } piVar10 = local_1c; piVar11 = local_20; - FUN_005cc070(local_24,local_20); + RNG::Shuffle(local_24,local_20); puVar9 = local_24; *(undefined2 *)(*(int *)(in_ECX + 4) + 0x94) = *(undefined2 *)local_24; *(undefined2 *)(*(int *)(in_ECX + 4) + 0x96) = *(undefined2 *)(local_24 + 1); @@ -586547,7 +586547,7 @@ LAB_00814854: *(undefined2 *)(*(int *)(in_ECX + 4) + 0x9c) = 10; *local_24 = 8; local_24[1] = 10; - FUN_005cc070(local_24,piVar11); + RNG::Shuffle(local_24,piVar11); *(undefined2 *)(*(int *)(in_ECX + 4) + 0x9e) = *(undefined2 *)puVar9; *(undefined2 *)(*(int *)(in_ECX + 4) + 0xa0) = *(undefined2 *)(puVar9 + 1); *(undefined2 *)(*(int *)(in_ECX + 4) + 0xa2) = 10; @@ -586645,7 +586645,7 @@ LAB_00814854: } piVar11 = local_20; puVar9 = local_24; - FUN_005cc070(local_24,local_20); + RNG::Shuffle(local_24,local_20); piVar11 = (int *)((int)piVar11 - (int)puVar9 >> 2); iVar8 = 0; local_18 = (int *)&DAT_00000008; @@ -586751,7 +586751,7 @@ LAB_00814776: } piVar11 = local_20; puVar9 = local_24; - FUN_005cc070(local_24,local_20); + RNG::Shuffle(local_24,local_20); uVar3 = (int)piVar11 - (int)puVar9 >> 2; iVar8 = 0; local_38 = 8; @@ -586843,9 +586843,9 @@ int FUN_00814980(undefined4 *param_1,undefined4 *param_2,undefined4 *param_3,und + 4 + (*(uint *)(in_ECX + 0x707c) & 1) * 8); } FUN_00814a50(iVar4,param_1,param_2,param_4); - uVar5 = FUN_008151e0(*param_1,*param_2,iVar4,0); + uVar5 = Room::GetShopItemPrice(*param_1,*param_2,iVar4,0); *param_3 = uVar5; - uVar5 = FUN_00816250(iVar4,uVar5,0); + uVar5 = _Room::ResolveHeartSubType(iVar4,uVar5,0); *param_3 = uVar5; if (iVar3 == 0) { psVar1 = (short *)(*(int *)(in_ECX + 4) + 0xac); @@ -587158,11 +587158,11 @@ LAB_00814ba6: } -//@@ 008151e0 FUN_008151e0 +//@@ 008151e0 Room::GetShopItemPrice /* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */ -int FUN_008151e0(uint param_1,int param_2,uint param_3,Entity_Player *param_4) +int Room::GetShopItemPrice(uint param_1,int param_2,uint param_3,Entity_Player *param_4) { short sVar1; @@ -587555,7 +587555,7 @@ void Room::ShopReshuffle(char param_1,char param_2) piVar8 = piVar8 + 1; } local_8 = 0; - FUN_005cc070(piVar1,piVar8); + RNG::Shuffle(piVar1,piVar8); if (param_1 != '\0') { local_1c = 0x94; local_20 = piVar1; @@ -587623,11 +587623,11 @@ void Room::ShopReshuffle(char param_1,char param_2) } -//@@ 00816250 FUN_00816250 +//@@ 00816250 _Room::ResolveHeartSubType /* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */ -int FUN_00816250(int param_1,int param_2,Entity_Player *param_3) +int _Room::ResolveHeartSubType(int param_1,int param_2,Entity_Player *param_3) { Entity_Player *pEVar1; @@ -588486,7 +588486,7 @@ void FUN_00817830(void) local_7fc[0] = (float)DAT_00c71678->_frameCount * 0.01; local_80c = (float)DAT_00c71678->_frameCount * 0.5; local_7a4 = local_80c * 0.1; - FUN_00a14050(); + shader_cache_find(); if (3 < *(int *)(*(int *)(in_ECX[1] + 0x10) + 0x48) - 9U) { local_7f4 = (undefined4 *)(local_7a4 + local_818); local_814 = (undefined4 *)(local_80c + (float)local_778[0]); @@ -588582,7 +588582,7 @@ void FUN_00817830(void) Vector::Vector(); Isaac::GetRenderPosition(); uVar6 = Vector::__add(local_748,&local_804); - FUN_00a10dd0(uVar6,uVar5,uVar8,local_814,&local_700); + set_quad_corner_colors(uVar6,uVar5,uVar8,local_814,&local_700); KColor::SetFromARGB(); Vector::Vector(); Isaac::GetRenderPosition(); @@ -588597,7 +588597,7 @@ void FUN_00817830(void) Vector::Vector(); Isaac::GetRenderPosition(); uVar6 = Vector::__add(local_748,&local_804); - FUN_00a10dd0(uVar6,uVar5,uVar8,local_814,local_65c); + set_quad_corner_colors(uVar6,uVar5,uVar8,local_814,local_65c); KColor::SetFromARGB(); Vector::Vector(); Isaac::GetRenderPosition(); @@ -588611,7 +588611,7 @@ void FUN_00817830(void) Vector::Vector(); Isaac::GetRenderPosition(); uVar6 = Vector::__add(local_748,&local_804); - FUN_00a10dd0(uVar6,uVar5,uVar8,local_814,local_670); + set_quad_corner_colors(uVar6,uVar5,uVar8,local_814,local_670); KColor::SetFromARGB(); Vector::Vector(); Isaac::GetRenderPosition(); @@ -588626,7 +588626,7 @@ void FUN_00817830(void) Isaac::GetRenderPosition(); uVar6 = Vector::__add(local_748,&local_804); puVar4 = local_814; - FUN_00a10dd0(uVar6,uVar5,uVar8,local_814,local_6a8); + set_quad_corner_colors(uVar6,uVar5,uVar8,local_814,local_6a8); uVar12 = CONCAT44(0x81de65,puVar4); FUN_00682260(); KAGE::SmartPointer::operator_assign(&DAT_00c797c4); @@ -588813,7 +588813,7 @@ LAB_0081a975: Vector::Vector(); Isaac::GetRenderPosition(); uVar6 = Vector::__add(local_780,&local_804); - FUN_00a10dd0(uVar6,uVar5,uVar8,local_814,local_6a8); + set_quad_corner_colors(uVar6,uVar5,uVar8,local_814,local_6a8); FUN_00a11060(); KColor::SetFromARGB(); Vector::Vector(); @@ -588829,7 +588829,7 @@ LAB_0081a975: Vector::Vector(); Isaac::GetRenderPosition(); uVar6 = Vector::__add(local_780,&local_804); - FUN_00a10dd0(uVar6,uVar5,uVar8,local_814,local_6bc); + set_quad_corner_colors(uVar6,uVar5,uVar8,local_814,local_6bc); FUN_00a11060(); KColor::SetFromARGB(); Vector::Vector(); @@ -588845,7 +588845,7 @@ LAB_0081a975: Vector::Vector(); Isaac::GetRenderPosition(); uVar6 = Vector::__add(local_7fc,&local_804); - FUN_00a10dd0(uVar6,uVar5,uVar8,local_814,local_6a8); + set_quad_corner_colors(uVar6,uVar5,uVar8,local_814,local_6a8); FUN_00a11060(); KColor::SetFromARGB(); local_79c = (undefined4 *)((float)local_79c * 0.5 + (float)local_7a8); @@ -588862,7 +588862,7 @@ LAB_0081a975: Vector::Vector(); Isaac::GetRenderPosition(); uVar6 = Vector::__add(local_780,&local_804); - FUN_00a10dd0(uVar6,uVar5,uVar8,local_814,local_670); + set_quad_corner_colors(uVar6,uVar5,uVar8,local_814,local_670); FUN_00a11060(); KColor::SetFromARGB(); Vector::Vector(); @@ -588877,7 +588877,7 @@ LAB_0081a975: Vector::Vector(); Isaac::GetRenderPosition(); uVar6 = Vector::__add(local_780,&local_804); - FUN_00a10dd0(uVar6,uVar5,uVar8,local_814,local_65c); + set_quad_corner_colors(uVar6,uVar5,uVar8,local_814,local_65c); FUN_00a11060(); KColor::SetFromARGB(); Vector::Vector(); @@ -589045,7 +589045,7 @@ LAB_0081a975: Vector::Vector(); Isaac::GetRenderPosition(); uVar6 = Vector::__add(local_748,&local_804); - FUN_00a10dd0(uVar6,uVar5,uVar8,local_814,&local_700); + set_quad_corner_colors(uVar6,uVar5,uVar8,local_814,&local_700); FUN_00a11060(); KColor::SetFromARGB(); Vector::Vector(); @@ -589061,7 +589061,7 @@ LAB_0081a975: Vector::Vector(); Isaac::GetRenderPosition(); uVar6 = Vector::__add(local_748,&local_804); - FUN_00a10dd0(uVar6,uVar5,uVar8,local_814,local_65c); + set_quad_corner_colors(uVar6,uVar5,uVar8,local_814,local_65c); FUN_00a11060(); KColor::SetFromARGB(); local_708 = local_708 * 0.5 + local_7ac; @@ -589078,7 +589078,7 @@ LAB_0081a975: Vector::Vector(); Isaac::GetRenderPosition(); uVar6 = Vector::__add(local_778,&local_804); - FUN_00a10dd0(uVar6,uVar5,uVar8,local_814,&local_700); + set_quad_corner_colors(uVar6,uVar5,uVar8,local_814,&local_700); FUN_00a11060(); KColor::SetFromARGB(); local_79c = (undefined4 *)((float)local_79c * 0.5 + (float)local_7a8); @@ -589095,7 +589095,7 @@ LAB_0081a975: Vector::Vector(); Isaac::GetRenderPosition(); uVar6 = Vector::__add(local_748,&local_804); - FUN_00a10dd0(uVar6,uVar5,uVar8,local_814,local_670); + set_quad_corner_colors(uVar6,uVar5,uVar8,local_814,local_670); FUN_00a11060(); KColor::SetFromARGB(); Vector::Vector(); @@ -589110,7 +589110,7 @@ LAB_0081a975: Vector::Vector(); Isaac::GetRenderPosition(); uVar6 = Vector::__add(local_748,&local_804); - FUN_00a10dd0(uVar6,uVar5,uVar8,local_814,local_6a8); + set_quad_corner_colors(uVar6,uVar5,uVar8,local_814,local_6a8); FUN_00a11060(); KColor::SetFromARGB(); Vector::Vector(); @@ -589128,7 +589128,7 @@ LAB_0081a975: uVar12 = CONCAT44(local_6bc,local_814); } LAB_0081d14b: - FUN_00a10dd0(uVar6,uVar5,uVar8,uVar12); + set_quad_corner_colors(uVar6,uVar5,uVar8,uVar12); ppuVar11 = (undefined4 **)0x81d167; FUN_00a11060(); } @@ -589422,7 +589422,7 @@ LAB_0081d14b: pfVar3 = (float *)Isaac::GetRenderPosition(); local_78c = local_800 + pfVar3[1]; local_790 = (undefined4 *)(local_804 + *pfVar3); - puVar4 = (undefined4 *)FUN_00a10dd0(&local_790,&local_7e4,&local_7dc,&local_7f4,local_6bc); + puVar4 = (undefined4 *)set_quad_corner_colors(&local_790,&local_7e4,&local_7dc,&local_7f4,local_6bc); puVar9 = local_2b8; for (iVar2 = 0x1c; iVar2 != 0; iVar2 = iVar2 + -1) { *puVar9 = *puVar4; @@ -589445,7 +589445,7 @@ LAB_0081d14b: Vector::Vector(); Isaac::GetRenderPosition(); uVar6 = Vector::__add(local_778,&local_804); - FUN_00a10dd0(uVar6,uVar5,uVar8,local_814,local_6bc); + set_quad_corner_colors(uVar6,uVar5,uVar8,local_814,local_6bc); FUN_00a11060(); KColor::SetFromARGB(); local_708 = local_708 * 0.5 + local_7ac; @@ -589462,7 +589462,7 @@ LAB_0081d14b: Vector::Vector(); Isaac::GetRenderPosition(); uVar6 = Vector::__add(local_750,&local_804); - FUN_00a10dd0(uVar6,uVar5,uVar8,local_814,local_6a8); + set_quad_corner_colors(uVar6,uVar5,uVar8,local_814,local_6a8); FUN_00a11060(); KColor::SetFromARGB(); Vector::Vector(); @@ -589478,7 +589478,7 @@ LAB_0081d14b: Vector::Vector(); Isaac::GetRenderPosition(); uVar6 = Vector::__add(local_770,&local_804); - FUN_00a10dd0(uVar6,uVar5,uVar8,local_814,local_6a8); + set_quad_corner_colors(uVar6,uVar5,uVar8,local_814,local_6a8); FUN_00a11060(); KColor::SetFromARGB(); Vector::Vector(); @@ -589493,7 +589493,7 @@ LAB_0081d14b: Vector::Vector(); Isaac::GetRenderPosition(); uVar6 = Vector::__add(local_770,&local_804); - FUN_00a10dd0(uVar6,uVar5,uVar8,local_814,local_6a8); + set_quad_corner_colors(uVar6,uVar5,uVar8,local_814,local_6a8); FUN_00a11060(); KColor::SetFromARGB(); Vector::Vector(); @@ -589799,7 +589799,7 @@ LAB_0081d14b: pfVar3 = (float *)Isaac::GetRenderPosition(); local_78c = local_800 + pfVar3[1]; local_790 = (undefined4 *)(local_804 + *pfVar3); - puVar4 = (undefined4 *)FUN_00a10dd0(&local_790,&local_7e4,&local_7dc,&local_7f4,local_6bc); + puVar4 = (undefined4 *)set_quad_corner_colors(&local_790,&local_7e4,&local_7dc,&local_7f4,local_6bc); puVar9 = local_2b8; for (iVar2 = 0x1c; iVar2 != 0; iVar2 = iVar2 + -1) { *puVar9 = *puVar4; @@ -589829,7 +589829,7 @@ LAB_0081d14b: pfVar3 = (float *)Isaac::GetRenderPosition(); local_7b0 = local_800 + pfVar3[1]; local_7b4 = local_804 + *pfVar3; - puVar4 = (undefined4 *)FUN_00a10dd0(&local_7b4,&local_790,&local_7e4,&local_7f4,local_6bc); + puVar4 = (undefined4 *)set_quad_corner_colors(&local_7b4,&local_790,&local_7e4,&local_7f4,local_6bc); puVar9 = local_248; for (iVar2 = 0x1c; iVar2 != 0; iVar2 = iVar2 + -1) { *puVar9 = *puVar4; @@ -589858,7 +589858,7 @@ LAB_0081d14b: pfVar3 = (float *)Isaac::GetRenderPosition(); local_7a0 = local_800 + pfVar3[1]; local_7a4 = local_804 + *pfVar3; - puVar4 = (undefined4 *)FUN_00a10dd0(&local_7a4,&local_7b4,&local_790,&local_7f4,local_6bc); + puVar4 = (undefined4 *)set_quad_corner_colors(&local_7a4,&local_7b4,&local_790,&local_7f4,local_6bc); puVar9 = local_1d8; for (iVar2 = 0x1c; iVar2 != 0; iVar2 = iVar2 + -1) { *puVar9 = *puVar4; @@ -589887,7 +589887,7 @@ LAB_0081d14b: pfVar3 = (float *)Isaac::GetRenderPosition(); local_704 = local_800 + pfVar3[1]; local_708 = local_804 + *pfVar3; - puVar4 = (undefined4 *)FUN_00a10dd0(&local_708,&local_7b4,&local_790,&local_7f4,local_6bc); + puVar4 = (undefined4 *)set_quad_corner_colors(&local_708,&local_7b4,&local_790,&local_7f4,local_6bc); puVar9 = local_168; for (iVar2 = 0x1c; iVar2 != 0; iVar2 = iVar2 + -1) { *puVar9 = *puVar4; @@ -589915,7 +589915,7 @@ LAB_0081d14b: pfVar3 = (float *)Isaac::GetRenderPosition(); local_7b4 = local_804 + *pfVar3; local_7b0 = local_800 + pfVar3[1]; - puVar4 = (undefined4 *)FUN_00a10dd0(&local_7b4,&local_790,&local_7dc,&local_7f4,local_6bc); + puVar4 = (undefined4 *)set_quad_corner_colors(&local_7b4,&local_790,&local_7dc,&local_7f4,local_6bc); puVar9 = local_f8; for (iVar2 = 0x1c; iVar2 != 0; iVar2 = iVar2 + -1) { *puVar9 = *puVar4; @@ -589944,7 +589944,7 @@ LAB_0081d14b: local_78c = local_800 + pfVar3[1]; local_790 = (undefined4 *)(local_804 + *pfVar3); ppuVar11 = &local_7f4; - puVar4 = (undefined4 *)FUN_00a10dd0(&local_790,&local_7e4,&local_7dc,ppuVar11,local_6bc); + puVar4 = (undefined4 *)set_quad_corner_colors(&local_790,&local_7e4,&local_7dc,ppuVar11,local_6bc); puVar9 = local_88; for (iVar2 = 0x1c; iVar2 != 0; iVar2 = iVar2 + -1) { *puVar9 = *puVar4; @@ -589968,7 +589968,7 @@ LAB_0081d167: local_7ec = (undefined4 *)((int)local_7ec + 1); } while ((int)local_7ec < 0xc); LAB_0081deea: - FUN_00a14050(); + shader_cache_find(); return; } @@ -590801,7 +590801,7 @@ void FUN_0081f130(float *param_1) local_6c = local_5c / local_68 + param_1[1]; local_74 = param_1[1] + (float)iVar6 * 26.0 + local_5c / local_68; local_70 = local_78; - FUN_00a1d710(&local_70,&local_78,&local_a8,&local_a8,0x3f800000); + render_color_quad(&local_70,&local_78,&local_a8,&local_a8,0x3f800000); iVar4 = *(int *)(in_ECX + 0xc); iVar5 = iVar5 + 1; } while (iVar5 < iVar4); @@ -590831,7 +590831,7 @@ void FUN_0081f130(float *param_1) local_70 = local_64 + *param_1; local_78 = *param_1 + (float)iVar4 * 26.0 + local_64; local_6c = local_74; - FUN_00a1d710(&local_70,&local_78,&local_a8,&local_a8,0x3f800000); + render_color_quad(&local_70,&local_78,&local_a8,&local_a8,0x3f800000); iVar5 = *(int *)(in_ECX + 0x10); iVar6 = iVar6 + 1; } while (iVar6 < iVar5); @@ -590869,8 +590869,8 @@ void FUN_0081f130(float *param_1) uVar3 = FUN_00a1bb10(&uStack_a4,local_58,&local_94,&DAT_00c3793c); local_8 = CONCAT31(local_8._1_3_,1); FUN_00a1bd80(uVar3,0x3f800000,0x3f800000,0x3f800000,0x3f800000,0,0x3e4ccccd,0,&local_94); - FUN_00a55d60(); - FUN_0069dac0(); + std::vector<12byte>::clear(); + std::vector<12byte>::_Tidy(); sprintf_s(local_58,0x3f,"%d,%d",(int)local_68 % *(int *)(in_ECX + 0xc), (int)local_68 / *(int *)(in_ECX + 0xc)); local_94 = 0; @@ -590886,8 +590886,8 @@ void FUN_0081f130(float *param_1) uVar3 = FUN_00a1bb10(local_b8,local_58,&local_94,&DAT_00c3793c); local_8 = CONCAT31(local_8._1_3_,3); FUN_00a1bd80(uVar3,0x3f800000,0x3f800000,0x3f800000,0x3f800000,0,0x3e4ccccd,0,&local_94); - FUN_00a55d60(); - FUN_0069dac0(); + std::vector<12byte>::clear(); + std::vector<12byte>::_Tidy(); local_8 = 0xffffffff; local_68 = (float)((int)local_68 + 1); iVar4 = *(int *)(in_ECX + 0xc); @@ -591417,7 +591417,7 @@ undefined4 __thiscall Room::GetBossVictoryJingle(Room *this) piVar1 = DAT_00c71678; if ((*DAT_00c71678 != 0xd) || (DAT_00c71678[1] != 1)) { - iVar2 = FUN_0074bae0(); + iVar2 = _RoomDescriptor::GetShapeGridCount(); if ((iVar2 != 4) || (piVar1[0x60c1] != -10)) { if ((*(int *)(piVar1[0x60c0] + 8) == 6) || (*(char *)(piVar1[0x60c0] + 0x7228) != '\0')) { return 0x5c; @@ -591474,7 +591474,7 @@ uint FUN_008207a0(void) } Game::SpawnEx(5,0x6e,local_18,&DAT_00c7b640,0,0,uVar4,0); Game::ShakeScreen(8); - ppvVar5 = (void **)NpcAI::ENTITY_MASK((Entity_NPC *)(in_ECX + 0x1218)); + ppvVar5 = (void **)EntityList::QuerySublist((Entity_NPC *)(in_ECX + 0x1218)); uVar6 = 0; if (local_1c != 0) { do { @@ -591904,9 +591904,9 @@ void FUN_00820fd0(void) uStack_40 = DAT_00c7990c; local_24 = DAT_00c79910; uVar15 = 0x821085; - FUN_00a18300(DAT_00c797f4,0); + KAGE_Graphics::SetRenderTarget(DAT_00c797f4,0); DAT_00c798e4 = DAT_00c798e4 & 0xfffffffd; - FUN_00a18230(); + RenderTarget::Clear(); if ((*(int *)(in_ECX + 0x1d18) != 0x2d) || (fVar4 = *(float *)(in_ECX + 0x7240), fVar4 <= 0.0)) { in_stack_ffffff54 = *(undefined4 *)(in_ECX + 0x72a4); @@ -592138,7 +592138,7 @@ void FUN_00820fd0(void) DAT_00c379b8 = iVar3; } } - FUN_00a19180(1); + _glfw_context_reset(1); DAT_00c79900 = local_4c; DAT_00c79904 = uStack_48; DAT_00c79908 = uStack_44; @@ -592149,8 +592149,8 @@ void FUN_00820fd0(void) /* WARNING: Subroutine does not return */ KAGE_LogMessage(0x10,"PopRenderTarget: stack is empty!\n"); } - puVar6 = (undefined4 *)FUN_00684f30(); - FUN_00a18300(*puVar6,*(undefined1 *)(puVar6 + 1)); + puVar6 = (undefined4 *)std::deque::back(); + KAGE_Graphics::SetRenderTarget(*puVar6,*(undefined1 *)(puVar6 + 1)); iVar3 = DAT_00c71678; DAT_00c79790 = DAT_00c79790 + -1; if (DAT_00c79790 == 0) { @@ -592358,11 +592358,11 @@ LAB_00821b14: local_dc = (float)((double)DAT_00c797f4[6] + (double)(&DAT_00bacb00)[-(DAT_00c797f4[6] >> 0x1f)]); local_d8 = (float)((double)DAT_00c797f4[7] + (double)(&DAT_00bacb00)[-(DAT_00c797f4[7] >> 0x1f)]); local_104 = DAT_00c79a4c; - FUN_00a14c00(&DAT_00b6837c,8,local_130,DAT_00c797f4); - FUN_00a14c00("ColorMul",10,&local_100,extraout_ECX); - FUN_00a14c00("CurrentDir",9,in_ECX + 0x7460,extraout_ECX_00); - FUN_00a14c00("TextureSize",9,&local_dc,extraout_ECX_01); - FUN_00a14c00("PixelationAmount",8,&local_104,extraout_ECX_02); + Shader::set_uniform(&DAT_00b6837c,8,local_130,DAT_00c797f4); + Shader::set_uniform("ColorMul",10,&local_100,extraout_ECX); + Shader::set_uniform("CurrentDir",9,in_ECX + 0x7460,extraout_ECX_00); + Shader::set_uniform("TextureSize",9,&local_dc,extraout_ECX_01); + Shader::set_uniform("PixelationAmount",8,&local_104,extraout_ECX_02); local_130[0] = 0.0; do { local_104 = DAT_00c797f4; @@ -592375,7 +592375,7 @@ LAB_00821b14: local_dc = *(float *)((int)local_124 + (int)local_130[0]) + *param_1; local_d8 = *(float *)((int)local_124 + (int)local_130[0] + 4) + param_1[1]; pfVar2 = (float *)((int)local_124 + (int)local_130[0] + 0x10); - uVar3 = FUN_00a10e70(&local_dc,pfVar2,&local_100); + uVar3 = render_quad_set_rect(&local_dc,pfVar2,&local_100); fVar8 = local_130[0]; local_84 = 1; local_94 = *(float *)((int)local_124 + (int)local_130[0]); @@ -592390,7 +592390,7 @@ LAB_00821b14: local_130[0] = (float)((int)fVar8 + 8); local_128 = local_128 + -1; } while (local_128 != 0); - FUN_00a14050(extraout_ECX_03); + shader_cache_find(extraout_ECX_03); return; } @@ -592759,7 +592759,7 @@ char __thiscall Room::CanSpawnObstacleAtPosition(Room *this,uint param_2,char pa cVar2 = IsPositionInRoom(&local_50,0); if (((cVar2 != '\0') && (*(int *)((int)pGVar10->_room + 8) != 0x10)) && ((*(int *)(&this->field_0x24 + local_48 * 4) == 0 || - ((cVar2 = FUN_0070bf60(), cVar2 != '\0' && (cVar2 = FUN_0070bf80(), cVar2 == '\0')))))) { + ((cVar2 = FUN_0070bf60(), cVar2 != '\0' && (cVar2 = is_grid_type_floor_special(), cVar2 == '\0')))))) { if (param_3 == '\0') { uVar11 = 0; if (*(int *)&pGVar10->field_0x1baac - *(int *)&pGVar10->field_0x1baa8 >> 2 != 0) { @@ -593085,9 +593085,9 @@ int FUN_00822fd0(int *param_1,undefined4 param_2) } -//@@ 00823080 FUN_00823080 +//@@ 00823080 Room::ClearGreedWaveSpawns -void FUN_00823080(int param_1) +void Room::ClearGreedWaveSpawns(int param_1) { int *piVar1; @@ -593358,7 +593358,7 @@ float * __thiscall Room::GetFloorColorAt(Room *this,float *param_2,float *param_ local_24 = local_24 - *(float *)(*(int *)(DAT_00c71678 + 0x18300) + 0x11fc); local_28 = local_34 / local_28 - *(float *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1200); if (local_2c <= 0.0) { - FUN_0041c770(); + shared_ptr::assign(); local_14 = 3; pcVar3 = *(code **)(*local_54 + 0x2c); local_30 = (float)__ftoui3(uVar7); @@ -593395,7 +593395,7 @@ float * __thiscall Room::GetFloorColorAt(Room *this,float *param_2,float *param_ do { local_34 = local_2c * *(float *)((int)&DAT_00c5d14c + (int)local_30) * 0.65 + local_28; local_38 = local_2c * *(float *)((int)&DAT_00c5d148 + (int)local_30) * 0.65 + local_24; - FUN_0041c770(); + shared_ptr::assign(); local_14._0_1_ = 1; pcVar3 = *(code **)(*local_54 + 0x2c); __ftoui3(); @@ -594647,7 +594647,7 @@ joined_r0x0082589b: } } } - NpcAI::ENTITY_MASK((Entity_NPC *)(in_ECX + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(in_ECX + 0x1218)); uVar13 = 0; local_14 = 0x45; if (local_3c != 0) { @@ -594845,17 +594845,17 @@ void FUN_00825de0(void) cVar4 = FUN_008242f0(); if (cVar4 != '\0') { KColor::SetFromARGB(); - FUN_00a10d00(DAT_00c78edc,extraout_ECX); + render_quad_set_uniform_color(DAT_00c78edc,extraout_ECX); local_70 = 0; - FUN_006856c0(); - puVar5 = (undefined4 *)FUN_00684f30(); + std::vector::resize(); + puVar5 = (undefined4 *)std::deque::back(); if ((byte *)(puVar5 + 1) != (byte *)0x0) { *(byte *)(puVar5 + 1) = (byte)(DAT_00c798e4 >> 5) & 1; } *puVar5 = DAT_00c79948; - FUN_00a18300(DAT_00c7982c,1); - FUN_00a18230(); - FUN_00a1dfd0(); + KAGE_Graphics::SetRenderTarget(DAT_00c7982c,1); + RenderTarget::Clear(); + render_color_shader_pass(); pGVar2 = DAT_00c71678; DAT_00c79904 = 1; if ((DAT_00c798e4 & 4) == 0) { @@ -594992,28 +594992,28 @@ void FUN_00825de0(void) local_48 = (float)((int)local_48 + -1); fVar17 = fVar19; } while (local_48 != 0.0); - FUN_00a19180(); + _glfw_context_reset(); if (DAT_00c79790 == 0) { /* WARNING: Subroutine does not return */ KAGE_LogMessage(0x10,"PopRenderTarget: stack is empty!\n"); } - puVar5 = (undefined4 *)FUN_00684f30(); - FUN_00a18300(*puVar5,*(undefined1 *)(puVar5 + 1)); + puVar5 = (undefined4 *)std::deque::back(); + KAGE_Graphics::SetRenderTarget(*puVar5,*(undefined1 *)(puVar5 + 1)); DAT_00c79790 = DAT_00c79790 + -1; if (DAT_00c79790 == 0) { DAT_00c7978c = 0; } local_70 = 0; - FUN_006856c0(); - local_44 = (undefined4 *)FUN_00684f30(); + std::vector::resize(); + local_44 = (undefined4 *)std::deque::back(); if ((byte *)(local_44 + 1) != (byte *)0x0) { *(byte *)(local_44 + 1) = (byte)(DAT_00c798e4 >> 5) & 1; } *local_44 = DAT_00c79948; iVar6 = DAT_00c79824; - FUN_00a18300(DAT_00c79824,1); + KAGE_Graphics::SetRenderTarget(DAT_00c79824,1); uVar21 = CONCAT44(0x8263df,iVar6); - FUN_00a18230(); + RenderTarget::Clear(); uVar14 = DAT_00c798e4 & 0xfffffffd; if (*(char *)(DAT_00c7169c + 0x2a3c3) != '\0') { puVar8 = &DAT_00c79118; @@ -595064,7 +595064,7 @@ void FUN_00825de0(void) fStack_fc = 1.0; local_f8 = 0; (**(code **)(*DAT_00c797cc + 0x1c))(local_128,&DAT_00c37944); - FUN_00a14050(); + shader_cache_find(); uVar14 = DAT_00c798e4; } DAT_00c798e4 = uVar14; @@ -595193,7 +595193,7 @@ LAB_0082681a: (DAT_00c71678->_screenShakeOffset).y; local_70 = CONCAT44(fVar17,local_50 + *(float *)(pcVar3 + 0x1204) + (DAT_00c71678->_screenShakeOffset).x); - FUN_00a10d00(local_98 * 0.4 + fVar17,&local_68); + render_quad_set_uniform_color(local_98 * 0.4 + fVar17,&local_68); FUN_00a10760(); (**(code **)(*DAT_00c79834 + 0x1c))(local_198,&DAT_00c37944); } @@ -595228,13 +595228,13 @@ LAB_008269ef: local_f8 = 0; (**(code **)(*DAT_00c7982c + 0x1c))(local_128,&DAT_00c37944); DAT_00c798e4 = DAT_00c798e4 | 2; - FUN_00a19180(); + _glfw_context_reset(); if (DAT_00c79790 == 0) { /* WARNING: Subroutine does not return */ KAGE_LogMessage(0x10,"PopRenderTarget: stack is empty!\n"); } - puVar5 = (undefined4 *)FUN_00684f30(); - FUN_00a18300(*puVar5,*(undefined1 *)(puVar5 + 1)); + puVar5 = (undefined4 *)std::deque::back(); + KAGE_Graphics::SetRenderTarget(*puVar5,*(undefined1 *)(puVar5 + 1)); DAT_00c79790 = DAT_00c79790 + -1; if (DAT_00c79790 == 0) { DAT_00c7978c = 0; @@ -595303,9 +595303,9 @@ void FUN_00826ae0(void) local_20 = 0; local_10c = (undefined8 *)0x826b20; local_8 = in_ECX; - FUN_006856c0(); + std::vector::resize(); local_108 = (float *)0x826b25; - puVar8 = (undefined4 *)FUN_00684f30(); + puVar8 = (undefined4 *)std::deque::back(); if ((byte *)(puVar8 + 1) != (byte *)0x0) { *(byte *)(puVar8 + 1) = (byte)(DAT_00c798e4 >> 5) & 1; } @@ -595317,10 +595317,10 @@ void FUN_00826ae0(void) local_108 = (float *)0x0; local_10c = DAT_00c7981c; local_60 = DAT_00c79910; - FUN_00a18300(); + KAGE_Graphics::SetRenderTarget(); DAT_00c798e4 = DAT_00c798e4 & 0xfffffffd; local_108 = (float *)0x826b83; - FUN_00a18230(); + RenderTarget::Clear(); DAT_00c79904 = 1; DAT_00c79900 = 0; if ((DAT_00c798e4 & 4) == 0) { @@ -595408,7 +595408,7 @@ void FUN_00826ae0(void) uStack_6c = 0x3f800000; uStack_68 = 0x3f800000; local_2c = local_30; - local_10c = (undefined8 *)FUN_00a10e70(&DAT_00c7b640); + local_10c = (undefined8 *)render_quad_set_rect(&DAT_00c7b640); local_108 = &local_34; local_50 = local_10 + DAT_00c7b640; local_48 = DAT_00c7b640; @@ -595432,7 +595432,7 @@ void FUN_00826ae0(void) uStack_70 = 0x3f800000; uStack_6c = 0x3f800000; uStack_68 = 0x3f800000; - uVar11 = FUN_00a10e70(&DAT_00c7b640,&local_20,&local_74); + uVar11 = render_quad_set_rect(&DAT_00c7b640,&local_20,&local_74); local_50 = local_10 + DAT_00c7b640; local_48 = DAT_00c7b640; local_58 = DAT_00c7b640; @@ -595444,7 +595444,7 @@ void FUN_00826ae0(void) local_3c = local_44; (*pcVar1)(&local_58,uVar11,&local_34); } - FUN_00a19180(1); + _glfw_context_reset(1); DAT_00c79910 = local_60; DAT_00c798e4 = DAT_00c798e4 | 2; DAT_00c79900 = uVar3; @@ -595455,13 +595455,13 @@ void FUN_00826ae0(void) /* WARNING: Subroutine does not return */ KAGE_LogMessage(0x10,"PopRenderTarget: stack is empty!\n"); } - puVar8 = (undefined4 *)FUN_00684f30(); - FUN_00a18300(*puVar8,*(undefined1 *)(puVar8 + 1)); + puVar8 = (undefined4 *)std::deque::back(); + KAGE_Graphics::SetRenderTarget(*puVar8,*(undefined1 *)(puVar8 + 1)); DAT_00c79790 = DAT_00c79790 + -1; if (DAT_00c79790 == 0) { DAT_00c7978c = 0; } - FUN_00a14050(0); + shader_cache_find(0); } return; } @@ -595536,7 +595536,7 @@ void FUN_00826f80(float *param_1) fVar4 = 52.0; local_d8 = *param_1 + 52.0; local_d4 = param_1[1] + 52.0; - uVar3 = FUN_00a10e70(&local_d8,&local_e0,extraout_ECX); + uVar3 = render_quad_set_rect(&local_d8,&local_e0,extraout_ECX); fStack_30 = local_e0 + fVar4; fStack_24 = local_dc + fVar4; local_28 = 0x42500000; @@ -595547,7 +595547,7 @@ void FUN_00826f80(float *param_1) fStack_20 = fStack_30; fStack_1c = fStack_24; (*pcVar1)(&local_38,uVar3,local_bc); - FUN_00a14050(extraout_ECX_00); + shader_cache_find(extraout_ECX_00); return; } @@ -595901,7 +595901,7 @@ LAB_00827735: *(uint *)(iVar7 + 0x16c) = *(uint *)(iVar7 + 0x16c) | 0x100; *(undefined4 *)(iVar7 + 0x168) = *(undefined4 *)(iVar7 + 0x168); } - uVar3 = FUN_006eed30(); + uVar3 = Entity_Pickup::AssignOptionsIndex(); *(undefined4 *)(iVar7 + 0x528) = uVar3; *(float *)(param_1 + 0x33c) = fVar1 - local_10; *(float *)(param_1 + 0x340) = local_8 - local_14; @@ -596358,7 +596358,7 @@ void FUN_00828050(short *param_1) } if (0x7ffffffe < uVar3) { /* WARNING: Subroutine does not return */ - FUN_0040ccc0(); + std::string::_Xlen(); } local_8 = uVar3 | 7; if (local_8 < 0x7fffffff) { @@ -596728,7 +596728,7 @@ void FUN_008284d0(undefined4 param_1,undefined4 *param_2,undefined4 *param_3) } if (0x7ffffffe - uVar2 < uVar3) { /* WARNING: Subroutine does not return */ - FUN_0040ccc0(); + std::string::_Xlen(); } param_3 = (undefined4 *)(uVar1 | 7); if (param_3 < 0x7fffffff) { @@ -597613,10 +597613,10 @@ undefined4 * RoomConfigStage::GetDisplayName(undefined4 *param_1,uint param_2) } if (*pcVar3 == '#') { param_2 = param_2 & 0xffffff; - FUN_00a26af0("Stages",uVar4,pcVar3 + 1,(int)¶m_2 + 3); + StringTable::get_string("Stages",uVar4,pcVar3 + 1,(int)¶m_2 + 3); if (param_2._3_1_ == '\0') { param_2 = param_2 & 0xffffff; - pcVar3 = (char *)FUN_00a26af0("Stages",uVar4,pcVar3 + 1,(int)¶m_2 + 3); + pcVar3 = (char *)StringTable::get_string("Stages",uVar4,pcVar3 + 1,(int)¶m_2 + 3); } } } @@ -598936,7 +598936,7 @@ LAB_0082a493: memcpy(pvStack_30,(void *)0x0,((int)piVar15 / 0xc) * 0xc); uStack_2c = CONCAT31(uStack_2c._1_3_,(char)((int)piVar15 / 0xc)); if (local_88 == (undefined4 *)0x0) { - FUN_004b39b0(0,&local_34); + std::vector::_Emplace_reallocate(0,&local_34); } else { *local_88 = local_34; @@ -599167,7 +599167,7 @@ void RoomConfig::ReadRoom(uint param_1,int *param_2) else { uVar2 = (uint)local_1c[0]; if (puVar12[9] < uVar2) { - FUN_00414870(uVar2 - puVar12[9],0); + std::string::append_n(uVar2 - puVar12[9],0); } else { puVar7 = puVar3; @@ -599591,13 +599591,13 @@ LAB_0082b6d9: if (0x7fffffffU - local_74 < uVar4) { LAB_0082bd57: /* WARNING: Subroutine does not return */ - FUN_0040ccc0(); + std::string::_Xlen(); } ppppuVar9 = local_84; if (0xf < local_70) { ppppuVar9 = local_84[0]; } - FUN_00421680(in_ECX,uVar4,ppppuVar9,local_74,pcVar13,uVar4); + std::string::concat(in_ECX,uVar4,ppppuVar9,local_74,pcVar13,uVar4); std::string::_Tidy_deallocate(); uStack_10134 = local_54; uStack_10130 = uStack_50; @@ -599618,7 +599618,7 @@ LAB_0082bd57: if (0xf < local_58) { ppppuVar9 = local_6c[0]; } - FUN_00421680(in_ECX,uVar4,ppppuVar9,local_5c,pcVar13,uVar4); + std::string::concat(in_ECX,uVar4,ppppuVar9,local_5c,pcVar13,uVar4); std::string::_Tidy_deallocate(); uStack_10108 = local_54; uStack_10104 = uStack_50; @@ -599666,7 +599666,7 @@ LAB_0082b805: if (0xf < local_28) { ppppuVar9 = local_3c[0]; } - FUN_00421680(in_ECX,uVar4,ppppuVar9,local_2c,pcVar13,uVar4); + std::string::concat(in_ECX,uVar4,ppppuVar9,local_2c,pcVar13,uVar4); if (0xf < uStack_10168) { uVar14 = uStack_10168 + 1; uVar4 = uStack_1017c; @@ -599723,7 +599723,7 @@ LAB_0082b8eb: if (0xf < local_28) { ppppuVar9 = local_3c[0]; } - FUN_00421680(in_ECX,uVar4,ppppuVar9,local_2c,pcVar13,uVar4); + std::string::concat(in_ECX,uVar4,ppppuVar9,local_2c,pcVar13,uVar4); if (0xf < uStack_10150) { uVar14 = uStack_10150 + 1; uVar4 = uStack_10164; @@ -600298,12 +600298,12 @@ LAB_0082c165: return uVar17; } -//@@ 0082c310 FUN_0082c310 +//@@ 0082c310 Game::LoadMinibossesXml /* WARNING: Function: __alloca_probe replaced with injection: alloca_probe */ /* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */ -undefined4 FUN_0082c310(undefined4 param_1) +undefined4 Game::LoadMinibossesXml(undefined4 param_1) { byte bVar1; @@ -600477,9 +600477,9 @@ LAB_0082c4b5: } -//@@ 0082c600 FUN_0082c600 +//@@ 0082c600 Level::GetCurseNameByIdx -undefined4 * FUN_0082c600(undefined4 *param_1,uint param_2) +undefined4 * Level::GetCurseNameByIdx(undefined4 *param_1,uint param_2) { char cVar1; @@ -600503,10 +600503,10 @@ undefined4 * FUN_0082c600(undefined4 *param_1,uint param_2) uVar3 = *(undefined4 *)(DAT_00c7169c + 0x4a920); if (*pcVar5 == '#') { param_2 = param_2 & 0xffffff; - FUN_00a26af0("Curses",uVar3,pcVar5 + 1,(int)¶m_2 + 3); + StringTable::get_string("Curses",uVar3,pcVar5 + 1,(int)¶m_2 + 3); if (param_2._3_1_ == '\0') { param_2 = param_2 & 0xffffff; - pcVar5 = (char *)FUN_00a26af0("Curses",uVar3,pcVar5 + 1,(int)¶m_2 + 3); + pcVar5 = (char *)StringTable::get_string("Curses",uVar3,pcVar5 + 1,(int)¶m_2 + 3); } } } @@ -600705,7 +600705,7 @@ RoomConfig::GetRandomRoom local_30 = *ppiVar9; _Size = (int)ppiVar9[1] - (int)local_30; if ((int)_Size >> 2 != 0) { - FUN_006a0d30((int)_Size >> 2); + std::vector::reserve_clear((int)_Size >> 2); local_5c = local_60; local_40 = local_68; piVar13 = local_68; @@ -602893,9 +602893,9 @@ bool FUN_0082ee30(void) } -//@@ 0082ee40 FUN_0082ee40 +//@@ 0082ee40 log_room_transition -void FUN_0082ee40(undefined4 param_1,undefined4 param_2,undefined4 param_3) +void log_room_transition(undefined4 param_1,undefined4 param_2,undefined4 param_3) { void *local_1c; @@ -603156,7 +603156,7 @@ LAB_0082f7d9: Sprite::ReplaceSpritesheet(6,local_70 + 0xd); local_7c = (Game *)&DAT_00c71678->field_0x1baa8; local_64 = (ANM2 *)0x1; - iVar5 = FUN_009b9480(); + iVar5 = PlayerManager::count_main_players(); if (iVar5 != 0) { uVar3 = 0; do { @@ -603196,7 +603196,7 @@ LAB_0082f7d9: } uVar3 = uVar3 + 1; local_7c = (Game *)&DAT_00c71678->field_0x1baa8; - uVar6 = FUN_009b9480(); + uVar6 = PlayerManager::count_main_players(); } while (uVar3 < uVar6); pAVar19 = (ANM2 *)&pGVar1->field_0x38; } @@ -603206,7 +603206,7 @@ LAB_0082f7d9: local_6c = DAT_00c71678; local_64 = (ANM2 *)local_70; if (DAT_00c71678->_currentRoomIdx == -0x11) { - FUN_007523e0(&local_7c,&local_70); + Level::boss_count_adjust(&local_7c,&local_70); local_64 = (ANM2 *)local_70; } local_70 = (uint *******)local_64; @@ -603876,14 +603876,14 @@ LAB_0083077d: } ANM2::LoadGraphics(uVar20); if ((*(int *)&DAT_00c7169c->field_0x4b3d8 == *(int *)&DAT_00c7169c->field_0x4b3dc) || - (uVar3 = FUN_009b9480(), uVar3 < 2)) { + (uVar3 = PlayerManager::count_main_players(), uVar3 < 2)) { pcVar16 = "DoubleTrouble"; goto LAB_008308ce; } ANM2::Play(pAVar19,"DoubleTroubleCoop",1); } else if ((*(int *)&DAT_00c7169c->field_0x4b3d8 == *(int *)&DAT_00c7169c->field_0x4b3dc) || - (uVar3 = FUN_009b9480(), uVar3 < 2)) { + (uVar3 = PlayerManager::count_main_players(), uVar3 < 2)) { pcVar16 = "Scene"; LAB_008308ce: cVar2 = ANM2::SetAnimation(pcVar16,1); @@ -604179,7 +604179,7 @@ LAB_00830e96: pfVar14 = pfVar14 + 1; } while (pfVar14 != *(float **)&pGVar13->field_0x1baac); } - NpcAI::ENTITY_MASK((Entity_NPC *)((int)pGVar13->_room + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)((int)pGVar13->_room + 0x1218)); fVar11 = 0.0; if (local_60 != 0.0) { do { @@ -604264,7 +604264,7 @@ LAB_00831497: } while (uVar5 < (uint)(*(int *)&DAT_00c71678->field_0x1baac - *(int *)&DAT_00c71678->field_0x1baa8 >> 2)); } - NpcAI::ENTITY_MASK((Entity_NPC *)((int)DAT_00c71678->_room + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)((int)DAT_00c71678->_room + 0x1218)); fVar11 = 0.0; if (local_60 != 0.0) { do { @@ -604377,7 +604377,7 @@ LAB_00831497: pfVar14 = pfVar14 + 1; } while (pfVar14 != *(float **)&pGVar13->field_0x1baac); } - NpcAI::ENTITY_MASK((Entity_NPC *)((int)pGVar13->_room + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)((int)pGVar13->_room + 0x1218)); pGVar13 = DAT_00c71678; local_3c = 0.0; if (local_60 != 0.0) { @@ -604413,14 +604413,14 @@ LAB_00831497: LAB_0083162a: FUN_0080ea80(); local_5c = 0; - FUN_006856c0(&local_5c); - puVar10 = (undefined4 *)FUN_00684f30(); + std::vector::resize(&local_5c); + puVar10 = (undefined4 *)std::deque::back(); if ((byte *)(puVar10 + 1) != (byte *)0x0) { *(byte *)(puVar10 + 1) = (byte)(DAT_00c798e4 >> 5) & 1; } *puVar10 = DAT_00c79948; - FUN_00a18300(*(undefined4 *)&local_34->field_0x30,1); - FUN_00a18230(); + KAGE_Graphics::SetRenderTarget(*(undefined4 *)&local_34->field_0x30,1); + RenderTarget::Clear(); DAT_00c79904 = 1; DAT_00c79900 = 0; if ((DAT_00c798e4 & 4) == 0) { @@ -604430,13 +604430,13 @@ LAB_0083162a: DAT_00c7990c = 1; DAT_00c79910 = 7; Room::Render(); - FUN_00a19180(1); + _glfw_context_reset(1); if (DAT_00c79790 == 0) { /* WARNING: Subroutine does not return */ KAGE_LogMessage(0x10,"PopRenderTarget: stack is empty!\n"); } - puVar10 = (undefined4 *)FUN_00684f30(); - FUN_00a18300(*puVar10,*(undefined1 *)(puVar10 + 1)); + puVar10 = (undefined4 *)std::deque::back(); + KAGE_Graphics::SetRenderTarget(*puVar10,*(undefined1 *)(puVar10 + 1)); DAT_00c79790 = DAT_00c79790 + -1; if (DAT_00c79790 == 0) { DAT_00c7978c = 0; @@ -604532,11 +604532,11 @@ LAB_0083186b: } -//@@ 008318a0 FUN_008318a0 +//@@ 008318a0 Game::update_pending_pickup_animations /* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */ -void FUN_008318a0(void) +void Game::update_pending_pickup_animations(void) { float fVar1; @@ -604792,14 +604792,14 @@ LAB_00831dc6: } while (puVar17 != *(undefined4 **)(iVar6 + 0x1baac)); } FUN_0080ea80(); - FUN_006856c0(); - puVar17 = (undefined4 *)FUN_00684f30(); + std::vector::resize(); + puVar17 = (undefined4 *)std::deque::back(); if ((byte *)(puVar17 + 1) != (byte *)0x0) { *(byte *)(puVar17 + 1) = (byte)(DAT_00c798e4 >> 5) & 1; } *puVar17 = DAT_00c79948; - FUN_00a18300(in_ECX[10],1); - FUN_00a18230(); + KAGE_Graphics::SetRenderTarget(in_ECX[10],1); + RenderTarget::Clear(); DAT_00c79904 = 1; DAT_00c79900 = 0; if ((DAT_00c798e4 & 4) == 0) { @@ -604809,13 +604809,13 @@ LAB_00831dc6: DAT_00c7990c = 1; DAT_00c79910 = 7; Room::Render(); - FUN_00a19180(); + _glfw_context_reset(); if (DAT_00c79790 == 0) { /* WARNING: Subroutine does not return */ KAGE_LogMessage(0x10,"PopRenderTarget: stack is empty!\n"); } - puVar17 = (undefined4 *)FUN_00684f30(); - FUN_00a18300(*puVar17,*(undefined1 *)(puVar17 + 1)); + puVar17 = (undefined4 *)std::deque::back(); + KAGE_Graphics::SetRenderTarget(*puVar17,*(undefined1 *)(puVar17 + 1)); DAT_00c79790 = DAT_00c79790 + -1; if (DAT_00c79790 == 0) { DAT_00c7978c = 0; @@ -605098,7 +605098,7 @@ LAB_00832568: else { if (0x7fffffff < _Size) { /* WARNING: Subroutine does not return */ - FUN_0040ccc0(); + std::string::_Xlen(); } uVar23 = _Size | 0xf; if (uVar23 < 0x80000000) { @@ -605388,15 +605388,15 @@ void __thiscall Entity_Player::TriggerRoomExit(Entity_Player *this) local_160 = (1.0 - fVar8) * local_158; local_158 = -fVar8 * local_158; } - FUN_00a13510(1); + set_blend_mode(1); KColor::SetFromARGB(0xffffffff); local_150 = DAT_00c78dc4; local_14c = DAT_00c78edc; - FUN_00a10e70(&local_15c,&local_150,extraout_ECX); + render_quad_set_rect(&local_15c,&local_150,extraout_ECX); KColor::SetFromARGB(0xffffffff); local_15c = DAT_00c78dc4; local_158 = DAT_00c78edc; - FUN_00a10e70(&local_164,&local_15c,extraout_ECX_00); + render_quad_set_rect(&local_164,&local_15c,extraout_ECX_00); local_134 = fVar6 - fVar8; local_130 = 0; local_140 = 0x3f800000; @@ -605418,7 +605418,7 @@ void __thiscall Entity_Player::TriggerRoomExit(Entity_Player *this) DAT_00c79910 = 0; KColor::SetFromARGB(0xffffffff); fVar8 = DAT_00c78edc; - FUN_00a10d00(DAT_00c78edc,extraout_ECX_01); + render_quad_set_uniform_color(DAT_00c78edc,extraout_ECX_01); if (*(int *)this == 2) { piVar5 = (int *)this->_type; } @@ -605449,8 +605449,8 @@ LAB_00832ee2: local_130 = 0; FUN_008327e0(); local_134 = 1.0 - fVar8; - uVar4 = FUN_00a10d00(DAT_00c78edc,&local_140); - FUN_00a1dfd0(uVar4); + uVar4 = render_quad_set_uniform_color(DAT_00c78edc,&local_140); + render_color_shader_pass(uVar4); return; } @@ -605755,9 +605755,9 @@ undefined4 * FUN_008332e0(void) } -//@@ 00833420 FUN_00833420 +//@@ 00833420 Ambush::StartChallenge -void FUN_00833420(void) +void Ambush::StartChallenge(void) { int iVar1; @@ -606070,7 +606070,7 @@ LAB_00833b32: iStack_44 = local_38; local_50 = iVar6; if (local_7c == local_6c) { - FUN_004b39b0(local_7c,&local_50); + std::vector::_Emplace_reallocate(local_7c,&local_50); local_6c = local_78; } else { @@ -606181,7 +606181,7 @@ void __thiscall Ambush::SpawnBossrushWave(Ambush *this) if (iVar7 / 0xc + iVar8 == iVar8) break; FUN_00835160(local_40,*(undefined4 *)(*(int *)&this->field_0x10 + -0xc), *(undefined4 *)(*(int *)&this->field_0x10 + -8),local_38); - FUN_0069dac0(); + std::vector<12byte>::_Tidy(); *(int *)&this->field_0x10 = *(int *)&this->field_0x10 + -0xc; iVar9 = iVar9 + 1; } while (iVar9 < this->bossesPerWave); @@ -606563,7 +606563,7 @@ void FUN_00834680(undefined4 param_1) iVar13 = *in_ECX; if (iVar13 != iVar6) { do { - FUN_0069dac0(); + std::vector<12byte>::_Tidy(); iVar13 = iVar13 + 0xc; } while (iVar13 != iVar6); iVar13 = *in_ECX; @@ -607031,7 +607031,7 @@ int FUN_00834dc0(int param_1,undefined4 param_2) iVar4 = in_ECX[1]; if (iVar7 != iVar4) { do { - FUN_0069dac0(); + std::vector<12byte>::_Tidy(); iVar7 = iVar7 + 0xc; } while (iVar7 != iVar4); iVar7 = *in_ECX; @@ -607285,7 +607285,7 @@ void FUN_00835300(int param_1,int param_2) iVar1 = in_ECX[1]; iVar5 = iVar5 + uVar2 * 0xc; for (iVar6 = iVar5; iVar6 != iVar1; iVar6 = iVar6 + 0xc) { - FUN_0069dac0(); + std::vector<12byte>::_Tidy(); } in_ECX[1] = iVar5; ExceptionList = local_10; @@ -607309,7 +607309,7 @@ void FUN_00835300(int param_1,int param_2) if (iVar5 != 0) { if (iVar5 != iVar1) { do { - FUN_0069dac0(); + std::vector<12byte>::_Tidy(); iVar5 = iVar5 + 0xc; } while (iVar5 != iVar1); iVar5 = *in_ECX; @@ -607390,7 +607390,7 @@ void FUN_00835550(void) iVar1 = in_ECX[1]; for (iVar2 = *in_ECX; iVar2 != iVar1; iVar2 = iVar2 + 0xc) { - FUN_0069dac0(); + std::vector<12byte>::_Tidy(); } return; } @@ -609966,8 +609966,8 @@ void __thiscall GenericPrompt::Render(GenericPrompt *this) local_8 = CONCAT31(local_8._1_3_,2); FUN_00a1c7d0(uVar3,local_28,local_18,local_60,uStack_5c,uStack_58,uStack_54,local_50, &local_7c); - FUN_00a55d60(); - FUN_0069dac0(); + std::vector<12byte>::clear(); + std::vector<12byte>::_Tidy(); fVar9 = pfVar1[5]; fVar7 = local_20 + fVar9 * 13.0; local_20 = fVar7; @@ -610164,9 +610164,9 @@ LAB_008381d5: } -//@@ 00838210 FUN_00838210 +//@@ 00838210 is_screen_transition_active -undefined1 FUN_00838210(void) +undefined1 is_screen_transition_active(void) { int in_ECX; @@ -610270,11 +610270,11 @@ void FUN_00838230(int param_1,undefined4 param_2,int param_3,undefined4 param_4, } -//@@ 00838380 FUN_00838380 +//@@ 00838380 VictoryRunPrompt::Load /* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */ -void FUN_00838380(void) +void VictoryRunPrompt::Load(void) { uint uVar1; @@ -611591,7 +611591,7 @@ void FUN_0083a1b0(void) KColor::SetFromARGB(0xffffffff); local_18 = DAT_00c78dc4; local_14 = DAT_00c78edc; - FUN_00a10e70(&DAT_00c7b640,&local_18,extraout_ECX); + render_quad_set_rect(&DAT_00c7b640,&local_18,extraout_ECX); local_20 = DAT_00c5d170 - local_2c; local_18 = DAT_00c78dc4; local_14 = DAT_00c78edc; @@ -611714,7 +611714,7 @@ void FUN_0083a3d0(int param_1) local_24 = uVar3; puVar12 = (undefined1 *)((int)register0x00000010 + -4); if (param_1 == 0) { - FUN_00a13510(0); + set_blend_mode(0); local_38 = 1.0 - *(float *)(iVar5 + 0x2651c) * *(float *)(iVar5 + 0x26518); local_28 = param_1; iStack_34 = param_1; @@ -611722,8 +611722,8 @@ void FUN_0083a3d0(int param_1) uStack_2c = 0x3f800000; local_80 = DAT_00c78dc4; local_7c = (int *)DAT_00c78edc; - FUN_00a10e70(&DAT_00c7b640,&local_80,&local_38); - FUN_00a1dfd0(local_160); + render_quad_set_rect(&DAT_00c7b640,&local_80,&local_38); + render_color_shader_pass(local_160); puVar12 = puStack_20; } puStack_20 = puVar12; @@ -611792,7 +611792,7 @@ void FUN_0083a3d0(int param_1) if (fVar10 < DAT_00c78edc) { if ((iVar5 == 9) || (iVar5 == 0xb)) { KColor::SetFromARGB(0xffffffff); - FUN_00a10d00(fVar10 + *(float *)(iVar4 + 0xc),extraout_ECX_03); + render_quad_set_uniform_color(fVar10 + *(float *)(iVar4 + 0xc),extraout_ECX_03); fStack_5c = *(float *)(iVar4 + 4); local_4c = fStack_5c + *(float *)(iVar4 + 0xc); LAB_0083a963: @@ -611817,7 +611817,7 @@ LAB_0083a963: if ((iVar5 == 10) || (iVar5 == 0xc)) { fVar8 = DAT_00c78edc; KColor::SetFromARGB(0xffffffff); - FUN_00a10d00(fVar8,extraout_ECX_02); + render_quad_set_uniform_color(fVar8,extraout_ECX_02); local_4c = DAT_00c78edc - fVar10; fStack_5c = 0.0; goto LAB_0083a963; @@ -611825,7 +611825,7 @@ LAB_0083a963: if (iVar5 == 0xd) { fVar8 = DAT_00c78edc; KColor::SetFromARGB(0xffffffff); - FUN_00a10d00(fVar8,extraout_ECX); + render_quad_set_uniform_color(fVar8,extraout_ECX); local_4c = DAT_00c78edc - fVar10; fStack_5c = 292.0; goto LAB_0083a963; @@ -611833,14 +611833,14 @@ LAB_0083a963: if ((iVar5 == 0) || (iVar5 == 3)) { fVar8 = DAT_00c78edc; KColor::SetFromARGB(0xffffffff); - FUN_00a10d00(fVar8,extraout_ECX_01); + render_quad_set_uniform_color(fVar8,extraout_ECX_01); local_4c = DAT_00c78edc - fVar10; fStack_5c = 69.0; goto LAB_0083a963; } fVar8 = DAT_00c78edc; KColor::SetFromARGB(0xffffffff); - FUN_00a10d00(fVar8,extraout_ECX_00); + render_quad_set_uniform_color(fVar8,extraout_ECX_00); pfVar13 = &local_c8; local_d8 = DAT_00c78edc - fVar10; local_cc = 1; @@ -612109,8 +612109,8 @@ void FUN_0083ac20(float *param_1,byte param_2) } local_28c = (float)iVar10 * (float)local_2ac; local_2a0 = (int *)(local_2b0 + 32.0); - FUN_00a10e70(&local_2a0); - FUN_00a1dfd0(); + render_quad_set_rect(&local_2a0); + render_color_shader_pass(); } } local_2a0 = (int *)(in_ECX + 0xc); @@ -612209,7 +612209,7 @@ LAB_0083aeee: local_23c = fVar13; local_238 = fVar12; } - puVar9 = (undefined4 *)FUN_00a10e70(pfVar8); + puVar9 = (undefined4 *)render_quad_set_rect(pfVar8); puVar3 = local_2a4; puVar11 = local_200; for (iVar10 = 0x1c; iVar10 != 0; iVar10 = iVar10 + -1) { @@ -612267,7 +612267,7 @@ LAB_0083b1fb: local_2a0 = local_2a0 + 5; local_284 = local_284 + 1; } while (local_284 < 2); - FUN_00a14050(); + shader_cache_find(); } return; } @@ -615491,7 +615491,7 @@ void PlayerHUD::RenderHearts(float *param_1,float *param_2,code *param_3,int par local_64 = 0x3f800000; local_60 = 0x3f800000; local_5c = fVar26; - FUN_004476a0(&local_68); + Color::Color(&local_68); Sprite::SetColor(extraout_ECX_00); local_138 = local_184 + 16.0; local_134 = (int *)(local_180 + 24.0); @@ -615539,7 +615539,7 @@ void PlayerHUD::RenderHearts(float *param_1,float *param_2,code *param_3,int par KColor::SetFromARGB(0xffffffff); local_150 = (float *)&DAT_42000000; local_14c = (float *)&DAT_42000000; - uVar27 = FUN_00a10e70(&local_184,&local_150,extraout_ECX); + uVar27 = render_quad_set_rect(&local_184,&local_150,extraout_ECX); (*pcVar5)(&local_90,uVar27,&local_68); in_ECX = local_134; } @@ -615565,7 +615565,7 @@ void PlayerHUD::RenderHearts(float *param_1,float *param_2,code *param_3,int par local_64 = 0x3f800000; local_60 = 0x3f800000; local_5c = fStack_164; - FUN_004476a0(&local_68); + Color::Color(&local_68); Sprite::SetColor(extraout_ECX_01); ANM2::Render((ANM2 *)(in_ECX + 0x49),&local_138,&DAT_00c7b640,&DAT_00c7b640); piVar13 = (int *)in_ECX[1]; @@ -615597,7 +615597,7 @@ void PlayerHUD::RenderHearts(float *param_1,float *param_2,code *param_3,int par else if (*piVar13 == 2) { pfVar8 = &local_184; iVar11 = local_12c; - uVar27 = FUN_009586f0(DAT_00c7169c + 0x4a920,"#ITEM_INFO_UNIDENTIFIED_PILL"); + uVar27 = string_table_translate(DAT_00c7169c + 0x4a920,"#ITEM_INFO_UNIDENTIFIED_PILL"); (*local_13c)(uVar27,pfVar8,iVar11); } else if (*piVar13 == 3) { @@ -615608,25 +615608,25 @@ LAB_0083f0a0: LAB_0083f0b2: pfVar8 = &local_184; iVar11 = local_12c; - uVar27 = FUN_009586f0(DAT_00c7169c + 0x4a920,pcVar16); + uVar27 = string_table_translate(DAT_00c7169c + 0x4a920,pcVar16); (*local_13c)(uVar27,pfVar8,iVar11); } else if (iVar11 < 0x20) { pfVar8 = &local_184; iVar11 = local_12c; - uVar27 = FUN_009586f0(DAT_00c7169c + 0x4a920,"#ITEM_INFO_UNIDENTIFIED_PLAYING_CARD"); + uVar27 = string_table_translate(DAT_00c7169c + 0x4a920,"#ITEM_INFO_UNIDENTIFIED_PLAYING_CARD"); (*local_13c)(uVar27,pfVar8,iVar11); } else if (iVar11 < 0x2a) { pfVar8 = &local_184; iVar11 = local_12c; - uVar27 = FUN_009586f0(DAT_00c7169c + 0x4a920,"#ITEM_INFO_UNIDENTIFIED_RUNE"); + uVar27 = string_table_translate(DAT_00c7169c + 0x4a920,"#ITEM_INFO_UNIDENTIFIED_RUNE"); (*local_13c)(uVar27,pfVar8,iVar11); } else if (iVar11 < 0x37) { pfVar8 = &local_184; iVar11 = local_12c; - uVar27 = FUN_009586f0(DAT_00c7169c + 0x4a920,"#ITEM_INFO_UNIDENTIFIED_CARD"); + uVar27 = string_table_translate(DAT_00c7169c + 0x4a920,"#ITEM_INFO_UNIDENTIFIED_CARD"); (*local_13c)(uVar27,pfVar8,iVar11); } else { @@ -615730,7 +615730,7 @@ LAB_0083f460: if (0xf < local_130[9]) { puVar15 = (uint *)*puVar15; } - pcVar12 = (char *)FUN_009586f0(DAT_00c7169c + 0x4a920,puVar15); + pcVar12 = (char *)string_table_translate(DAT_00c7169c + 0x4a920,puVar15); local_5c = 0.0; local_58 = 0xf; local_6c = 0; @@ -616894,7 +616894,7 @@ void FUN_00840e10(float param_1,undefined4 param_2) local_10 = ((*(float *)(in_ECX + 0x10) + pfVar5[1]) - fVar2 * 9.0) + *(float *)(DAT_00c71678 + 0x26510); KColor::SetFromARGB(0xffffffff); - FUN_00a10e70(&local_14,&local_c,extraout_ECX); + render_quad_set_rect(&local_14,&local_c,extraout_ECX); (**(code **)(**(int **)(in_ECX + 0x18) + 0x1c))(local_9c,&DAT_00c37944); } } @@ -617031,14 +617031,14 @@ void __thiscall HUD_Message::UpdateTextImage(HUD_Message *this) local_14 = DAT_00c7169c + 0x4ae28; } local_1c = 0; - FUN_006856c0(&local_1c); - puVar5 = (undefined4 *)FUN_00684f30(uVar4); + std::vector::resize(&local_1c); + puVar5 = (undefined4 *)std::deque::back(uVar4); if ((byte *)(puVar5 + 1) != (byte *)0x0) { *(byte *)(puVar5 + 1) = (byte)(DAT_00c798e4 >> 5) & 1; } *puVar5 = DAT_00c79948; - FUN_00a18300(*(undefined4 *)&this->field_0x18,0); - FUN_00a18230(); + KAGE_Graphics::SetRenderTarget(*(undefined4 *)&this->field_0x18,0); + RenderTarget::Clear(); DAT_00c79900 = 0; DAT_00c79904 = 1; DAT_00c79908 = 7; @@ -617103,8 +617103,8 @@ void __thiscall HUD_Message::UpdateTextImage(HUD_Message *this) local_8 = 0xffffffff; } } - FUN_00a19180(1); - FUN_006836c0(); + _glfw_context_reset(1); + pop_render_target(); ExceptionList = local_10; return; } @@ -617337,7 +617337,7 @@ LAB_00841942: case (int **)0x4: pppiStack_188 = (int ***)(*(int *)(DAT_00c71678 + 0x18300) + 0x1bc8); local_18c = (int ***)0x84180c; - FUN_0041c770(); + shared_ptr::assign(); pppiStack_188 = (int ***)local_7c; local_14._0_1_ = 9; local_18c = (int ***)0x84181c; @@ -617356,7 +617356,7 @@ LAB_00841942: case (int **)0x5: pppiStack_188 = (int ***)(*(int *)(DAT_00c71678 + 0x18300) + 0x1bd0); local_18c = (int ***)0x841868; - FUN_0041c770(); + shared_ptr::assign(); pppiStack_188 = (int ***)local_84; local_14._0_1_ = 0xb; local_18c = (int ***)0x841878; @@ -617436,7 +617436,7 @@ LAB_00841942: local_dc = local_ec; local_d4 = local_e4; local_d0 = local_d8; - FUN_00a10e70(&local_94); + render_quad_set_rect(&local_94); if (local_5c == (int **)&DAT_00000007) { if (*(char *)(DAT_00c7169c + 0x2a3c2) == '\0') { if ((local_14c + local_138 + local_124 + local_110) * 0.25 != 0.0) { @@ -617463,9 +617463,9 @@ LAB_00841942: } local_54 = (int ***)0x3f800000; DAT_00c379b8 = (undefined *)pppiStack_188; - FUN_00a14c00("Exposure",8); + Shader::set_uniform("Exposure",8); local_18c = (int ***)&local_54; - FUN_00a14c00("Gamma",8); + Shader::set_uniform("Gamma",8); } else { puVar6 = &DAT_00c79118; @@ -617552,9 +617552,9 @@ LAB_00841bda: local_18c = (int ***)param_4[4]; FUN_00a1c7d0(uVar3,0x3f800000,0x3f800000,*param_4,param_4[1],param_4[2],param_4[3]); pppiStack_188 = (int ***)0x8415eb; - FUN_00a55d60(); + std::vector<12byte>::clear(); pppiStack_188 = (int ***)0x8415f6; - FUN_0069dac0(); + std::vector<12byte>::_Tidy(); } local_14 = (int *)0xffffffff; iVar2 = (int)local_6c[0] >> 0x1f; @@ -619022,7 +619022,7 @@ LAB_00843a3c: if (iVar11 != 0) { uVar16 = Level::GetCurses(); if ((uVar16 & 0x40) == 0) { - uVar6 = FUN_0040d0c0(); + uVar6 = std::string::c_str(); uVar6 = Manager::LoadImage(local_143c,uVar6); local_14 = 0x27; FUN_0040c3b0(uVar6); @@ -619314,7 +619314,7 @@ LAB_00844077: local_c0 = fVar21 + 45.0; local_e4 = fVar21 - fVar17; local_bc = local_e0; - FUN_00a1d710(&local_e4,&local_c0,extraout_ECX_03,extraout_ECX_03,0x3f800000); + render_color_quad(&local_e4,&local_c0,extraout_ECX_03,extraout_ECX_03,0x3f800000); } local_9f = '\x01'; } @@ -619681,7 +619681,7 @@ LAB_00844877: else { uVar22 = 0xff; } - uVar22 = FUN_00456240(0xff,0xff,0xff,uVar22,0,0,0); + uVar22 = ColorParams::set_from_bytes(0xff,0xff,0xff,uVar22,0,0,0); Sprite::SetColor(uVar22); local_b8 = 0x17; do { @@ -619806,7 +619806,7 @@ LAB_00844877: local_bc = local_c8 + param_4 * -4.0; ANM2::Render(pAVar16,&local_c0,&DAT_00c7b640,&DAT_00c7b640); KColor::SetFromARGB(0xffffffff); - uVar22 = FUN_004476a0(extraout_ECX_06); + uVar22 = Color::Color(extraout_ECX_06); Sprite::SetColor(uVar22); } if (local_38 != (char *)0x0) { @@ -619866,7 +619866,7 @@ LAB_00845023: uVar22 = FontSettings::constructor(); local_14 = 3; KColor::SetFromARGB(0xffffffff); - FUN_00a1af90(&local_90,extraout_ECX_07,uVar22); + Font::DrawString(&local_90,extraout_ECX_07,uVar22); } else { fVar18 = param_4; @@ -620174,7 +620174,7 @@ LAB_008457b5: } else { iVar5 = FUN_00791380(); - iVar4 = FUN_007910f0(); + iVar4 = Entity_Player::GetTotalActiveCharge(); if ((iVar4 < iVar5) || (local_6d = '\x01', param_5 < 1.0)) goto LAB_008457b5; } if ((int)local_c4 < 0x281) { @@ -620373,7 +620373,7 @@ LAB_00845b82: local_b4 = (ANM2 *)(local_7c + local_d0 + local_d0 + local_cc); local_108 = local_118; local_104 = local_118; - pfVar8 = (float *)FUN_00a10e70(&local_b8,&local_108,extraout_ECX_00); + pfVar8 = (float *)render_quad_set_rect(&local_b8,&local_108,extraout_ECX_00); iVar5 = local_a4; pfVar12 = local_198; for (iVar4 = 0x1c; iVar4 != 0; iVar4 = iVar4 + -1) { @@ -620473,7 +620473,7 @@ LAB_00845b82: uVar23 = CONCAT44(extraout_ECX_03,&local_124); local_98 = (local_ac - (float)pAVar11 * local_d0) + local_c8; local_94 = (local_7c - (float)puVar19 * local_d0) + local_cc; - pfVar8 = (float *)FUN_00a10e70(&local_98,&local_124,extraout_ECX_03); + pfVar8 = (float *)render_quad_set_rect(&local_98,&local_124,extraout_ECX_03); pfVar12 = local_198; for (iVar5 = 0x1c; iVar5 != 0; iVar5 = iVar5 + -1) { *pfVar12 = *pfVar8; @@ -620552,7 +620552,7 @@ LAB_008463d3: local_124 = local_c8 + local_ac; uVar23 = CONCAT44(extraout_ECX_05,&local_98); local_120 = local_cc + local_7c; - pfVar8 = (float *)FUN_00a10e70(&local_124,&local_98,extraout_ECX_05); + pfVar8 = (float *)render_quad_set_rect(&local_124,&local_98,extraout_ECX_05); pfVar12 = local_198; for (iVar5 = 0x1c; iVar5 != 0; iVar5 = iVar5 + -1) { *pfVar12 = *pfVar8; @@ -620861,7 +620861,7 @@ LAB_0084692a: *(float *)&pAVar11->field_0xb4 = param_5; ANM2::Render(pAVar11,&local_78,&DAT_00c7b640,&DAT_00c7b640); LAB_00846e5f: - FUN_00a14050(); + shader_cache_find(); return; } @@ -620958,7 +620958,7 @@ LAB_0084717a: FUN_0084bab0(&local_40,&local_38,iVar2); in_ECX = extraout_ECX; LAB_008471a0: - FUN_00a14050(in_ECX); + shader_cache_find(in_ECX); return; } @@ -621317,7 +621317,7 @@ LAB_008475da: piVar12 = in_ECX; if (cVar4 == '\0') { LAB_00847abc: - pppppcVar9 = (char *****)FUN_00724af0(local_128,0x14); + pppppcVar9 = (char *****)PocketItemConfig::GetName(local_128,0x14); in_ECX = piVar12; if (&local_110 != (char ******)pppppcVar9) { if (0xf < local_100._4_4_) { @@ -621402,11 +621402,11 @@ LAB_00848147: } if ((&local_18c[1].field_0x3c)[uVar5] == '\0') { local_16d = '\0'; - FUN_00a26af0("PocketItems",*(undefined4 *)(DAT_00c7169c + 0x4a920),"QUESTION_MARKS_NAME", + StringTable::get_string("PocketItems",*(undefined4 *)(DAT_00c7169c + 0x4a920),"QUESTION_MARKS_NAME", &local_16d); if (local_16d == '\0') { local_16e = '\0'; - pcVar10 = (char *)FUN_00a26af0("PocketItems",*(undefined4 *)(iVar7 + 0x4a920), + pcVar10 = (char *)StringTable::get_string("PocketItems",*(undefined4 *)(iVar7 + 0x4a920), "QUESTION_MARKS_NAME",&local_16e); } else { @@ -621423,7 +621423,7 @@ LAB_00848147: iVar8 = ItemPool::GetPillEffect(local_18c,uVar6,local_178); if (((-1 < iVar8) && (iVar8 < *(int *)(iVar7 + 0x2a438) - *(int *)(iVar7 + 0x2a434) >> 2)) && (*(int *)(*(int *)(iVar7 + 0x2a434) + iVar8 * 4) != 0)) { - pppppcVar9 = (char *****)FUN_00724af0(local_128,0x14); + pppppcVar9 = (char *****)PocketItemConfig::GetName(local_128,0x14); if (&local_110 != (char ******)pppppcVar9) { if (0xf < local_100._4_4_) { uVar5 = local_100._4_4_ + 1; @@ -621602,11 +621602,11 @@ LAB_0084814e: LAB_00848202: iVar8 = DAT_00c7169c; local_16e = '\0'; - FUN_00a26af0("PocketItems",*(undefined4 *)(DAT_00c7169c + 0x4a920),"QUESTION_MARKS_NAME", + StringTable::get_string("PocketItems",*(undefined4 *)(DAT_00c7169c + 0x4a920),"QUESTION_MARKS_NAME", &local_16e); if (local_16e == '\0') { local_16e = '\0'; - pcVar10 = (char *)FUN_00a26af0("PocketItems",*(undefined4 *)(iVar8 + 0x4a920), + pcVar10 = (char *)StringTable::get_string("PocketItems",*(undefined4 *)(iVar8 + 0x4a920), "QUESTION_MARKS_NAME",&local_16e); } else { @@ -621756,7 +621756,7 @@ LAB_00848726: cVar4 = Game::IsInTimedSet(9); if (cVar4 != '\0') { std::string::string(&local_110); - pppppcVar9 = (char *****)FUN_00682b90(); + pppppcVar9 = (char *****)string_scramble_seeded(); if (&local_110 != (char ******)pppppcVar9) { if (0xf < local_100._4_4_) { uVar5 = local_100._4_4_ + 1; @@ -622067,7 +622067,7 @@ void FUN_00848d20(float *param_1) local_d0 = local_d8; local_ac = local_b0; local_6c = (int *)local_b0; - FUN_00a10e70(&local_b8); + render_quad_set_rect(&local_b8); local_7c = *(undefined4 *)(*(int *)(in_ECX + 0x6a0) + (int)fVar6 * 0xc); local_1f8 = (float *)0x0; local_1f4 = (int *)0x0; @@ -622105,7 +622105,7 @@ void FUN_00848d20(float *param_1) local_c4 = local_74 + *(float *)(DAT_00c71678 + 0x26510); local_1f4 = &local_100; local_1f8 = &local_c0; - pfVar2 = (float *)FUN_00a10e70(&local_c8); + pfVar2 = (float *)render_quad_set_rect(&local_c8); pfVar5 = local_170; for (iVar3 = 0x1c; in_ECX = local_9c, iVar3 != 0; iVar3 = iVar3 + -1) { *pfVar5 = *pfVar2; @@ -622261,7 +622261,7 @@ LAB_0084949f: if ((int)local_a0 <= (int)local_68) { local_1f4 = (int *)local_a8; local_1f8 = (float *)0x8494fa; - FUN_00a14050(); + shader_cache_find(); return; } } while( true ); @@ -622521,7 +622521,7 @@ LAB_0084959e: local_78 = (undefined1 *)((float)local_6c * (float)puVar23); local_74 = local_78; local_6c = local_78; - FUN_00a10e70(&local_8c,&local_78,extraout_ECX_05); + render_quad_set_rect(&local_8c,&local_78,extraout_ECX_05); pAVar12 = local_7c; KAGE::SmartPointer::operator_assign(local_7c); FUN_00848c20(local_160,&local_38); @@ -622539,7 +622539,7 @@ LAB_0084959e: KColor::SetFromARGB(0xffffffff); local_78 = local_6c; local_74 = local_6c; - pfVar8 = (float *)FUN_00a10e70(&local_8c,&local_78,extraout_ECX_06); + pfVar8 = (float *)render_quad_set_rect(&local_8c,&local_78,extraout_ECX_06); pfVar15 = local_160; for (iVar7 = 0x1c; piVar14 = local_94, iVar7 != 0; iVar7 = iVar7 + -1) { *pfVar15 = *pfVar8; @@ -622635,7 +622635,7 @@ LAB_0084959e: local_dc = (float)puVar22 * (float)puVar23 * 0.5; local_d8 = local_dc; local_9c = local_dc; - FUN_00a10e70(&local_e4,&local_dc,extraout_ECX_00); + render_quad_set_rect(&local_e4,&local_dc,extraout_ECX_00); KAGE::SmartPointer::operator_assign(iVar13); FUN_00848c20(local_160,&local_64); local_38 = 0x3f800000; @@ -622652,7 +622652,7 @@ LAB_0084959e: KColor::SetFromARGB(0xffffffff); local_ec = local_9c; local_e8 = local_9c; - pfVar8 = (float *)FUN_00a10e70(&local_78,&local_ec,extraout_ECX_01); + pfVar8 = (float *)render_quad_set_rect(&local_78,&local_ec,extraout_ECX_01); pfVar15 = local_160; for (iVar7 = 0x1c; in_ECX = local_94, iVar7 != 0; iVar7 = iVar7 + -1) { *pfVar15 = *pfVar8; @@ -622814,7 +622814,7 @@ LAB_0084959e: uVar25 = extraout_ECX_12; local_78 = (undefined1 *)local_7c; local_74 = (undefined1 *)local_7c; - FUN_00a10e70(&local_8c,ppuVar24,extraout_ECX_12); + render_quad_set_rect(&local_8c,ppuVar24,extraout_ECX_12); piVar14 = local_70; KAGE::SmartPointer::operator_assign(local_70); apply_sprite_shader_params(1,ppuVar24,uVar25); @@ -622828,7 +622828,7 @@ LAB_0084959e: ppuVar24 = &local_78; local_78 = (undefined1 *)local_7c; local_74 = (undefined1 *)local_7c; - pfVar8 = (float *)FUN_00a10e70(&local_8c,ppuVar24,extraout_ECX_13); + pfVar8 = (float *)render_quad_set_rect(&local_8c,ppuVar24,extraout_ECX_13); pfVar15 = local_160; for (iVar7 = 0x1c; iVar7 != 0; iVar7 = iVar7 + -1) { *pfVar15 = *pfVar8; @@ -622926,7 +622926,7 @@ LAB_0084959e: } while (uVar11 < 8); } LAB_0084a3b9: - FUN_00a14050(uVar11); + shader_cache_find(uVar11); return; } @@ -623184,7 +623184,7 @@ bool FUN_0084a920(int *param_1,undefined4 param_2,float param_3,undefined4 param KColor::SetFromARGB(0xffffffff); param_1 = (int *)(float)((double)param_6 + (double)(&DAT_00bacb00)[-(param_6 >> 0x1f)]); param_3 = (float)((double)(int)param_3 + (double)(&DAT_00bacb00)[-((int)param_3 >> 0x1f)]); - FUN_00a10d00(in_ECX[1] + (float)param_1,extraout_ECX); + render_quad_set_uniform_color(in_ECX[1] + (float)param_1,extraout_ECX); (**(code **)(*param_7 + 0x14))(param_2,local_9c,&DAT_00c37944); fVar7 = local_14 - param_3; *in_ECX = param_3 + *in_ECX; @@ -623192,14 +623192,14 @@ LAB_0084aa92: if (param_3 < fVar7) { fVar7 = (float)param_1; KColor::SetFromARGB(0xffffffff); - FUN_00a10d00(in_ECX[1] + fVar7,extraout_ECX_00); + render_quad_set_uniform_color(in_ECX[1] + fVar7,extraout_ECX_00); (**(code **)(*param_7 + 0x14))(param_4,local_9c,&DAT_00c37944); *in_ECX = (local_94 - local_9c[0]) + *in_ECX; fVar7 = param_3; } if (0.0 < fVar7) { KColor::SetFromARGB(0xffffffff); - FUN_00a10d00(in_ECX[1] + (float)param_1,extraout_ECX_01); + render_quad_set_uniform_color(in_ECX[1] + (float)param_1,extraout_ECX_01); (**(code **)(*param_7 + 0x14))(param_2,local_9c,&DAT_00c37944); *in_ECX = param_3 + *in_ECX; } @@ -623720,7 +623720,7 @@ switchD_0084b1ed_default: uStack_34 = 0x3f800000; uStack_30 = 0x3f800000; local_2c = 0; - FUN_00a10d00(); + render_quad_set_uniform_color(); (**(code **)(*(int *)*local_70 + 0x14))(&DAT_00c5d22c); pfVar11 = pfVar11 + 2; } while (pfVar11 != pfVar6); @@ -623748,7 +623748,7 @@ switchD_0084b1ed_default: uStack_34 = 0x3f800000; uStack_30 = 0x3f800000; local_2c = 0; - FUN_00a10d00((float)((double)DAT_00c82770 + (double)(&DAT_00bacb00)[-(DAT_00c82770 >> 0x1f)] + render_quad_set_uniform_color((float)((double)DAT_00c82770 + (double)(&DAT_00bacb00)[-(DAT_00c82770 >> 0x1f)] ) + *(float *)(local_6c + 4 + local_28),&local_3c); pfVar6 = local_70; (**(code **)(*(int *)*local_70 + 0x14))(&DAT_00c5d1e4,local_178,&DAT_00c37944); @@ -623873,7 +623873,7 @@ void FUN_0084bab0(undefined4 param_1,undefined4 *param_2,int param_3) pfVar2 = &local_24; uVar3 = extraout_ECX; local_20 = local_24; - FUN_00a10e70(param_1,pfVar2,extraout_ECX); + render_quad_set_rect(param_1,pfVar2,extraout_ECX); KAGE::SmartPointer::operator_assign(in_ECX + 2); apply_sprite_shader_params(1,pfVar2,uVar3); local_1c = *param_2; @@ -624511,8 +624511,8 @@ LAB_0084c717: local_8 = CONCAT31(local_8._1_3_,1); FUN_00a1bd80(uVar6,0x3f800000,0x3f800000,0x3f800000,local_48,local_4c,0x3f000000,0, &local_80); - FUN_00a55d60(); - FUN_0069dac0(); + std::vector<12byte>::clear(); + std::vector<12byte>::_Tidy(); pcVar7 = local_30; local_8 = 0xffffffff; do { @@ -624548,7 +624548,7 @@ LAB_0084c717: local_98 = 0; local_94 = 0; local_8 = 2; - FUN_00a1af90(local_30,&local_78,&local_ac); + Font::DrawString(local_30,&local_78,&local_ac); } local_8 = 0xffffffff; auVar12 = ZEXT416((uint)local_54); @@ -630053,7 +630053,7 @@ LAB_0085325d: FUN_00856120(&local_1d8); } else { - puVar7 = (undefined4 *)FUN_00724af0(local_3c,0x14); + puVar7 = (undefined4 *)PocketItemConfig::GetName(local_3c,0x14); if (puVar6 + 2 != puVar7) { std::string::_Tidy_deallocate(); uVar5 = puVar7[1]; @@ -631425,7 +631425,7 @@ LAB_00854a1d: FUN_00856120(&local_1d8); } else { - puVar7 = (undefined4 *)FUN_00724af0(local_3c,0x14); + puVar7 = (undefined4 *)PocketItemConfig::GetName(local_3c,0x14); if (puVar6 + 2 != puVar7) { std::string::_Tidy_deallocate(); uVar5 = puVar7[1]; @@ -633167,17 +633167,17 @@ void FUN_008568a0(int param_1) ExceptionList = &local_10; std::string::string(param_1); local_8 = 0; - FUN_0043eca0(param_1 + 0x18); + std::vector::copy_constructor(param_1 + 0x18); local_8._0_1_ = 1; - FUN_0043eca0(param_1 + 0x24); + std::vector::copy_constructor(param_1 + 0x24); local_8._0_1_ = 2; - FUN_0043eca0(param_1 + 0x30); + std::vector::copy_constructor(param_1 + 0x30); local_8._0_1_ = 3; - FUN_0043eca0(param_1 + 0x3c); + std::vector::copy_constructor(param_1 + 0x3c); local_8._0_1_ = 4; - FUN_0043eca0(param_1 + 0x48); + std::vector::copy_constructor(param_1 + 0x48); local_8 = CONCAT31(local_8._1_3_,5); - FUN_0043eca0(param_1 + 0x54); + std::vector::copy_constructor(param_1 + 0x54); *(undefined4 *)(in_ECX + 0x60) = *(undefined4 *)(param_1 + 0x60); *(undefined4 *)(in_ECX + 100) = *(undefined4 *)(param_1 + 100); ExceptionList = local_10; @@ -633338,7 +633338,7 @@ undefined4 * FUN_00856ba0(undefined4 *param_1) param_1 = (undefined4 *)piVar7[-2]; sVar6 = piVar8[-3] - (int)pvVar2; if ((uint)(*piVar7 - (int)param_1 >> 2) < (uint)((int)sVar6 >> 2)) { - FUN_006a0d30((int)sVar6 >> 2); + std::vector::reserve_clear((int)sVar6 >> 2); param_1 = (undefined4 *)piVar7[-2]; } memmove(param_1,pvVar2,sVar6); @@ -633350,7 +633350,7 @@ undefined4 * FUN_00856ba0(undefined4 *param_1) sVar6 = *piVar8 - (int)pvVar2; param_1 = (undefined4 *)*piVar1; if ((uint)(piVar7[3] - (int)param_1 >> 2) < (uint)((int)sVar6 >> 2)) { - FUN_006a0d30((int)sVar6 >> 2); + std::vector::reserve_clear((int)sVar6 >> 2); param_1 = (undefined4 *)*piVar1; } memmove(param_1,pvVar2,sVar6); @@ -633362,7 +633362,7 @@ undefined4 * FUN_00856ba0(undefined4 *param_1) sVar6 = piVar8[3] - (int)pvVar2; param_1 = (undefined4 *)*piVar1; if ((uint)(piVar7[6] - (int)param_1 >> 2) < (uint)((int)sVar6 >> 2)) { - FUN_006a0d30((int)sVar6 >> 2); + std::vector::reserve_clear((int)sVar6 >> 2); param_1 = (undefined4 *)*piVar1; } memmove(param_1,pvVar2,sVar6); @@ -633374,7 +633374,7 @@ undefined4 * FUN_00856ba0(undefined4 *param_1) sVar6 = piVar8[6] - (int)pvVar2; param_1 = (undefined4 *)*piVar1; if ((uint)(piVar7[9] - (int)param_1 >> 2) < (uint)((int)sVar6 >> 2)) { - FUN_006a0d30((int)sVar6 >> 2); + std::vector::reserve_clear((int)sVar6 >> 2); param_1 = (undefined4 *)*piVar1; } memmove(param_1,pvVar2,sVar6); @@ -633386,7 +633386,7 @@ undefined4 * FUN_00856ba0(undefined4 *param_1) sVar6 = piVar8[9] - (int)pvVar2; param_1 = (undefined4 *)*piVar1; if ((uint)(piVar7[0xc] - (int)param_1 >> 2) < (uint)((int)sVar6 >> 2)) { - FUN_006a0d30((int)sVar6 >> 2); + std::vector::reserve_clear((int)sVar6 >> 2); param_1 = (undefined4 *)*piVar1; } memmove(param_1,pvVar2,sVar6); @@ -633398,7 +633398,7 @@ undefined4 * FUN_00856ba0(undefined4 *param_1) sVar6 = piVar8[0xc] - (int)pvVar2; param_1 = (undefined4 *)*piVar1; if ((uint)(piVar7[0xf] - (int)param_1 >> 2) < (uint)((int)sVar6 >> 2)) { - FUN_006a0d30((int)sVar6 >> 2); + std::vector::reserve_clear((int)sVar6 >> 2); param_1 = (undefined4 *)*piVar1; } memmove(param_1,pvVar2,sVar6); @@ -633587,10 +633587,10 @@ void FUN_00857050(void) operator_delete(puVar1,*puVar1 * 0x28 + 4,uVar3); *(undefined4 *)(in_ECX + 0x248) = 0; } - FUN_0069dac0(); - FUN_0069dac0(); - FUN_0069dac0(); - FUN_0069dac0(); + std::vector<12byte>::_Tidy(); + std::vector<12byte>::_Tidy(); + std::vector<12byte>::_Tidy(); + std::vector<12byte>::_Tidy(); FUN_004269f0(); local_8 = 2; ANM2::Reset((ANM2 *)(in_ECX + 0x124)); @@ -633634,11 +633634,11 @@ int * FUN_008571b0(void) } -//@@ 00857220 FUN_00857220 +//@@ 00857220 ScoreSheet::LoadAnm2 /* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */ -void FUN_00857220(void) +void ScoreSheet::LoadAnm2(void) { uint uVar1; @@ -634313,8 +634313,8 @@ void FUN_00858050(void) uStack_84 = 0x3e99999a; uStack_80 = 0x3f000000; local_7c = 0; - FUN_00a10d00(DAT_00c78edc,&local_8c); - FUN_00a1dfd0(local_78); + render_quad_set_uniform_color(DAT_00c78edc,&local_8c); + render_color_shader_pass(local_78); if (*in_ECX == 0) { FUN_008588f0(); } @@ -634798,66 +634798,66 @@ void FUN_008588f0(void) local_a4 = local_a8 + *pfVar3; local_a0 = local_ac + pfVar3[1]; uVar5 = *(undefined4 *)(in_ECX + 0x30c); - uVar4 = FUN_009586f0(DAT_00c7169c + 0x4a920,"#DAILY_RUN_STAGE_BONUS"); + uVar4 = string_table_translate(DAT_00c7169c + 0x4a920,"#DAILY_RUN_STAGE_BONUS"); FUN_00859100(&local_a4,uVar4,uVar5); uVar5 = *(undefined4 *)(in_ECX + 0x330); - uVar4 = FUN_009586f0(DAT_00c7169c + 0x4a920,"#DAILY_RUN_EXPLORATION_BONUS"); + uVar4 = string_table_translate(DAT_00c7169c + 0x4a920,"#DAILY_RUN_EXPLORATION_BONUS"); FUN_00859100(&local_a4,uVar4,uVar5); uVar5 = *(undefined4 *)(in_ECX + 0x310); - uVar4 = FUN_009586f0(DAT_00c7169c + 0x4a920,"#DAILY_RUN_SCHWAG_BONUS"); + uVar4 = string_table_translate(DAT_00c7169c + 0x4a920,"#DAILY_RUN_SCHWAG_BONUS"); FUN_00859100(&local_a4,uVar4,uVar5); iVar1 = *(int *)(in_ECX + 0x314); if (0 < iVar1) { - uVar5 = FUN_009586f0(DAT_00c7169c + 0x4a920,"#DAILY_RUN_???_BONUS"); + uVar5 = string_table_translate(DAT_00c7169c + 0x4a920,"#DAILY_RUN_???_BONUS"); FUN_00859100(&local_a4,uVar5,iVar1); } iVar1 = *(int *)(in_ECX + 0x318); if (0 < iVar1) { - uVar5 = FUN_009586f0(DAT_00c7169c + 0x4a920,"#DAILY_RUN_LAMB_BONUS"); + uVar5 = string_table_translate(DAT_00c7169c + 0x4a920,"#DAILY_RUN_LAMB_BONUS"); FUN_00859100(&local_a4,uVar5,iVar1); } iVar1 = *(int *)(in_ECX + 800); if (0 < iVar1) { - uVar5 = FUN_009586f0(DAT_00c7169c + 0x4a920,"#DAILY_RUN_MOTHER_BONUS"); + uVar5 = string_table_translate(DAT_00c7169c + 0x4a920,"#DAILY_RUN_MOTHER_BONUS"); FUN_00859100(&local_a4,uVar5,iVar1); } iVar1 = *(int *)(in_ECX + 0x324); if (0 < iVar1) { - uVar5 = FUN_009586f0(DAT_00c7169c + 0x4a920,"#DAILY_RUN_DELIRIUM_BONUS"); + uVar5 = string_table_translate(DAT_00c7169c + 0x4a920,"#DAILY_RUN_DELIRIUM_BONUS"); FUN_00859100(&local_a4,uVar5,iVar1); } iVar1 = *(int *)(in_ECX + 0x328); if (0 < iVar1) { - uVar5 = FUN_009586f0(DAT_00c7169c + 0x4a920,"#DAILY_RUN_BEAST_BONUS"); + uVar5 = string_table_translate(DAT_00c7169c + 0x4a920,"#DAILY_RUN_BEAST_BONUS"); FUN_00859100(&local_a4,uVar5,iVar1); } iVar1 = *(int *)(in_ECX + 0x32c); if (0 < iVar1) { - uVar5 = FUN_009586f0(DAT_00c7169c + 0x4a920,"#DAILY_RUN_RUSH_BONUS"); + uVar5 = string_table_translate(DAT_00c7169c + 0x4a920,"#DAILY_RUN_RUSH_BONUS"); FUN_00859100(&local_a4,uVar5,iVar1); } iVar1 = *(int *)(in_ECX + 0x31c); if (0 < iVar1) { - uVar5 = FUN_009586f0(DAT_00c7169c + 0x4a920,"#DAILY_RUN_MEGA_SATAN_BONUS"); + uVar5 = string_table_translate(DAT_00c7169c + 0x4a920,"#DAILY_RUN_MEGA_SATAN_BONUS"); FUN_00859100(&local_a4,uVar5,iVar1); } iVar1 = *(int *)(in_ECX + 0x334); - uVar5 = FUN_009586f0(DAT_00c7169c + 0x4a920,"#DAILY_RUN_DAMAGE_PENALTY"); + uVar5 = string_table_translate(DAT_00c7169c + 0x4a920,"#DAILY_RUN_DAMAGE_PENALTY"); FUN_00859100(&local_a4,uVar5,-iVar1); iVar1 = *(int *)(in_ECX + 0x338); - uVar5 = FUN_009586f0(DAT_00c7169c + 0x4a920,"#DAILY_RUN_TIME_PENALTY"); + uVar5 = string_table_translate(DAT_00c7169c + 0x4a920,"#DAILY_RUN_TIME_PENALTY"); FUN_00859100(&local_a4,uVar5,-iVar1); iVar1 = *(int *)(in_ECX + 0x33c); - uVar5 = FUN_009586f0(DAT_00c7169c + 0x4a920,"#DAILY_RUN_ITEM_PENALTY"); + uVar5 = string_table_translate(DAT_00c7169c + 0x4a920,"#DAILY_RUN_ITEM_PENALTY"); FUN_00859100(&local_a4,uVar5,-iVar1); local_a0 = local_a0 + 10.0; uVar5 = *(undefined4 *)(in_ECX + 0x340); - uVar4 = FUN_009586f0(DAT_00c7169c + 0x4a920,"#DAILY_RUN_TOTAL"); + uVar4 = string_table_translate(DAT_00c7169c + 0x4a920,"#DAILY_RUN_TOTAL"); FUN_00859100(&local_a4,uVar4,uVar5); local_b0 = local_a0 + 10.0; iVar1 = *(int *)(in_ECX + 0x344); if (0 < iVar1) { - uVar5 = FUN_009586f0(DAT_00c7169c + 0x4a920,"#DAILY_RUN_FINISH_TIME"); + uVar5 = string_table_translate(DAT_00c7169c + 0x4a920,"#DAILY_RUN_FINISH_TIME"); sprintf_s(local_9c,0x48,uVar5,iVar1); local_30 = 0; local_2c = 0xffff; @@ -634868,7 +634868,7 @@ void FUN_008588f0(void) local_18 = 0; local_8 = 0; KColor::SetFromARGB(0xff362f2d); - FUN_00a1af90(local_9c,extraout_ECX,&local_30); + Font::DrawString(local_9c,extraout_ECX,&local_30); uVar7 = *(uint *)(in_ECX + 0x358) / 0x1e; uVar8 = uVar7 % 0xe10; sprintf_s(local_50,0x20,"%d:%02d:%02d",uVar7 / 0xe10,uVar8 / 0x3c,uVar8 % 0x3c); @@ -634882,7 +634882,7 @@ void FUN_008588f0(void) local_18 = 0; local_8 = 1; KColor::SetFromARGB(0xff362f2d); - FUN_00a1af90(local_50,extraout_ECX_00,&local_30); + Font::DrawString(local_50,extraout_ECX_00,&local_30); local_8 = 0xffffffff; } } @@ -634908,7 +634908,7 @@ void FUN_008588f0(void) local_bc = pfVar3[9]; uVar5 = FontSettings::constructor(); local_8 = 2; - FUN_00a1af90(&local_24,local_c8,uVar5); + Font::DrawString(&local_24,local_c8,uVar5); local_8 = 0xffffffff; } } @@ -634930,7 +634930,7 @@ void FUN_008588f0(void) local_bc = pfVar3[9]; uVar5 = FontSettings::constructor(); local_8 = 3; - FUN_00a1af90(&local_24,local_c8,uVar5); + Font::DrawString(&local_24,local_c8,uVar5); } } ExceptionList = local_10; @@ -634975,7 +634975,7 @@ void FUN_00859100(int param_1,undefined4 param_2,undefined4 param_3) local_2c = 0; local_8 = 0; KColor::SetFromARGB(0xff362f2d); - FUN_00a1af90(param_2,extraout_ECX,&local_44); + Font::DrawString(param_2,extraout_ECX,&local_44); FUN_00a1b8e0(local_28,0xffffffff); local_44 = 0; local_40 = 0xffff; @@ -634986,7 +634986,7 @@ void FUN_00859100(int param_1,undefined4 param_2,undefined4 param_3) local_2c = 0; local_8 = 1; KColor::SetFromARGB(0xff362f2d); - FUN_00a1af90(local_28,extraout_ECX_00,&local_44); + Font::DrawString(local_28,extraout_ECX_00,&local_44); *(float *)(param_1 + 4) = *(float *)(param_1 + 4) + 15.0; ExceptionList = local_10; return; @@ -635340,7 +635340,7 @@ void FUN_00859290(void) local_50c = 0; local_14 = 0; KColor::SetFromARGB(); - FUN_00a1af90(local_c0); + Font::DrawString(local_c0); local_14 = 0xffffffff; } if (in_ECX[0x56] != 0) { @@ -635363,7 +635363,7 @@ LAB_00859cda: if (pcVar13 == (char *)0x0) { local_540 = (local_540 + local_55c[1]) - 7.0; local_56c = (int *)(DAT_00c78dc4 * 0.5); - FUN_009586f0(); + string_table_translate(); sprintf_s(local_c0); pcVar13 = local_c0; do { @@ -635512,7 +635512,7 @@ LAB_0085a121: local_14._0_1_ = 1; if (local_526 != '\0') { KColor::SetFromARGB(); - FUN_00a10d00(); + render_quad_set_uniform_color(); puVar15 = &DAT_00c79118; if ((DAT_00c7911c & 1) == 0) { puVar15 = DAT_00c379b8; @@ -635562,7 +635562,7 @@ LAB_0085a121: (*DAT_00c7163c)(); } local_14._0_1_ = 1; - FUN_00a14050(); + shader_cache_find(); iVar9 = local_560; } local_524 = 0; @@ -635574,7 +635574,7 @@ LAB_0085a121: local_50c = 0; local_14._0_1_ = 8; FUN_00a1b8e0(); - FUN_00a1af90(local_30); + Font::DrawString(local_30); iVar18 = FUN_00a1ba10(); local_524 = 0; local_520 = 0xffff; @@ -635596,8 +635596,8 @@ LAB_0085a121: uVar11 = FUN_00a1c480(local_5d0,&sStack_58); local_14 = CONCAT31(local_14._1_3_,10); FUN_00a1c7d0(uVar11,local_538,local_538,local_598,uStack_594,uStack_590,uStack_58c); - FUN_00a55d60(); - FUN_0069dac0(); + std::vector<12byte>::clear(); + std::vector<12byte>::_Tidy(); cVar7 = FUN_00856f50(); if (cVar7 == '\0') { uVar4 = *(uint *)(extraout_EDX + 0xc + iVar9); @@ -635618,7 +635618,7 @@ LAB_0085a121: local_510 = 0; local_50c = 0; local_14._0_1_ = 0xb; - FUN_00a1af90(local_78); + Font::DrawString(local_78); local_14 = CONCAT31(local_14._1_3_,1); local_544 = local_544 + 15.0; cVar7 = (**(code **)(*(int *)(in_ECX[0x92] + iVar9) + 0x14))(); @@ -635629,10 +635629,10 @@ LAB_0085a121: *(float *)(iVar18 + 0x44) = fVar19; } local_14 = 0xffffffff; - FUN_0069dac0(); - FUN_0069dac0(); - FUN_0069dac0(); - FUN_0069dac0(); + std::vector<12byte>::_Tidy(); + std::vector<12byte>::_Tidy(); + std::vector<12byte>::_Tidy(); + std::vector<12byte>::_Tidy(); local_560 = iVar9 + 0x28; local_52c = local_52c + -1; } while (local_52c != (char *)0x0); @@ -635954,7 +635954,7 @@ void FUN_0085b160(undefined4 param_1,undefined1 param_2,int *param_3) *(undefined4 *)(in_ECX + 0x50) = 0; *(undefined1 *)(in_ECX + 0x10) = 1; local_8 = 4; - FUN_00a288a0(¶m_2); + std::shared_ptr::assign(¶m_2); local_8 = CONCAT31(local_8._1_3_,3); Menu_Save::select_save_slot(); local_8 = 5; @@ -635974,7 +635974,7 @@ void FUN_0085b160(undefined4 param_1,undefined1 param_2,int *param_3) void FUN_0085b260(void) { - FUN_00426980(); + std::vector::_Tidy(); std::string::_Tidy_deallocate(); std::string::_Tidy_deallocate(); return; @@ -636382,7 +636382,7 @@ void FUN_0085b7f0(void) uStack_3c = 0x3e3cbcbd; uStack_38 = 0x3e34b4b5; uStack_34 = 0x3f800000; - FUN_00a1aec0(&DAT_00b6d4f8,&local_24,&local_40,&local_5c); + Font::DrawStringScaled(&DAT_00b6d4f8,&local_24,&local_40,&local_5c); goto LAB_0085bc8a; } puVar1 = in_ECX; @@ -636595,9 +636595,9 @@ void FUN_0085be70(void) } -//@@ 0085bed0 FUN_0085bed0 +//@@ 0085bed0 EntitySpawner::Spawn -void FUN_0085bed0(undefined4 param_1,undefined4 param_2,undefined4 param_3) +void EntitySpawner::Spawn(undefined4 param_1,undefined4 param_2,undefined4 param_3) { uint *puVar1; @@ -636890,7 +636890,7 @@ bool FUN_0085c300(void) if (in_ECX[1] == -1) { return true; } - FUN_006a80f0(*in_ECX); + LuaRef::push(*in_ECX); iVar1 = lua_type(*in_ECX,0xffffffff); lua_settop(*in_ECX,0xfffffffe); return iVar1 == 0; @@ -636908,7 +636908,7 @@ bool FUN_0085c340(void) if (in_ECX[1] == -1) { return false; } - FUN_006a80f0(*in_ECX); + LuaRef::push(*in_ECX); iVar1 = lua_type(*in_ECX,0xffffffff); lua_settop(*in_ECX,0xfffffffe); return iVar1 == 5; @@ -637217,13 +637217,13 @@ undefined4 FUN_0085cad0(undefined4 param_1) uVar4 = lua_tolstring(param_1,0xfff0b9d7,0,local_14); if (0x7fffffff - (int)local_1c == 0) { /* WARNING: Subroutine does not return */ - FUN_0040ccc0(); + std::string::_Xlen(); } ppppuVar6 = &local_2c; if (0xf < local_1c._4_4_) { ppppuVar6 = local_2c; } - FUN_00421680(uStack_60,0x7fffffff - (int)local_1c,ppppuVar6,(int)local_1c,&DAT_00b6ea34,1); + std::string::concat(uStack_60,0x7fffffff - (int)local_1c,ppppuVar6,(int)local_1c,&DAT_00b6ea34,1); local_8._0_1_ = 1; FUN_0060c790(uVar4); local_8 = CONCAT31(local_8._1_3_,2); @@ -638882,7 +638882,7 @@ int Game::GetScreenShakeCountdown(void) void Game::UpdateStrangeAttractor(undefined4 param_1) { - FUN_00705b90(param_1,0,0); + Game::AttractEntities(param_1,0,0); return; } @@ -639255,7 +639255,7 @@ undefined4 Entity::IsVulnerableEnemy_lua(undefined4 param_1) iVar2 = luaL_ref(param_1,0xfff0b9d8); local_8 = 0; if (iVar2 != -1) { - FUN_006a80f0(param_1); + LuaRef::push(param_1); iVar3 = lua_type(param_1,0xffffffff); lua_settop(param_1,0xfffffffe); if (iVar3 != 0) { @@ -639323,12 +639323,12 @@ undefined4 HUD::ShowItemText(undefined4 param_1) if (iVar4 == -1) { LAB_0085e7ff: if (iVar5 != -1) { - FUN_006a80f0(param_1); + LuaRef::push(param_1); iVar6 = lua_type(param_1,0xffffffff); lua_settop(param_1,0xfffffffe); if (iVar6 == 4) goto LAB_0085e82e; } - FUN_006a80f0(param_1); + LuaRef::push(param_1); uVar8 = lua_gettop(param_1); iVar6 = lua_type(param_1,uVar8); if (iVar6 == 0) { @@ -639339,7 +639339,7 @@ LAB_0085e7ff: local_5c = *(int *)(iVar6 + 4); } lua_settop(param_1,0xfffffffe); - FUN_006a80f0(param_1); + LuaRef::push(param_1); local_54 = lua_gettop(param_1); iVar7 = lua_type(param_1,local_54); iVar6 = 0; @@ -639378,7 +639378,7 @@ LAB_0085ebfd: } goto LAB_0085ec63; } - FUN_006a80f0(param_1); + LuaRef::push(param_1); iVar6 = lua_type(param_1,0xffffffff); lua_settop(param_1,0xfffffffe); if (iVar6 != 4) goto LAB_0085e7ff; @@ -639391,7 +639391,7 @@ LAB_0085e8d4: bVar2 = true; } else { - FUN_006a80f0(param_1); + LuaRef::push(param_1); iVar7 = lua_type(param_1,0xffffffff); lua_settop(param_1,0xfffffffe); if (iVar7 == 0) goto LAB_0085e8d4; @@ -639399,7 +639399,7 @@ LAB_0085e8d4: local_58 = param_1; local_54 = luaL_ref(param_1,0xfff0b9d8); bVar1 = true; - FUN_006a80f0(param_1); + LuaRef::push(param_1); uVar8 = lua_gettop(param_1); iVar7 = lua_toboolean(param_1,uVar8); lua_settop(param_1,0xfffffffe); @@ -639417,7 +639417,7 @@ LAB_0085e8d4: lua_pushvalue(param_1,4); uVar8 = luaL_ref(param_1,0xfff0b9d8); local_8._0_1_ = 2; - FUN_006a80f0(param_1); + LuaRef::push(param_1); uVar9 = lua_gettop(param_1); iVar6 = lua_toboolean(param_1,uVar9); lua_settop(param_1,0xfffffffe); @@ -639426,7 +639426,7 @@ LAB_0085e9c1: local_60 = (undefined4 *)&DAT_00b1a4ec; } else { - FUN_006a80f0(param_1); + LuaRef::push(param_1); iVar7 = lua_type(param_1,0xffffffff); lua_settop(param_1,0xfffffffe); if (iVar7 == 0) goto LAB_0085e9c1; @@ -639443,7 +639443,7 @@ LAB_0085ea17: puVar10 = (undefined4 *)&DAT_00b1a4ec; } else { - FUN_006a80f0(param_1); + LuaRef::push(param_1); iVar7 = lua_type(param_1,0xffffffff); lua_settop(param_1,0xfffffffe); if (iVar7 == 0) goto LAB_0085ea17; @@ -639557,7 +639557,7 @@ undefined4 HUD::ShowFortuneText(undefined4 param_1) puVar2 = (undefined4 *)0x0; } else { - FUN_006a80f0(param_1); + LuaRef::push(param_1); puStack_48 = (undefined4 *)lua_type(param_1,0xffffffff); lua_settop(param_1,0xfffffffe); puVar2 = puStack_48; @@ -639568,7 +639568,7 @@ undefined4 HUD::ShowFortuneText(undefined4 param_1) break; } uStack_14._0_1_ = 2; - FUN_006a80f0(param_1); + LuaRef::push(param_1); uVar3 = lua_gettop(param_1); uVar3 = luaL_checklstring(param_1,uVar3,&uStack_50); uStack_2c = 0; @@ -639840,13 +639840,13 @@ LAB_0085f203: if (((iVar16 == -1) || (local_2c < 5)) || (iVar16 != local_2c - 4)) { if (0x7fffffff - local_2c < 4) { /* WARNING: Subroutine does not return */ - FUN_0040ccc0(uVar4); + std::string::_Xlen(uVar4); } pppppppiVar14 = (int *******)local_3c; if (0xf < uStack_28) { pppppppiVar14 = local_3c[0]; } - FUN_00421680(in_EDX,local_2c,pppppppiVar14,local_2c,&DAT_00b6ec04,4); + std::string::concat(in_EDX,local_2c,pppppppiVar14,local_2c,&DAT_00b6ec04,4); if (0xf < uStack_28) { uVar4 = uStack_28 + 1; pppppppiVar14 = local_3c[0]; @@ -640825,11 +640825,11 @@ bool FUN_00860960(int param_1) FUN_00872a20(&local_20,*(undefined4 *)(param_1 + 0x28),param_1); iVar3 = local_1c; if (local_1c != -1) { - FUN_006a80f0(local_20); + LuaRef::push(local_20); iVar1 = lua_type(local_20,0xffffffff); lua_settop(local_20,0xfffffffe); if (iVar1 != 0) { - FUN_006a80f0(local_20); + LuaRef::push(local_20); uVar2 = lua_gettop(local_20); iVar3 = lua_toboolean(local_20,uVar2); lua_settop(local_20,0xfffffffe); @@ -641016,11 +641016,11 @@ LuaEngine::PreNPCCollision(undefined4 param_1,int param_2,undefined4 param_3,und local_8 = 0; FUN_00872c60(&local_1c,*(undefined4 *)(param_2 + 0x28),param_2,param_3,param_4); if (local_18 != -1) { - FUN_006a80f0(local_1c); + LuaRef::push(local_1c); iVar1 = lua_type(local_1c,0xffffffff); lua_settop(local_1c,0xfffffffe); if (iVar1 != 0) { - FUN_006a80f0(local_1c); + LuaRef::push(local_1c); uVar2 = lua_gettop(local_1c); iVar1 = lua_toboolean(local_1c,uVar2); lua_settop(local_1c,0xfffffffe); @@ -641176,7 +641176,7 @@ LuaEngine::PreFamiliarCollision(undefined4 param_1,undefined4 param_2,int param_ uStack_40 = 0x861126; ExceptionList = &local_10; uStack_3c = uVar3; - FUN_006a80f0(); + LuaRef::push(); uStack_3c = 0x861132; FUN_0085bfd0(); uStack_3c = 0x86113b; @@ -641269,11 +641269,11 @@ undefined4 FUN_00861225(void) *(int *)(unaff_EBP + -0x18) = iVar1; lua_settop(); if (iVar1 != -1) { - FUN_006a80f0(unaff_EDI); + LuaRef::push(unaff_EDI); iVar1 = lua_type(); lua_settop(); if (iVar1 != 0) { - FUN_006a80f0(unaff_EDI); + LuaRef::push(unaff_EDI); lua_gettop(); iVar1 = lua_toboolean(); lua_settop(); @@ -641682,7 +641682,7 @@ void FUN_00861a50(undefined4 param_1,undefined4 *param_2) uStack_58 = 0x861ad4; ExceptionList = &local_1c; uStack_54 = uVar3; - FUN_006a80f0(); + LuaRef::push(); uStack_54 = 0x861ae0; FUN_0085bfd0(); uStack_54 = 0x861ae9; @@ -641820,7 +641820,7 @@ LuaEngine::PreKnifeCollision(undefined4 param_1,undefined4 param_2,int param_3,b uStack_40 = 0x861c97; ExceptionList = &local_10; uStack_3c = uVar3; - FUN_006a80f0(); + LuaRef::push(); uStack_3c = 0x861ca3; FUN_0085bfd0(); uStack_3c = 0x861cac; @@ -641913,11 +641913,11 @@ undefined4 FUN_00861d96(void) *(int *)(unaff_EBP + -0x18) = iVar1; lua_settop(); if (iVar1 != -1) { - FUN_006a80f0(unaff_EDI); + LuaRef::push(unaff_EDI); iVar1 = lua_type(); lua_settop(); if (iVar1 != 0) { - FUN_006a80f0(unaff_EDI); + LuaRef::push(unaff_EDI); lua_gettop(); iVar1 = lua_toboolean(); lua_settop(); @@ -642072,7 +642072,7 @@ void FUN_00862060(undefined4 param_1,undefined4 *param_2) uStack_58 = 0x8620e4; ExceptionList = &local_1c; uStack_54 = uVar3; - FUN_006a80f0(); + LuaRef::push(); uStack_54 = 0x8620f0; FUN_0085bfd0(); uStack_54 = 0x8620f9; @@ -642210,7 +642210,7 @@ LuaEngine::PreBombCollision(undefined4 param_1,undefined4 param_2,int param_3,by uStack_40 = 0x8622a7; ExceptionList = &local_10; uStack_3c = uVar3; - FUN_006a80f0(); + LuaRef::push(); uStack_3c = 0x8622b3; FUN_0085bfd0(); uStack_3c = 0x8622bc; @@ -642303,11 +642303,11 @@ undefined4 FUN_008623a6(void) *(int *)(unaff_EBP + -0x18) = iVar1; lua_settop(); if (iVar1 != -1) { - FUN_006a80f0(unaff_EDI); + LuaRef::push(unaff_EDI); iVar1 = lua_type(); lua_settop(); if (iVar1 != 0) { - FUN_006a80f0(unaff_EDI); + LuaRef::push(unaff_EDI); lua_gettop(); iVar1 = lua_toboolean(); lua_settop(); @@ -642504,7 +642504,7 @@ LuaEngine::PreProjectileCollision(undefined4 param_1,undefined4 param_2,int para uStack_40 = 0x8627b7; ExceptionList = &local_10; uStack_3c = uVar3; - FUN_006a80f0(); + LuaRef::push(); uStack_3c = 0x8627c3; FUN_0085bfd0(); uStack_3c = 0x8627cc; @@ -642597,11 +642597,11 @@ undefined4 FUN_008628b6(void) *(int *)(unaff_EBP + -0x18) = iVar1; lua_settop(); if (iVar1 != -1) { - FUN_006a80f0(unaff_EDI); + LuaRef::push(unaff_EDI); iVar1 = lua_type(); lua_settop(); if (iVar1 != 0) { - FUN_006a80f0(unaff_EDI); + LuaRef::push(unaff_EDI); lua_gettop(); iVar1 = lua_toboolean(); lua_settop(); @@ -642756,7 +642756,7 @@ void FUN_00862b80(undefined4 param_1,undefined4 *param_2) uStack_58 = 0x862c04; ExceptionList = &local_1c; uStack_54 = uVar3; - FUN_006a80f0(); + LuaRef::push(); uStack_54 = 0x862c10; FUN_0085bfd0(); uStack_54 = 0x862c19; @@ -642884,11 +642884,11 @@ LuaEngine::PreTearCollision(undefined4 param_1,int param_2,undefined4 param_3,un local_8 = 0; FUN_00873980(&local_1c,*(undefined4 *)(param_2 + 0x2c),param_2,param_3,param_4); if (local_18 != -1) { - FUN_006a80f0(local_1c); + LuaRef::push(local_1c); iVar1 = lua_type(local_1c,0xffffffff); lua_settop(local_1c,0xfffffffe); if (iVar1 != 0) { - FUN_006a80f0(local_1c); + LuaRef::push(local_1c); uVar2 = lua_gettop(local_1c); iVar1 = lua_toboolean(local_1c,uVar2); lua_settop(local_1c,0xfffffffe); @@ -643076,11 +643076,11 @@ LuaEngine::PrePickupCollision(undefined4 param_1,int param_2,undefined4 param_3, local_8 = 0; FUN_00873d00(&local_1c,*(undefined4 *)(param_2 + 0x2c),param_2,param_3,param_4); if (local_18 != -1) { - FUN_006a80f0(local_1c); + LuaRef::push(local_1c); iVar1 = lua_type(local_1c,0xffffffff); lua_settop(local_1c,0xfffffffe); if (iVar1 != 0) { - FUN_006a80f0(local_1c); + LuaRef::push(local_1c); uVar2 = lua_gettop(local_1c); iVar1 = lua_toboolean(local_1c,uVar2); lua_settop(local_1c,0xfffffffe); @@ -643142,7 +643142,7 @@ void FUN_00863340(undefined4 param_1,undefined4 *param_2,undefined4 *param_3) ExceptionList = &local_10; FUN_00873e40(&local_1c,DAT_00c71690,param_1,*param_2,*param_3); if (local_18 != -1) { - FUN_006a80f0(local_1c); + LuaRef::push(local_1c); iVar1 = lua_type(local_1c,0xffffffff); lua_settop(local_1c,0xfffffffe); if (iVar1 == 5) { @@ -643316,11 +643316,11 @@ LuaEngine::PreUseItem FUN_00873fc0(&local_1c,DAT_00c71690,param_2,param_3,param_4,param_5,param_6,param_7); iVar3 = local_18; if (local_18 != -1) { - FUN_006a80f0(local_1c); + LuaRef::push(local_1c); iVar1 = lua_type(local_1c,0xffffffff); lua_settop(local_1c,0xfffffffe); if (iVar1 != 0) { - FUN_006a80f0(local_1c); + LuaRef::push(local_1c); uVar2 = lua_gettop(local_1c); iVar3 = lua_toboolean(local_1c,uVar2); lua_settop(local_1c,0xfffffffe); @@ -643387,7 +643387,7 @@ LuaEngine::UseItem(undefined4 param_1,undefined4 param_2,undefined4 param_3,unde FUN_00873fc0(&local_20,DAT_00c71690,param_2,param_3,param_4,param_5,param_6,param_7); iVar5 = local_1c; if (local_1c != -1) { - FUN_006a80f0(local_20); + LuaRef::push(local_20); iVar3 = lua_type(local_20,0xffffffff); lua_settop(local_20,0xfffffffe); if (iVar3 != 0) { @@ -643835,7 +643835,7 @@ LuaEngine::PrePlayerCollide(undefined4 param_1,undefined4 param_2,int param_3,by uStack_40 = 0x864354; ExceptionList = &local_10; uStack_3c = uVar3; - FUN_006a80f0(); + LuaRef::push(); uStack_3c = 0x864360; FUN_0085bfd0(); uStack_3c = 0x864369; @@ -643928,11 +643928,11 @@ undefined4 FUN_00864453(void) *(int *)(unaff_EBP + -0x18) = iVar1; lua_settop(); if (iVar1 != -1) { - FUN_006a80f0(unaff_EDI); + LuaRef::push(unaff_EDI); iVar1 = lua_type(); lua_settop(); if (iVar1 != 0) { - FUN_006a80f0(unaff_EDI); + LuaRef::push(unaff_EDI); lua_gettop(); iVar1 = lua_toboolean(); lua_settop(); @@ -643995,11 +643995,11 @@ LuaEngine::EntityTakeDamage iVar4 = param_4; uVar1 = param_3; if (param_4 != -1) { - FUN_006a80f0(param_3); + LuaRef::push(param_3); iVar2 = lua_type(uVar1,0xffffffff); lua_settop(uVar1,0xfffffffe); if (iVar2 != 0) { - FUN_006a80f0(uVar1); + LuaRef::push(uVar1); uVar3 = lua_gettop(uVar1); iVar4 = lua_toboolean(uVar1,uVar3); lua_settop(uVar1,0xfffffffe); @@ -644063,7 +644063,7 @@ void lua_callback_run_pre_entity_spawn param_3[1],*param_4,param_4[1]); uVar4 = local_30; if (local_2c != -1) { - FUN_006a80f0(local_30); + LuaRef::push(local_30); iVar1 = lua_type(uVar4,0xffffffff); lua_settop(uVar4,0xfffffffe); if (iVar1 == 5) { @@ -644173,11 +644173,11 @@ undefined4 FUN_00864ae0(undefined4 param_1) local_8 = 0; FUN_00874860(&local_20,DAT_00c71690,param_1); if (local_1c != -1) { - FUN_006a80f0(local_20); + LuaRef::push(local_20); iVar1 = lua_type(local_20,0xffffffff); lua_settop(local_20,0xfffffffe); if (iVar1 != 0) { - FUN_006a80f0(local_20); + LuaRef::push(local_20); uVar2 = lua_gettop(local_20); param_1 = luaL_checkinteger(local_20,uVar2); lua_settop(local_20,0xfffffffe); @@ -644233,11 +644233,11 @@ undefined1 FUN_00864c30(undefined4 param_1,undefined4 param_2,undefined4 param_3 LuaCallbackCaller::CallInputAction(&local_20,DAT_00c71690,param_1,param_2,param_3); uVar3 = 0; if (local_1c != -1) { - FUN_006a80f0(local_20); + LuaRef::push(local_20); iVar1 = lua_type(local_20,0xffffffff); lua_settop(local_20,0xfffffffe); if (iVar1 != 0) { - FUN_006a80f0(local_20); + LuaRef::push(local_20); uVar2 = lua_gettop(local_20); iVar1 = lua_toboolean(local_20,uVar2); uVar3 = 1; @@ -644296,12 +644296,12 @@ undefined1 FUN_00864d80(undefined4 param_1,undefined4 param_2,undefined4 param_3 LuaCallbackCaller::CallInputAction(&local_20,DAT_00c71690,param_1,2,param_3); uVar3 = 0; if (local_1c != -1) { - FUN_006a80f0(local_20); + LuaRef::push(local_20); iVar1 = lua_type(local_20,0xffffffff); lua_settop(local_20,0xfffffffe); if (iVar1 != 0) { uVar3 = 1; - FUN_006a80f0(local_20); + LuaRef::push(local_20); uVar2 = lua_gettop(local_20); fVar4 = (float10)luaL_checknumber(local_20,uVar2); lua_settop(local_20,0xfffffffe); @@ -644571,11 +644571,11 @@ lua_callback_run_get_card local_8 = 0; FUN_00874ac0(&local_20,DAT_00c71690,param_1,param_2,param_3,param_4,param_5); if (local_1c != -1) { - FUN_006a80f0(local_20); + LuaRef::push(local_20); iVar1 = lua_type(local_20,0xffffffff); lua_settop(local_20,0xfffffffe); if (iVar1 != 0) { - FUN_006a80f0(local_20); + LuaRef::push(local_20); uVar2 = lua_gettop(local_20); param_2 = luaL_checkinteger(local_20,uVar2); lua_settop(local_20,0xfffffffe); @@ -644643,19 +644643,19 @@ undefined4 * FUN_00865490(undefined4 *param_1,undefined4 param_2) FUN_00874bd0(&local_1c,extraout_ECX,in_stack_ffffffa4,in_stack_ffffffa8, in_stack_ffffffac,in_stack_ffffffb0,in_stack_ffffffb4,in_stack_ffffffb8); luaL_unref(uVar6,0xfff0b9d8,0xffffffff); - FUN_006a80f0(uVar6); + LuaRef::push(uVar6); uVar6 = *puVar2; iVar5 = luaL_ref(uVar6,0xfff0b9d8); luaL_unref(local_1c,0xfff0b9d8,local_18); puVar1 = (uint *)local_14; if (iVar5 != -1) { - FUN_006a80f0(uVar6); + LuaRef::push(uVar6); iVar3 = lua_type(uVar6,0xffffffff); lua_settop(uVar6,0xfffffffe); puVar1 = (uint *)local_14; if (iVar3 == 5) { *param_1 = uVar6; - FUN_006a80f0(uVar6); + LuaRef::push(uVar6); uVar4 = luaL_ref(uVar6,0xfff0b9d8); param_1[1] = uVar4; luaL_unref(uVar6,0xfff0b9d8,iVar5); @@ -644670,7 +644670,7 @@ undefined4 * FUN_00865490(undefined4 *param_1,undefined4 param_2) uVar4 = 0xffffffff; } else { - FUN_006a80f0(uVar6); + LuaRef::push(uVar6); uVar4 = luaL_ref(uVar6,0xfff0b9d8); } param_1[1] = uVar4; @@ -644876,7 +644876,7 @@ undefined4 FUN_008658c0(undefined4 param_1,undefined4 *param_2) uStack_58 = 0x86592d; ExceptionList = &local_1c; uStack_54 = uVar7; - FUN_006a80f0(); + LuaRef::push(); uStack_54 = 0x865937; FUN_0085bfd0(); uStack_54 = 0x865941; @@ -644951,11 +644951,11 @@ undefined4 FUN_00865a04(void) *(int *)(unaff_EBP + -0x24) = iVar1; lua_settop(); if (iVar1 != -1) { - FUN_006a80f0(unaff_EDI); + LuaRef::push(unaff_EDI); iVar1 = lua_type(); lua_settop(); if (iVar1 != 0) { - FUN_006a80f0(unaff_EDI); + LuaRef::push(unaff_EDI); lua_gettop(); uVar2 = luaL_checkinteger(); lua_settop(); @@ -645017,7 +645017,7 @@ undefined4 LuaEngine::GetPillEffect(void) uStack_3c = 0x865b24; ExceptionList = &local_10; uStack_38 = uVar2; - FUN_006a80f0(); + LuaRef::push(); uStack_38 = 0x865b2e; FUN_0085bfd0(); uStack_38 = 0x865b37; @@ -645075,11 +645075,11 @@ undefined4 FUN_00865bbc(void) *(undefined4 *)(unaff_EBP + -0x14) = uVar1; lua_settop(); if (*(int *)(unaff_EBP + -0x14) != -1) { - FUN_006a80f0(unaff_EDI); + LuaRef::push(unaff_EDI); iVar2 = lua_type(); lua_settop(); if (iVar2 != 0) { - FUN_006a80f0(unaff_EDI); + LuaRef::push(unaff_EDI); lua_gettop(); unaff_EBX = luaL_checkinteger(); lua_settop(); @@ -645132,11 +645132,11 @@ undefined4 FUN_00865c80(undefined4 param_1,undefined4 param_2) local_8 = 0; FUN_00874d20(&local_24,DAT_00c71690,param_2); if (local_20 != -1) { - FUN_006a80f0(local_24); + LuaRef::push(local_24); iVar1 = lua_type(local_24,0xffffffff); lua_settop(local_24,0xfffffffe); if (iVar1 != 0) { - FUN_006a80f0(local_24); + LuaRef::push(local_24); uVar2 = lua_gettop(local_24); uVar2 = luaL_checkinteger(local_24,uVar2); lua_settop(local_24,0xfffffffe); @@ -645190,11 +645190,11 @@ undefined4 FUN_00865dc0(undefined4 param_1,undefined4 param_2,undefined4 param_3 local_8 = 0; FUN_00874dd0(&local_24,DAT_00c71690,param_1,param_2,param_3); if (local_20 != -1) { - FUN_006a80f0(local_24); + LuaRef::push(local_24); iVar1 = lua_type(local_24,0xffffffff); lua_settop(local_24,0xfffffffe); if (iVar1 != 0) { - FUN_006a80f0(local_24); + LuaRef::push(local_24); uVar2 = lua_gettop(local_24); uVar2 = luaL_checkinteger(local_24,uVar2); lua_settop(local_24,0xfffffffe); @@ -645248,11 +645248,11 @@ undefined4 FUN_00865f10(undefined4 param_1,undefined4 param_2,undefined4 param_3 local_8 = 0; FUN_00874e90(&local_24,DAT_00c71690,param_1,param_2,param_3,param_4); if (local_20 != -1) { - FUN_006a80f0(local_24); + LuaRef::push(local_24); iVar1 = lua_type(local_24,0xffffffff); lua_settop(local_24,0xfffffffe); if (iVar1 != 0) { - FUN_006a80f0(local_24); + LuaRef::push(local_24); uVar2 = lua_gettop(local_24); uVar2 = luaL_checkinteger(local_24,uVar2); lua_settop(local_24,0xfffffffe); @@ -645279,9 +645279,9 @@ void Catch_00865fe8(void) } -//@@ 00866060 FUN_00866060 +//@@ 00866060 Entity::ReleaseLuaRef -void FUN_00866060(int param_1) +void Entity::ReleaseLuaRef(int param_1) { uint uStack_40; @@ -645412,7 +645412,7 @@ uint FUN_00866220(undefined4 *param_1,undefined4 *param_2) uStack_70 = 0x8662a7; ExceptionList = &local_1c; uStack_6c = uVar3; - FUN_006a80f0(); + LuaRef::push(); uStack_6c = 0x8662b3; FUN_0085bfd0(); uStack_6c = 0x8662bd; @@ -645490,11 +645490,11 @@ undefined1 FUN_008663b6(void) *(int *)(unaff_EBP + -0x2c) = iVar2; lua_settop(); if (iVar2 != -1) { - FUN_006a80f0(unaff_EDI); + LuaRef::push(unaff_EDI); iVar2 = lua_type(); lua_settop(); if (iVar2 != 0) { - FUN_006a80f0(unaff_EDI); + LuaRef::push(unaff_EDI); lua_gettop(); iVar2 = lua_toboolean(); *(bool *)(unaff_EBP + -0x19) = iVar2 != 0; @@ -645565,7 +645565,7 @@ LuaEngine::Callback_PreEntitySpawn ExceptionList = &local_10; FUN_00875050(&local_24,*param_3,*param_1,*param_2,*param_3,param_4,param_5); if (local_20 != -1) { - FUN_006a80f0(local_24); + LuaRef::push(local_24); iVar2 = lua_type(local_24,0xffffffff); lua_settop(local_24,0xfffffffe); if (iVar2 == 5) { @@ -645663,11 +645663,11 @@ bool FUN_008667d0(int param_1) FUN_00874f60(&local_1c,*(undefined4 *)(param_1 + 0x28),param_1); iVar3 = local_18; if (local_18 != -1) { - FUN_006a80f0(local_1c); + LuaRef::push(local_1c); iVar1 = lua_type(local_1c,0xffffffff); lua_settop(local_1c,0xfffffffe); if (iVar1 != 0) { - FUN_006a80f0(local_1c); + LuaRef::push(local_1c); uVar2 = lua_gettop(local_1c); iVar3 = lua_toboolean(local_1c,uVar2); lua_settop(local_1c,0xfffffffe); @@ -645790,7 +645790,7 @@ void FUN_00866960(void) FUN_008a0460(Vector::DistanceSquared); FUN_008a0360(Vector::Rotated); puVar2 = (undefined4 *)lua_newuserdata(local_18,4); - *puVar2 = FUN_00a10350; + *puVar2 = Vector::FromAngle; lua_pushcclosure(local_18,FUN_008a02c0,1); FUN_0085bf90("FromAngle"); FUN_008a0220(Vector::GetAngleDegrees); @@ -645950,7 +645950,7 @@ void FUN_00866960(void) FUN_00875960("Color",Sprite::Color,Sprite::SetColor); FUN_0089e610(Sprite::GetTexel); FUN_00875ae0("FlipX",Sprite::FlipX,FUN_00435c60); - FUN_00875ae0("FlipY",Sprite::FlipY,FUN_00505b50); + FUN_00875ae0("FlipY",Sprite::FlipY,set_byte_0x101); uVar1 = FUN_008757f0("PlaybackSpeed",Sprite::PlaybackSpeed,set_PlaybackSpeed); FUN_0089ea10(Sprite::GetDefaultAnimationName); FUN_0089edd0(Sprite::GetAnimation); @@ -646332,8 +646332,8 @@ void FUN_00866960(void) local_8._0_1_ = 0x4b; FUN_0087d5d0("Friction",0x36c,1); FUN_0087d750("GetData",Entity::GetData); - FUN_0087d7b0("Position",Entity::Position,FUN_004288f0); - FUN_0087d7b0("Velocity",Entity::Velocity,FUN_00428910); + FUN_0087d7b0("Position",Entity::Position,Entity::SetPosition); + FUN_0087d7b0("Velocity",Entity::Velocity,Entity::SetVelocity); FUN_0087d920("Color",Entity::Color,FUN_00871f70); FUN_0087daa0("Update",Entity::Update); FUN_0087db00("Render",Entity::Render); @@ -646355,7 +646355,7 @@ void FUN_00866960(void) FUN_0087e120("MultiplyFriction",Entity::MultiplyFriction); FUN_0087e180("SetColor",GridEntity::Destroy); FUN_0087e1e0("GetColor",Entity::GetColor); - FUN_0087e290("SplatColor",Entity::SplatColor,FUN_00456380); + FUN_0087e290("SplatColor",Entity::SplatColor,Color::assign); FUN_0087e410("Visible",Entity::Visible,FUN_0044bf90); FUN_0087e580("PositionOffset",Entity::PositionOffset,Entity::SetPositionOffset); FUN_0087df50("RenderZOffset",Entity::RenderZOffset,FUN_00440e90); @@ -646369,11 +646369,11 @@ void FUN_00866960(void) FUN_0087ea40(&DAT_00b6d1ac,Entity::Size,FUN_00871fa0); FUN_0087ebc0("SetSize",Entity::SetSize); FUN_0087d7b0("SizeMulti",Entity::SizeMulti,FUN_004563e0); - FUN_0087e8d0(&DAT_00b711bc,Entity::Mass,FUN_00447720); + FUN_0087e8d0(&DAT_00b711bc,Entity::Mass,set_field_0x37c); FUN_0087e8d0("MaxHitPoints",Entity::MaxHitPoints,FUN_00435d40); - FUN_0087e8d0("HitPoints",Entity::HitPoints,FUN_00435d20); + FUN_0087e8d0("HitPoints",Entity::HitPoints,Entity::SetField380); FUN_0087ec20("Index",PathFinder::GetGridIndex); - FUN_0087ed10("TargetPosition",Entity::TargetPosition,FUN_00435d60); + FUN_0087ed10("TargetPosition",Entity::TargetPosition,Entity::SetTargetPosition); FUN_0087df50("GridCollisionClass",Entity::GridCollisionClass,FUN_0044bfa0); FUN_0087df50("EntityCollisionClass",Entity::EntityCollisionClass,FUN_00435d90); FUN_0087e8d0("CollisionDamage",Entity::CollisionDamage,&LAB_008c5ce3); @@ -646746,7 +646746,7 @@ void FUN_00866960(void) FUN_00884950("Morph",Entity_Pickup::Morph); FUN_008849b0("Charge",Entity_Pickup::Charge,FUN_005b1920); FUN_00884b20("IsShopItem",Entity_Pickup::IsShopItem); - FUN_008849b0("Price",Entity_Pickup::Price,FUN_006e2570); + FUN_008849b0("Price",Entity_Pickup::Price,Entity_Pickup::update_price_sprite); FUN_00884bc0("GetCoinValue",Entity_Pickup::GetCoinValue); FUN_008849b0("Timeout",Entity_Pickup::Timeout,FUN_0060d1f0); FUN_00884c70("Touched",Entity_Pickup::Touched,FUN_005b1950); @@ -646855,7 +646855,7 @@ void FUN_00866960(void) local_8._0_1_ = 0x59; FUN_00886aa0("Morph",Entity_NPC::Morph); FUN_00886b00("KillUnique",Entity_NPC::KillUnique); - FUN_00886b60("CanShutDoors",Entity::CanShutDoors,FUN_00436220); + FUN_00886b60("CanShutDoors",Entity::CanShutDoors,Entity::SetVisibleFlag); FUN_00886ce0("IsBoss",Entity::IsBoss); FUN_00886d80("ThrowSpider",Entity_NPC::ThrowSpider); FUN_00886de0("GetPlayerTarget",Entity_NPC::GetPlayerTarget); @@ -647949,7 +647949,7 @@ LAB_0086f006: uVar3 = 0; } else { - FUN_006a80f0(param_1); + LuaRef::push(param_1); iVar2 = lua_type(param_1,0xffffffff); lua_settop(param_1,0xfffffffe); if (iVar2 == 0) goto LAB_0086f006; @@ -648084,7 +648084,7 @@ void Isaac::RenderText(undefined4 *param_1,undefined4 param_2,undefined4 param_3 if (0xf < (uint)param_1[5]) { param_1 = (undefined4 *)*param_1; } - FUN_00a1af90(param_1,&local_24,&local_40); + Font::DrawString(param_1,&local_24,&local_40); ExceptionList = local_10; return; } @@ -648679,7 +648679,7 @@ undefined4 * Isaac::GetRoomEntities(undefined4 *param_1) if (uVar2 != 0) { do { iVar3 = *(int *)(iVar1 + uVar6 * 4); - FUN_006a80f0(*param_1); + LuaRef::push(*param_1); uVar4 = *param_1; if (iVar3 == 0) { lua_pushnil(uVar4); @@ -649161,11 +649161,11 @@ undefined4 Isaac::FindInRadius(undefined4 param_1) local_30 = luaL_ref(param_1,0xfff0b9d8); local_8 = CONCAT31(local_8._1_3_,3); if ((DAT_00c71678 != 0) && (local_28 != -1)) { - FUN_006a80f0(param_1); + LuaRef::push(param_1); iVar3 = lua_type(param_1,0xffffffff); lua_settop(param_1,0xfffffffe); if ((iVar3 != 0) && (local_20 != -1)) { - FUN_006a80f0(param_1); + LuaRef::push(param_1); iVar3 = lua_type(param_1,0xffffffff); lua_settop(param_1,0xfffffffe); if (iVar3 != 0) { @@ -649177,12 +649177,12 @@ undefined4 Isaac::FindInRadius(undefined4 param_1) else { param_1 = 0xffffffff; } - FUN_006a80f0(uVar1); + LuaRef::push(uVar1); uVar4 = lua_gettop(uVar1); fVar7 = (float10)luaL_checknumber(uVar1,uVar4); local_18 = (float)fVar7; lua_settop(uVar1,0xfffffffe); - FUN_006a80f0(uVar1); + LuaRef::push(uVar1); uVar4 = lua_gettop(uVar1); iVar3 = lua_type(uVar1,uVar4); if (iVar3 == 0) { @@ -649200,7 +649200,7 @@ undefined4 Isaac::FindInRadius(undefined4 param_1) if (local_48 != 0) { do { iVar3 = *(int *)(local_50 + uVar6 * 4); - FUN_006a80f0(uVar1); + LuaRef::push(uVar1); if (iVar3 == 0) { lua_pushnil(uVar1); } @@ -649223,7 +649223,7 @@ undefined4 Isaac::FindInRadius(undefined4 param_1) } } } - FUN_006a80f0(uVar1); + LuaRef::push(uVar1); luaL_unref(uVar1,0xfff0b9d8,local_30); luaL_unref(uVar1,0xfff0b9d8,local_38); luaL_unref(uVar1,0xfff0b9d8,local_20); @@ -649283,22 +649283,22 @@ undefined4 Isaac::FindByType(undefined4 param_1) local_8 = CONCAT31(local_8._1_3_,5); if (DAT_00c71678 != 0) { iVar2 = *(int *)(DAT_00c71678 + 0x18300); - FUN_006a80f0(param_1); + LuaRef::push(param_1); uVar10 = lua_gettop(param_1); lua_toboolean(param_1,uVar10); lua_settop(param_1,0xfffffffe); - FUN_006a80f0(param_1); + LuaRef::push(param_1); uVar10 = lua_gettop(param_1); lua_toboolean(param_1,uVar10); lua_settop(param_1,0xfffffffe); pcVar14 = luaL_checkinteger_exref; if (iVar6 != -1) { - FUN_006a80f0(param_1); + LuaRef::push(param_1); iVar11 = lua_type(param_1,0xffffffff); lua_settop(param_1,0xfffffffe); pcVar14 = luaL_checkinteger_exref; if (iVar11 != 0) { - FUN_006a80f0(param_1); + LuaRef::push(param_1); uVar10 = lua_gettop(param_1); pcVar14 = luaL_checkinteger_exref; luaL_checkinteger(param_1,uVar10); @@ -649306,30 +649306,30 @@ undefined4 Isaac::FindByType(undefined4 param_1) } } if (iVar5 != -1) { - FUN_006a80f0(param_1); + LuaRef::push(param_1); iVar11 = lua_type(param_1,0xffffffff); lua_settop(param_1,0xfffffffe); if (iVar11 == 0) { pcVar14 = luaL_checkinteger_exref; } else { - FUN_006a80f0(param_1); + LuaRef::push(param_1); uVar10 = lua_gettop(param_1); pcVar14 = luaL_checkinteger_exref; luaL_checkinteger(param_1,uVar10); lua_settop(param_1,0xfffffffe); } } - FUN_006a80f0(param_1); + LuaRef::push(param_1); uVar10 = lua_gettop(param_1); (*pcVar14)(param_1,uVar10); lua_settop(param_1,0xfffffffe); - NpcAI::ENTITY_MASK((Entity_NPC *)(iVar2 + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(iVar2 + 0x1218)); uVar15 = 0; if (local_5c != 0) { do { iVar2 = *(int *)(local_64 + uVar15 * 4); - FUN_006a80f0(uVar1); + LuaRef::push(uVar1); if (iVar2 == 0) { lua_pushnil(uVar1); } @@ -649361,7 +649361,7 @@ undefined4 Isaac::FindByType(undefined4 param_1) } } } - FUN_006a80f0(param_1); + LuaRef::push(param_1); luaL_unref(uVar1,0xfff0b9d8,uVar9); luaL_unref(param_1,0xfff0b9d8,uVar8); luaL_unref(param_1,0xfff0b9d8,uVar7); @@ -649407,11 +649407,11 @@ LAB_00870c43: uStack_34 = 0xffffffff; } else { - FUN_006a80f0(param_1); + LuaRef::push(param_1); iVar5 = lua_type(param_1,0xffffffff); lua_settop(param_1,0xfffffffe); if (iVar5 == 0) goto LAB_00870c43; - FUN_006a80f0(param_1); + LuaRef::push(param_1); uVar6 = lua_gettop(param_1); uStack_34 = luaL_checkinteger(param_1,uVar6); lua_settop(param_1,0xfffffffe); @@ -649421,21 +649421,21 @@ LAB_00870c9d: uStack_30 = 0xffffffff; } else { - FUN_006a80f0(param_1); + LuaRef::push(param_1); iVar5 = lua_type(param_1,0xffffffff); lua_settop(param_1,0xfffffffe); if (iVar5 == 0) goto LAB_00870c9d; - FUN_006a80f0(param_1); + LuaRef::push(param_1); uVar6 = lua_gettop(param_1); uStack_30 = luaL_checkinteger(param_1,uVar6); lua_settop(param_1,0xfffffffe); } if (iVar2 != -1) { - FUN_006a80f0(param_1); + LuaRef::push(param_1); iVar5 = lua_type(param_1,0xffffffff); lua_settop(param_1,0xfffffffe); if (iVar5 != 0) { - FUN_006a80f0(param_1); + LuaRef::push(param_1); uVar6 = lua_gettop(param_1); uVar6 = luaL_checkinteger(param_1,uVar6); lua_settop(param_1,0xfffffffe); @@ -649574,7 +649574,7 @@ void FUN_00870e00(int param_1) else { puStack_34 = (undefined4 *)0x870e47; uStack_30 = uVar3; - FUN_006a80f0(); + LuaRef::push(); uStack_30 = 0xfff0b9d8; puStack_34 = (undefined4 *)*puVar2; uStack_38 = 0x870e54; @@ -649583,10 +649583,10 @@ void FUN_00870e00(int param_1) local_8 = 0; uStack_30 = *puVar1; puStack_34 = (undefined4 *)0x870e72; - FUN_006a80f0(); + LuaRef::push(); uStack_30 = *puVar1; puStack_34 = (undefined4 *)0x870e7c; - FUN_006a80f0(); + LuaRef::push(); uVar4 = *puVar1; uStack_30 = 0; puStack_34 = (undefined4 *)0x0; @@ -649711,7 +649711,7 @@ void Isaac::RegisterMod(undefined4 param_1,int param_2,int *param_3,int param_4) puVar2[1] = 0xffffffff; } else { - FUN_006a80f0(param_1); + LuaRef::push(param_1); uVar3 = luaL_ref(param_1,0xfff0b9d8); puVar2[1] = uVar3; } @@ -649859,7 +649859,7 @@ void Isaac::SaveModData(undefined4 param_1,int param_2,undefined4 *param_3) uVar3 = 0xffffffff; } else { - FUN_006a80f0(param_1); + LuaRef::push(param_1); uVar3 = luaL_ref(param_1,0xfff0b9d8); } cVar1 = FUN_00897540(uVar11,uVar3); @@ -650009,7 +650009,7 @@ undefined4 * Isaac::LoadModData(undefined4 *param_1,undefined4 param_2,int param uVar4 = 0xffffffff; } else { - FUN_006a80f0(param_2); + LuaRef::push(param_2); uVar4 = luaL_ref(param_2,0xfff0b9d8); } cVar2 = FUN_00897540(uVar13,uVar4); @@ -650178,7 +650178,7 @@ bool Isaac::HasModData(undefined4 param_1,int param_2) uVar3 = 0xffffffff; } else { - FUN_006a80f0(param_1); + LuaRef::push(param_1); uVar3 = luaL_ref(param_1,0xfff0b9d8); } cVar1 = FUN_00897540(uVar11,uVar3); @@ -650329,7 +650329,7 @@ void Isaac::RemoveModData(undefined4 param_1,int param_2) uVar4 = 0xffffffff; } else { - FUN_006a80f0(param_1); + LuaRef::push(param_1); uVar4 = luaL_ref(param_1,0xfff0b9d8); } cVar2 = FUN_00897540(uVar12,uVar4); @@ -650670,7 +650670,7 @@ void FUN_00872090(void) local_18 = local_2c; if (local_20 != 0.0) { KColor::SetFromARGB(); - FUN_00a1d710(&local_24,&local_30,extraout_ECX,extraout_ECX,0x3f800000); + render_color_quad(&local_24,&local_30,extraout_ECX,extraout_ECX,0x3f800000); } uVar5 = uVar5 + 1; local_20 = local_18; @@ -650683,13 +650683,13 @@ void FUN_00872090(void) local_24 = local_28; local_2c = fVar8; local_20 = fVar8; - FUN_00a1d710(&local_24,&local_30,extraout_ECX_00,extraout_ECX_00,0x3f800000); + render_color_quad(&local_24,&local_30,extraout_ECX_00,extraout_ECX_00,0x3f800000); KColor::SetFromARGB(); local_2c = local_34; local_30 = local_28; local_24 = local_28; local_20 = local_3c; - FUN_00a1d710(&local_24,&local_30,extraout_ECX_01,extraout_ECX_01,0x3f800000); + render_color_quad(&local_24,&local_30,extraout_ECX_01,extraout_ECX_01,0x3f800000); iVar7 = 0; local_30 = local_28; local_24 = local_28 - 1.0; @@ -650703,7 +650703,7 @@ void FUN_00872090(void) uStack_44 = 0x3f800000; local_2c = local_3c; local_20 = local_3c; - FUN_00a1d710(&local_24,&local_30,&local_50,&local_50,0x3f800000); + render_color_quad(&local_24,&local_30,&local_50,&local_50,0x3f800000); FUN_008975b0(local_1c,&DAT_00b75368); local_58 = 0; local_54 = 0xffff; @@ -650719,8 +650719,8 @@ void FUN_00872090(void) local_8 = CONCAT31(local_8._1_3_,1); FUN_00a1bd80(uVar2,0x3f800000,0x3f800000,0x3f800000,0x3f800000,0x3f800000,0x3f800000,0, &local_58); - FUN_00a55d60(); - FUN_0069dac0(); + std::vector<12byte>::clear(); + std::vector<12byte>::_Tidy(); iVar7 = iVar7 + 1; local_8 = 0xffffffff; } while (iVar7 < 3); @@ -650963,7 +650963,7 @@ bool FUN_00872820(void) undefined4 *in_ECX; uVar1 = *in_ECX; - FUN_006a80f0(uVar1); + LuaRef::push(uVar1); uVar2 = lua_gettop(*in_ECX); iVar3 = lua_toboolean(*in_ECX,uVar2); lua_settop(uVar1,0xfffffffe); @@ -650991,7 +650991,7 @@ undefined4 * FUN_00872860(undefined4 *param_1) ExceptionList = &local_10; uVar1 = *in_ECX; local_8 = 0; - FUN_006a80f0(uVar1); + LuaRef::push(uVar1); uVar3 = lua_gettop(*in_ECX,uVar2); uVar3 = luaL_checklstring(*in_ECX,uVar3,&local_14); *param_1 = 0; @@ -651016,7 +651016,7 @@ undefined4 FUN_00872910(void) undefined4 *in_ECX; uVar1 = *in_ECX; - FUN_006a80f0(uVar1); + LuaRef::push(uVar1); uVar2 = lua_gettop(*in_ECX); iVar3 = lua_type(*in_ECX,uVar2); if (iVar3 == 0) { @@ -654042,7 +654042,7 @@ undefined4 * FUN_008746b0(undefined4 *param_1) puVar1 = *(undefined **)*in_ECX; puStack_18 = (undefined *)0x8746c2; puStack_14 = puVar1; - FUN_006a80f0(); + LuaRef::push(); puStack_14 = (undefined *)0x8746cc; FUN_0085bfd0(); puStack_14 = (undefined *)0x8746d6; @@ -654596,7 +654596,7 @@ undefined4 * FUN_00874bd0(undefined4 *param_1,undefined4 param_2,int param_3) uVar1 = *(undefined4 *)*in_ECX; ppppuStack_44 = (undefined4 ****)0x874c11; puStack_40 = (undefined4 *)uVar1; - FUN_006a80f0(); + LuaRef::push(); puStack_40 = (undefined4 *)0x874c1b; FUN_0085bfd0(); puStack_40 = (undefined4 *)0x874c25; @@ -660721,7 +660721,7 @@ undefined4 * FUN_0087e290(void) lua_pushstring(uVar1,"__propset"); lua_rawget(uVar1,uVar2); puVar3 = (undefined4 *)lua_newuserdata(*in_ECX,4); - *puVar3 = FUN_00456380; + *puVar3 = Color::assign; lua_pushcclosure(*in_ECX,FUN_0089dd00,1); uVar1 = *in_ECX; uVar2 = lua_absindex(uVar1,0xfffffffe); @@ -661102,7 +661102,7 @@ undefined4 * FUN_0087ed10(void) lua_pushstring(uVar1,"__propset"); lua_rawget(uVar1,uVar2); puVar3 = (undefined4 *)lua_newuserdata(*in_ECX,4); - *puVar3 = FUN_00435d60; + *puVar3 = Entity::SetTargetPosition; lua_pushcclosure(*in_ECX,FUN_0089d800,1); uVar1 = *in_ECX; uVar2 = lua_absindex(uVar1,0xfffffffe); @@ -666532,7 +666532,7 @@ undefined4 * FUN_00886b60(void) lua_pushstring(uVar1,"__propset"); lua_rawget(uVar1,uVar2); puVar3 = (undefined4 *)lua_newuserdata(*in_ECX,4); - *puVar3 = FUN_00436220; + *puVar3 = Entity::SetVisibleFlag; lua_pushcclosure(*in_ECX,FUN_0089b540,1); uVar1 = *in_ECX; uVar2 = lua_absindex(uVar1,0xfffffffe); @@ -678443,7 +678443,7 @@ undefined4 FUN_00897500(void) undefined4 *in_ECX; uVar1 = *in_ECX; - FUN_006a80f0(uVar1); + LuaRef::push(uVar1); uVar2 = lua_gettop(*in_ECX); uVar2 = luaL_checkinteger(*in_ECX,uVar2); lua_settop(uVar1,0xfffffffe); @@ -678462,7 +678462,7 @@ bool FUN_00897540(undefined4 param_1,undefined4 param_2) uVar1 = *in_ECX; lua_rawgeti(uVar1,0xfff0b9d8,in_ECX[1],(int)in_ECX[1] >> 0x1f); - FUN_006a80f0(*in_ECX); + LuaRef::push(*in_ECX); iVar2 = lua_compare(*in_ECX,0xfffffffe,0xffffffff,0); lua_settop(uVar1,0xfffffffd); luaL_unref(param_1,0xfff0b9d8,param_2); @@ -678744,7 +678744,7 @@ undefined4 FUN_00897a10(undefined4 param_1) iVar3 = -1; } else { - FUN_006a80f0(local_24); + LuaRef::push(local_24); iVar3 = luaL_ref(local_24,0xfff0b9d8); } local_8 = CONCAT31(local_8._1_3_,1); @@ -678753,7 +678753,7 @@ undefined4 FUN_00897a10(undefined4 param_1) uVar4 = 0xffffffff; } else { - FUN_006a80f0(local_24); + LuaRef::push(local_24); uVar4 = luaL_ref(local_24,0xfff0b9d8); } (*pcVar1)(uVar5,uVar4); @@ -678791,12 +678791,12 @@ undefined4 FUN_00897b00(undefined4 param_1) iVar4 = -1; } else { - FUN_006a80f0(); + LuaRef::push(); iVar4 = luaL_ref(); } local_8 = CONCAT31(local_8._1_3_,1); if (iVar4 != -1) { - FUN_006a80f0(local_24); + LuaRef::push(local_24); luaL_ref(local_24,0xfff0b9d8); } cVar2 = (*pcVar1)(); @@ -678842,12 +678842,12 @@ undefined4 FUN_00897c00(undefined4 param_1) iVar3 = -1; } else { - FUN_006a80f0(); + LuaRef::push(); iVar3 = luaL_ref(); } local_8 = (undefined4 ***)CONCAT31(local_8._1_3_,1); if (iVar3 != -1) { - FUN_006a80f0(local_40); + LuaRef::push(local_40); luaL_ref(local_40,0xfff0b9d8); } (*pcVar1)(local_2c); @@ -678913,7 +678913,7 @@ undefined4 FUN_00897d50(undefined4 param_1) local_34 = -1; } else { - FUN_006a80f0(param_1); + LuaRef::push(param_1); local_34 = luaL_ref(param_1,0xfff0b9d8); } local_8 = CONCAT31(local_8._1_3_,2); @@ -678929,7 +678929,7 @@ undefined4 FUN_00897d50(undefined4 param_1) local_84 = -1; } else { - FUN_006a80f0(local_38); + LuaRef::push(local_38); local_84 = luaL_ref(uVar3,0xfff0b9d8); } local_8._0_1_ = 4; @@ -678941,7 +678941,7 @@ undefined4 FUN_00897d50(undefined4 param_1) uVar2 = 0xffffffff; } else { - FUN_006a80f0(local_88); + LuaRef::push(local_88); uVar2 = luaL_ref(local_88,0xfff0b9d8); } (*local_5c)(uVar3,uVar2,puVar4); @@ -679019,7 +679019,7 @@ undefined4 FUN_00897f50(undefined4 param_1) local_38 = -1; } else { - FUN_006a80f0(param_1); + LuaRef::push(param_1); local_38 = luaL_ref(param_1,0xfff0b9d8); } local_8 = CONCAT31(local_8._1_3_,2); @@ -679037,7 +679037,7 @@ undefined4 FUN_00897f50(undefined4 param_1) local_90 = -1; } else { - FUN_006a80f0(local_3c); + LuaRef::push(local_3c); local_90 = luaL_ref(uVar3,0xfff0b9d8); } local_8._0_1_ = 4; @@ -679052,7 +679052,7 @@ undefined4 FUN_00897f50(undefined4 param_1) uVar2 = 0xffffffff; } else { - FUN_006a80f0(local_94); + LuaRef::push(local_94); uVar2 = luaL_ref(local_94,0xfff0b9d8); } (*local_64)(uVar3,uVar2,puVar4,uVar5); @@ -679263,7 +679263,7 @@ undefined4 FUN_00898490(undefined4 param_1) puVar1 = (undefined4 *)lua_touserdata(param_1,0xfff0b9d7); (*(code *)*puVar1)(&local_c); - FUN_006a80f0(param_1); + LuaRef::push(param_1); luaL_unref(local_c,0xfff0b9d8,local_8); return 1; } @@ -691405,7 +691405,7 @@ undefined4 FUN_008ab750(undefined4 param_1) } puVar2 = (undefined4 *)lua_touserdata(param_1,0xfff0b9d7); (*(code *)*puVar2)(&local_c); - FUN_006a80f0(param_1); + LuaRef::push(param_1); luaL_unref(local_c,0xfff0b9d8,local_8); return 1; } @@ -700305,7 +700305,7 @@ void FUN_008ba0c0(undefined4 param_1) uVar2 = 0xffffffff; } else { - FUN_006a80f0(param_1); + LuaRef::push(param_1); uVar2 = luaL_ref(param_1,0xfff0b9d8); } in_ECX[1] = uVar2; @@ -701915,7 +701915,7 @@ undefined4 FUN_008bbd60(undefined4 param_1) puVar1[1] = puVar1 + 2; lua_rawgetp(param_1,0xfff0b9d8,&DAT_00c82998); lua_setmetatable(param_1,0xfffffffe); - NpcAI::ENTITY_GEMINI((Entity_NPC *)puVar1[1]); + ProjectileParams::ProjectileParams((Entity_NPC *)puVar1[1]); return 1; } @@ -705816,9 +705816,9 @@ undefined4 FUN_008c0140(undefined4 param_1) local_8 = 0; FUN_0085e000(local_68); FID_conflict__Tidy(local_20); - FUN_00426980(); - FUN_00426980(); - FUN_00426980(); + std::vector::_Tidy(); + std::vector::_Tidy(); + std::vector::_Tidy(); ExceptionList = local_10; return 0; } @@ -710397,9 +710397,9 @@ void FUN_008c5a90(byte param_1) *in_ECX = luabridge::UserdataValue::vftable; FID_conflict__Tidy(in_ECX + 0x14); - FUN_00426980(); - FUN_00426980(); - FUN_00426980(); + std::vector::_Tidy(); + std::vector::_Tidy(); + std::vector::_Tidy(); *in_ECX = luabridge::Userdata::vftable; if ((param_1 & 1) != 0) { operator_delete(); @@ -711887,7 +711887,7 @@ LAB_008c7985: uStack_1b8 = 0x3f800000; local_144 = local_144 + 360.0; local_1b4 = 0.0; - FUN_00a1af90(pppppppuVar7,&local_1c4,&local_188); + Font::DrawString(pppppppuVar7,&local_1c4,&local_188); } else { fVar15 = 200.0 / (float)((double)(int)uVar3 + (double)(&DAT_00bacb00)[-((int)uVar3 >> 0x1f)]); @@ -711911,7 +711911,7 @@ LAB_008c7985: } local_14._0_1_ = 1; local_1b0 = (double)*(float *)((int)fVar10 + 0x68); - uVar6 = FUN_009586f0(DAT_00c7169c + 0x4a920,"#BESTIARY_HP"); + uVar6 = string_table_translate(DAT_00c7169c + 0x4a920,"#BESTIARY_HP"); sprintf_s(local_128,0x100,"%s: %.f",uVar6,local_1b0); local_188 = 1; local_184 = 0xffff; @@ -711928,10 +711928,10 @@ LAB_008c7985: local_14._0_1_ = 5; FUN_00a1bd80(uVar6,0x3f000000,0x3f000000,0x3e4ccccd,0x3e4ccccd,0x3e4ccccd,0x3f800000,0, &local_188); - FUN_00a55d60(); - FUN_0069dac0(); + std::vector<12byte>::clear(); + std::vector<12byte>::_Tidy(); local_14._0_1_ = 1; - uVar6 = FUN_009586f0(DAT_00c7169c + 0x4a920,"#BESTIARY_HITS"); + uVar6 = string_table_translate(DAT_00c7169c + 0x4a920,"#BESTIARY_HITS"); sprintf_s(local_128,0x100,"%s: %d",uVar6); local_188 = 1; local_184 = 0xffff; @@ -711948,10 +711948,10 @@ LAB_008c7985: local_14._0_1_ = 7; FUN_00a1bd80(uVar6,0x3f000000,0x3f000000,0x3e4ccccd,0x3e4ccccd,0x3e4ccccd,0x3f800000,0, &local_188); - FUN_00a55d60(); - FUN_0069dac0(); + std::vector<12byte>::clear(); + std::vector<12byte>::_Tidy(); local_14._0_1_ = 1; - uVar6 = FUN_009586f0(DAT_00c7169c + 0x4a920,"#BESTIARY_DEATHS"); + uVar6 = string_table_translate(DAT_00c7169c + 0x4a920,"#BESTIARY_DEATHS"); sprintf_s(local_128,0x100,"%s: %d",uVar6); local_188 = 1; local_184 = 0xffff; @@ -711969,7 +711969,7 @@ LAB_008c7985: KColor::DrawString(local_128,local_144,(float)local_14c + 200.0,0x3f000000,0x3f000000,&local_1c4 ,&local_188); local_14._0_1_ = 1; - FUN_009586f0(DAT_00c7169c + 0x4a920,"#BESTIARY_KILLS"); + string_table_translate(DAT_00c7169c + 0x4a920,"#BESTIARY_KILLS"); sprintf_s(local_128,0x100,"%s: %d"); local_188 = 1; local_184 = 0xffff; @@ -711987,7 +711987,7 @@ LAB_008c7985: KColor::DrawString(local_128,local_144,(float)local_14c + 210.0,0x3f000000,0x3f000000,&local_1c4 ,&local_188); local_14._0_1_ = 1; - FUN_009586f0(DAT_00c7169c + 0x4a920,"#BESTIARY_ENCOUNTERS"); + string_table_translate(DAT_00c7169c + 0x4a920,"#BESTIARY_ENCOUNTERS"); sprintf_s(local_128,0x100,"%s: %d"); local_188 = 1; local_184 = 0xffff; @@ -712064,8 +712064,8 @@ LAB_008c7c0b: uStack_1c0 = 0x3e4ccccd; uStack_1bc = 0x3e4ccccd; uStack_1b8 = 0x3f800000; - uVar6 = FUN_009586f0(DAT_00c7169c + 0x4a920,"#BESTIARY_UNKNOWN"); - FUN_00a1af90(uVar6,&local_1c4,&local_188); + uVar6 = string_table_translate(DAT_00c7169c + 0x4a920,"#BESTIARY_UNKNOWN"); + Font::DrawString(uVar6,&local_1c4,&local_188); ExceptionList = local_1c; return; } @@ -712523,7 +712523,7 @@ LAB_008c8d25: if ((int)pbVar5 - (int)local_90 != -1) { uVar13 = local_2c - 4; if (local_2c < uVar13) { - FUN_00414870(uVar13 - local_2c,0); + std::string::append_n(uVar13 - local_2c,0); } else { pppppppiVar6 = (int *******)local_3c; @@ -713086,8 +713086,8 @@ void __thiscall Entity_Player::zhl_misfit_008c99b0(Entity_Player *this) local_8 = CONCAT31(local_8._1_3_,1); FUN_00a1c7d0(uVar4,0x3f800000,0x3f800000,0x3e58d8d9,0x3e3cbcbd,0x3e34b4b5,0x3f800000,0, &local_148); - FUN_00a55d60(); - FUN_0069dac0(); + std::vector<12byte>::clear(); + std::vector<12byte>::_Tidy(); local_8 = 0xffffffff; uVar8 = uVar8 + 1; iVar3 = *(int *)&this->field_0x124; @@ -714020,7 +714020,7 @@ void FUN_008caa30(void) if (0xf < (uint)local_c4[7]) { piVar7 = (int *)*piVar7; } - FUN_00a1aec0(piVar7,&local_ec,&local_128,&local_b0); + Font::DrawStringScaled(piVar7,&local_ec,&local_128,&local_b0); local_8 = 0xffffffff; puVar12 = &DAT_00c78f08; local_e8 = local_c0 + 15.0; @@ -714036,7 +714036,7 @@ void FUN_008caa30(void) if (0xf < (uint)puVar12[5]) { puVar6 = (undefined4 *)*puVar12; } - pcVar8 = (char *)FUN_009586f0(DAT_00c7169c + 0x4a920,puVar6); + pcVar8 = (char *)string_table_translate(DAT_00c7169c + 0x4a920,puVar6); local_9c = 0; local_98 = 0xf; local_ac = (undefined4 ******)0x0; @@ -714064,7 +714064,7 @@ void FUN_008caa30(void) uStack_124 = 0x3e3cbcbd; uStack_120 = 0x3e34b4b5; uStack_11c = 0x3f800000; - FUN_00a1aec0(ppppppuVar9,&local_ec,&local_128,&local_114); + Font::DrawStringScaled(ppppppuVar9,&local_ec,&local_128,&local_114); local_e8 = local_c0 + 15.0; local_bc = (float)((int)local_bc + 1); local_8 = 0xffffffff; @@ -714229,7 +714229,7 @@ void FUN_008cb190(void) local_8 = 0; KColor::SetFromARGB(0xff362f2d); uVar3 = FUN_004240b0(local_2c,1); - FUN_00a1aec0(local_24,uVar3,local_5c,&local_48); + Font::DrawStringScaled(local_24,uVar3,local_5c,&local_48); } } ExceptionList = local_10; @@ -715797,7 +715797,7 @@ void FUN_008cd3f0(void) else { uVar6 = uVar4 - 1; if (uVar4 < uVar6) { - FUN_00414870(0xffffffff,0); + std::string::append_n(0xffffffff,0); } else { puVar3 = puVar8; @@ -716093,7 +716093,7 @@ LAB_008cd921: local_5c = ppppppuVar13; if (ppppppuVar13 == (undefined4 ******)0x7fffffff) { /* WARNING: Subroutine does not return */ - FUN_0040ccc0(); + std::string::_Xlen(); } local_58 = (undefined4 ******)((int)ppppppuVar13 + 1); ppppppuVar9 = (undefined4 ******)((uint)local_58 | 0xf); @@ -716216,7 +716216,7 @@ LAB_008cd921: if (0xf < (uint)piVar6[5]) { piVar7 = (int *)*piVar6; } - FUN_00a1aec0(piVar7,&local_80,local_50,&local_9c); + Font::DrawStringScaled(piVar7,&local_80,local_50,&local_9c); local_14._0_1_ = 1; piVar6 = piVar6 + 6; local_7c = (float)*(ushort *)(DAT_00c7169c + 0x4aed6) + local_78; @@ -716335,7 +716335,7 @@ void FUN_008cddf0(void) /* WARNING: Subroutine does not return */ KAGE_LogMessage(1,"Seed %d added to SaveState\n",iVar2); } - FUN_009294f0(); + PersistentGameData::Save(); Seeds::RemoveBlockingSeedEffects(iVar2); Seeds::AddSeedEffect(iVar2); FUN_008f19f0(); @@ -716829,8 +716829,8 @@ LAB_008ce7b1: uVar9 = FUN_00a1bb10(local_d0,local_54,&local_b0,&local_94); local_8 = CONCAT31(local_8._1_3_,1); FUN_00a1bd80(uVar9,0x3f4ccccd,0x3f800000,0,0,0,0x3f800000,0,&local_b0); - FUN_00a55d60(); - FUN_0069dac0(); + std::vector<12byte>::clear(); + std::vector<12byte>::_Tidy(); local_8 = 0xffffffff; if (*in_ECX == local_58 + 0x2d) { pbVar2 = (byte *)in_ECX[0x11]; @@ -717861,7 +717861,7 @@ LAB_008cfe75: uVar11 = FontSettings::constructor(); local_8 = 2; KColor::SetFromARGB(0xff362f2d); - FUN_00a1af90(local_38,extraout_ECX_00,uVar11); + Font::DrawString(local_38,extraout_ECX_00,uVar11); local_8 = 0xffffffff; } } @@ -717939,7 +717939,7 @@ LAB_008d033d: local_448 = 0; local_8 = 5; KColor::SetFromARGB(0xff362f2d); - FUN_00a1af90(local_34,extraout_ECX_03,&local_460); + Font::DrawString(local_34,extraout_ECX_03,&local_460); local_8 = 0xffffffff; GenericPopup::Render(); GenericPrompt::Render(&this->_genericPrompt); @@ -718393,7 +718393,7 @@ void FUN_008d0f10(void) puStack_c = &LAB_00af0b40; local_10 = ExceptionList; ExceptionList = &local_10; - FUN_00426980(DAT_00bf93b4 ^ (int)register0x00000010 - 4U); + std::vector::_Tidy(DAT_00bf93b4 ^ (int)register0x00000010 - 4U); local_8 = 0; ANM2::Reset((ANM2 *)(in_ECX + 0x118)); AnimationState::~AnimationState(); @@ -718788,7 +718788,7 @@ void FUN_008d1600(void) local_4c = 0; local_8 = 0; KColor::SetFromARGB(0xffffffff); - FUN_00a1aec0("KICK PLAYER",&local_44,extraout_ECX,&local_64); + Font::DrawStringScaled("KICK PLAYER",&local_44,extraout_ECX,&local_64); local_8 = 0xffffffff; iVar4 = 2; iVar5 = *in_ECX + 1; @@ -718888,7 +718888,7 @@ void FUN_008d19a0(void) uVar10 = 0; local_1c = in_ECX; local_14 = puVar12; - iVar4 = FUN_009b9480(uVar3); + iVar4 = PlayerManager::count_main_players(uVar3); if (iVar4 != 0) { do { piVar5 = *(int **)(iVar6 + 0x1baa8); @@ -718947,13 +718947,13 @@ LAB_008d1a65: } iVar6 = DAT_00c71678; uVar10 = uVar10 + 1; - uVar8 = FUN_009b9480(uVar3); + uVar8 = PlayerManager::count_main_players(uVar3); } while (uVar10 < uVar8); } local_3c = 0; local_38 = (int *)0x0; local_8 = 0; - FUN_00a288a0(&DAT_00c79a74); + std::shared_ptr::assign(&DAT_00c79a74); local_8._0_1_ = 1; local_8._1_3_ = 0; uVar3 = 0; @@ -719206,7 +719206,7 @@ void FUN_008d1f20(void) (*(int *)(DAT_00c71678 + 0x1d520) != 0)) || ((*(int *)(DAT_00c71678 + 0x267ac) != 0 && (*(char *)(DAT_00c71678 + 0x267bc) != '\0')))) || ((*(int *)(DAT_00c71678 + 0x1d654) != 0 || (*(int *)(DAT_00c71678 + 0x1ba78) != 0)))) || - ((*(int *)(DAT_00c71678 + 0x1b83c) != 0 && (cVar2 = FUN_006f0070(), cVar2 != '\0')))) { + ((*(int *)(DAT_00c71678 + 0x1b83c) != 0 && (cVar2 = Game::IsRoomTransitionActive(), cVar2 != '\0')))) { if (*(int *)(in_ECX + 4) == 2) { *(undefined4 *)(in_ECX + 0x834) = 0; *(undefined4 *)(in_ECX + 4) = 3; @@ -721051,7 +721051,7 @@ void FUN_008d4940(float *param_1) pfVar15 = (float *)0x3f800000; local_74 = in_ECX; uVar5 = KColor::SetFromARGB(0xff000000); - FUN_004476a0(uVar5); + Color::Color(uVar5); FUN_009a6660(uVar14,&local_7c); pfVar13 = (float *)0x0; local_5c = 0; @@ -721833,7 +721833,7 @@ void FUN_008d5990(int *param_1,float *param_2,int param_3,int *param_4,int *para KColor::SetFromARGB(0xffffffff); local_64 = &DAT_42000000; local_60 = &DAT_42000000; - uVar10 = FUN_00a10e70(&local_58,&local_64,extraout_ECX); + uVar10 = render_quad_set_rect(&local_58,&local_64,extraout_ECX); (*pcVar1)(local_8c,uVar10,&DAT_00c37944); } local_5c = local_5c + 34.0; @@ -721864,7 +721864,7 @@ void FUN_008d5990(int *param_1,float *param_2,int param_3,int *param_4,int *para if (*param_1 == 2) { pfVar8 = &local_58; uVar9 = extraout_ECX_00; - uVar6 = FUN_009586f0(DAT_00c7169c + 0x4a920,"#ITEM_INFO_UNIDENTIFIED_PILL"); + uVar6 = string_table_translate(DAT_00c7169c + 0x4a920,"#ITEM_INFO_UNIDENTIFIED_PILL"); FUN_009efdb0(&local_64,uVar6,pfVar8,uVar9,uVar10,uVar11); } else { @@ -721927,7 +721927,7 @@ void FUN_008d5da0(int *param_1,ANM2 *param_2,float *param_3) if (*param_1 == 2) { pfVar4 = &local_14; uVar5 = extraout_ECX; - uVar1 = FUN_009586f0(DAT_00c7169c + 0x4a920,"#ITEM_INFO_UNIDENTIFIED_PILL"); + uVar1 = string_table_translate(DAT_00c7169c + 0x4a920,"#ITEM_INFO_UNIDENTIFIED_PILL"); FUN_009efdb0(local_c,uVar1,pfVar4,uVar5,uVar6,uVar7); return; } @@ -722106,7 +722106,7 @@ LAB_008d6169: if (0xf < local_108[9]) { puVar10 = (uint *)*puVar10; } - pcVar5 = (char *)FUN_009586f0(iVar12 + 0x4a920,puVar10); + pcVar5 = (char *)string_table_translate(iVar12 + 0x4a920,puVar10); local_5c = 0; local_58 = 0xf; local_6c = 0; @@ -723797,7 +723797,7 @@ LAB_008d7fb3: if (0xf < puVar1[9]) { puVar14 = (uint *)*puVar14; } - pcVar8 = (char *)FUN_009586f0(iVar5 + 0x4a920,puVar14); + pcVar8 = (char *)string_table_translate(iVar5 + 0x4a920,puVar14); local_5c = 0; local_58 = 0xf; local_6c = 0; @@ -724224,7 +724224,7 @@ LAB_008d878b: *(int **)(in_ECX + 0x1c) = local_18; if ((int **)(in_ECX + 0x18U) != ppiVar8) { if ((int **)(*(int *)(in_ECX + 0x20) - (int)local_18 >> 2) < local_1c) { - FUN_006a0d30(local_1c); + std::vector::reserve_clear(local_1c); local_18 = *(int **)(in_ECX + 0x18U); } memmove(local_18,local_14,_Size); @@ -724919,9 +724919,9 @@ LAB_008d94f5: local_d4 = 0; local_d0 = 0; local_14._0_1_ = 1; - uVar7 = FUN_009586f0(DAT_00c7169c + 0x4a920,local_78[local_88]); + uVar7 = string_table_translate(DAT_00c7169c + 0x4a920,local_78[local_88]); local_a0 = (int *)((float)(local_8c + -0x41) + local_fc); - FUN_00a1af90(uVar7,&local_128,&local_e8); + Font::DrawString(uVar7,&local_128,&local_e8); local_14 = (char *)((uint)local_14._1_3_ << 8); local_ac = (float)local_8c; if (local_bc == 0) { @@ -724939,7 +724939,7 @@ LAB_008d97fd: local_b4 = (local_7c + 400.0) - (float)((double)iVar5 + (double)(&DAT_00bacb00)[-(iVar5 >> 0x1f)]); uVar7 = (**(code **)(*local_a8 + 0x10))(local_b8); - FUN_00a1af90(uVar7,&local_128,&local_e8); + Font::DrawString(uVar7,&local_128,&local_e8); local_14 = (char *)((uint)local_14._1_3_ << 8); } else { @@ -724970,7 +724970,7 @@ LAB_008d9977: local_b4 = (local_7c + 300.0) - (float)((double)iVar5 + (double)(&DAT_00bacb00)[-(iVar5 >> 0x1f)]); uVar7 = (**(code **)(*local_a8 + 0x10))(local_c0); - FUN_00a1af90(uVar7,&local_128,&local_e8); + Font::DrawString(uVar7,&local_128,&local_e8); local_14 = (char *)((uint)local_14._1_3_ << 8); } else { @@ -725706,9 +725706,9 @@ LAB_008da6bd: local_b0 = 0; local_ac = 0; local_14._0_1_ = 1; - uVar6 = FUN_009586f0(DAT_00c7169c + 0x4a920,local_78[local_80]); + uVar6 = string_table_translate(DAT_00c7169c + 0x4a920,local_78[local_80]); local_84 = (int *)((float)local_a0 + local_d8); - FUN_00a1af90(uVar6,&local_f4,&local_c4); + Font::DrawString(uVar6,&local_f4,&local_c4); local_c4 = 0; local_c0 = 0xffff; local_bc = 0; @@ -725721,7 +725721,7 @@ LAB_008da6bd: iVar7 = FUN_00a1b8e0(uVar6,0xffffffff); local_a4 = local_e0 - (float)((double)iVar7 + (double)(&DAT_00bacb00)[-(iVar7 >> 0x1f)]); uVar6 = (**(code **)(*local_9c + 0x10))(local_c8); - FUN_00a1af90(uVar6,&local_f4,&local_c4); + Font::DrawString(uVar6,&local_f4,&local_c4); local_c4 = 0; local_c0 = 0xffff; local_bc = 0; @@ -725734,7 +725734,7 @@ LAB_008da6bd: iVar7 = FUN_00a1b8e0(uVar6,0xffffffff); local_a4 = (float)local_a8 - (float)((double)iVar7 + (double)(&DAT_00bacb00)[-(iVar7 >> 0x1f)]); uVar6 = (**(code **)(*local_9c + 0x10))(local_cc); - FUN_00a1af90(uVar6,&local_f4,&local_c4); + Font::DrawString(uVar6,&local_f4,&local_c4); local_14 = (char *)((uint)local_14._1_3_ << 8); iVar7 = *(int *)(in_ECX + 4); if (iVar8 == iVar7) { @@ -727770,7 +727770,7 @@ LAB_008ddd97: local_14 = 0; local_78 = local_28 + *local_30; local_74 = (float *)(local_2c + local_30[1]); - uVar9 = FUN_009586f0(DAT_00c7169c + 0x4a920,"#LOADING"); + uVar9 = string_table_translate(DAT_00c7169c + 0x4a920,"#LOADING"); FUN_00a1b050(uVar9,&local_78,local_30 + 4,in_ECX + 0xdd,&local_60); local_14 = 0xffffffff; } @@ -728255,7 +728255,7 @@ void FUN_008deac0(void) local_ec = (undefined **)(local_bc + local_b0[1]); local_188 = (int **)0xb75e44; local_190 = (undefined **)0x8dec1b; - uVar3 = FUN_009586f0(); + uVar3 = string_table_translate(); local_188 = (int **)&local_d8; local_18c = in_ECX + 0xdd; local_190 = (undefined **)(local_b0 + 4); @@ -728280,7 +728280,7 @@ void FUN_008deac0(void) local_14 = 1; local_188 = (int **)((int)in_ECX[0xd4] + 0xc + (int)local_b0); local_18c = (float *)0x8decef; - FUN_00a288a0(); + std::shared_ptr::assign(); local_14 = 2; local_f4 = local_ac; if (local_dc == in_ECX[0xdb]) { @@ -728307,7 +728307,7 @@ void FUN_008deac0(void) local_18c = (float *)0x0; local_188 = (int **)0x0; local_14._0_1_ = 3; - FUN_00a288a0(&local_e4); + std::shared_ptr::assign(&local_e4); local_14 = CONCAT31(local_14._1_3_,2); FUN_008e0660(); } @@ -728321,7 +728321,7 @@ void FUN_008deac0(void) local_18c = (float *)(local_b4 + 12.0 + 4.0); local_c0 = 0; local_190 = (undefined **)0x8dee54; - FUN_00a10d00(); + render_quad_set_uniform_color(); iVar4 = *(int *)((int)in_ECX[0xd4] + 4 + (int)pfVar2); if ((iVar4 == 0) || (local_188 = (int **)(iVar4 + 0x14), *local_188 == (int *)0x0)) { local_188 = (int **)&DAT_00c799d8; @@ -728372,7 +728372,7 @@ void FUN_008deac0(void) local_14._0_1_ = 6; local_18c = in_ECX + 0xdd; local_190 = &local_b8; - FUN_00a1aec0(uVar3); + Font::DrawStringScaled(uVar3); local_14 = CONCAT31(local_14._1_3_,2); local_b8 = (undefined *)((float)local_ac + 85.0); local_ac = local_b8; @@ -728400,7 +728400,7 @@ LAB_008defe3: local_14._0_1_ = 7; local_18c = in_ECX + 0xdd; local_190 = &local_b8; - FUN_00a1aec0(local_a8); + Font::DrawStringScaled(local_a8); local_14 = CONCAT31(local_14._1_3_,2); local_ac = (undefined *)((float)local_ac + 35.0); if ((*(int *)(DAT_00c7169c + 0x2a3fc) == 2) || (*(int *)(DAT_00c7169c + 0x2a3fc) == 3)) { @@ -728512,7 +728512,7 @@ void FUN_008df1d0(void) local_14 = 0; local_f0 = local_c4 + *local_d0; local_ec = local_d4 + local_d0[1]; - uVar4 = FUN_009586f0(); + uVar4 = string_table_translate(); FUN_00a1b050(uVar4,&local_f0); } else { @@ -728531,7 +728531,7 @@ void FUN_008df1d0(void) local_e0 = (int *)0x0; local_dc = (int *)0x0; local_14 = 1; - FUN_00a288a0(); + std::shared_ptr::assign(); fVar1 = local_c4; local_14 = 2; if (local_d0 == (float *)in_ECX[0xdb]) { @@ -728546,7 +728546,7 @@ void FUN_008df1d0(void) local_c4 = local_cc; } local_14._0_1_ = 3; - FUN_00a288a0(&local_e0); + std::shared_ptr::assign(&local_e0); local_14 = CONCAT31(local_14._1_3_,2); FUN_008e0660(); } @@ -728586,12 +728586,12 @@ LAB_008df663: } local_14._0_1_ = 4; if (iVar5 == 0) { - uVar4 = FUN_009586f0(); - FUN_00a1aec0(uVar4); + uVar4 = string_table_translate(); + Font::DrawStringScaled(uVar4); } else if (iVar5 == 0x3e9) { - uVar4 = FUN_009586f0(); - FUN_00a1aec0(uVar4); + uVar4 = string_table_translate(); + Font::DrawStringScaled(uVar4); } else { FUN_00745ca0(uVar4,0); @@ -728600,7 +728600,7 @@ LAB_008df663: if (0xf < local_ac) { ppppppuVar6 = local_c0[0]; } - FUN_00a1aec0(ppppppuVar6); + Font::DrawStringScaled(ppppppuVar6); local_14._0_1_ = 4; if (0xf < local_ac) { if ((0xfff < local_ac + 1) && @@ -728617,7 +728617,7 @@ LAB_008df663: (**(code **)(*local_e0 + 0x1c))(); } sprintf(local_a8); - FUN_00a1aec0(local_a8); + Font::DrawStringScaled(local_a8); local_c4 = local_c4 + 35.0; if ((*(int *)(DAT_00c7169c + 0x2a3fc) == 2) || (*(int *)(DAT_00c7169c + 0x2a3fc) == 3)) { if (local_e0 == (int *)0x0) { @@ -728758,7 +728758,7 @@ void FUN_008df9b0(void) local_f4 = local_14; local_e8 = local_14; local_e4 = local_14; - uVar3 = FUN_009586f0(); + uVar3 = string_table_translate(); local_1c0 = (int **)&local_fc; local_1c4 = (float ******)(in_ECX + 0xdd); local_1c8 = (undefined **)(local_d0 + 4); @@ -728781,7 +728781,7 @@ void FUN_008df9b0(void) local_14 = 1; local_1c0 = (int **)((int)in_ECX[0xd4] + (int)local_d0 + 0xc); local_1c4 = (float ******)0x8dfc2e; - FUN_00a288a0(); + std::shared_ptr::assign(); local_14 = 2; local_d4 = local_c4; if (fVar10 == in_ECX[0xdb]) { @@ -728807,7 +728807,7 @@ void FUN_008df9b0(void) local_1c4 = (float ******)0x0; local_1c0 = (int **)0x0; local_14._0_1_ = 3; - FUN_00a288a0(&local_108); + std::shared_ptr::assign(&local_108); local_14 = CONCAT31(local_14._1_3_,2); FUN_008e0660(); } @@ -728819,7 +728819,7 @@ void FUN_008df9b0(void) KColor::SetFromARGB(); local_1c4 = (float ******)(fVar10 + 12.0 + 4.0); local_1c8 = (undefined **)0x8dfd7b; - FUN_00a10d00(); + render_quad_set_uniform_color(); iVar4 = *(int *)((int)in_ECX[0xd4] + (int)local_d0 + 4); if ((iVar4 == 0) || (local_1c0 = (int **)(iVar4 + 0x14), *local_1c0 == (int *)0x0)) { local_1c0 = (int **)&DAT_00c799d8; @@ -728870,7 +728870,7 @@ void FUN_008df9b0(void) local_14._0_1_ = 6; local_1c4 = (float ******)(in_ECX + 0xdd); local_1c8 = &local_cc; - FUN_00a1aec0(uVar3); + Font::DrawStringScaled(uVar3); local_14 = CONCAT31(local_14._1_3_,2); local_cc = (undefined *)((float)local_c4 + 85.0); local_c4 = local_cc; @@ -728898,7 +728898,7 @@ LAB_008dff0f: local_14._0_1_ = 7; local_1c4 = (float ******)(in_ECX + 0xdd); local_1c8 = &local_cc; - FUN_00a1aec0(local_a8); + Font::DrawStringScaled(local_a8); local_14 = CONCAT31(local_14._1_3_,2); local_c4 = (undefined *)((float)local_c4 + 35.0); if ((*(int *)(DAT_00c7169c + 0x2a3fc) == 2) || (*(int *)(DAT_00c7169c + 0x2a3fc) == 3)) { @@ -728941,7 +728941,7 @@ LAB_008dff0f: local_14 = 9; local_1c0 = (int **)((int)in_ECX[0xd7] + (local_100 - uVar8) * 0x18 + 4); local_1c4 = (float ******)0x8e00f3; - FUN_00a288a0(); + std::shared_ptr::assign(); local_14 = 10; local_120 = CONCAT44(local_c4,(undefined4)local_120); if (fVar10 == in_ECX[0xdb]) { @@ -728967,7 +728967,7 @@ LAB_008dff0f: local_1c4 = (float ******)0x0; local_1c0 = (int **)0x0; local_14._0_1_ = 0xb; - FUN_00a288a0(&local_dc); + std::shared_ptr::assign(&local_dc); local_14 = CONCAT31(local_14._1_3_,10); FUN_008e0660(); } @@ -729035,21 +729035,21 @@ LAB_008e0315: local_1c0 = (int **)0xb75efc; local_1c4 = (float ******)(DAT_00c7169c + 0x4a920); local_1c8 = (undefined **)0x8e0388; - uVar3 = FUN_009586f0(); + uVar3 = string_table_translate(); local_1c0 = (int **)&local_fc; local_1c4 = (float ******)(in_ECX + 0xdd); local_1c8 = &local_cc; - FUN_00a1aec0(uVar3); + Font::DrawStringScaled(uVar3); } else if (iVar4 == 0x3e9) { local_1c0 = (int **)0xb75f10; local_1c4 = (float ******)(DAT_00c7169c + 0x4a920); local_1c8 = (undefined **)0x8e03d3; - uVar3 = FUN_009586f0(); + uVar3 = string_table_translate(); local_1c0 = (int **)&local_fc; local_1c4 = (float ******)(in_ECX + 0xdd); local_1c8 = &local_cc; - FUN_00a1aec0(uVar3); + Font::DrawStringScaled(uVar3); } else { local_1c4 = (float ******)0x0; @@ -729063,7 +729063,7 @@ LAB_008e0315: ppppppfVar7 = local_c0[0]; } local_1c8 = &local_cc; - FUN_00a1aec0(ppppppfVar7); + Font::DrawStringScaled(ppppppfVar7); local_14._0_1_ = 0xc; if (0xf < local_ac) { local_1c0 = (int **)(local_ac + 1); @@ -729100,7 +729100,7 @@ LAB_008e04d8: local_1c0 = (int **)&local_fc; local_1c8 = &local_cc; local_1c4 = (float ******)(in_ECX + 0xdd); - FUN_00a1aec0(local_a8); + Font::DrawStringScaled(local_a8); local_c4 = (undefined *)((float)local_c4 + 35.0); if ((*(int *)(DAT_00c7169c + 0x2a3fc) == 2) || (*(int *)(DAT_00c7169c + 0x2a3fc) == 3)) { if (local_dc == (int *)0x0) { @@ -729262,7 +729262,7 @@ void FUN_008e0660(undefined4 param_1,int *param_2,int *param_3) } local_294 = in_ECX + 0xdd; local_268 = local_29c; - FUN_00a1aec0(piVar7,&local_2a0,local_294,&local_254); + Font::DrawStringScaled(piVar7,&local_2a0,local_294,&local_254); local_8 = CONCAT31(local_8._1_3_,1); if (0xf < auStack_224[uVar2 * 6]) { piVar11 = (int *)*piVar11; @@ -729287,7 +729287,7 @@ void FUN_008e0660(undefined4 param_1,int *param_2,int *param_3) local_258 = local_258 + 30.0; if (param_2 == (int *)0x0) { LAB_008e0c83: - uVar5 = FUN_009586f0(DAT_00c7169c + 0x4a920,"#Online/IN_LOBBY"); + uVar5 = string_table_translate(DAT_00c7169c + 0x4a920,"#Online/IN_LOBBY"); FUN_00a1b8e0(uVar5,0xffffffff); local_290 = 1; local_28c = 0xffff; @@ -729302,14 +729302,14 @@ LAB_008e0cf4: pfVar3 = local_294; local_268 = local_258 + local_264; local_26c = local_25c; - FUN_00a1aec0(uVar5,&local_26c,local_294,puVar6); + Font::DrawStringScaled(uVar5,&local_26c,local_294,puVar6); local_8 = CONCAT31(local_8._1_3_,1); } else { iVar4 = (**(code **)(*param_2 + 0x30))("current_stage"); if (iVar4 == 0) goto LAB_008e0c83; if (iVar4 == 0x3e9) { - uVar5 = FUN_009586f0(DAT_00c7169c + 0x4a920,"#Online/IN_DEATHMATCH"); + uVar5 = string_table_translate(DAT_00c7169c + 0x4a920,"#Online/IN_DEATHMATCH"); FUN_00a1b8e0(uVar5,0xffffffff); local_254 = 1; local_250 = (undefined4 ****)0xffff; @@ -729360,7 +729360,7 @@ LAB_008e0a66: local_258 = (float)((double)iVar9 + (double)(&DAT_00bacb00)[-(iVar9 >> 0x1f)]) + local_258; } local_8 = CONCAT31(local_8._1_3_,6); - FUN_00a55d60(); + std::vector<12byte>::clear(); if (local_270 != 0) { uVar2 = (((int)local_268 - local_270) / 0xc) * 0xc; iVar9 = local_270; @@ -729412,7 +729412,7 @@ LAB_008e0d71: local_268 = local_258 + local_264; local_8._0_1_ = 9; local_26c = local_25c; - FUN_00a1aec0(local_118,&local_26c,pfVar3,&local_290); + Font::DrawStringScaled(local_118,&local_26c,pfVar3,&local_290); local_8._0_1_ = 1; local_258 = local_258 + 30.0; _eh_vector_constructor_iterator_(local_1a8,0x18,6,FUN_0040c380,std::string::_Tidy_deallocate); @@ -729445,7 +729445,7 @@ LAB_008e0d71: if (0xf < auStack_194[iVar9 * 6]) { piVar11 = (int *)*piVar11; } - FUN_00a1aec0(piVar11,&local_26c,pfVar3,&local_290); + Font::DrawStringScaled(piVar11,&local_26c,pfVar3,&local_290); local_8._0_1_ = 10; local_258 = local_258 + 30.0; } @@ -729475,7 +729475,7 @@ LAB_008e0d71: ppppuVar8 = local_250; } local_26c = local_25c; - FUN_00a1aec0(ppppuVar8,&local_26c,pfVar3,&local_290); + Font::DrawStringScaled(ppppuVar8,&local_26c,pfVar3,&local_290); local_8._0_1_ = 0xc; if (0xf < local_23c) { uVar2 = local_23c + 1; @@ -729567,7 +729567,7 @@ Level::InitializeGenesisRoom(undefined4 param_1,undefined **param_2,int *param_3 iStack_f0 = 0; ppuStack_ec = (undefined1 **)0x0; local_8._0_1_ = 2; - FUN_00a288a0(¶m_3); + std::shared_ptr::assign(¶m_3); local_8 = (uint)local_8._1_3_ << 8; cVar2 = FUN_00907960(); if (cVar2 != '\0') { @@ -729592,7 +729592,7 @@ Level::InitializeGenesisRoom(undefined4 param_1,undefined **param_2,int *param_3 iStack_f0 = 0; ppuStack_ec = (undefined1 **)0x0; local_8._0_1_ = 4; - FUN_00a288a0(¶m_3); + std::shared_ptr::assign(¶m_3); local_8 = CONCAT31(local_8._1_3_,3); FUN_009c61e0(); } @@ -730122,7 +730122,7 @@ void FUN_008e1a70(int *param_1,int param_2) local_30 = (uint *)&local_78; local_78 = KAGE::Network::Multiplayer::ConstLobby::vftable; local_8._0_1_ = 1; - FUN_00a288a0(iVar10 + 0xc + iVar4); + std::shared_ptr::assign(iVar10 + 0xc + iVar4); local_8._0_1_ = 0; cVar3 = FUN_0085bd40(); if ((cVar3 != '\0') && @@ -730149,7 +730149,7 @@ void FUN_008e1a70(int *param_1,int param_2) puVar5[6] = 0; local_8._0_1_ = 4; local_18 = puVar5; - FUN_00a288a0(); + std::shared_ptr::assign(); local_8._0_1_ = 0; local_34 = local_34 + 1; puVar2 = (undefined4 *)local_24[1]; @@ -730234,7 +730234,7 @@ LAB_008e1d7c: local_30 = (uint *)&local_78; local_78 = KAGE::Network::Multiplayer::ConstLobby::vftable; local_8._0_1_ = 6; - FUN_00a288a0(puVar8 + 5); + std::shared_ptr::assign(puVar8 + 5); cVar3 = FUN_008e18f0(); if (cVar3 == '\0') { local_2c = &local_5c; @@ -730245,7 +730245,7 @@ LAB_008e1d7c: FUN_00a28790(); local_8 = CONCAT31(local_8._1_3_,8); local_58 = puVar8[3]; - FUN_00a288a0(); + std::shared_ptr::assign(); local_44 = 0; if (*(int *)(param_2 + 0x354) == *(int *)(param_2 + 0x358)) { local_78 = (undefined **)0x8e1e4d; @@ -730401,18 +730401,18 @@ void FUN_008e1fb0(int *param_1,int param_2) } while (cVar6 != '\0'); if (pcVar10 == pcVar1) { local_8._0_1_ = 1; - FUN_00a288a0(*param_1 + 4 + local_80); + std::shared_ptr::assign(*param_1 + 4 + local_80); local_8 = (uint)local_8._1_3_ << 8; cVar6 = FUN_008e18f0(); if (cVar6 == '\0') { local_8._0_1_ = 2; - FUN_00a288a0(*param_1 + 4 + local_80); + std::shared_ptr::assign(*param_1 + 4 + local_80); local_8 = (uint)local_8._1_3_ << 8; cVar6 = FUN_0085bd40(); if (cVar6 != '\0') { FUN_0085b050(); local_8._0_1_ = 4; - FUN_00a288a0(*param_1 + 4 + local_80); + std::shared_ptr::assign(*param_1 + 4 + local_80); local_8 = CONCAT31(local_8._1_3_,3); Menu_Save::select_save_slot((Menu_Save *)local_6c); if (DAT_00c73674 == 0) { @@ -730456,7 +730456,7 @@ LAB_008e21b9: puVar11[3] = 0; puVar11[4] = 0; local_8 = CONCAT31(local_8._1_3_,6); - FUN_00a288a0(); + std::shared_ptr::assign(); local_70 = local_70 + 1; puVar4 = (undefined4 *)puVar8[1]; *puVar11 = puVar8; @@ -730465,7 +730465,7 @@ LAB_008e21b9: *puVar4 = puVar11; } local_8 = local_8 & 0xffffff00; - FUN_00426980(); + std::vector::_Tidy(); std::string::_Tidy_deallocate(); std::string::_Tidy_deallocate(); } @@ -730484,7 +730484,7 @@ LAB_008e21b9: for (; puVar4 != puVar8; puVar4 = (undefined4 *)*puVar4) { FUN_00a28790(); local_8._0_1_ = 8; - FUN_00a288a0(); + std::shared_ptr::assign(); puVar11 = *(undefined4 **)(param_2 + 0x360); if (puVar11 == *(undefined4 **)(param_2 + 0x364)) { FUN_008e2c20(); @@ -730494,7 +730494,7 @@ LAB_008e21b9: puVar11[1] = 0; puVar11[2] = 0; local_8._0_1_ = 9; - FUN_00a288a0(); + std::shared_ptr::assign(); puVar11[4] = 0; puVar11[5] = 0; *(int *)(param_2 + 0x360) = *(int *)(param_2 + 0x360) + 0x18; @@ -730636,7 +730636,7 @@ void FUN_008e2530(int *param_1,int param_2) if ((local_1c == 8) && (cVar4 = str_eq(), cVar4 != '\0')) { FUN_0085b050(); local_8._0_1_ = 4; - FUN_00a288a0(*param_1 + 4 + local_a8); + std::shared_ptr::assign(*param_1 + 4 + local_a8); local_8._0_1_ = 3; Menu_Save::select_save_slot((Menu_Save *)local_9c); if (DAT_00c73674 == 0) { @@ -730655,7 +730655,7 @@ void FUN_008e2530(int *param_1,int param_2) uVar7 = uVar7 + 1; if (uVar10 <= uVar7) goto LAB_008e2714; } - FUN_00426980(); + std::vector::_Tidy(); std::string::_Tidy_deallocate(); std::string::_Tidy_deallocate(); goto LAB_008e27d6; @@ -730668,7 +730668,7 @@ LAB_008e2714: *(undefined4 *)(DAT_00c7169c + 0x4b118) = 0; *puVar9 = 0; FUN_0090bbf0(); - FUN_00426980(); + std::vector::_Tidy(); std::string::_Tidy_deallocate(); std::string::_Tidy_deallocate(); local_8._0_1_ = 1; @@ -730952,7 +730952,7 @@ undefined4 * FUN_008e2c20(int param_1,int param_2) puVar2[1] = 0; puVar2[2] = 0; local_8 = 1; - FUN_00a288a0(param_2 + 4); + std::shared_ptr::assign(param_2 + 4); uVar6 = local_8 >> 8; local_8 = local_8 & 0xffffff00; uVar4 = *(undefined4 *)(param_2 + 0x14); @@ -730968,7 +730968,7 @@ undefined4 * FUN_008e2c20(int param_1,int param_2) puVar7[1] = 0; puVar7[2] = 0; local_8._0_1_ = 3; - FUN_00a288a0(iVar8 + 4); + std::shared_ptr::assign(iVar8 + 4); uVar4 = *(undefined4 *)(iVar8 + 0x10); puVar7[5] = *(undefined4 *)(iVar8 + 0x14); puVar7[4] = uVar4; @@ -731212,7 +731212,7 @@ void FUN_008e3190(int param_1) in_ECX[3] = 0; in_ECX[4] = 0; local_8 = 1; - FUN_00a288a0(param_1 + 0xc); + std::shared_ptr::assign(param_1 + 0xc); uVar1 = *(undefined4 *)(param_1 + 0x1c); in_ECX[6] = *(undefined4 *)(param_1 + 0x18); in_ECX[7] = uVar1; @@ -731247,7 +731247,7 @@ undefined4 * FUN_008e3230(undefined4 *param_1,undefined4 *param_2,undefined4 *pa param_3[1] = 0; param_3[2] = 0; local_8 = 1; - FUN_00a288a0(puVar3 + -3); + std::shared_ptr::assign(puVar3 + -3); in_ECX = puVar3[1]; param_3[4] = *puVar3; puVar1 = puVar3 + 2; @@ -731292,7 +731292,7 @@ undefined4 * FUN_008e32f0(int param_1,int param_2,undefined4 *param_3) param_3[3] = 0; param_3[4] = 0; local_8 = 2; - FUN_00a288a0(iVar3); + std::shared_ptr::assign(iVar3); in_ECX = *(undefined4 *)(iVar3 + 0x10); param_3[6] = *(undefined4 *)(iVar3 + 0xc); param_3[7] = in_ECX; @@ -731443,9 +731443,9 @@ int * FUN_008e3580(int *param_1,code *param_2) local_10 = ExceptionList; ExceptionList = &local_10; local_8 = 0; - FUN_00a288a0(); + std::shared_ptr::assign(); local_8 = 2; - FUN_00a288a0(in_EDX + 3); + std::shared_ptr::assign(in_EDX + 3); local_8 = 0xffffffff; cVar5 = (*param_2)(); piVar4 = in_EDX; @@ -731457,9 +731457,9 @@ int * FUN_008e3580(int *param_1,code *param_2) return in_ECX; } local_8 = 3; - FUN_00a288a0(); + std::shared_ptr::assign(); local_8 = 5; - FUN_00a288a0(in_EDX + 3); + std::shared_ptr::assign(in_EDX + 3); local_8 = 0xffffffff; cVar5 = (*param_2)(); piVar4 = in_ECX; @@ -731470,9 +731470,9 @@ LAB_008e36d0: goto LAB_008e374b; code_r0x008e36d6: local_8 = 6; - FUN_00a288a0(); + std::shared_ptr::assign(); local_8 = 8; - FUN_00a288a0(in_EDX + 3); + std::shared_ptr::assign(in_EDX + 3); local_8 = 0xffffffff; cVar5 = (*param_2)(); if (cVar5 == '\0') { @@ -731497,9 +731497,9 @@ LAB_008e374b: return piVar4; } local_8 = 9; - FUN_00a288a0(); + std::shared_ptr::assign(); local_8 = 0xb; - FUN_00a288a0(in_EDX + 3); + std::shared_ptr::assign(in_EDX + 3); local_8 = 0xffffffff; cVar5 = (*param_2)(); piVar6 = in_EDX; @@ -732056,8 +732056,8 @@ LAB_008e428b: local_14 = CONCAT31(local_14._1_3_,3); FUN_00a1bd80(uVar9,0x3f4ccccd,0x3f800000,local_160,uStack_15c,uStack_158,uStack_154,0, &local_198); - FUN_00a55d60(); - FUN_0069dac0(); + std::vector<12byte>::clear(); + std::vector<12byte>::_Tidy(); piVar15 = piVar15 + 1; local_14 = 0xffffffff; local_104 = (uint)local_108; @@ -732111,8 +732111,8 @@ LAB_008e428b: local_14 = CONCAT31(local_14._1_3_,1); FUN_00a1bd80(uVar9,0x3f4ccccd,0x3f800000,local_148,uStack_144,fStack_140,fStack_13c,0, &local_17c); - FUN_00a55d60(); - FUN_0069dac0(); + std::vector<12byte>::clear(); + std::vector<12byte>::_Tidy(); in_ECX = local_130; local_14 = 0xffffffff; if (*local_130 == local_114) { @@ -732474,7 +732474,7 @@ void FUN_008e4e30(void) fVar2 = local_64; iVar4 = *(int *)(in_ECX + 0x230); if (iVar4 == 0) { - pcVar5 = (char *)FUN_009586f0(DAT_00c7169c + 0x4a920,"#Online/ONLINE_QUICK_DESCRIPTOR"); + pcVar5 = (char *)string_table_translate(DAT_00c7169c + 0x4a920,"#Online/ONLINE_QUICK_DESCRIPTOR"); local_34 = 0; local_30 = 0xf; local_44[0] = 0; @@ -732505,7 +732505,7 @@ joined_r0x008e5119: } else { if (iVar4 == 1) { - pcVar5 = (char *)FUN_009586f0(DAT_00c7169c + 0x4a920,"#Online/ONLINE_PUBLIC_DESCRIPTOR"); + pcVar5 = (char *)string_table_translate(DAT_00c7169c + 0x4a920,"#Online/ONLINE_PUBLIC_DESCRIPTOR"); local_34 = 0; local_30 = 0xf; local_44[0] = 0; @@ -732519,19 +732519,19 @@ joined_r0x008e5119: goto LAB_008e4f9b; } if (iVar4 == 2) { - uVar8 = FUN_009586f0(DAT_00c7169c + 0x4a920,"#Online/ONLINE_FRIEND_DESCRIPTOR"); + uVar8 = string_table_translate(DAT_00c7169c + 0x4a920,"#Online/ONLINE_FRIEND_DESCRIPTOR"); std::string::string_from_cstr(uVar8); local_14 = 2; goto LAB_008e4f9b; } if (iVar4 == 3) { - uVar8 = FUN_009586f0(DAT_00c7169c + 0x4a920,"#Online/ONLINE_DAILY_DESCRIPTOR"); + uVar8 = string_table_translate(DAT_00c7169c + 0x4a920,"#Online/ONLINE_DAILY_DESCRIPTOR"); std::string::string_from_cstr(uVar8); local_14 = 3; goto LAB_008e4f9b; } if (iVar4 != 4) goto LAB_008e4fe1; - uVar8 = FUN_009586f0(DAT_00c7169c + 0x4a920,"#Online/ONLINE_OPTIONS_DESCRIPTOR"); + uVar8 = string_table_translate(DAT_00c7169c + 0x4a920,"#Online/ONLINE_OPTIONS_DESCRIPTOR"); std::string::string_from_cstr(uVar8); local_14 = 4; FUN_008e5790(local_44); @@ -732658,7 +732658,7 @@ LAB_008e52c5: local_18 = (int *)0x0; local_14 = (int *)0x0; local_8 = 0; - FUN_00a288a0(iVar10 + 0x4cc6c); + std::shared_ptr::assign(iVar10 + 0x4cc6c); local_8 = 1; if (local_18 != (int *)0x0) { cVar3 = (**(code **)(*local_18 + 0xc))(uVar4); @@ -732684,7 +732684,7 @@ LAB_008e5354: iVar10 = DAT_00c7169c + 0x4cc6c; local_8 = 3; uVar9 = 0x8e53c2; - FUN_00a288a0(iVar10); + std::shared_ptr::assign(iVar10); local_8 = 4; FUN_0090bbf0(&local_28,uVar9,iVar10); local_28 = KAGE::Network::Multiplayer::ConstLobby::vftable; @@ -733032,7 +733032,7 @@ LAB_008e58d0: if (puVar11 == (undefined1 *)0x7fffffff) { LAB_008e5f30: /* WARNING: Subroutine does not return */ - FUN_0040ccc0(); + std::string::_Xlen(); } local_50 = (undefined1 *)((uint)(puVar11 + 1) | 0xf); if (local_50 < (undefined1 *)0x80000000) { @@ -733134,8 +733134,8 @@ LAB_008e5d7f: local_14._0_1_ = 5; FUN_00a1bd80(uVar8,0x3f800000,0x3f800000,0x3e58d8d9,0x3e3cbcbd,0x3e34b4b5,0x3f800000,0, &local_98); - FUN_00a55d60(); - FUN_0069dac0(); + std::vector<12byte>::clear(); + std::vector<12byte>::_Tidy(); piVar13 = piVar13 + 6; local_14 = (uint)local_14._1_3_ << 8; uVar2 = (uint)*(ushort *)(local_68 + 0x16); @@ -733411,7 +733411,7 @@ LAB_008e5fcd: FUN_00a28790(); local_8 = CONCAT31(local_8._1_3_,1); piStack_dc = (int *)0x8e60a2; - FUN_00a288a0(); + std::shared_ptr::assign(); if ((int *)*piVar1 == (int *)0x0) { local_a0 = 0; } @@ -733424,7 +733424,7 @@ LAB_008e5fcd: ppuStack_e0 = KAGE::Network::Multiplayer::ConstLobby::vftable; piStack_dc = (int *)0x0; local_8._0_1_ = 3; - FUN_00a288a0(local_a8); + std::shared_ptr::assign(local_a8); local_8._0_1_ = 2; Menu_Save::select_save_slot((Menu_Save *)local_6c); if (DAT_00c73674 == 0) { @@ -733465,7 +733465,7 @@ LAB_008e5fcd: local_8._0_1_ = 5; piStack_dc = (int *)0x8e61b6; local_8c = puVar10; - FUN_00a288a0(); + std::shared_ptr::assign(); puVar10[5] = local_a0; local_78 = local_78 + 1; local_8c = (int *)0x0; @@ -733475,7 +733475,7 @@ LAB_008e5fcd: local_88[1] = (int)puVar10; *puVar3 = puVar10; LAB_008e61df: - FUN_00426980(); + std::vector::_Tidy(); std::string::_Tidy_deallocate(); std::string::_Tidy_deallocate(); local_ac = KAGE::Network::Multiplayer::ConstLobby::vftable; @@ -733535,7 +733535,7 @@ LAB_008e6323: cVar6 = FUN_009c38e0(); if (cVar6 != '\0') { piStack_dc = (int *)0x8e6365; - FUN_00a288a0(); + std::shared_ptr::assign(); goto LAB_008e6430; } } @@ -733547,7 +733547,7 @@ LAB_008e6323: FUN_00a71f00(); local_8._0_1_ = 9; piStack_dc = (int *)0x8e63b0; - FUN_00a288a0(); + std::shared_ptr::assign(); local_8._0_1_ = 10; if (((local_98 != (int *)0x0) && (cVar6 = (**(code **)(*local_98 + 0xc))(), cVar6 != '\0')) && (DAT_00c7f60c != (code *)0x0)) { @@ -733556,7 +733556,7 @@ LAB_008e6323: } local_8._0_1_ = 0xb; piStack_dc = (int *)0x8e63f4; - FUN_00a288a0(); + std::shared_ptr::assign(); local_94 = KAGE::Network::Multiplayer::ConstLobby::vftable; local_8._0_1_ = 0xc; if (((local_8c != (int *)0x0) && (cVar6 = (**(code **)(*local_8c + 0xc))(), cVar6 != '\0')) && @@ -733659,7 +733659,7 @@ void FUN_008e64f0(int *param_1,int param_2) local_18 = 0; FUN_00a282c0(&local_18); local_8 = 0; - FUN_00a288a0(&uStack_20); + std::shared_ptr::assign(&uStack_20); ppuStack_24 = KAGE::Network::Multiplayer::ConstLobby::vftable; local_8 = 1; if (local_1c == (int *)0x0) { @@ -733683,7 +733683,7 @@ void FUN_008e64f0(int *param_1,int param_2) local_18 = 0; FUN_00a282c0(&local_18); local_8 = 2; - FUN_00a288a0(&uStack_20); + std::shared_ptr::assign(&uStack_20); ppuStack_24 = KAGE::Network::Multiplayer::ConstLobby::vftable; local_8 = 3; uVar5 = 0; @@ -733709,7 +733709,7 @@ LAB_008e679a: local_18 = 0; FUN_00a282c0(&local_18); local_8 = 5; - FUN_00a288a0(&uStack_20); + std::shared_ptr::assign(&uStack_20); FUN_008e24c0(); *(undefined1 *)(iVar2 + 0x24c) = 0; ExceptionList = local_10; @@ -734039,7 +734039,7 @@ void FUN_008e6a80(void) uStack_b4 = 0x3e34b4b5; uStack_b0 = 0x3f4ccccd; local_8 = 3; - FUN_00a1aec0("??????",&local_a8,&local_bc,&local_80); + Font::DrawStringScaled("??????",&local_a8,&local_bc,&local_80); local_8 = 4; local_dc = local_98 + 102.0; local_d8 = local_8c + 0.0; @@ -734057,7 +734057,7 @@ void FUN_008e6a80(void) if (0xf < (uint)puVar10[5]) { puVar6 = (undefined4 *)*puVar10; } - pcVar5 = (char *)FUN_009586f0(DAT_00c7169c + 0x4a920,puVar6); + pcVar5 = (char *)string_table_translate(DAT_00c7169c + 0x4a920,puVar6); local_3c = 0; local_38 = 0xf; local_4c[0] = (undefined4 ****)0x0; @@ -734073,7 +734073,7 @@ void FUN_008e6a80(void) if (0xf < local_38) { ppppuVar7 = local_4c[0]; } - FUN_00a1aec0(ppppuVar7,&local_a8,&local_bc,&local_80); + Font::DrawStringScaled(ppppuVar7,&local_a8,&local_bc,&local_80); local_8._0_1_ = 0; if (0xf < local_38) { uVar9 = local_38 + 1; @@ -734105,7 +734105,7 @@ void FUN_008e6a80(void) local_78 = 0; local_7c = 0xffff; local_80 = 2; - FUN_00a1aec0(local_34,pfVar4,&local_bc,&local_80); + Font::DrawStringScaled(local_34,pfVar4,&local_bc,&local_80); local_a4 = local_8c + 14.0; local_8c = local_a4; if (iVar11 == *(int *)(local_9c + 0x124)) { @@ -734132,26 +734132,26 @@ void FUN_008e6a80(void) uStack_b4 = 0x3e34b4b5; uStack_b0 = 0x3f800000; if (iVar2 < 1) { - FUN_00a1aec0("??????",&local_cc,&local_bc,&local_80); + Font::DrawStringScaled("??????",&local_cc,&local_bc,&local_80); } else { iVar2 = puVar10[4]; local_a0 = DAT_00c7169c + 0x4ae28; if (0x7fffffffU - iVar2 < 5) { /* WARNING: Subroutine does not return */ - FUN_0040ccc0(); + std::string::_Xlen(); } puVar6 = puVar10; if (0xf < (uint)puVar10[5]) { puVar6 = (undefined4 *)*puVar10; } - FUN_00421680(local_84,iVar2,puVar6,iVar2,"_DESC",5); + std::string::concat(local_84,iVar2,puVar6,iVar2,"_DESC",5); local_8._0_1_ = 6; ppppuVar7 = local_4c; if (0xf < local_38) { ppppuVar7 = local_4c[0]; } - pcVar5 = (char *)FUN_009586f0(DAT_00c7169c + 0x4a920,ppppuVar7); + pcVar5 = (char *)string_table_translate(DAT_00c7169c + 0x4a920,ppppuVar7); local_54 = 0; local_50 = 0xf; local_64[0] = (undefined4 ****)0x0; @@ -734180,7 +734180,7 @@ void FUN_008e6a80(void) if (0xf < local_50) { ppppuVar7 = local_64[0]; } - FUN_00a1aec0(ppppuVar7,&local_cc,&local_bc,&local_80); + Font::DrawStringScaled(ppppuVar7,&local_cc,&local_bc,&local_80); local_8._0_1_ = 5; if (0xf < local_50) { uVar9 = local_50 + 1; @@ -734460,7 +734460,7 @@ undefined4 FUN_008e7560(void) local_18 = 0; local_14 = (int *)0x0; local_8 = 0; - FUN_00a288a0(&DAT_00c79a74); + std::shared_ptr::assign(&DAT_00c79a74); uVar3 = FUN_00a28590(in_ECX); local_8 = 1; if (local_14 != (int *)0x0) { @@ -734847,7 +734847,7 @@ void FUN_008e8240(void) local_98 = (undefined **)0x0; local_94 = (int *)0x0; local_14 = 0; - FUN_00a288a0(); + std::shared_ptr::assign(); local_9c = KAGE::Network::Multiplayer::Lobby::vftable; local_14 = 1; if (local_98 == (undefined **)0x0) { @@ -735081,7 +735081,7 @@ LAB_008e8854: local_8c = 0; local_88 = (int *)0x0; local_14._0_1_ = 9; - FUN_00a288a0(); + std::shared_ptr::assign(); if (local_8c == 0) { iVar8 = 0; } @@ -735407,7 +735407,7 @@ LAB_008e910b: } local_e0 = local_d8 + *pfVar9; local_dc = local_d4 + pfVar9[1]; - FUN_00a1aec0(local_a8,&local_e0,&local_f8,&local_c4); + Font::DrawStringScaled(local_a8,&local_e0,&local_f8,&local_c4); iVar7 = 0xa84; if (local_cc == (undefined4 ****)0x5) { iVar7 = 0xae0; @@ -735435,7 +735435,7 @@ LAB_008e910b: } local_e0 = local_d8 + *pfVar9; local_dc = local_d4 + pfVar9[1]; - FUN_00a1aec0(local_a8,&local_e0,&local_f8,&local_c4); + Font::DrawStringScaled(local_a8,&local_e0,&local_f8,&local_c4); local_14 = 0xffffffff; if (*(int *)(in_ECX + 0x44) == 0) { pfVar9 = (float *)0x0; @@ -735459,7 +735459,7 @@ LAB_008e910b: } } iVar7 = iVar7 / 0x3c + 1; - uVar8 = FUN_009586f0(DAT_00c7169c + 0x4a920,"#Online/GAME_STARTING_COUNTDOWN"); + uVar8 = string_table_translate(DAT_00c7169c + 0x4a920,"#Online/GAME_STARTING_COUNTDOWN"); sprintf(&DAT_00c82b60,uVar8,iVar7); puVar14 = &DAT_00c82b60; } @@ -735585,7 +735585,7 @@ LAB_008e910b: default: pcVar17 = "#RunStatus/NORMAL_RUN"; } - ppppuVar10 = (undefined4 ****)FUN_009586f0(DAT_00c7169c + 0x4a920,pcVar17); + ppppuVar10 = (undefined4 ****)string_table_translate(DAT_00c7169c + 0x4a920,pcVar17); iVar7 = *(int *)(in_ECX + 0x6cc); if (iVar7 == 2) { iVar7 = FUN_0069d200(*(undefined4 *)(in_ECX + 0x6d8)); @@ -735606,8 +735606,8 @@ LAB_008e9675: if (0xf < *(uint *)(iVar7 + 0x18)) { puVar6 = (undefined4 *)*puVar6; } - uVar8 = FUN_009586f0(DAT_00c7169c + 0x4a920,puVar6); - uVar12 = FUN_009586f0(DAT_00c7169c + 0x4a920,"#RunStatus/ROOM_BOSS_SPECIFIC"); + uVar8 = string_table_translate(DAT_00c7169c + 0x4a920,puVar6); + uVar12 = string_table_translate(DAT_00c7169c + 0x4a920,"#RunStatus/ROOM_BOSS_SPECIFIC"); sprintf(&DAT_00c82a60,uVar12,uVar8,local_cc); } else if (iVar7 == 0x21) { @@ -735668,7 +735668,7 @@ LAB_008e9788: } local_e0 = local_d8 + *pfVar9; local_dc = local_d4 + pfVar9[1]; - FUN_00a1aec0(puVar14,&local_e0,&local_f8,&local_118); + Font::DrawStringScaled(puVar14,&local_e0,&local_f8,&local_118); local_14 = 0xffffffff; } else { @@ -735679,7 +735679,7 @@ LAB_008e9788: pcVar17 = "#Online/RUN_STARTING"; } LAB_008e9724: - puVar14 = (undefined *)FUN_009586f0(DAT_00c7169c + 0x4a920,pcVar17); + puVar14 = (undefined *)string_table_translate(DAT_00c7169c + 0x4a920,pcVar17); if (puVar14 != (undefined *)0x0) goto LAB_008e9788; } if (*(int **)(in_ECX + 0x95c) == (int *)0x0) goto LAB_008e99ec; @@ -735867,7 +735867,7 @@ LAB_008e9bda: local_68 = (int *)0x0; local_64 = (int *)0x0; local_14 = 1; - FUN_00a288a0(&DAT_00c79a74); + std::shared_ptr::assign(&DAT_00c79a74); local_6c = KAGE::Network::Multiplayer::Lobby::vftable; puVar15 = (undefined8 *)0x0; local_14._0_1_ = 2; @@ -736026,7 +736026,7 @@ LAB_008e9bda: local_68 = (int *)0x0; local_64 = (int *)0x0; local_14._0_1_ = 6; - FUN_00a288a0(&DAT_00c79a74); + std::shared_ptr::assign(&DAT_00c79a74); if (local_68 == (int *)0x0) { local_44 = (undefined8 *)0x0; } @@ -736079,7 +736079,7 @@ LAB_008e9bda: local_68 = (int *)0x0; local_64 = (int *)0x0; local_14._0_1_ = 10; - FUN_00a288a0(&DAT_00c79a74); + std::shared_ptr::assign(&DAT_00c79a74); local_6c = KAGE::Network::Multiplayer::Lobby::vftable; local_14._0_1_ = 0xb; if (local_68 == (int *)0x0) { @@ -736230,7 +736230,7 @@ void FUN_008ea3a0(void) local_20 = (int *)0x0; local_1c = (int *)0x0; local_8 = 0; - FUN_00a288a0(&DAT_00c79a74); + std::shared_ptr::assign(&DAT_00c79a74); local_24 = KAGE::Network::Multiplayer::Lobby::vftable; local_8 = 1; bVar6 = true; @@ -736268,7 +736268,7 @@ LAB_008ea42a: pppuVar8 = (undefined ***)&DAT_00c79a74; local_8 = 3; uVar7 = 0x8ea4db; - FUN_00a288a0(&DAT_00c79a74); + std::shared_ptr::assign(&DAT_00c79a74); local_30 = KAGE::Network::Multiplayer::Lobby::vftable; local_8 = 4; if (local_2c == (undefined **)0x0) { @@ -736294,7 +736294,7 @@ LAB_008ea42a: local_38 = (undefined **)0x0; local_34 = (int *)0x0; local_8 = 6; - FUN_00a288a0(&DAT_00c79a74); + std::shared_ptr::assign(&DAT_00c79a74); local_3c = KAGE::Network::Multiplayer::Lobby::vftable; local_8 = 7; if (local_38 == (undefined **)0x0) { @@ -736332,7 +736332,7 @@ LAB_008ea42a: local_1c = (int *)&DAT_bf800000; FUN_009c25e0(DAT_00c7169c + 0x4ae74,0,0,&local_20); local_8 = 9; - FUN_009586f0(DAT_00c7169c + 0x4a920,"#Online/LOBBY_KICKED"); + string_table_translate(DAT_00c7169c + 0x4a920,"#Online/LOBBY_KICKED"); FUN_009c3c30(); FUN_009c39e0(local_ec); local_70 = 0; @@ -736496,7 +736496,7 @@ void FUN_008ea8f0(void) local_44 = (int *)0x0; local_40 = (int *)0x0; local_8 = 0; - FUN_00a288a0(&DAT_00c79a74); + std::shared_ptr::assign(&DAT_00c79a74); local_8 = 1; if (local_44 == (int *)0x0) { local_34 = 0; @@ -736710,7 +736710,7 @@ void FUN_008ead10(void) local_38 = (int *)0x0; local_34 = (int *)0x0; local_14 = 0; - FUN_00a288a0(&DAT_00c79a74); + std::shared_ptr::assign(&DAT_00c79a74); local_3c = KAGE::Network::Multiplayer::Lobby::vftable; local_14 = 1; if (local_38 == (int *)0x0) { @@ -736786,7 +736786,7 @@ LAB_008eb094: local_38 = (int *)0x0; local_34 = (int *)0x0; local_14 = 5; - FUN_00a288a0(&DAT_00c79a74); + std::shared_ptr::assign(&DAT_00c79a74); local_3c = KAGE::Network::Multiplayer::Lobby::vftable; local_14 = 6; local_30 = (int *)((uint)local_30 | 0xc1); @@ -736877,7 +736877,7 @@ LAB_008eb2be: local_38 = (int *)0x0; local_34 = (int *)0x0; local_14 = 8; - FUN_00a288a0(&DAT_00c79a74); + std::shared_ptr::assign(&DAT_00c79a74); if (local_38 == (int *)0x0) { uVar4 = 0; } @@ -736919,7 +736919,7 @@ LAB_008eb2be: local_38 = (int *)0x0; local_34 = (int *)0x0; local_14 = 10; - FUN_00a288a0(&DAT_00c79a74); + std::shared_ptr::assign(&DAT_00c79a74); if (local_38 == (int *)0x0) { uVar4 = 0; } @@ -736940,7 +736940,7 @@ LAB_008eb2be: local_38 = (int *)0x0; local_34 = (int *)0x0; local_14 = 0xc; - FUN_00a288a0(&DAT_00c79a74); + std::shared_ptr::assign(&DAT_00c79a74); if (local_38 == (int *)0x0) { iVar6 = 0; } @@ -737099,7 +737099,7 @@ void FUN_008eb750(void) local_8c = (int *)0x0; local_88 = (int *)0x0; local_14 = (void *)0x0; - FUN_00a288a0(); + std::shared_ptr::assign(); local_90 = KAGE::Network::Multiplayer::Lobby::vftable; local_14 = (void *)0x1; if (local_8c != (int *)0x0) { @@ -737122,9 +737122,9 @@ void FUN_008eb750(void) uStack_9c = 0; local_98 = (int *)0x0; local_14 = &DAT_00000004; - FUN_00a288a0(); + std::shared_ptr::assign(); local_14._0_1_ = 6; - FUN_00a288a0(&uStack_9c); + std::shared_ptr::assign(&uStack_9c); local_14._0_1_ = 5; Menu_Save::select_save_slot((Menu_Save *)local_80); local_14._0_1_ = 7; @@ -737157,7 +737157,7 @@ void FUN_008eb750(void) *(undefined4 *)(iVar2 + 0x4b1cc) = 0; FUN_00424440(); } - FUN_00426980(); + std::vector::_Tidy(); std::string::_Tidy_deallocate(); std::string::_Tidy_deallocate(); ExceptionList = local_1c; @@ -737448,7 +737448,7 @@ LAB_008ebe81: if (0xf < *(uint *)(DAT_00c7169c + 0x4b104)) { puVar8 = (undefined4 *)*puVar8; } - FUN_00a1aec0(puVar8,&local_1c,local_30,&local_4c); + Font::DrawStringScaled(puVar8,&local_1c,local_30,&local_4c); ExceptionList = local_10; return; } @@ -737656,7 +737656,7 @@ void __thiscall GameOver::RenderItemSprite(void) local_1c = ExceptionList; ExceptionList = &local_1c; local_14 = 0; - FUN_00a288a0(); + std::shared_ptr::assign(); ExceptionList = local_1c; return; } @@ -738163,7 +738163,7 @@ void FUN_008ed910(void) local_48 = (undefined **)0x0; local_44 = (int *)0x0; local_14 = 0; - FUN_00a288a0(&DAT_00c79a74); + std::shared_ptr::assign(&DAT_00c79a74); local_4c = KAGE::Network::Multiplayer::Lobby::vftable; local_14 = 1; if (local_48 == (undefined **)0x0) { @@ -738186,7 +738186,7 @@ void FUN_008ed910(void) local_54 = (int *)0x0; local_50 = (int *)0x0; local_14 = 3; - FUN_00a288a0(&DAT_00c79a74); + std::shared_ptr::assign(&DAT_00c79a74); local_14 = 4; if (local_54 == (int *)0x0) { local_28 = 0; @@ -738229,7 +738229,7 @@ void FUN_008ed910(void) local_54 = (int *)0x0; local_50 = (int *)0x0; local_14._0_1_ = 10; - FUN_00a288a0(&DAT_00c79a74); + std::shared_ptr::assign(&DAT_00c79a74); local_14._0_1_ = 0xb; if (local_54 == (int *)0x0) { uVar5 = 0; @@ -738252,7 +738252,7 @@ void FUN_008ed910(void) local_54 = (int *)0x0; local_50 = (int *)0x0; local_14._0_1_ = 0xd; - FUN_00a288a0(&DAT_00c79a74); + std::shared_ptr::assign(&DAT_00c79a74); local_14._0_1_ = 0xe; if (local_54 != (int *)0x0) { (**(code **)(*local_54 + 0x38))(*(undefined4 *)(in_ECX + 0x6c4)); @@ -738445,7 +738445,7 @@ undefined4 * FUN_008eded0(undefined4 *param_1) local_28 = (undefined **)0x0; local_24 = (int *)0x0; local_8 = 0; - FUN_00a288a0(&DAT_00c79a74); + std::shared_ptr::assign(&DAT_00c79a74); if (local_28 == (undefined **)0x0) { uVar6 = 0; } @@ -738463,7 +738463,7 @@ undefined4 * FUN_008eded0(undefined4 *param_1) local_34 = 0; local_30 = (int *)0x0; local_8 = 2; - FUN_00a288a0(&DAT_00c79a74); + std::shared_ptr::assign(&DAT_00c79a74); local_8 = 3; iVar4 = FUN_00a284d0(&local_28,uVar3); iVar4 = *(int *)(iVar4 + 4); @@ -738674,7 +738674,7 @@ void FUN_008ee700(undefined4 param_1,int param_2) local_30 = 0; local_2c = (int *)0x0; local_8 = CONCAT31(local_8._1_3_,1); - FUN_00a288a0(&DAT_00c79a74); + std::shared_ptr::assign(&DAT_00c79a74); local_34 = KAGE::Network::Multiplayer::Lobby::vftable; if (local_30 != 0) { iVar5 = *(int *)(local_30 + 0x10); @@ -738802,7 +738802,7 @@ void FUN_008ee940(int *param_1,int param_2) ppiVar11 = (int **)&DAT_00c79a74; local_8 = 0; uVar10 = 0x8ee9e2; - FUN_00a288a0(&DAT_00c79a74); + std::shared_ptr::assign(&DAT_00c79a74); local_3c = KAGE::Network::Multiplayer::Lobby::vftable; local_8 = 1; uVar8 = 0xd; @@ -738818,7 +738818,7 @@ void FUN_008ee940(int *param_1,int param_2) ppiVar11 = (int **)&DAT_00c79a74; local_8 = 2; uVar10 = 0x8eea33; - FUN_00a288a0(&DAT_00c79a74); + std::shared_ptr::assign(&DAT_00c79a74); local_30 = KAGE::Network::Multiplayer::Lobby::vftable; local_8 = 3; uVar8 = 0x3f; @@ -738867,7 +738867,7 @@ LAB_008eea62: local_44 = (int *)0x0; local_40 = (int *)0x0; local_8 = 6; - FUN_00a288a0(&DAT_00c79a74); + std::shared_ptr::assign(&DAT_00c79a74); local_8 = 7; if (local_44 == (int *)0x0) { local_1c = 0; @@ -738902,7 +738902,7 @@ LAB_008eea62: pPVar9 = (PersistentGameData *)(DAT_00c7169c + 0x14); if ((pPVar9->changesmade != 0) && (*(char *)(DAT_00c7169c + 4000) != '\0')) { pPVar9->changesmade = 0; - FUN_009292c0(); + Manager::BackupSaveFile(); iVar7 = DAT_00c7169c; piVar6 = (int *)SteamInternal_ContextInit(&PTR_FUN_00c5c3a4); if ((*piVar6 != 0) && (*(char *)(iVar7 + 0x2a3a4) != '\0')) { @@ -738910,7 +738910,7 @@ LAB_008eea62: ExceptionList = local_10; return; } - FUN_009294f0(); + PersistentGameData::Save(); } ExceptionList = local_10; return; @@ -739409,11 +739409,11 @@ void FUN_008ef4b0(void) } -//@@ 008ef560 FUN_008ef560 +//@@ 008ef560 RevivePlayerMenu::Init /* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */ -void FUN_008ef560(void) +void RevivePlayerMenu::Init(void) { byte bVar1; @@ -739659,7 +739659,7 @@ LAB_008ef92e: in_ECX[1] = param_1; iVar6 = FUN_009b9310(uVar5); while ((iVar6 != 0 && (iVar6 = FUN_009b9310(uVar5), *(char *)(iVar6 + 0x20a9) == '\0'))) { - uVar7 = FUN_009b9480(); + uVar7 = PlayerManager::count_main_players(); uVar5 = (uVar5 + 1) % uVar7; in_ECX[2] = uVar5; iVar6 = FUN_009b9310(uVar5); @@ -739734,7 +739734,7 @@ void FUN_008ef990(void) if (cVar2 != '\0') { uVar3 = in_ECX[2]; do { - uVar5 = FUN_009b9480(); + uVar5 = PlayerManager::count_main_players(); uVar3 = (uVar3 + 1) % uVar5; in_ECX[2] = uVar3; iVar6 = FUN_009b9310(uVar3); @@ -739749,7 +739749,7 @@ void FUN_008ef990(void) iVar6 = iVar6 + -1; in_ECX[2] = iVar6; if (iVar6 < 0) { - iVar6 = FUN_009b9480(); + iVar6 = PlayerManager::count_main_players(); iVar6 = iVar6 + -1; in_ECX[2] = iVar6; } @@ -739761,16 +739761,16 @@ void FUN_008ef990(void) else { in_ECX[2] = in_ECX[2] + 2; uVar3 = in_ECX[2]; - iVar6 = FUN_009b9480(); + iVar6 = PlayerManager::count_main_players(); if (iVar6 <= (int)uVar3) { - iVar6 = FUN_009b9480(); + iVar6 = PlayerManager::count_main_players(); uVar3 = uVar3 - iVar6; in_ECX[2] = uVar3; } iVar6 = FUN_009b9310(uVar3); while ((iVar6 != 0 && (iVar6 = FUN_009b9310(uVar3), *(char *)(iVar6 + 0x20a9) == '\0') )) { - uVar5 = FUN_009b9480(); + uVar5 = PlayerManager::count_main_players(); uVar3 = (uVar3 + 1) % uVar5; in_ECX[2] = uVar3; iVar6 = FUN_009b9310(uVar3); @@ -739782,7 +739782,7 @@ void FUN_008ef990(void) *piVar1 = *piVar1 + -2; iVar6 = in_ECX[2]; if (*piVar1 < 0) { - iVar4 = FUN_009b9480(); + iVar4 = PlayerManager::count_main_players(); iVar6 = iVar6 + iVar4; in_ECX[2] = iVar6; } @@ -739792,7 +739792,7 @@ void FUN_008ef990(void) iVar6 = iVar6 + -1; in_ECX[2] = iVar6; if (iVar6 < 0) { - iVar6 = FUN_009b9480(); + iVar6 = PlayerManager::count_main_players(); iVar6 = iVar6 + -1; in_ECX[2] = iVar6; } @@ -739881,7 +739881,7 @@ void FUN_008efe10(void) uVar4 = FontSettings::constructor(); local_8 = 0; KColor::SetFromARGB(0xffffffff); - FUN_00a1aec0("REVIVE PLAYER",&local_24,extraout_ECX,uVar4); + Font::DrawStringScaled("REVIVE PLAYER",&local_24,extraout_ECX,uVar4); iVar1 = DAT_00c71678; local_8 = 0xffffffff; iVar2 = in_ECX[2]; @@ -739936,10 +739936,10 @@ undefined4 * FUN_008f0040(undefined4 *param_1) } if (*pcVar3 == '#') { local_5 = '\0'; - FUN_00a26af0("SeedMenu",*(undefined4 *)(DAT_00c7169c + 0x4a920),pcVar3 + 1,&local_5); + StringTable::get_string("SeedMenu",*(undefined4 *)(DAT_00c7169c + 0x4a920),pcVar3 + 1,&local_5); if (local_5 == '\0') { local_5 = '\0'; - pcVar3 = (char *)FUN_00a26af0("SeedMenu",*(undefined4 *)(iVar2 + 0x4a920),pcVar3 + 1,&local_5) + pcVar3 = (char *)StringTable::get_string("SeedMenu",*(undefined4 *)(iVar2 + 0x4a920),pcVar3 + 1,&local_5) ; } } @@ -740428,7 +740428,7 @@ void FUN_008f06e0(void) local_490 = *(int **)(*(int *)(in_ECX + 0x160) + 0xc + iVar5 * 0x28); if ((local_494 < &DAT_00000050) && (local_490 < (int *)0x50)) { piVar1 = (int *)(DAT_00c798c4 + (int)local_494 * 8); - piVar7 = (int *)FUN_00557b00(local_534,&local_490); + piVar7 = (int *)std::set::find(local_534,&local_490); in_ECX = local_4d4; if (*piVar7 == *piVar1) goto LAB_008f0d31; } @@ -740535,7 +740535,7 @@ LAB_008f0d3c: if (0xf < local_444) { ppppppcVar13 = local_494; } - iVar14 = FUN_00557bd0(iVar14,ppppppcVar13,10); + iVar14 = std::string::find(iVar14,ppppppcVar13,10); if (iVar14 == -1) break; ppppppuVar11 = local_48c; if (0xf < local_478) { @@ -740587,7 +740587,7 @@ LAB_008f0d3c: if (((iVar10 != *(int *)(iVar5 + 0x1cc)) && (*(int *)(local_4d4 + 8) - 1U < 0x1d)) && (*(int *)(DAT_00c7169c + 0x4a920) == 0)) { std::string::string(&local_474); - local_4b0 = (char ******)FUN_00682b90(); + local_4b0 = (char ******)string_scramble_seeded(); if (&local_474 != (char *******)local_4b0) { if (0xf < local_464._4_4_) { uVar3 = local_464._4_4_ + 1; @@ -740657,8 +740657,8 @@ LAB_008f0d3c: local_14._0_1_ = 5; FUN_00a1c7d0(uVar9,0x3f800000,0x3f800000,local_4b0,local_490,local_4ac,local_510,0, &local_45c); - FUN_00a55d60(); - FUN_0069dac0(); + std::vector<12byte>::clear(); + std::vector<12byte>::_Tidy(); local_14 = (uint)local_14._1_3_ << 8; local_448 = 0; local_444 = 0; @@ -743094,11 +743094,11 @@ LAB_008f46dd: } operator_delete(iVar6,uVar12); } - uVar9 = FUN_0040d0c0(); + uVar9 = std::string::c_str(); cVar4 = FUN_00a17860(uVar9); if (cVar4 != '\0') { DAT_00c71698 = *piVar14; - uVar9 = FUN_0040d0c0(); + uVar9 = std::string::c_str(); FUN_0086e6c0(uVar9); DAT_00c71698 = 0; } @@ -744346,7 +744346,7 @@ undefined4 __thiscall ModManager::TryRedirectPath(ModManager *this,undefined4 pa if (iVar7 == 0) { if (0x7fffffff - local_44 < param_3[4]) { /* WARNING: Subroutine does not return */ - FUN_0040ccc0(); + std::string::_Xlen(); } ppppuVar8 = &local_54; if (0xf < local_40) { @@ -744356,7 +744356,7 @@ undefined4 __thiscall ModManager::TryRedirectPath(ModManager *this,undefined4 pa if (0xf < param_3[5]) { puVar11 = (uint *)*param_3; } - FUN_00421680(param_2,puVar11,ppppuVar8,local_44,puVar11,param_3[4]); + std::string::concat(param_2,puVar11,ppppuVar8,local_44,puVar11,param_3[4]); if (0xf < local_2c._4_4_) { uVar2 = local_2c._4_4_ + 1; ppppuVar9 = local_3c; @@ -744738,13 +744738,13 @@ void FUN_008f7420(void) (piVar1 = *(int **)(*piVar4 + 0xe4), piVar3 = (int *)*piVar1, piVar3 != piVar1)) { do { local_10 = 0; - FUN_006856c0(&local_10); - puVar2 = (undefined4 *)FUN_00684f30(); + std::vector::resize(&local_10); + puVar2 = (undefined4 *)std::deque::back(); if ((byte *)(puVar2 + 1) != (byte *)0x0) { *(byte *)(puVar2 + 1) = (byte)(DAT_00c798e4 >> 5) & 1; } *puVar2 = DAT_00c79948; - FUN_00a18300(*(undefined4 *)(piVar3[2] + 0x68),1); + KAGE_Graphics::SetRenderTarget(*(undefined4 *)(piVar3[2] + 0x68),1); piVar3 = (int *)*piVar3; } while (piVar3 != (int *)*(int *)(*piVar4 + 0xe4)); } @@ -744834,18 +744834,18 @@ void FUN_008f74c0(void) piVar9 = *(int **)(*(int *)(local_84 + -4) + 0xe4); if (piVar9 != (int *)*piVar9) { do { - FUN_00a19180(1); + _glfw_context_reset(1); if (DAT_00c79790 == 0) { /* WARNING: Subroutine does not return */ KAGE_LogMessage(0x10,"PopRenderTarget: stack is empty!\n"); } - puVar4 = (undefined4 *)FUN_00684f30(uVar3); - FUN_00a18300(*puVar4,*(undefined1 *)(puVar4 + 1)); + puVar4 = (undefined4 *)std::deque::back(uVar3); + KAGE_Graphics::SetRenderTarget(*puVar4,*(undefined1 *)(puVar4 + 1)); DAT_00c79790 = DAT_00c79790 + -1; if (DAT_00c79790 == 0) { DAT_00c7978c = 0; } - FUN_00a18230(); + RenderTarget::Clear(); DAT_00c79900 = 0; DAT_00c79904 = 1; DAT_00c79908 = 0; @@ -744865,7 +744865,7 @@ void FUN_008f74c0(void) local_bc = 0x3f800000; local_b0 = 0; local_5c = 0; - FUN_00a10d00(DAT_00c78edc,&iStack_6c); + render_quad_set_uniform_color(DAT_00c78edc,&iStack_6c); iVar5 = piVar9[1]; local_2c = piVar9 + 1; iVar7 = *(int *)(iVar5 + 8) + 0x18; @@ -744900,7 +744900,7 @@ void FUN_008f74c0(void) pppppppuVar13 = (undefined4 *******)DAT_00bf93e8; local_54[3] = (float)DAT_00bf93e8; if (local_24 != -1) { - FUN_006a80f0(local_28); + LuaRef::push(local_28); iVar5 = lua_type(uVar6,0xffffffff); lua_settop(local_28,0xfffffffe); if ((iVar5 == 5) && @@ -744968,12 +744968,12 @@ void FUN_008f74c0(void) luaL_unref(local_28,0xfff0b9d8,local_98); if (piVar9[10] == 1) { if (local_40 != -1) { - FUN_006a80f0(local_28); + LuaRef::push(local_28); uVar6 = lua_type(local_28,0xffffffff); local_38 = (double)CONCAT44(uVar6,(undefined4)local_38); lua_settop(local_28,0xfffffffe); if (local_38._4_4_ != (undefined4 *******)0x3) goto LAB_008f79b0; - FUN_006a80f0(local_28); + LuaRef::push(local_28); uVar6 = lua_gettop(local_28); fVar12 = (float10)luaL_checknumber(local_28,uVar6); local_38 = (double)CONCAT44((float)fVar12,(undefined4)local_38); @@ -744986,12 +744986,12 @@ void FUN_008f74c0(void) else { LAB_008f79b0: if (local_40 != -1) { - FUN_006a80f0(local_28); + LuaRef::push(local_28); uVar6 = lua_type(local_28,0xffffffff); local_38 = (double)CONCAT44(uVar6,(undefined4)local_38); lua_settop(local_28,0xfffffffe); if (local_38._4_4_ == (undefined4 *******)0x5) { - FUN_006a80f0(local_28); + LuaRef::push(local_28); lua_len(local_28,0xffffffff); fVar12 = (float10)luaL_checknumber(local_28,0xffffffff); local_38 = (double)fVar12; @@ -744999,7 +744999,7 @@ LAB_008f79b0: lua_settop(local_28,0xfffffffe); if ((int)local_38 == piVar9[10]) { local_38 = (double)CONCAT44(1,(undefined4)local_38); - FUN_006a80f0(local_28); + LuaRef::push(local_28); lua_len(local_28,0xffffffff); fVar12 = (float10)luaL_checknumber(local_28,0xffffffff); local_90 = (double)fVar12; @@ -745019,7 +745019,7 @@ LAB_008f79b0: pppppppuVar13; luaL_unref(uVar6,0xfff0b9d8,local_a4); iVar11 = iVar11 + 1; - FUN_006a80f0(uVar6); + LuaRef::push(uVar6); lua_len(uVar6,0xffffffff); fVar12 = (float10)luaL_checknumber(uVar6,0xffffffff); local_38 = (double)fVar12; @@ -745134,7 +745134,7 @@ void FUN_008f7c40(void) uVar4 = FUN_00a11f30(local_28,DAT_00c79110,DAT_00c79114,piVar3,&local_3c); local_8 = 0; local_14 = (undefined4 *)(piVar6[2] + 0x68); - puVar5 = (undefined4 *)FUN_0041c770(uVar4); + puVar5 = (undefined4 *)shared_ptr::assign(uVar4); uVar4 = puVar5[1]; puVar5[1] = local_14[1]; local_14[1] = uVar4; @@ -746510,7 +746510,7 @@ undefined4 * Mod::GetContentPath(undefined4 *param_1,undefined4 *param_2) local_54 = local_54 & 0xffffff00; if (0x7fffffffU - (int)local_5c < uVar7) { /* WARNING: Subroutine does not return */ - FUN_0040ccc0(); + std::string::_Xlen(); } ppppuVar5 = &local_6c; if (0xf < local_5c._4_4_) { @@ -746521,7 +746521,7 @@ undefined4 * Mod::GetContentPath(undefined4 *param_1,undefined4 *param_2) local_74 = (undefined4 *)*param_2; uVar7 = param_2[4]; } - FUN_00421680(piVar1,uVar7,ppppuVar5,(int)local_5c,local_74,uVar7); + std::string::concat(piVar1,uVar7,ppppuVar5,(int)local_5c,local_74,uVar7); local_14._0_1_ = 3; ppppuVar5 = &local_3c; if (0xf < uStack_28) { @@ -746533,7 +746533,7 @@ undefined4 * Mod::GetContentPath(undefined4 *param_1,undefined4 *param_2) uVar7 = 0x7fffffff - *(int *)(in_ECX + 0x58); if (uVar7 < *puVar2) { /* WARNING: Subroutine does not return */ - FUN_0040ccc0(); + std::string::_Xlen(); } piVar4 = piVar1; if (0xf < *(uint *)(in_ECX + 0x5c)) { @@ -746542,7 +746542,7 @@ undefined4 * Mod::GetContentPath(undefined4 *param_1,undefined4 *param_2) if (0xf < (uint)param_2[5]) { param_2 = (undefined4 *)*param_2; } - FUN_00421680(piVar1,uVar7,piVar4,*(int *)(in_ECX + 0x58),param_2,*puVar2); + std::string::concat(piVar1,uVar7,piVar4,*(int *)(in_ECX + 0x58),param_2,*puVar2); if (0xf < uStack_28) { uVar7 = uStack_28 + 1; ppppuVar5 = local_3c; @@ -746851,13 +746851,13 @@ void FUN_008f9f40(int *param_1,int *param_2,undefined4 param_3) if (0x7fffffffU - local_1c < 0xb) { LAB_008fa37c: /* WARNING: Subroutine does not return */ - FUN_0040ccc0(); + std::string::_Xlen(); } ppppuVar3 = local_2c; if (0xf < local_18) { ppppuVar3 = local_2c[0]; } - FUN_00421680(in_ECX,local_1c,ppppuVar3,local_1c,"/disable.it",0xb); + std::string::concat(in_ECX,local_1c,ppppuVar3,local_1c,"/disable.it",0xb); local_8._0_1_ = 2; ppppuVar3 = local_74; if (0xf < local_60) { @@ -746875,7 +746875,7 @@ LAB_008fa37c: if (0xf < local_18) { ppppuVar3 = local_2c[0]; } - FUN_00421680(in_ECX,local_1c,ppppuVar3,local_1c,"/metadata.xml",0xd); + std::string::concat(in_ECX,local_1c,ppppuVar3,local_1c,"/metadata.xml",0xd); local_8._0_1_ = 4; ppppuVar3 = local_5c; if (0xf < local_48) { @@ -746893,7 +746893,7 @@ LAB_008fa37c: if (0xf < local_18) { ppppuVar3 = local_2c[0]; } - FUN_00421680(in_ECX,local_1c,ppppuVar3,local_1c,"/unfinished.it",0xe); + std::string::concat(in_ECX,local_1c,ppppuVar3,local_1c,"/unfinished.it",0xe); local_8 = (undefined4 ***)CONCAT31(local_8._1_3_,6); ppppuVar3 = local_44; if (0xf < local_30) { @@ -747079,7 +747079,7 @@ void FUN_008fa390(int *param_1) ppppiVar17 = ppppiVar22 + 1; local_29c = ppppiVar22; if (*ppppiVar22 == (int ***)0x2) { - uVar8 = FUN_009586f0(DAT_00c7169c + 0x4a938,"#MOD_UNINSTALLING"); + uVar8 = string_table_translate(DAT_00c7169c + 0x4a938,"#MOD_UNINSTALLING"); if ((int ***)0xf < ppppiVar22[6]) { ppppiVar17 = (int ****)*ppppiVar17; } @@ -747240,7 +747240,7 @@ void FUN_008fa390(int *param_1) if (*ppppiVar22 != (int ***)0x1) { pcVar16 = "#MOD_UPDATING"; } - uVar8 = FUN_009586f0(DAT_00c7169c + 0x4a938,pcVar16); + uVar8 = string_table_translate(DAT_00c7169c + 0x4a938,pcVar16); if ((int ***)0xf < ppppiVar22[6]) { ppppiVar17 = (int ****)*ppppiVar17; } @@ -747501,13 +747501,13 @@ void FUN_008fa390(int *param_1) if (0x7fffffffU - (int)pppiVar4 < 0xe) { LAB_008fb119: /* WARNING: Subroutine does not return */ - FUN_0040ccc0(); + std::string::_Xlen(); } ppppiVar22 = local_2a4; if ((int ***)0xf < local_2a4[5]) { ppppiVar22 = (int ****)*local_2a4; } - FUN_00421680(local_2a4,pppiVar4,ppppiVar22,pppiVar4,"/unfinished.it",0xe); + std::string::concat(local_2a4,pppiVar4,ppppiVar22,pppiVar4,"/unfinished.it",0xe); local_8 = CONCAT31(local_8._1_3_,2); ppppuVar12 = local_28c; if (0xf < local_278) { @@ -747545,7 +747545,7 @@ LAB_008fb119: if ((int ***)0xf < ppppiVar17[5]) { ppppiVar22 = (int ****)*ppppiVar17; } - FUN_00421680(local_2a4,pppiVar4,ppppiVar22,pppiVar4,"/disable.it",0xb); + std::string::concat(local_2a4,pppiVar4,ppppiVar22,pppiVar4,"/disable.it",0xb); local_8 = CONCAT31(local_8._1_3_,3); ppppuVar12 = local_28c; if (0xf < local_278) { @@ -747572,7 +747572,7 @@ LAB_008fb119: if ((int ***)0xf < ppppiVar17[5]) { ppppiVar17 = (int ****)*ppppiVar17; } - FUN_00421680(local_2a4,pppiVar4,ppppiVar17,pppiVar4,"/unfinished.it",0xe); + std::string::concat(local_2a4,pppiVar4,ppppiVar17,pppiVar4,"/unfinished.it",0xe); local_8 = CONCAT31(local_8._1_3_,4); ppppcVar14 = (char ****)local_274; if (0xf < local_260) { @@ -748006,7 +748006,7 @@ LAB_008fb69d: if (0xf < local_498) { pppppppuVar12 = local_4ac[0]; } - FUN_00421680(piStack_10564,local_49c,pppppppuVar12,local_49c,acStack_10560,1); + std::string::concat(piStack_10564,local_49c,pppppppuVar12,local_49c,acStack_10560,1); uVar17 = uStack_1058c._4_4_; uStack_1058c = (double)((ulonglong)uStack_1058c | 0x100000000); local_8._0_1_ = 10; @@ -748046,7 +748046,7 @@ LAB_008fb92d: if (0xf < local_480) { pppppppuVar12 = local_494[0]; } - FUN_00421680(piStack_10564,local_484,pppppppuVar12,local_484,"/unfinished.it",0xe); + std::string::concat(piStack_10564,local_484,pppppppuVar12,local_484,"/unfinished.it",0xe); uStack_1058c = (double)(CONCAT44(uVar17,(uint)uStack_1058c) | 0x300000000); local_8._0_1_ = 0xb; pppppppuVar12 = local_44c; @@ -748213,7 +748213,7 @@ LAB_008fb92d: if (0xf < *(uint *)(iVar9 + 0xa4)) { piVar14 = (int *)*piVar14; } - iVar9 = FUN_00557bd0(0,piVar14,*(undefined4 *)(iVar9 + 0xa0)); + iVar9 = std::string::find(0,piVar14,*(undefined4 *)(iVar9 + 0xa0)); if (iVar9 != -1) { puVar7 = (undefined4 *)SteamInternal_ContextInit(&PTR_FUN_00c5c48c); uVar5 = (**(code **)(*(int *)*puVar7 + 0x130)) @@ -748230,12 +748230,12 @@ LAB_008fb92d: if ((char *)(0x7fffffff - *piVar1) < pcVar16) { LAB_008fc544: /* WARNING: Subroutine does not return */ - FUN_0040ccc0(); + std::string::_Xlen(); } if (0xf < (uint)piVar14[5]) { piVar14 = (int *)*piVar14; } - FUN_00421680(piStack_10564,pcVar16,&DAT_00c72e28,pcVar16,piVar14,*piVar1); + std::string::concat(piStack_10564,pcVar16,&DAT_00c72e28,pcVar16,piVar14,*piVar1); uStack_1058c = (double)((ulonglong)uStack_1058c | 0x800000000); iVar9 = *piVar6; piVar14 = (int *)(iVar9 + 0x18); @@ -749678,11 +749678,11 @@ void FUN_008fd8c0(void) { FUN_00900940(); - FUN_00426980(); - FUN_00426980(); - FUN_00426980(); - FUN_00426980(); - FUN_00426980(); + std::vector::_Tidy(); + std::vector::_Tidy(); + std::vector::_Tidy(); + std::vector::_Tidy(); + std::vector::_Tidy(); return; } @@ -750652,7 +750652,7 @@ void FUN_00900ca0(int param_1,int *param_2,int *param_3) } *(short *)(in_ECX + 0xc) = (short)(int)(fVar5 * 32767.0); if (param_1 != 0) { - cVar1 = FUN_007b9f60(&local_20,1); + cVar1 = Entity_Player::GetMouseAimTarget(&local_20,1); if (cVar1 != '\0') { *(byte *)(in_ECX + 0xf) = *(byte *)(in_ECX + 0xf) | 2; *(short *)(in_ECX + 10) = (short)(int)local_20; @@ -753239,7 +753239,7 @@ LAB_00904570: local_48 = local_30; local_44 = local_30; local_2c = local_30; - FUN_00a288a0(&DAT_00c79a74); + std::shared_ptr::assign(&DAT_00c79a74); local_34 = KAGE::Network::Multiplayer::Lobby::vftable; local_14._0_1_ = 3; FUN_00a285f0(&local_4c,1); @@ -753279,7 +753279,7 @@ LAB_00904570: else { if (local_2c == (undefined **)0x7fffffff) { /* WARNING: Subroutine does not return */ - FUN_0040ccc0(); + std::string::_Xlen(); } puVar1 = (undefined1 *)((int)local_2c + 1); puVar16 = (undefined1 *)((uint)puVar1 | 0xf); @@ -753447,7 +753447,7 @@ LAB_00904570: else { if (uVar6 == 0x7fffffff) { /* WARNING: Subroutine does not return */ - FUN_0040ccc0(); + std::string::_Xlen(); } local_2c = (undefined **)(uVar6 + 1); uVar18 = (uint)local_2c | 0xf; @@ -753578,7 +753578,7 @@ void FUN_009047f0(char param_1) else { if (_Size == 0x7fffffff) { /* WARNING: Subroutine does not return */ - FUN_0040ccc0(); + std::string::_Xlen(); } uVar9 = _Size + 1 | 0xf; if (uVar9 < 0x80000000) { @@ -754548,11 +754548,11 @@ void FUN_00906a90(void) *(_Tree_node **)(*(int *)((int)in_ECX + 0x1224) + 4)); operator_delete(*puVar1,0x20); FUN_00900940(); - FUN_00426980(); - FUN_00426980(); - FUN_00426980(); - FUN_00426980(); - FUN_00426980(); + std::vector::_Tidy(); + std::vector::_Tidy(); + std::vector::_Tidy(); + std::vector::_Tidy(); + std::vector::_Tidy(); local_8 = 1; FUN_00923880(); local_8 = CONCAT31(local_8._1_3_,2); @@ -754579,7 +754579,7 @@ void FUN_00906a90(void) FUN_00926120(); std::string::_Tidy_deallocate(); std::string::_Tidy_deallocate(); - FUN_00426980(); + std::vector::_Tidy(); puVar1 = (undefined4 *)((int)in_ECX + 0x3c); FID_conflict__Erase_tree_>_> (puVar1,(fuzzer_allocator_> *)puVar1, @@ -754728,8 +754728,8 @@ void FUN_00906d60(void) *(undefined4 *)(in_ECX + 0x1274) = puVar6[8]; *(undefined4 *)(in_ECX + 0x1278) = puVar6[9]; *(undefined4 *)(in_ECX + 0x127c) = puVar6[10]; - FUN_00a55d60(); - FUN_0069dac0(); + std::vector<12byte>::clear(); + std::vector<12byte>::_Tidy(); local_14 = 0xffffffff; FUN_0091f780(); FUN_0090a8a0(); @@ -754737,7 +754737,7 @@ void FUN_00906d60(void) uStack_30 = 0; FUN_00a282c0(); local_14 = 4; - FUN_00a288a0(); + std::shared_ptr::assign(); local_14 = 5; if (((local_50 != (int *)0x0) && (cVar2 = (**(code **)(*local_50 + 0xc))(), cVar2 != '\0')) && (DAT_00c7f60c != (code *)0x0)) { @@ -754829,7 +754829,7 @@ void FUN_00907690(void) local_24 = (int *)0x0; local_20 = (int *)0x0; local_8 = 0; - FUN_00a288a0(&DAT_00c79a74); + std::shared_ptr::assign(&DAT_00c79a74); local_8 = 1; if (local_24 != (int *)0x0) { cVar1 = (**(code **)(*local_24 + 0xc))(uVar2); @@ -754898,7 +754898,7 @@ void FUN_00907830(void) local_18 = (int *)0x0; local_14 = (int *)0x0; local_8 = 0; - FUN_00a288a0(&DAT_00c79a74); + std::shared_ptr::assign(&DAT_00c79a74); local_8 = 1; if (local_18 == (int *)0x0) { iVar3 = 0; @@ -755077,7 +755077,7 @@ int FUN_00907b60(void) local_18 = 0; local_14 = (int *)0x0; local_8 = 0; - FUN_00a288a0(&DAT_00c79a74); + std::shared_ptr::assign(&DAT_00c79a74); if (local_18 == 0) { iVar3 = 0; } @@ -755369,7 +755369,7 @@ void FUN_009083b0(int *param_1,int param_2) } else { if (*(int *)(param_2 + 0x54) != 0) { - uVar2 = FUN_009586f0(DAT_00c7169c + 0x4a920,"#Online/LOBBY_CREATE_FAILED"); + uVar2 = string_table_translate(DAT_00c7169c + 0x4a920,"#Online/LOBBY_CREATE_FAILED"); FUN_0090ea90(*(undefined4 *)(param_2 + 0x54),uVar2); ExceptionList = local_10; return; @@ -755381,7 +755381,7 @@ void FUN_009083b0(int *param_1,int param_2) } local_14 = (int *)0x0; local_8 = 0; - FUN_00a288a0(&DAT_00c79a74); + std::shared_ptr::assign(&DAT_00c79a74); local_8 = 1; if (local_18 != (int *)0x0) { (**(code **)(*local_18 + 0x24))("game_difficulty",iVar3); @@ -755433,7 +755433,7 @@ void FUN_009084f0(int *param_1,int param_2) } else { if (*(int *)(param_2 + 0x54) != 0) { - uVar2 = FUN_009586f0(DAT_00c7169c + 0x4a920,"#Online/LOBBY_JOIN_FAILED"); + uVar2 = string_table_translate(DAT_00c7169c + 0x4a920,"#Online/LOBBY_JOIN_FAILED"); FUN_0090ea90(*(undefined4 *)(param_2 + 0x54),uVar2); ExceptionList = local_1c; return; @@ -755510,9 +755510,9 @@ void FUN_00908660(int param_1,int param_2,int param_3) local_28 = 0; local_24 = (int *)0x0; local_8 = 0; - FUN_00a288a0(); + std::shared_ptr::assign(); local_8 = 2; - FUN_00a288a0(&local_28); + std::shared_ptr::assign(&local_28); local_8 = CONCAT31(local_8._1_3_,1); Menu_Save::select_save_slot((Menu_Save *)(iVar1 + 0x4b0d8)); local_8 = 3; @@ -755644,7 +755644,7 @@ void FUN_009088e0(undefined ***param_1,undefined ***param_2) local_100 = (code *)0x0; local_fc = (undefined4 *)0x0; local_8 = (undefined *)0x0; - FUN_00a288a0(iVar2 + 4); + std::shared_ptr::assign(iVar2 + 4); local_8 = (undefined *)0xffffffff; cVar3 = FUN_00907960(); if (cVar3 != '\0') { @@ -755673,7 +755673,7 @@ void FUN_009088e0(undefined ***param_1,undefined ***param_2) local_fc = (undefined4 *)(iVar2 + 4); local_8 = (undefined *)0xffffffff; local_100 = (code *)0x9089d5; - FUN_00a288a0(); + std::shared_ptr::assign(); if (DAT_00c79a58 == (int *)0x0) { local_fc = *(undefined4 **)(DAT_00c7169c + 0x4b430); local_100 = (code *)0x908af0; @@ -755691,7 +755691,7 @@ void FUN_009088e0(undefined ***param_1,undefined ***param_2) local_100 = (code *)0x0; local_fc = (undefined4 *)0x0; local_8 = (undefined *)0x2; - FUN_00a288a0(puVar4 + 1); + std::shared_ptr::assign(puVar4 + 1); local_8 = (undefined *)0xffffffff; FUN_00912b60(); if (puVar4 != (undefined4 *)0x0) { @@ -755765,12 +755765,12 @@ void FUN_00908be0(int param_1,undefined4 *param_2) *(undefined4 *)(DAT_00c7169c + 0x4b430) = 0xffffffff; if (param_1 == 0) { local_8 = 0; - FUN_00a288a0(param_2 + 1); + std::shared_ptr::assign(param_2 + 1); local_8 = 0xffffffff; FUN_00912b60(); } else { - FUN_009586f0(); + string_table_translate(); FUN_0090ea90(); } if (param_2 != (undefined4 *)0x0) { @@ -755825,7 +755825,7 @@ void FUN_00908ce0(int param_1,undefined4 param_2,undefined4 param_3) local_28 = 0; FUN_00a282c0(&local_28); local_14 = 0; - FUN_00a288a0(auStack_30); + std::shared_ptr::assign(auStack_30); local_14 = 1; if (local_2c != (int *)0x0) { cVar2 = (**(code **)(*local_2c + 0xc))(); @@ -755834,7 +755834,7 @@ void FUN_00908ce0(int param_1,undefined4 param_2,undefined4 param_3) } } local_14 = 0xffffffff; - uVar3 = FUN_009586f0(DAT_00c7169c + 0x4a920,"#LOBBY_JOIN_FAILED"); + uVar3 = string_table_translate(DAT_00c7169c + 0x4a920,"#LOBBY_JOIN_FAILED"); FUN_0090ea90(param_1,uVar3); ExceptionList = local_1c; return; @@ -755882,7 +755882,7 @@ void FUN_00908e70(int *param_1) void FUN_00909110(void) { - FUN_00426980(); + std::vector::_Tidy(); return; } @@ -756207,7 +756207,7 @@ void FUN_0090a150(undefined4 param_1,undefined4 param_2) local_c0 = (int *)0x0; local_8 = 0; local_14 = uVar2; - FUN_00a288a0(&DAT_00c79a74); + std::shared_ptr::assign(&DAT_00c79a74); local_8 = 1; if (local_c4 != (int *)0x0) { cVar1 = (**(code **)(*local_c4 + 0xc))(uVar2); @@ -756366,7 +756366,7 @@ void FUN_0090a670(void) void FUN_0090a890(void) { - FUN_00426980(); + std::vector::_Tidy(); return; } @@ -756507,7 +756507,7 @@ void FUN_0090a8a0(char param_1) iVar6 = in_ECX[0x61b]; if (iVar6 != iVar7) { do { - FUN_00426980(); + std::vector::_Tidy(); iVar6 = iVar6 + 0x18; } while (iVar6 != iVar7); iVar6 = in_ECX[0x61b]; @@ -756517,7 +756517,7 @@ void FUN_0090a8a0(char param_1) iVar6 = in_ECX[0x61e]; if (iVar6 != iVar7) { do { - FUN_00426980(); + std::vector::_Tidy(); iVar6 = iVar6 + 0x20; } while (iVar6 != iVar7); iVar6 = in_ECX[0x61e]; @@ -756573,9 +756573,9 @@ int FUN_0090abf0(int *param_1) } -//@@ 0090ac70 FUN_0090ac70 +//@@ 0090ac70 InputManager::GetDeviceByPlayerEntity -int FUN_0090ac70(int param_1) +int InputManager::GetDeviceByPlayerEntity(int param_1) { int *piVar1; @@ -756859,7 +756859,7 @@ undefined4 FUN_0090b150(void) FUN_009c5df0(); piStack_94 = (int *)(DAT_00c7169c + 0x4a920); ppiStack_90 = (int **)0xb7ef18; - ppiStack_90 = (int **)FUN_009586f0(); + ppiStack_90 = (int **)string_table_translate(); piStack_94 = (int *)0x90b23c; FUN_009c5eb0(); puVar2 = puStack_20; @@ -756869,7 +756869,7 @@ undefined4 FUN_0090b150(void) FUN_009c5df0(); piStack_94 = (int *)(DAT_00c7169c + 0x4a920); ppiStack_90 = (int **)0xb7ef38; - ppiStack_90 = (int **)FUN_009586f0(); + ppiStack_90 = (int **)string_table_translate(); piStack_94 = (int *)0x90b267; FUN_009c5eb0(); puVar2 = puStack_20; @@ -756879,7 +756879,7 @@ undefined4 FUN_0090b150(void) FUN_009c5df0(); piStack_94 = (int *)(DAT_00c7169c + 0x4a920); ppiStack_90 = (int **)0xb7ef58; - ppiStack_90 = (int **)FUN_009586f0(); + ppiStack_90 = (int **)string_table_translate(); piStack_94 = (int *)0x90b292; FUN_009c5eb0(); puVar2 = puStack_20; @@ -757016,7 +757016,7 @@ undefined4 FUN_0090b150(void) ppiStack_90 = (int **)&DAT_00c79a74; local_14 = 6; piStack_94 = (int *)0x90b59a; - FUN_00a288a0(); + std::shared_ptr::assign(); local_14 = 7; local_30 = (int *)((uint)local_28 | 0x19); local_28 = local_30; @@ -757352,7 +757352,7 @@ LAB_0090bc59: iStack_150 = 0; ppuStack_14c = (undefined **)0x0; local_8 = (void *)0x1; - FUN_00a288a0(param_1 + 1); + std::shared_ptr::assign(param_1 + 1); local_8 = (undefined1 *)((uint)local_8 & 0xffffff00); Menu_Save::select_save_slot((Menu_Save *)local_70); iVar3 = DAT_00c7169c; @@ -757422,7 +757422,7 @@ LAB_0090bda3: } local_8 = (void *)0xffffffff; ppuStack_14c = (undefined **)0x90be77; - FUN_00426980(); + std::vector::_Tidy(); ppuStack_14c = (undefined **)0x90be7f; std::string::_Tidy_deallocate(); ppuStack_14c = (undefined **)0x90be87; @@ -757435,7 +757435,7 @@ LAB_0090be87: ppuStack_14c = (undefined **)&uStack_80; local_8 = &DAT_00000004; iStack_150 = 0x90beb1; - FUN_00a288a0(); + std::shared_ptr::assign(); ppuStack_84 = KAGE::Network::Multiplayer::ConstLobby::vftable; local_8 = &DAT_00000005; if (local_7c != (int *)0x0) { @@ -757536,7 +757536,7 @@ void FUN_0090bf10(undefined **param_1) local_54 = (code *)0x0; local_50 = (MenuManager *)0x0; local_14 = 1; - FUN_00a288a0(param_1 + 1); + std::shared_ptr::assign(param_1 + 1); local_14 = 0xffffffff; FUN_009db250(); } @@ -757548,7 +757548,7 @@ void FUN_0090bf10(undefined **param_1) local_50 = (MenuManager *)(param_1 + 1); local_54 = (code *)0x90c06c; puStack_20 = (undefined1 *)((int)register0x00000010 + -4); - FUN_00a288a0(); + std::shared_ptr::assign(); if (*in_ECX == in_ECX[1]) { local_50 = (MenuManager *)&local_28; local_28 = 0; @@ -757725,7 +757725,7 @@ undefined4 FUN_0090c360(undefined4 param_1) undefined1 local_14 [8]; int local_c; - iVar1 = FUN_0090ac70(param_1); + iVar1 = InputManager::GetDeviceByPlayerEntity(param_1); if (iVar1 != 0) { iVar1 = *(int *)(iVar1 + 0x374); if (iVar1 == 0) { @@ -758663,7 +758663,7 @@ undefined1 FUN_0090e8e0(int param_1) local_138 = 0; local_134 = (undefined8 *)0x0; local_8 = (void *)0x1; - FUN_00a288a0(param_1 + 4); + std::shared_ptr::assign(param_1 + 4); local_8 = (void *)((uint)local_8 & 0xffffff00); Menu_Save::select_save_slot((Menu_Save *)local_70); if (DAT_00c73674 == 0) { @@ -758713,7 +758713,7 @@ undefined1 FUN_0090e8e0(int param_1) uVar3 = 0; LAB_0090e99a: local_134 = (undefined8 *)0x90e9a2; - FUN_00426980(); + std::vector::_Tidy(); local_134 = (undefined8 *)0x90e9aa; std::string::_Tidy_deallocate(); local_134 = (undefined8 *)0x90e9b2; @@ -758790,7 +758790,7 @@ void FUN_0090ea90(int param_1,undefined4 param_2) local_218 = &DAT_bf800000; FUN_009c25e0(DAT_00c7169c + 0x4ae74,0,0,&local_21c); local_8 = 0; - uVar1 = FUN_009586f0(DAT_00c7169c + 0x4a920,pcVar2); + uVar1 = string_table_translate(DAT_00c7169c + 0x4a920,pcVar2); sprintf_s(local_214,0x200,"%s\\n%s",param_2,uVar1); FUN_009c3c30(); FUN_009c39e0(local_2c4); @@ -758909,7 +758909,7 @@ void FUN_0090eca0(uint param_1,uint param_2,int *param_3) if ((param_1 & 2) != 0) { local_2c = 0; local_14._0_1_ = 2; - FUN_00a288a0(); + std::shared_ptr::assign(); local_28 = (int *)0x18; in_ECX = local_44; } @@ -760404,7 +760404,7 @@ LAB_00911a6b: piVar10[-3] = piVar15[-3]; if (piVar10 != piVar15) { local_c0 = (undefined ***)0x911b3e; - FUN_00426980(); + std::vector::_Tidy(); piVar10[-2] = piVar15[-2]; local_70._4_4_[-1] = piVar15[-1]; *local_70._4_4_ = *piVar15; @@ -760424,7 +760424,7 @@ LAB_00911a6b: in_ECX = local_74; } local_c0 = (undefined ***)0x911b97; - FUN_00426980(); + std::vector::_Tidy(); in_ECX[0x61c] = in_ECX[0x61c] + -0x18; } local_54 = local_54 + -0x18; @@ -760659,7 +760659,7 @@ LAB_00912357: piVar6[-4] = iVar5; piVar6[-3] = piVar14[-3]; if (piVar6 != piVar14) { - FUN_00426980(); + std::vector::_Tidy(); piVar6[-2] = piVar14[-2]; local_48._4_4_[-1] = piVar14[-1]; *local_48._4_4_ = *piVar14; @@ -760677,7 +760677,7 @@ LAB_00912357: } while (local_4c != piVar11); } puVar1 = local_24; - FUN_00426980(); + std::vector::_Tidy(); puVar1[0x61f] = puVar1[0x61f] + -0x20; piVar11 = local_28; } @@ -760992,7 +760992,7 @@ void FUN_009128e0(void) pppuStack_68 = (undefined ***)&DAT_00c79a74; local_14 = (undefined **)0x0; pcStack_6c = (char *)0x912946; - FUN_00a288a0(); + std::shared_ptr::assign(); local_40 = KAGE::Network::Multiplayer::Lobby::vftable; local_14 = (undefined **)0x1; if (local_3c == (int *)0x0) { @@ -761040,7 +761040,7 @@ void FUN_009128e0(void) pppuStack_68 = (undefined ***)&DAT_00c79a74; local_14 = (undefined **)0x4; pcStack_6c = (char *)0x912a5a; - FUN_00a288a0(); + std::shared_ptr::assign(); local_40 = KAGE::Network::Multiplayer::Lobby::vftable; local_14 = (undefined **)0x5; if ((int)DAT_00c71678[0x9985] < 2) { @@ -761070,7 +761070,7 @@ void FUN_009128e0(void) pppuStack_68 = (undefined ***)&DAT_00c79a74; local_14 = (undefined **)0x7; pcStack_6c = (char *)0x912aed; - FUN_00a288a0(); + std::shared_ptr::assign(); local_40 = KAGE::Network::Multiplayer::Lobby::vftable; local_14 = (undefined **)0x8; pppuStack_68 = (undefined ***)DAT_00c71678[1]; @@ -761130,7 +761130,7 @@ void FUN_00912b60(undefined **param_1,undefined1 param_2,int *param_3) local_9c = (int **)0x0; local_8 = 1; local_14 = uStack_98; - FUN_00a288a0(¶m_2); + std::shared_ptr::assign(¶m_2); local_8 = local_8 & 0xffffff00; FUN_0085b160(); local_8 = CONCAT31(local_8._1_3_,2); @@ -761146,7 +761146,7 @@ void FUN_00912b60(undefined **param_1,undefined1 param_2,int *param_3) local_a0 = 0; local_9c = (int **)0x0; local_8._0_1_ = 6; - FUN_00a288a0(¶m_2); + std::shared_ptr::assign(¶m_2); local_8 = CONCAT31(local_8._1_3_,2); FUN_009c61e0(); } @@ -761159,7 +761159,7 @@ void FUN_00912b60(undefined **param_1,undefined1 param_2,int *param_3) local_9c = (int **)¶m_2; local_8._0_1_ = 3; local_a0 = 0x912c0a; - FUN_00a288a0(); + std::shared_ptr::assign(); local_8._0_1_ = 4; if ((*(int *)(in_ECX + 0x1918) == 0) || (*(char *)(in_ECX + 0x1928) == '\0')) { local_9c = (int **)0x912c25; @@ -761167,11 +761167,11 @@ void FUN_00912b60(undefined **param_1,undefined1 param_2,int *param_3) local_9c = &local_80; *(undefined4 *)(in_ECX + 0x18d8) = 1; local_a0 = 0x912c3a; - FUN_00a288a0(); + std::shared_ptr::assign(); local_9c = (int **)0x912c42; FUN_00837510(); local_a4 = (undefined **)0xb7eef8; - local_a4 = (undefined **)FUN_009586f0(DAT_00c7169c + 0x4a920); + local_a4 = (undefined **)string_table_translate(DAT_00c7169c + 0x4a920); FUN_00837660(); *(undefined4 *)(in_ECX + 0x18dc) = 0; if (local_80 != (int *)0x0) { @@ -761201,7 +761201,7 @@ LAB_00912c90: } LAB_00912d0e: local_9c = (int **)0x912d16; - FUN_00426980(); + std::vector::_Tidy(); local_9c = (int **)0x912d1e; std::string::_Tidy_deallocate(); local_9c = (int **)0x912d26; @@ -761560,7 +761560,7 @@ void FUN_009139a0(void) iVar3 = in_ECX[1]; if (iVar2 != iVar3) { do { - FUN_00426980(); + std::vector::_Tidy(); iVar2 = iVar2 + 0x20; } while (iVar2 != iVar3); iVar2 = *in_ECX; @@ -761605,7 +761605,7 @@ void FUN_00913a10(int *param_1,int param_2) puVar2[-4] = puVar3[-4]; puVar2[-3] = puVar3[-3]; if (puVar2 != puVar3) { - FUN_00426980(); + std::vector::_Tidy(); puVar2[-2] = puVar3[-2]; puVar2[-1] = puVar3[-1]; *puVar2 = *puVar3; @@ -761618,7 +761618,7 @@ void FUN_00913a10(int *param_1,int param_2) puVar3 = puVar3 + 6; } while (local_8 != puVar1); } - FUN_00426980(); + std::vector::_Tidy(); *(int *)(in_ECX + 4) = *(int *)(in_ECX + 4) + -0x18; *param_1 = param_2; return; @@ -761662,7 +761662,7 @@ void FUN_00913b10(void) iVar3 = in_ECX[1]; if (iVar2 != iVar3) { do { - FUN_00426980(); + std::vector::_Tidy(); iVar2 = iVar2 + 0x18; } while (iVar2 != iVar3); iVar2 = *in_ECX; @@ -762540,7 +762540,7 @@ void FUN_009147e0(int param_1,int param_2) { for (; param_1 != param_2; param_1 = param_1 + 0x20) { - FUN_00426980(); + std::vector::_Tidy(); } return; } @@ -762552,7 +762552,7 @@ void FUN_00914810(int param_1,int param_2) { for (; param_1 != param_2; param_1 = param_1 + 0x18) { - FUN_00426980(); + std::vector::_Tidy(); } return; } @@ -762712,7 +762712,7 @@ undefined4 * FUN_009149f0(int param_1,undefined4 *param_2) iVar3 = in_ECX[1]; if (iVar8 != iVar3) { do { - FUN_00426980(); + std::vector::_Tidy(); iVar8 = iVar8 + 0x20; } while (iVar8 != iVar3); iVar8 = *in_ECX; @@ -762813,7 +762813,7 @@ undefined4 * FUN_00914ba0(int param_1,undefined4 *param_2) iVar7 = in_ECX[1]; if (iVar6 != iVar7) { do { - FUN_00426980(); + std::vector::_Tidy(); iVar6 = iVar6 + 0x18; } while (iVar6 != iVar7); iVar6 = *in_ECX; @@ -768327,7 +768327,7 @@ void FUN_0091c320(void) local_a8 = (int *)0x0; local_a4 = (int *)0x0; local_14 = 0; - FUN_00a288a0(&DAT_00c79a74); + std::shared_ptr::assign(&DAT_00c79a74); local_ac = KAGE::Network::Multiplayer::Lobby::vftable; local_14 = 1; if (local_a8 == (int *)0x0) { @@ -769213,7 +769213,7 @@ LAB_0091d341: uStack_50 = *(undefined4 *)(iVar6 + 0x5e4); } else { - FUN_0060d180(&local_58,iVar5); + Entity_Familiar::GetPlayerSlot(&local_58,iVar5); iVar6 = *in_ECX; } fStack_4c = local_24 * (float)in_ECX[10]; @@ -769255,8 +769255,8 @@ LAB_0091d341: FUN_00a1bd80(&local_a4,fStack_1c,fStack_1c,local_88,local_8c,local_90,local_24,local_94, &local_7c); local_8 = 0xffffffff; - FUN_00a55d60(); - FUN_0069dac0(); + std::vector<12byte>::clear(); + std::vector<12byte>::_Tidy(); local_30 = (float)((int)fVar8 - 1); fVar8 = param_1[1] - fVar7; _param_2 = _param_2 + -0xc; @@ -769308,8 +769308,8 @@ LAB_0091d341: FUN_00a1bd80(&local_a4,fStack_1c,fStack_1c,local_88,local_8c,local_90,local_24,local_94, &local_60); local_8 = 0xffffffff; - FUN_00a55d60(); - FUN_0069dac0(); + std::vector<12byte>::clear(); + std::vector<12byte>::_Tidy(); _param_2 = _param_2 + 1; local_38 = (float)((int)local_38 + 0xc); param_1[1] = fVar7 + param_1[1]; @@ -769346,7 +769346,7 @@ LAB_0091d913: uStack_50 = *(undefined4 *)(iVar6 + 0x5e4); fStack_4c = *(float *)(iVar6 + 0x5e8); local_48 = *(undefined4 *)(iVar6 + 0x5ec); - FUN_00a10d00(*(float *)(iVar6 + 0x5f4) * 11.0 + (param_1[1] - fVar7),&local_58); + render_quad_set_uniform_color(*(float *)(iVar6 + 0x5f4) * 11.0 + (param_1[1] - fVar7),&local_58); if ((local_f4 + local_e0 + local_cc + local_b8) * 0.25 != fVar8) { FUN_00a140c0("KAGE_ColorShader"); local_74 = 0; @@ -769388,8 +769388,8 @@ void FUN_0091db00(void) { int in_ECX; - FUN_00a55d60(); - FUN_0069dac0(); + std::vector<12byte>::clear(); + std::vector<12byte>::_Tidy(); *(undefined ***)(in_ECX + 4) = KAGE::System::UserProfileBase::vftable; return; } @@ -769416,8 +769416,8 @@ void FUN_0091db20(void) (this,(fuzzer_allocator_> *)this, *(_Tree_node **)(in_ECX[0x188] + 4)); operator_delete(*this,0x20); - FUN_00a55d60(); - FUN_0069dac0(); + std::vector<12byte>::clear(); + std::vector<12byte>::_Tidy(); in_ECX[10] = (int)KAGE::System::UserProfileBase::vftable; std::string::_Tidy_deallocate(); FUN_0091fb10(in_ECX,*(undefined4 *)(*in_ECX + 4)); @@ -769600,8 +769600,8 @@ LAB_0091df60: ::operator++((_Tree_unchecked_const_iterator_>,std::_Iterator_base0> *)local_6c); iVar9 = FUN_00828180(); - FUN_00a55d60(); - FUN_0069dac0(); + std::vector<12byte>::clear(); + std::vector<12byte>::_Tidy(); *(undefined ***)(iVar9 + 0x1c) = KAGE::System::UserProfileBase::vftable; operator_delete(); uVar15 = 0x80000000; @@ -769653,8 +769653,8 @@ LAB_0091df60: FUN_0091cf80(piVar11,local_6c[0]); local_14 = (uint *)CONCAT31(local_14._1_3_,0xb); FUN_0091dbc0(); - FUN_00a55d60(); - FUN_0069dac0(); + std::vector<12byte>::clear(); + std::vector<12byte>::_Tidy(); local_14 = (uint *)0xffffffff; piVar11[0x16] = 0x3f800000; } @@ -769760,8 +769760,8 @@ LAB_0091df60: piVar11[0x11] = piVar10[8]; piVar11[0x12] = piVar10[9]; piVar11[0x13] = piVar10[10]; - FUN_00a55d60(); - FUN_0069dac0(); + std::vector<12byte>::clear(); + std::vector<12byte>::_Tidy(); local_14 = (uint *)0xffffffff; piVar11[2] = 0; } @@ -769884,12 +769884,12 @@ void FUN_0091e730(void) int *local_8; std::string::assign(&DAT_00b1a4ec,0); - FUN_00a55d60(); + std::vector<12byte>::clear(); piVar1 = (int *)*in_ECX; local_8 = (int *)*piVar1; if (local_8 != piVar1) { do { - FUN_00a55d60(); + std::vector<12byte>::clear(); std:: _Tree_unchecked_const_iterator_>,std::_Iterator_base0> ::operator++((_Tree_unchecked_const_iterator_>,std::_Iterator_base0> @@ -770170,15 +770170,15 @@ void FUN_0091ec60(undefined4 param_1,undefined4 param_2,undefined ***param_3,und local_a0 = (undefined **)¶m_2; FUN_0091fc30(); local_9c = (undefined4 *)0x91ecd2; - FUN_00a55d60(); + std::vector<12byte>::clear(); local_9c = (undefined4 *)0x91ecda; - FUN_0069dac0(); + std::vector<12byte>::_Tidy(); local_7c = KAGE::System::UserProfileBase::vftable; local_8 = 0xffffffff; local_9c = (undefined4 *)0x91ecf0; - FUN_00a55d60(); + std::vector<12byte>::clear(); local_9c = (undefined4 *)0x91ecf8; - FUN_0069dac0(); + std::vector<12byte>::_Tidy(); param_3 = &local_a0; local_48 = KAGE::System::UserProfileBase::vftable; local_a0 = KAGE::System::UserProfileBase::vftable; @@ -770216,8 +770216,8 @@ void FUN_0091ede0(void) { int in_ECX; - FUN_00a55d60(); - FUN_0069dac0(); + std::vector<12byte>::clear(); + std::vector<12byte>::_Tidy(); *(undefined ***)(in_ECX + 0xc) = KAGE::System::UserProfileBase::vftable; return; } @@ -770477,7 +770477,7 @@ LAB_0091f085: puVar9 = (undefined4 *)(in_ECX + 0xc); uVar6 = (*(int *)(in_ECX + 0x1c) - (int)local_4c._4_4_) + (int)local_40; if (*(uint *)(in_ECX + 0x1c) < uVar6) { - FUN_00414870(); + std::string::append_n(); } else { if (0xf < *(uint *)(in_ECX + 0x20)) { @@ -770551,8 +770551,8 @@ LAB_0091f085: else if (piVar12 != local_38) { std::string::assign(); } - FUN_00a55d60(); - FUN_0069dac0(); + std::vector<12byte>::clear(); + std::vector<12byte>::_Tidy(); } if (0xf < local_24) { if ((0xfff < local_24 + 1) && (0x1f < (local_38[0] - *(int *)(local_38[0] + -4)) - 4U)) { @@ -770909,8 +770909,8 @@ void FUN_0091fb10(undefined4 param_1,int *param_2) while (cVar1 == '\0') { FUN_0091fb10(param_1,param_2[2]); piVar2 = (int *)*param_2; - FUN_00a55d60(); - FUN_0069dac0(); + std::vector<12byte>::clear(); + std::vector<12byte>::_Tidy(); param_2[7] = (int)KAGE::System::UserProfileBase::vftable; operator_delete(param_2,0x48); param_2 = piVar2; @@ -771085,8 +771085,8 @@ void FUN_0091fe20(void) iVar1 = *(int *)(in_ECX + 4); if (iVar1 != 0) { - FUN_00a55d60(); - FUN_0069dac0(); + std::vector<12byte>::clear(); + std::vector<12byte>::_Tidy(); *(undefined ***)(iVar1 + 0x1c) = KAGE::System::UserProfileBase::vftable; if (*(int *)(in_ECX + 4) != 0) { operator_delete(*(int *)(in_ECX + 4),0x48); @@ -771228,13 +771228,13 @@ undefined4 FUN_0091fe80(undefined4 param_1) if (0x7fffffffU - local_2c < uVar5) { LAB_00920436: /* WARNING: Subroutine does not return */ - FUN_0040ccc0(); + std::string::_Xlen(); } ppppuVar10 = local_3c; if (0xf < local_28) { ppppuVar10 = local_3c[0]; } - FUN_00421680(pcVar13,uVar5,ppppuVar10,local_2c,pcVar14,uVar5); + std::string::concat(pcVar13,uVar5,ppppuVar10,local_2c,pcVar14,uVar5); if (0xf < local_74._4_4_) { uVar5 = local_74._4_4_ + 1; pcVar14 = local_84; @@ -771271,7 +771271,7 @@ LAB_00920436: if (0xf < local_28) { ppppuVar10 = local_3c[0]; } - FUN_00421680(pcVar13,uVar5,ppppuVar10,local_2c,pcVar14,uVar5); + std::string::concat(pcVar13,uVar5,ppppuVar10,local_2c,pcVar14,uVar5); if (0xf < uStack_40) { uVar5 = uStack_40 + 1; pcVar14 = local_54; @@ -771330,7 +771330,7 @@ LAB_009201e6: if (0xf < local_28) { ppppuVar10 = local_3c[0]; } - FUN_00421680(pcVar14 + 1,uVar5,ppppuVar10,local_2c,pcVar14,uVar5); + std::string::concat(pcVar14 + 1,uVar5,ppppuVar10,local_2c,pcVar14,uVar5); pcVar14 = local_6c; local_14._0_1_ = 4; puVar4 = *(undefined4 **)(in_ECX + 0xc); @@ -771736,7 +771736,7 @@ void FUN_00920940(void) { local_65 = '\x01'; } - FUN_00a18230(); + RenderTarget::Clear(); if (*in_ECX == 0) { return; } @@ -772453,7 +772453,7 @@ LAB_00921b36: local_28 = 0; uStack_24 = 0; uStack_20 = 0; - FUN_00a10d00(DAT_00c78edc,&local_28); + render_quad_set_uniform_color(DAT_00c78edc,&local_28); if ((local_d4 + local_c0 + local_ac + local_98) * 0.25 != fVar9) { FUN_00a140c0("KAGE_ColorShader"); local_28 = 0; @@ -776380,7 +776380,7 @@ void FUN_00926460(undefined4 param_1) iVar1 = DAT_00c7169c; piVar2 = (int *)SteamInternal_ContextInit(&PTR_FUN_00c5c3a4); if ((*piVar2 == 0) || (*(char *)(iVar1 + 0x2a3a4) == '\0')) { - FUN_009294f0(); + PersistentGameData::Save(); return; } PersistentGameData::SaveToSteamCloud(); @@ -777864,11 +777864,11 @@ void FUN_00929240(void) } -//@@ 009292c0 FUN_009292c0 +//@@ 009292c0 Manager::BackupSaveFile /* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */ -void FUN_009292c0(void) +void Manager::BackupSaveFile(void) { int iVar1; @@ -777981,9 +777981,9 @@ LAB_00929418: } -//@@ 009294f0 FUN_009294f0 +//@@ 009294f0 PersistentGameData::Save -void FUN_009294f0(void) +void PersistentGameData::Save(void) { uint uVar1; @@ -778075,7 +778075,7 @@ void FUN_00929660(char param_1) if ((*in_ECX != '\0') && (in_ECX[0xf8c] != '\0')) { *in_ECX = '\0'; if (param_1 != '\0') { - FUN_009292c0(); + Manager::BackupSaveFile(); } iVar1 = DAT_00c7169c; piVar2 = (int *)SteamInternal_ContextInit(&PTR_FUN_00c5c3a4); @@ -778083,7 +778083,7 @@ void FUN_00929660(char param_1) PersistentGameData::SaveToSteamCloud(); return; } - FUN_009294f0(); + PersistentGameData::Save(); } return; } @@ -779097,9 +779097,9 @@ PersistentGameData::AddBestiaryKill(PersistentGameData *this,int param_2,int par } -//@@ 0092aea0 FUN_0092aea0 +//@@ 0092aea0 PersistentGameData::TryAddBestiaryEncounter -undefined4 FUN_0092aea0(undefined4 param_1,undefined4 param_2) +undefined4 PersistentGameData::TryAddBestiaryEncounter(undefined4 param_1,undefined4 param_2) { PersistentGameData *pPVar1; @@ -779183,7 +779183,7 @@ undefined4 FUN_0092aea0(undefined4 param_1,undefined4 param_2) } if (((*local_18 == 0x4e) && (local_18[1] != 0)) && (iVar5 = PersistentGameData::GetBestiaryEncounterCount(), iVar5 == 0)) { - FUN_0092aea0(0x4e,0); + PersistentGameData::TryAddBestiaryEncounter(0x4e,0); PersistentGameData::AddBestiaryKill(); } return 1; @@ -779725,11 +779725,11 @@ undefined1 FUN_0092b930(int *param_1) *(undefined4 *)(DAT_00c7169c + 0x2a378) = uVar1; if ((in_ECX->changesmade != 0) && (in_ECX->fileLoadedSucessfully != 0)) { in_ECX->changesmade = 0; - FUN_009292c0(); + Manager::BackupSaveFile(); iVar5 = DAT_00c7169c; piVar4 = (int *)SteamInternal_ContextInit(&PTR_FUN_00c5c3a4); if ((*piVar4 == 0) || (*(char *)(iVar5 + 0x2a3a4) == '\0')) { - FUN_009294f0(); + PersistentGameData::Save(); } else { PersistentGameData::SaveToSteamCloud(in_ECX); @@ -781125,13 +781125,13 @@ LAB_0092d932: uVar8 = (int)pcVar18 - (int)(pcVar26 + 1); if (0x7fffffffU - local_2c < uVar8) { /* WARNING: Subroutine does not return */ - FUN_0040ccc0(); + std::string::_Xlen(); } pppppuVar14 = local_3c; if (0xf < local_28) { pppppuVar14 = local_3c[0]; } - FUN_00421680(puVar20,uVar8,pppppuVar14,local_2c,pcVar26,uVar8); + std::string::concat(puVar20,uVar8,pppppuVar14,local_2c,pcVar26,uVar8); puVar22 = puStack_1041c; if (puStack_1041c == &local_54) { if (0xf < uStack_40) { @@ -782795,10 +782795,10 @@ LAB_0092fbfd: piVar8 = piVar8 + 1; } while (piVar8 != *(int **)&pGVar10->field_0x1baac); } - FUN_0082ee40(*(undefined4 *) + log_room_transition(*(undefined4 *) (&DAT_00c71678->field_0x14 + DAT_00c71678->_lastBossRoomListIdx * 0xb8), 0xffffffff,0xf,0,0xffffffff); - FUN_008318a0(); + Game::update_pending_pickup_animations(); iVar9 = Level::GetRoomByIdx((Level *)DAT_00c71678,DAT_00c71678->_startingRoomIdx,0xffffffff) ; pGVar10 = DAT_00c71678; @@ -782918,9 +782918,9 @@ LAB_009300d4: DAT_00c79908 = 7; DAT_00c7990c = 1; DAT_00c79910 = 7; - FUN_00a10d00(DAT_00c78edc,&local_8c); + render_quad_set_uniform_color(DAT_00c78edc,&local_8c); if ((*in_ECX == 2) || (*in_ECX == 3)) { - FUN_00a1dfd0(local_78); + render_color_shader_pass(local_78); } return; } @@ -782962,7 +782962,7 @@ LAB_0093020c: return CONCAT31((int3)((uint)iVar1 >> 8),1); } if (*in_ECX == 2) { - in_EAX = FUN_004360f0(); + in_EAX = _get_index_plus_one_if_kind_4_5(); iVar1 = 0; if (in_EAX == 1) goto LAB_0093020c; } @@ -783005,7 +783005,7 @@ void TemporaryEffects::AddEffect(int *param_1,char param_2,int param_3) } while (piVar5 != piVar1); } if (piVar1 == (int *)in_ECX[3]) { - FUN_004b39b0(piVar1,param_1); + std::vector::_Emplace_reallocate(piVar1,param_1); } else { iVar2 = param_1[1]; @@ -783211,9 +783211,9 @@ void TemporaryEffects::RemoveNullEffect(int param_1,undefined4 param_2) } -//@@ 009305c0 FUN_009305c0 +//@@ 009305c0 vector_contains_int -uint FUN_009305c0(int param_1) +uint vector_contains_int(int param_1) { int *in_EAX; @@ -784017,13 +784017,13 @@ LAB_00931925: uVar5 = (int)pcVar13 - (int)(pcVar18 + 1); if (0x7fffffffU - local_2c < uVar5) { /* WARNING: Subroutine does not return */ - FUN_0040ccc0(); + std::string::_Xlen(); } pppppuVar12 = local_3c; if (0xf < local_28) { pppppuVar12 = local_3c[0]; } - FUN_00421680(in_ECX,uVar5,pppppuVar12,local_2c,pcVar18,uVar5); + std::string::concat(in_ECX,uVar5,pppppuVar12,local_2c,pcVar18,uVar5); if (0xf < uStack_100a4) { uVar5 = uStack_100a4 + 1; pppppuVar12 = apppppuStack_100b8[0]; @@ -784394,7 +784394,7 @@ FUN_00932120(undefined4 param_1,undefined4 param_2,int param_3,undefined4 param_ undefined4 extraout_ECX; KColor::SetFromARGB(0xffffffff); - FUN_00a10d00((float)(param_5 + param_3) * 26.0 + *(float *)(in_ECX + 0x4f1c),extraout_ECX); + render_quad_set_uniform_color((float)(param_5 + param_3) * 26.0 + *(float *)(in_ECX + 0x4f1c),extraout_ECX); return param_1; } @@ -784983,13 +784983,13 @@ LAB_00932d26: if (0x7fffffffU - local_74 < uVar5) { LAB_00934421: /* WARNING: Subroutine does not return */ - FUN_0040ccc0(); + std::string::_Xlen(); } pppppuVar10 = local_84; if (0xf < local_70) { pppppuVar10 = local_84[0]; } - FUN_00421680(in_ECX,uVar5,pppppuVar10,local_74,pcVar14,uVar5); + std::string::concat(in_ECX,uVar5,pppppuVar10,local_74,pcVar14,uVar5); std::string::_Tidy_deallocate(); ppppiStack_10364 = local_54; uStack_10360 = uStack_50; @@ -785037,7 +785037,7 @@ LAB_00932de7: if (0xf < local_70) { pppppuVar10 = local_84[0]; } - FUN_00421680(in_ECX,uVar5,pppppuVar10,local_74,pcVar14,uVar5); + std::string::concat(in_ECX,uVar5,pppppuVar10,local_74,pcVar14,uVar5); std::string::_Tidy_deallocate(); ppppiStack_10334 = local_54; uStack_10330 = uStack_50; @@ -785085,7 +785085,7 @@ LAB_00932ea8: if (0xf < local_70) { pppppuVar10 = local_84[0]; } - FUN_00421680(in_ECX,uVar5,pppppuVar10,local_74,pcVar14,uVar5); + std::string::concat(in_ECX,uVar5,pppppuVar10,local_74,pcVar14,uVar5); std::string::_Tidy_deallocate(); ppppiStack_1031c = local_54; uStack_10318 = uStack_50; @@ -785133,7 +785133,7 @@ LAB_00932f69: if (0xf < local_70) { pppppuVar10 = local_84[0]; } - FUN_00421680(in_ECX,uVar5,pppppuVar10,local_74,pcVar14,uVar5); + std::string::concat(in_ECX,uVar5,pppppuVar10,local_74,pcVar14,uVar5); std::string::_Tidy_deallocate(); ppppiStack_1034c = local_54; uStack_10348 = uStack_50; @@ -785422,7 +785422,7 @@ LAB_0093333c: if (0xf < local_58) { pppppuVar10 = local_6c[0]; } - FUN_00421680(in_ECX,uVar5,pppppuVar10,local_5c,pcVar12,uVar5); + std::string::concat(in_ECX,uVar5,pppppuVar10,local_5c,pcVar12,uVar5); pppppiVar11 = &local_54; local_14._0_1_ = 0x11; bVar3 = true; @@ -785515,7 +785515,7 @@ LAB_009334f9: if (0xf < local_58) { pppppuVar10 = local_6c[0]; } - FUN_00421680(in_ECX,uVar5,pppppuVar10,local_5c,pcVar12,uVar5); + std::string::concat(in_ECX,uVar5,pppppuVar10,local_5c,pcVar12,uVar5); pppppiVar11 = &local_54; local_14._0_1_ = 0x12; uStack_1036c = uStack_1036c | 0x200004; @@ -785609,7 +785609,7 @@ LAB_009336b5: if (0xf < local_58) { pppppuVar10 = local_6c[0]; } - FUN_00421680(in_ECX,uVar5,pppppuVar10,local_5c,pcVar12,uVar5); + std::string::concat(in_ECX,uVar5,pppppuVar10,local_5c,pcVar12,uVar5); pppppiVar11 = &local_54; local_14._0_1_ = 0x13; uStack_1036c = uStack_1036c | 0x400010; @@ -785698,7 +785698,7 @@ LAB_00933825: if (0xf < local_58) { pppppuVar10 = local_6c[0]; } - FUN_00421680(in_ECX,uVar5,pppppuVar10,local_5c,pcVar12,uVar5 + std::string::concat(in_ECX,uVar5,pppppuVar10,local_5c,pcVar12,uVar5 ); pppppiVar11 = &local_54; local_14._0_1_ = 0x14; @@ -785774,7 +785774,7 @@ LAB_009339a7: if (0xf < local_58) { pppppuVar10 = local_6c[0]; } - FUN_00421680(in_ECX,uVar5,pppppuVar10,local_5c,pcVar12, + std::string::concat(in_ECX,uVar5,pppppuVar10,local_5c,pcVar12, uVar5); pppppiVar11 = &local_54; local_14._0_1_ = 0x15; @@ -785864,7 +785864,7 @@ LAB_00933b35: if (0xf < local_58) { pppppuVar10 = local_6c[0]; } - FUN_00421680(in_ECX,uVar5,pppppuVar10,local_5c,pcVar12, + std::string::concat(in_ECX,uVar5,pppppuVar10,local_5c,pcVar12, uVar5); pppppiVar11 = &local_54; local_14._0_1_ = 0x16; @@ -785954,7 +785954,7 @@ LAB_00933cc5: if (0xf < local_58) { pppppuVar10 = local_6c[0]; } - FUN_00421680(in_ECX,uVar5,pppppuVar10,local_5c,pcVar12 + std::string::concat(in_ECX,uVar5,pppppuVar10,local_5c,pcVar12 ,uVar5); pppppiVar11 = &local_54; local_14._0_1_ = 0x17; @@ -787040,9 +787040,9 @@ void FUN_009353b0(void) pcStack_50 = (char *)0x0; puStack_54 = (undefined4 *)*in_ECX; puStack_58 = (undefined4 *)0x935647; - FUN_00a18300(); + KAGE_Graphics::SetRenderTarget(); pcStack_50 = (char *)0x935651; - FUN_00a18230(); + RenderTarget::Clear(); pcStack_50 = (char *)&DAT_00c7b640; puStack_54 = &DAT_00c7b640; puStack_58 = &DAT_00c7b640; @@ -787052,7 +787052,7 @@ void FUN_009353b0(void) pcStack_50 = (char *)0x1; DAT_00c33910 = 1; puStack_54 = (undefined4 *)0x935684; - FUN_00a19180(); + _glfw_context_reset(); ExceptionList = local_10; return; } @@ -787068,7 +787068,7 @@ void FUN_009353b0(void) uVar6 = 0x935602; KAGE::SmartPointer::operator_assign(puVar7); local_8 = CONCAT31(local_8._1_3_,0xb); - FUN_0041c770(in_ECX); + shared_ptr::assign(in_ECX); local_8 = 0xffffffff; FUN_009356a0(uVar5,in_ECX + 0x13ca,uVar6,puVar7); ExceptionList = local_10; @@ -787132,7 +787132,7 @@ LAB_009354f2: uVar6 = 0x935518; KAGE::SmartPointer::operator_assign(puVar7); local_8._0_1_ = 7; - FUN_0041c770(in_ECX); + shared_ptr::assign(in_ECX); local_8._0_1_ = 1; FUN_009356a0(uVar5,in_ECX + 0x13ca,uVar6,puVar7); pcStack_50 = (char *)0x0; @@ -787324,8 +787324,8 @@ void FUN_009356a0(int param_1,uint *param_2,undefined4 param_3,int *param_4,int local_13c = uVar21; local_12c = in_ECX; local_24 = uVar15; - FUN_00a18300(param_3,0); - FUN_00a18230(uVar15); + KAGE_Graphics::SetRenderTarget(param_3,0); + RenderTarget::Clear(uVar15); iVar24 = local_12c; if (*(int *)(local_12c + 0x150) == 0) goto LAB_00935e76; if (((*(int *)(local_12c + 0x150) == 0xf) && (uVar21 != 1)) && @@ -787355,7 +787355,7 @@ void FUN_009356a0(int param_1,uint *param_2,undefined4 param_3,int *param_4,int KColor::SetFromARGB(0xffffffff); local_138 = (int *)((float)piVar22 + fVar25); local_130 = (int *)((float)local_130 + fVar25); - uVar17 = FUN_00a10d00(local_138,extraout_ECX); + uVar17 = render_quad_set_uniform_color(local_138,extraout_ECX); (*pcVar23)(local_128 + (int)local_170 * 0x24,uVar17,&DAT_00c37944); if (*(float *)(local_12c + 0x4f20) - 0.001 < (float)local_130) { local_130 = *(int **)(local_12c + 0x4f18); @@ -787807,7 +787807,7 @@ LAB_009369d2: uStack_18c = 0x3f800000; local_188 = 0; pcVar23 = *(code **)(*param_5 + 0x14); - FUN_00a10d00((float)((int)piVar22 + 4) * 26.0 + *(float *)(local_12c + 0x4f1c), + render_quad_set_uniform_color((float)((int)piVar22 + 4) * 26.0 + *(float *)(local_12c + 0x4f1c), &local_198); (*pcVar23)(&local_1f0,local_98,&DAT_00c37944); uVar15 = local_164; @@ -787875,7 +787875,7 @@ LAB_00936dba: fStack_14c = fStack_200; fStack_148 = fStack_20c; fStack_144 = fStack_200; - FUN_00a10d00((float)((int)local_130 + 4) * 26.0 + *(float *)(local_12c + 0x4f1c), + render_quad_set_uniform_color((float)((int)local_130 + 4) * 26.0 + *(float *)(local_12c + 0x4f1c), &local_198); (*pcVar23)(&local_214,local_2f4,&DAT_00c37944); } @@ -787936,7 +787936,7 @@ LAB_0093704c: local_150 = local_1a8; fStack_148 = fStack_1a0; fStack_144 = fStack_14c; - FUN_00a10d00((float)(local_174 + 4) * 26.0 + *(float *)(local_12c + 0x4f1c),&local_198 + render_quad_set_uniform_color((float)(local_174 + 4) * 26.0 + *(float *)(local_12c + 0x4f1c),&local_198 ); (*pcVar23)(&local_160,local_108,&DAT_00c37944); } @@ -787951,7 +787951,7 @@ LAB_0093704c: uStack_18c = 0x3f800000; local_188 = 0; pcVar23 = *(code **)(*param_5 + 0x14); - FUN_00a10d00((float)(local_174 + 4) * 26.0 + *(float *)(local_12c + 0x4f1c),&local_198); + render_quad_set_uniform_color((float)(local_174 + 4) * 26.0 + *(float *)(local_12c + 0x4f1c),&local_198); local_1cc = *(float *)(local_16c + 8 + local_164 * 0x24); fStack_1c8 = *(float *)(local_16c + 0x14 + local_164 * 0x24); fStack_1c4 = *(float *)(local_16c + 0x10 + local_164 * 0x24); @@ -788067,7 +788067,7 @@ LAB_00935e76: (iVar24 == DAT_00c71678[0x60c1])) { FUN_00934770(); } - FUN_00a19180(1); + _glfw_context_reset(1); local_14._0_1_ = 4; if (((param_4 != (int *)0x0) && (cVar14 = (**(code **)(*param_4 + 0xc))(), cVar14 != '\0')) && (DAT_00c71644 != (code *)0x0)) { @@ -788173,17 +788173,17 @@ void FUN_00937420(void) iVar5 = *(int *)(iVar5 + 0x48); } local_1c4 = iVar5; - FUN_00a18300(*(undefined4 *)(in_ECX + 8),0); + KAGE_Graphics::SetRenderTarget(*(undefined4 *)(in_ECX + 8),0); iVar5 = iVar5 * 0x20; local_1fc = *(undefined4 *)(&DAT_00c35b88 + iVar5); uStack_1e0 = *(undefined4 *)(&DAT_00c35b90 + iVar5); uStack_1dc = *(undefined4 *)(&DAT_00c35b94 + iVar5); uStack_1d8 = *(undefined4 *)(&DAT_00c35b98 + iVar5); local_1d4 = *(undefined4 *)(&DAT_00c35b9c + iVar5); - FUN_00a18230(uVar4); + RenderTarget::Clear(uVar4); iVar5 = *(int *)(in_ECX + 0x150); if ((iVar5 == 0) || (local_12c != '\0')) { - FUN_00a19180(1); + _glfw_context_reset(1); FUN_009324f0(); ExceptionList = local_1c; return; @@ -789686,17 +789686,17 @@ void __thiscall Backdrop::Init(Backdrop *this,int param_2,char param_3) (this->unkVec2).x = (float)(*(int *)(*(int *)(iVar2 + 0x18300) + 0xc) + -2) * 26.0 + 52.0; (this->unkVec2).y = (float)(iVar1 + -2) * 26.0 + 52.0; if (param_3 != '\0') { - FUN_0093da00(); + Backdrop::load_details(); } return; } -//@@ 0093da00 FUN_0093da00 +//@@ 0093da00 Backdrop::load_details /* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */ -void FUN_0093da00(void) +void Backdrop::load_details(void) { uint *puVar1; @@ -789797,8 +789797,8 @@ void FUN_0093da00(void) } } local_80 = 0; - FUN_006856c0(&local_80); - puVar4 = (undefined4 *)FUN_00684f30(); + std::vector::resize(&local_80); + puVar4 = (undefined4 *)std::deque::back(); if ((byte *)(puVar4 + 1) != (byte *)0x0) { *(byte *)(puVar4 + 1) = (byte)(DAT_00c798e4 >> 5) & 1; } @@ -789835,8 +789835,8 @@ void FUN_0093da00(void) operator_delete(pcVar11,uVar15); } if (in_ECX[0x54] != 0x12) goto LAB_0093e713; - FUN_00a18300(*in_ECX,0); - FUN_00a18230(); + KAGE_Graphics::SetRenderTarget(*in_ECX,0); + RenderTarget::Clear(); uStack_2c = DAT_00c7990c; uStack_30 = DAT_00c79908; local_38 = DAT_00c79900; @@ -789895,7 +789895,7 @@ LAB_0093e5e9: DAT_00c79908 = uStack_30; DAT_00c7990c = uStack_2c; DAT_00c79910 = local_70; - FUN_00a19180(1); + _glfw_context_reset(1); pbVar9 = (byte *)in_ECX[0x1c]; if (pbVar9 != (byte *)0x0) { pbVar13 = pbVar9; @@ -790273,7 +790273,7 @@ switchD_0093df66_caseD_21: local_14 = (undefined4 ***)0xffffffff; std::string::_Tidy_deallocate(); LAB_0093e713: - FUN_006836c0(); + pop_render_target(); ExceptionList = local_1c; return; LAB_0093e060: @@ -790314,10 +790314,10 @@ void FUN_0093e770(float *param_1,float *param_2) uStack_20 = 0; uStack_1c = 0x3f800000; local_18 = 0; - FUN_00a10d00(DAT_00c78edc,&local_28); - FUN_00a10d00(param_1[1],&local_28); - FUN_00a10d00(DAT_00c78edc,&local_28); - FUN_00a10d00(DAT_00c78edc,&local_28); + render_quad_set_uniform_color(DAT_00c78edc,&local_28); + render_quad_set_uniform_color(param_1[1],&local_28); + render_quad_set_uniform_color(DAT_00c78edc,&local_28); + render_quad_set_uniform_color(DAT_00c78edc,&local_28); iVar1 = *(int *)(*(int *)(DAT_00c71678 + 0x18300) + 4); if ((iVar1 == 0) || (iVar1 = *(int *)(iVar1 + 0x10), iVar1 == 0)) { iVar1 = 1; @@ -790337,10 +790337,10 @@ void FUN_0093e770(float *param_1,float *param_2) local_f4 = local_104; } } - FUN_00a1dfd0(local_10c); - FUN_00a1dfd0(local_17c); - FUN_00a1dfd0(local_1ec); - FUN_00a1dfd0(local_9c); + render_color_shader_pass(local_10c); + render_color_shader_pass(local_17c); + render_color_shader_pass(local_1ec); + render_color_shader_pass(local_9c); local_14 = 0x43b60000; local_10 = 0x43500000; if (iVar1 != 9) { @@ -790362,8 +790362,8 @@ void FUN_0093e770(float *param_1,float *param_2) } param_1 = &local_c; } - FUN_00a10e70(param_1,&local_14,&local_28); - FUN_00a1dfd0(local_9c); + render_quad_set_rect(param_1,&local_14,&local_28); + render_color_shader_pass(local_9c); return; } @@ -790507,7 +790507,7 @@ void FUN_0093ea00(float *param_1) pfVar12 = &local_134; local_138 = param_1[1] + 52.0; uVar13 = extraout_ECX_04; - FUN_00a10e70(&local_13c,pfVar12,extraout_ECX_04); + render_quad_set_rect(&local_13c,pfVar12,extraout_ECX_04); KAGE::SmartPointer::operator_assign(in_ECX); apply_sprite_shader_params(1,pfVar12,uVar13); (**(code **)(*(int *)*in_ECX + 0x14))(local_d4,local_b0,&DAT_00c37944); @@ -790557,7 +790557,7 @@ LAB_0093eca7: pfVar12 = &local_134; local_13c = ((*param_1 + fVar10) - fVar11) + DAT_00c35e70; local_138 = ((param_1[1] + fVar10) - fVar9) + DAT_00c35e74; - FUN_00a10e70(&local_13c,pfVar12,extraout_ECX_00); + render_quad_set_rect(&local_13c,pfVar12,extraout_ECX_00); uVar13 = 0x93ede7; Color::Color(); KAGE::SmartPointer::operator_assign(in_ECX); @@ -790580,7 +790580,7 @@ LAB_0093ef9f: DAT_00c79908 = uStack_108; DAT_00c7990c = uStack_104; DAT_00c79910 = local_120; - FUN_00a14050(puVar6); + shader_cache_find(puVar6); return; } @@ -790653,7 +790653,7 @@ void FUN_0093f000(float *param_1) local_d8 = param_1[1] + fVar4; pfVar5 = &local_e4; uVar2 = extraout_ECX; - FUN_00a10e70(&local_dc,pfVar5,extraout_ECX); + render_quad_set_rect(&local_dc,pfVar5,extraout_ECX); KAGE::SmartPointer::operator_assign((undefined4 *)(in_ECX + 0x10)); apply_sprite_shader_params(1,pfVar5,uVar2); (**(code **)(**(int **)(in_ECX + 0x10) + 0x14))(&local_d4,local_80,&DAT_00c37944); @@ -790662,7 +790662,7 @@ void FUN_0093f000(float *param_1) DAT_00c79908 = local_b4; DAT_00c7990c = local_b0; DAT_00c79910 = uVar1; - FUN_00a14050(extraout_ECX_00); + shader_cache_find(extraout_ECX_00); return; } @@ -790852,7 +790852,7 @@ LAB_00940ce6: uStack_94 = DAT_00c7990c; local_120 = DAT_00c79910; ppppfStack_1e8 = (float ****)0x93f358; - FUN_00a13510(); + set_blend_mode(); local_134[0] = (float ****)(*(float *)(in_ECX + 0x4f20) - *(float *)(in_ECX + 0x4f18)); local_184 = (float ****)(*(float *)(in_ECX + 0x4f24) - *(float *)(in_ECX + 0x4f1c)); uStack_1e4 = (float ****)0x93f398; @@ -790895,7 +790895,7 @@ LAB_00940ce6: ppppfStack_1ec = param_1; ppppfStack_1f0 = (float ****)0x93f4e4; local_1d0 = ppppfVar5; - FUN_00a10e70(); + render_quad_set_rect(); ppppfStack_1e8 = local_11c + 3; uStack_1e4 = (float ****)&DAT_00c37944; ppppfStack_1ec = (float ****)&local_180; @@ -790929,7 +790929,7 @@ LAB_00940ce6: local_1c8 = (float ****)((float)param_1[1] + fVar7); ppppfStack_1f0 = (float ****)0x93f5e0; local_1d0 = ppppfVar5; - FUN_00a10e70(); + render_quad_set_rect(); ppppfStack_1e8 = local_11c + 3; uStack_1e4 = (float ****)&DAT_00c37944; ppppfStack_1ec = (float ****)&local_180; @@ -790956,7 +790956,7 @@ LAB_0093f61d: ppppfStack_1ec = (float ****)&local_1cc; local_1c8 = (float ****)((float)param_1[1] + 0.0); ppppfStack_1f0 = (float ****)0x93f6cc; - FUN_00a10e70(); + render_quad_set_rect(); ppppfStack_1e8 = local_11c + 3; uStack_1e4 = (float ****)&DAT_00c37944; ppppfStack_1ec = (float ****)&local_180; @@ -790990,7 +790990,7 @@ LAB_0093f60b: ppppfStack_1ec = (float ****)&local_1cc; local_1c8 = (float ****)((float)ppppfVar5 + (float)param_1[1]); ppppfStack_1f0 = (float ****)0x93f7d6; - FUN_00a10e70(); + render_quad_set_rect(); ppppfStack_1e8 = local_11c + 3; uStack_1e4 = (float ****)&DAT_00c37944; ppppfStack_1ec = (float ****)&local_180; @@ -791018,7 +791018,7 @@ LAB_0093f60b: local_1cc = (float ****)((float)*param_1 + 0.0); local_1c8 = (float ****)(fVar7 + (float)param_1[1]); ppppfStack_1f0 = (float ****)0x93f8b5; - FUN_00a10e70(); + render_quad_set_rect(); ppppfStack_1e8 = local_11c + 3; uStack_1e4 = (float ****)&DAT_00c37944; ppppfStack_1ec = (float ****)&local_180; @@ -791051,7 +791051,7 @@ LAB_0093f60b: ppppfStack_1f4 = (float ****)((int)register0x00000010 + -0x1e0); local_1d4 = (float ****)((float)param_1[1] + 0.0); ppppfStack_1f8 = (float ****)&ppppfStack_1d8; - puVar2 = (undefined4 *)FUN_00a10e70(); + puVar2 = (undefined4 *)render_quad_set_rect(); ppppfStack_1f4 = local_11c; pppfVar10 = (float ***)local_11c; for (iVar4 = 0x1c; iVar4 != 0; iVar4 = iVar4 + -1) { @@ -791084,7 +791084,7 @@ LAB_0093f60b: ppppfStack_1ec = ppppfStack_14c; ppppfStack_1e8 = (float ****)0x42500000; uStack_1e4 = (float ****)((float)*ppppfStack_150 + 52.0); - puVar2 = (undefined4 *)FUN_00a10e70(&uStack_1e4,&ppppfStack_1ec,extraout_ECX); + puVar2 = (undefined4 *)render_quad_set_rect(&uStack_1e4,&ppppfStack_1ec,extraout_ECX); ppppfVar9 = (float ****)(local_134 + 3); for (iVar4 = 0x1c; iVar4 != 0; iVar4 = iVar4 + -1) { *ppppfVar9 = (float ***)*puVar2; @@ -791136,7 +791136,7 @@ LAB_0093f60b: local_1cc = (float ****)((float)ppppfVar9 + (float)*param_1); local_1c8 = (float ****)(fVar7 + (float)param_1[1]); ppppfStack_1f0 = (float ****)0x93fc93; - FUN_00a10e70(); + render_quad_set_rect(); ppppfStack_1e8 = local_11c + 3; uStack_1e4 = (float ****)&DAT_00c37944; ppppfStack_1ec = (float ****)&local_180; @@ -791169,7 +791169,7 @@ LAB_0093f60b: local_1d4 = (float ****)((float)param_1[1] + 0.0); ppppfStack_1f4 = (float ****)((int)register0x00000010 + -0x1e0); ppppfStack_1f8 = (float ****)&ppppfStack_1d8; - puVar2 = (undefined4 *)FUN_00a10e70(); + puVar2 = (undefined4 *)render_quad_set_rect(); ppppfStack_1f4 = local_11c; pppfVar10 = (float ***)local_11c; for (iVar4 = 0x1c; iVar4 != 0; iVar4 = iVar4 + -1) { @@ -791203,7 +791203,7 @@ LAB_0093f60b: ppppfStack_1ec = ppppfStack_14c; ppppfStack_1e8 = (float ****)0x42500000; uStack_1e4 = (float ****)((float)ppppfVar9 + (float)*ppppfStack_150); - puVar2 = (undefined4 *)FUN_00a10e70(&uStack_1e4,&ppppfStack_1ec,extraout_ECX_00); + puVar2 = (undefined4 *)render_quad_set_rect(&uStack_1e4,&ppppfStack_1ec,extraout_ECX_00); ppppfVar9 = (float ****)(local_134 + 3); for (iVar4 = 0x1c; iVar4 != 0; iVar4 = iVar4 + -1) { *ppppfVar9 = (float ***)*puVar2; @@ -791265,7 +791265,7 @@ LAB_0093ff6f: local_1d4 = (float ****)((float)ppppfVar9 + (float)*param_1); local_1d0 = (float ****)(fVar7 + (float)param_1[1]); ppppfStack_1f0 = (float ****)0x940049; - FUN_00a10e70(); + render_quad_set_rect(); ppppfStack_1e8 = local_11c + 3; uStack_1e4 = (float ****)&DAT_00c37944; ppppfStack_1ec = (float ****)&local_180; @@ -791297,7 +791297,7 @@ LAB_0093ff6f: ppppfStack_1f4 = (float ****)((int)register0x00000010 + -0x1e0); ppppfStack_1f8 = (float ****)&ppppfStack_14c; ppppfStack_148 = (float ****)((float)param_1[1] + 0.0); - puVar2 = (undefined4 *)FUN_00a10e70(); + puVar2 = (undefined4 *)render_quad_set_rect(); ppppfStack_1f4 = local_11c; pppfVar10 = (float ***)local_11c; for (iVar4 = 0x1c; iVar4 != 0; iVar4 = iVar4 + -1) { @@ -791332,7 +791332,7 @@ LAB_0093ff6f: uStack_154 = 0x42500000; ppppfStack_1e8 = (float ****)((float)pppfVar10 + (float)ppppfStack_150[1]); ppppfStack_1ec = (float ****)((float)*ppppfStack_150 + 52.0); - puVar2 = (undefined4 *)FUN_00a10e70(&ppppfStack_1ec,&ppppfStack_158,extraout_ECX_01); + puVar2 = (undefined4 *)render_quad_set_rect(&ppppfStack_1ec,&ppppfStack_158,extraout_ECX_01); ppppfVar9 = (float ****)(local_134 + 3); for (iVar4 = 0x1c; iVar4 != 0; iVar4 = iVar4 + -1) { *ppppfVar9 = (float ***)*puVar2; @@ -791392,7 +791392,7 @@ LAB_0093ff6f: local_140 = (float ****)((float)ppppfVar9 + (float)*param_1); local_13c = fVar7 + (float)param_1[1]; ppppfStack_1f0 = (float ****)0x940416; - FUN_00a10e70(); + render_quad_set_rect(); ppppfStack_1e8 = local_11c + 3; uStack_1e4 = (float ****)&DAT_00c37944; ppppfStack_1ec = (float ****)&local_180; @@ -791426,7 +791426,7 @@ LAB_0093ff6f: ppppfStack_1f4 = (float ****)&ppppfStack_14c; ppppfStack_1f8 = (float ****)&local_140; ppppfStack_148 = ppppfVar9; - puVar2 = (undefined4 *)FUN_00a10e70(); + puVar2 = (undefined4 *)render_quad_set_rect(); ppppfStack_1f4 = local_11c; pppfVar10 = (float ***)local_11c; for (iVar4 = 0x1c; iVar4 != 0; iVar4 = iVar4 + -1) { @@ -791459,7 +791459,7 @@ LAB_0093ff6f: uStack_154 = 0x42500000; local_13c = (float)local_140 + (float)ppppfStack_150[1]; local_140 = (float ****)((float)*ppppfStack_150 + 52.0); - puVar2 = (undefined4 *)FUN_00a10e70(&local_140,&ppppfStack_158,extraout_ECX_03); + puVar2 = (undefined4 *)render_quad_set_rect(&local_140,&ppppfStack_158,extraout_ECX_03); ppppfVar9 = (float ****)(local_134 + 3); for (iVar4 = 0x1c; iVar4 != 0; iVar4 = iVar4 + -1) { *ppppfVar9 = (float ***)*puVar2; @@ -791494,7 +791494,7 @@ LAB_0093ff6f: puVar2 = extraout_ECX_04; } } - puVar2 = (undefined4 *)FUN_00a10e70(pppppfVar1,pppppfVar12,puVar2); + puVar2 = (undefined4 *)render_quad_set_rect(pppppfVar1,pppppfVar12,puVar2); ppppfVar9 = (float ****)local_134; for (iVar4 = 0x1c; iVar4 != 0; iVar4 = iVar4 + -1) { *ppppfVar9 = (float ***)*puVar2; @@ -791541,7 +791541,7 @@ LAB_0093ff6f: local_1d0 = (float ****)((float)ppppfVar9 + (float)param_1[1]); ppppfStack_1f0 = (float ****)0x940865; local_13c = fVar7; - FUN_00a10e70(); + render_quad_set_rect(); ppppfStack_1e8 = local_11c + 3; uStack_1e4 = (float ****)&DAT_00c37944; ppppfStack_1ec = (float ****)&local_180; @@ -791566,7 +791566,7 @@ LAB_0093ff6f: pppfVar10 = (float ***)((float)param_1[1] + 0.0 + (float)ppppfVar9); ppppfStack_1f4 = (float ****)&ppppfStack_14c; ppppfStack_1f8 = (float ****)((int)register0x00000010 + -0x1e0); - FUN_00a10e70(); + render_quad_set_rect(); ppppfStack_1f4 = local_11c; ppppfStack_1f0 = (float ****)&DAT_00c37944; ppppfStack_1f8 = (float ****)&ppppfStack_18c; @@ -791585,7 +791585,7 @@ LAB_0093ff6f: uStack_154 = 0x42500000; ppppfStack_1ec = (float ****)((float)*param_1 + 52.0 + (float)ppppfStack_15c); ppppfStack_1e8 = (float ****)((float)param_1[1] + 0.0 + (float)pppfVar10); - FUN_00a10e70(&ppppfStack_1ec,&ppppfStack_158,extraout_ECX_05); + render_quad_set_rect(&ppppfStack_1ec,&ppppfStack_158,extraout_ECX_05); (*(code *)(**ppppfVar5)[5])(&ppppfStack_198,local_134 + 3,&DAT_00c37944); fVar7 = fStack_1a8 + 52.0; ppppfStack_194 = ppppfStack_1f0; @@ -791602,7 +791602,7 @@ LAB_0093ff6f: local_160 = 0x42500000; ppppfStack_1f8 = (float ****)((float)*param_1 + 52.0 + (float)local_168); ppppfStack_1f4 = (float ****)(fVar7 + (float)param_1[1] + (float)ppppfStack_1e8); - FUN_00a10e70(&ppppfStack_1f8,&local_164,extraout_ECX_06); + render_quad_set_rect(&ppppfStack_1f8,&local_164,extraout_ECX_06); pppfVar10 = *ppppfVar5; } (*(code *)(*pppfVar10)[5])(&ppppfStack_1a4,local_134,&DAT_00c37944); @@ -791613,7 +791613,7 @@ LAB_00940b5f: DAT_00c7990c = uStack_94; DAT_00c79910 = local_120; ppppfStack_1e8 = (float ****)0x940ba1; - FUN_00a14050(); + shader_cache_find(); return; } @@ -791723,7 +791723,7 @@ LAB_0094130a: fVar9 = (float)iVar5 * 26.0 + *(float *)(param_1 + 4); LAB_009413ab: local_1c = (float)iVar5; - FUN_00a10d00(fVar9,local_90); + render_quad_set_uniform_color(fVar9,local_90); FUN_009426b0(local_58,local_108); LAB_009413db: if (iVar7 != 10) { @@ -791740,7 +791740,7 @@ LAB_009413db: local_38 = 1; KColor::SetFromARGB(0xffffffff); local_70 = (float)(int)local_78; - FUN_00a10d00(*(float *)(param_1 + 4) + 182.0,extraout_ECX_10); + render_quad_set_uniform_color(*(float *)(param_1 + 4) + 182.0,extraout_ECX_10); FUN_009426b0(local_58,local_108); local_5c = local_1c * 26.0; } @@ -791759,7 +791759,7 @@ LAB_009413db: local_3c = local_44; KColor::SetFromARGB(0xffffffff); local_5c = fVar9 * fVar10; - FUN_00a10d00(local_5c + *(float *)(param_1 + 4),extraout_ECX_09); + render_quad_set_uniform_color(local_5c + *(float *)(param_1 + 4),extraout_ECX_09); FUN_009426b0(local_58,local_108); local_70 = (float)(int)local_78; } @@ -791778,7 +791778,7 @@ LAB_009413db: local_70 = (float)(int)local_78; local_20 = (float)((int)local_78 + 2) * 26.0; local_28 = local_70 * 26.0; - FUN_00a10d00(*(float *)(param_1 + 4) + 234.0,local_90); + render_quad_set_uniform_color(*(float *)(param_1 + 4) + 234.0,local_90); FUN_009426b0(local_58,local_108); local_4c = 0x436a0000; local_58[1] = 234.0; @@ -791791,7 +791791,7 @@ LAB_009413db: local_3c = local_44; KColor::SetFromARGB(0xffffffff); local_5c = local_1c * 26.0; - FUN_00a10d00(local_5c + *(float *)(param_1 + 4),extraout_ECX_07); + render_quad_set_uniform_color(local_5c + *(float *)(param_1 + 4),extraout_ECX_07); FUN_009426b0(local_58,local_108); fVar9 = local_70; LAB_00941e21: @@ -791810,7 +791810,7 @@ LAB_00941e21: local_70 = fVar9 * 26.0; fVar9 = *(float *)(param_1 + 4) + 52.0; LAB_00942022: - FUN_00a10d00(fVar9,local_90); + render_quad_set_uniform_color(fVar9,local_90); FUN_009426b0(local_58,local_108); goto LAB_00942072; } @@ -791826,7 +791826,7 @@ LAB_00942022: KColor::SetFromARGB(0xffffffff); local_70 = (float)(int)local_78 * 26.0; local_20 = (float)((int)local_78 + 2) * 26.0; - FUN_00a10d00(*(float *)(param_1 + 4) + 182.0,local_90); + render_quad_set_uniform_color(*(float *)(param_1 + 4) + 182.0,local_90); iVar7 = (**(code **)(**(int **)(local_68 + 0x2c) + 0x14))(local_58,local_108,&DAT_00c37944); if (iVar7 != 0) { pfVar6 = (float *)(iVar7 + 8); @@ -791848,7 +791848,7 @@ LAB_00942022: local_3c = local_44; KColor::SetFromARGB(0xffffffff); local_5c = local_1c * 26.0; - FUN_00a10d00(*(float *)(param_1 + 4) + local_5c,extraout_ECX_04); + render_quad_set_uniform_color(*(float *)(param_1 + 4) + local_5c,extraout_ECX_04); iVar7 = (**(code **)(**(int **)(local_68 + 0x2c) + 0x14))(local_58,local_108,&DAT_00c37944); if (iVar7 != 0) { pfVar6 = (float *)(iVar7 + 8); @@ -791870,7 +791870,7 @@ LAB_00942022: FUN_00a106e0(&local_34,&local_6c,&local_24,&local_2c); local_38 = 1; KColor::SetFromARGB(0xffffffff); - FUN_00a10d00(*(float *)(param_1 + 4) + 52.0,extraout_ECX_05); + render_quad_set_uniform_color(*(float *)(param_1 + 4) + 52.0,extraout_ECX_05); FUN_009426b0(local_58,local_108); local_34 = local_18; local_20 = (float)(2 - (int)local_78); @@ -791884,7 +791884,7 @@ LAB_00942022: FUN_00a106e0(&local_6c,&local_7c,&local_2c,&local_34); local_38 = 1; KColor::SetFromARGB(0xffffffff); - FUN_00a10d00(*(float *)(param_1 + 4) + 52.0 + 182.0,extraout_ECX_06); + render_quad_set_uniform_color(*(float *)(param_1 + 4) + 52.0 + 182.0,extraout_ECX_06); FUN_009426b0(local_58,local_108); } else { @@ -791902,7 +791902,7 @@ LAB_00942022: local_18 = local_58[2]; local_14 = local_58[0]; KColor::SetFromARGB(0xffffffff); - FUN_00a10d00(*(float *)(param_1 + 4) + fVar9,extraout_ECX); + render_quad_set_uniform_color(*(float *)(param_1 + 4) + fVar9,extraout_ECX); iVar5 = (**(code **)(**(int **)(local_68 + 0x2c) + 0x14))(local_58,local_108,&DAT_00c37944); if (iVar5 != 0) { iVar8 = 4; @@ -791925,7 +791925,7 @@ LAB_00942022: local_3c = local_44; KColor::SetFromARGB(0xffffffff); local_1c = (float)(int)local_20; - FUN_00a10d00(local_1c * 26.0 + *(float *)(param_1 + 4),extraout_ECX_00); + render_quad_set_uniform_color(local_1c * 26.0 + *(float *)(param_1 + 4),extraout_ECX_00); iVar5 = (**(code **)(**(int **)(local_68 + 0x2c) + 0x14))(local_58,local_108,&DAT_00c37944); if (iVar5 != 0) { pfVar6 = (float *)(iVar5 + 8); @@ -791969,7 +791969,7 @@ LAB_00942022: local_18 = local_58[2]; local_14 = local_58[0]; KColor::SetFromARGB(0xffffffff); - FUN_00a10d00(*(float *)(param_1 + 4) + fVar9,extraout_ECX_03); + render_quad_set_uniform_color(*(float *)(param_1 + 4) + fVar9,extraout_ECX_03); FUN_009426b0(local_58,local_108); local_5c = (float)((int)local_20 + -2); local_1c = (float)(int)local_20; @@ -791987,7 +791987,7 @@ LAB_00942022: local_18 = local_58[2]; local_14 = local_58[0]; KColor::SetFromARGB(0xffffffff); - FUN_00a10d00(*(float *)(param_1 + 4) + 234.0,extraout_ECX_01); + render_quad_set_uniform_color(*(float *)(param_1 + 4) + 234.0,extraout_ECX_01); FUN_009426b0(local_58,local_108); local_5c = (float)((int)local_20 + -2); local_48 = local_14; @@ -792001,7 +792001,7 @@ LAB_00942022: local_3c = local_44; KColor::SetFromARGB(0xffffffff); local_1c = (float)(int)local_20; - FUN_00a10d00(local_1c * 26.0 + *(float *)(param_1 + 4),extraout_ECX_02); + render_quad_set_uniform_color(local_1c * 26.0 + *(float *)(param_1 + 4),extraout_ECX_02); FUN_009426b0(local_58,local_108); } LAB_00941941: @@ -792018,7 +792018,7 @@ LAB_00941941: KColor::SetFromARGB(0xffffffff); local_5c = local_1c * fVar9; local_70 = (float)(int)local_78; - FUN_00a10d00(local_5c + *(float *)(param_1 + 4),extraout_ECX_08); + render_quad_set_uniform_color(local_5c + *(float *)(param_1 + 4),extraout_ECX_08); FUN_009426b0(local_58,local_108); LAB_00941bd2: fVar9 = local_70; @@ -792054,7 +792054,7 @@ LAB_00941bd2: FUN_00a106e0(&local_74,&local_24,&local_34,&local_64); local_38 = 1; KColor::SetFromARGB(0xffffffff); - FUN_00a10d00(*(float *)(param_1 + 4) + 52.0,extraout_ECX_13); + render_quad_set_uniform_color(*(float *)(param_1 + 4) + 52.0,extraout_ECX_13); FUN_009426b0(local_58,local_108); local_20 = (float)(2 - (int)local_78); local_70 = local_28 * 26.0; @@ -792073,7 +792073,7 @@ LAB_00942072: local_38 = 1; KColor::SetFromARGB(0xffffffff); local_1c = (local_1c + 2.0) * fVar9; - FUN_00a10d00((*(float *)(param_1 + 4) + local_1c) - 182.0,extraout_ECX_14); + render_quad_set_uniform_color((*(float *)(param_1 + 4) + local_1c) - 182.0,extraout_ECX_14); iVar7 = (**(code **)(**(int **)(local_68 + 0x2c) + 0x14))(local_58,local_108,&DAT_00c37944); if (iVar7 != 0) { pfVar6 = (float *)(iVar7 + 8); @@ -792096,7 +792096,7 @@ LAB_00942072: FUN_00a106e0(&local_24,&local_2c,&local_34,&local_64); local_38 = 1; KColor::SetFromARGB(0xffffffff); - FUN_00a10d00(*(float *)(param_1 + 4) + local_1c,extraout_ECX_15); + render_quad_set_uniform_color(*(float *)(param_1 + 4) + local_1c,extraout_ECX_15); iVar7 = (**(code **)(**(int **)(local_68 + 0x2c) + 0x14))(local_58,local_108,&DAT_00c37944); if (iVar7 == 0) { DAT_00c79900 = uVar1; @@ -792133,7 +792133,7 @@ LAB_00942072: local_38 = 1; KColor::SetFromARGB(0xffffffff); local_1c = (local_1c + 2.0) * fVar9; - FUN_00a10d00(*(float *)(param_1 + 4) + local_1c,extraout_ECX_16); + render_quad_set_uniform_color(*(float *)(param_1 + 4) + local_1c,extraout_ECX_16); FUN_009426b0(local_58,local_108); local_60 = (float)(int)local_20; local_30 = 15.0; @@ -792184,7 +792184,7 @@ LAB_00942641: fVar9 = (local_1c + 2.0) * fVar9 + *(float *)(param_1 + 4); puVar11 = extraout_ECX_18; } - FUN_00a10d00(fVar9,puVar11); + render_quad_set_uniform_color(fVar9,puVar11); goto LAB_00942659; } local_34 = local_18; @@ -792198,7 +792198,7 @@ LAB_00942641: FUN_00a106e0(&local_64,&local_24,&local_2c,&local_34); local_38 = 1; KColor::SetFromARGB(0xffffffff); - FUN_00a10d00(*(float *)(param_1 + 4) + 52.0 + 182.0,extraout_ECX_11); + render_quad_set_uniform_color(*(float *)(param_1 + 4) + 52.0 + 182.0,extraout_ECX_11); iVar7 = local_68; iVar5 = (**(code **)(**(int **)(local_68 + 0x2c) + 0x14))(local_58,local_108,&DAT_00c37944); if (iVar5 != 0) { @@ -792223,7 +792223,7 @@ LAB_00942641: local_38 = 1; KColor::SetFromARGB(0xffffffff); local_70 = local_70 * 26.0; - FUN_00a10d00(*(float *)(param_1 + 4) + 52.0,extraout_ECX_12); + render_quad_set_uniform_color(*(float *)(param_1 + 4) + 52.0,extraout_ECX_12); iVar7 = (**(code **)(**(int **)(iVar7 + 0x2c) + 0x14))(local_58,local_108,&DAT_00c37944); if (iVar7 != 0) { pfVar6 = (float *)(iVar7 + 8); @@ -792248,7 +792248,7 @@ LAB_00942444: FUN_00a106e0(&local_24,&local_2c,&local_34,&local_64); local_38 = 1; KColor::SetFromARGB(0xffffffff); - FUN_00a10d00((local_1c + 2.0) * 26.0 + *(float *)(param_1 + 4),extraout_ECX_17); + render_quad_set_uniform_color((local_1c + 2.0) * 26.0 + *(float *)(param_1 + 4),extraout_ECX_17); LAB_00942659: FUN_009426b0(local_58,local_108); DAT_00c79900 = uVar1; @@ -793124,7 +793124,7 @@ void FUN_009439d0(char param_1) ((((pEVar5->field_0x13f2 != '\0' && (cVar4 = Entity_Player::HasCollectible(0x149,0), cVar4 == '\0')) && (pEVar5->field_0x1398 == '\0')) && (pEVar5->field_0x139a == '\0')))) { - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); local_14 = 0; if (local_48 != 0.0) { uVar13 = 0; @@ -793296,7 +793296,7 @@ void FUN_009439d0(char param_1) } } else if (in_ECX->_shouldOverride == 0) { - FUN_00945130(*(int *)&in_ECX->field_0x50 + + ring_buffer_push(*(int *)&in_ECX->field_0x50 + ((*(int *)&in_ECX->field_0x58 + *(int *)&in_ECX->field_0x5c + -1) % *(int *)&in_ECX->field_0x54) * 8); } @@ -793422,7 +793422,7 @@ void FUN_009439d0(char param_1) local_48 = (local_48 + local_48) - (float)local_34; local_4c = ((float)local_40 + (float)local_40) - local_38; } - FUN_00945130(pfVar9); + ring_buffer_push(pfVar9); pfVar9 = (float *)(*(int *)puVar1 + ((*(int *)&in_ECX->field_0x48 + -1 + *(int *)&in_ECX->field_0x4c) % *(int *)&in_ECX->field_0x44) * 8); @@ -793578,7 +793578,7 @@ void FUN_009446e0(void) local_14 = (local_c + local_c) - local_10; local_10 = (fVar8 + fVar8) - local_18; } - FUN_00945130(pfVar2); + ring_buffer_push(pfVar2); pfVar2 = (float *)(*piVar1 + ((*(int *)(in_ECX + 0x48) + -1 + *(int *)(in_ECX + 0x4c)) % *(int *)(in_ECX + 0x44)) * 8); @@ -793730,7 +793730,7 @@ void __thiscall Camera::SetFocusPosition(Camera *this,undefined4 param_2) { if (this->_shouldOverride == 0) { - FUN_00945130(param_2); + ring_buffer_push(param_2); this->_shouldOverride = 1; } return; @@ -793955,9 +793955,9 @@ void FUN_00945080(int param_1) } -//@@ 00945130 FUN_00945130 +//@@ 00945130 ring_buffer_push -void FUN_00945130(undefined4 *param_1) +void ring_buffer_push(undefined4 *param_1) { undefined4 *puVar1; @@ -795271,7 +795271,7 @@ void FUN_00947070(void) std::string::_Tidy_deallocate(); std::string::_Tidy_deallocate(); FID_conflict__Tidy((void *)(in_ECX + 0xc44)); - FUN_00426980(); + std::vector::_Tidy(); local_8 = 4; ANM2::Reset((ANM2 *)(in_ECX + 0xb20)); AnimationState::~AnimationState(); @@ -796922,14 +796922,14 @@ LAB_00949d9b: if ((pPVar11->changesmade != 0) && (*(char *)(DAT_00c7169c + 4000) != '\0')) { pPVar11->changesmade = 0; local_38 = (undefined **)0x949eec; - FUN_009292c0(); + Manager::BackupSaveFile(); iVar9 = DAT_00c7169c; local_38 = &PTR_FUN_00c5c3a4; SStack_94._seedEffectsCount = 0x949efd; piVar5 = (int *)SteamInternal_ContextInit(); if ((*piVar5 == 0) || (*(char *)(iVar9 + 0x2a3a4) == '\0')) { local_38 = (undefined **)0x949f1e; - FUN_009294f0(); + PersistentGameData::Save(); } else { local_38 = (undefined **)0x949f15; @@ -797802,7 +797802,7 @@ LAB_0094ad06: if (0xf < (uint)in_ECX[0x35e]) { piVar8 = (int *)*piVar9; } - FUN_00a1af90(piVar8,&local_b0,&local_98); + Font::DrawString(piVar8,&local_b0,&local_98); local_74 = (char ****)in_ECX[0x35d]; local_70 = (char ***)0x4; ppppcVar12 = (char ****)&local_74; @@ -797839,7 +797839,7 @@ LAB_0094ad06: local_14 = 1; KColor::SetFromARGB(0xff362f2d); local_68 = local_64 + 480.0 + 185.0; - FUN_00a1af90(local_34,extraout_ECX,&local_98); + Font::DrawString(local_34,extraout_ECX,&local_98); local_14 = 0xffffffff; if (4 < (uint)in_ECX[0x35d]) { local_74 = (char ****)(in_ECX[0x35d] - 4); @@ -797878,7 +797878,7 @@ LAB_0094ad06: uVar10 = FontSettings::constructor(); local_14 = 2; KColor::SetFromARGB(0xff362f2d); - FUN_00a1af90(local_34,extraout_ECX_00,uVar10); + Font::DrawString(local_34,extraout_ECX_00,uVar10); local_14 = 0xffffffff; local_c4 = 0; local_c0 = 0; @@ -797916,7 +797916,7 @@ LAB_0094b59d: local_14 = 3; KColor::SetFromARGB(0xff362f2d); FUN_00a1b8e0(local_44,0xffffffff); - FUN_00a1af90(local_44,&local_b0,&local_98); + Font::DrawString(local_44,&local_b0,&local_98); local_14 = 0xffffffff; iVar7 = Seeds::CountUnlockedSeedEffects(); if (0 < iVar7) { @@ -797956,7 +797956,7 @@ LAB_0094b59d: local_a0 = 0; local_14 = 4; uVar10 = KColor::SetFromARGB(0xff3d3234); - FUN_00a1af90(local_34,uVar10,&local_b8); + Font::DrawString(local_34,uVar10,&local_b8); local_14 = 0xffffffff; } } @@ -798012,7 +798012,7 @@ LAB_0094b59d: if (0xf < local_48) { ppppcVar12 = local_5c[0]; } - FUN_00a1af90(ppppcVar12,&local_b0,&local_d8); + Font::DrawString(ppppcVar12,&local_b0,&local_d8); ppppcVar12 = (char ****)(in_ECX + 0x367); local_14._0_1_ = 5; if (local_5c != (char *****)ppppcVar12) { @@ -798039,7 +798039,7 @@ LAB_0094b59d: if (0xf < local_48) { ppppcVar12 = local_5c[0]; } - FUN_00a1af90(ppppcVar12,&local_b0,&local_d8); + Font::DrawString(ppppcVar12,&local_b0,&local_d8); if (0xf < local_48) { uVar5 = local_48 + 1; ppppcVar12 = local_5c[0]; @@ -798118,7 +798118,7 @@ void FUN_0094bbd0(undefined4 param_1,char param_2) } if (*(int *)(in_ECX + 0x10) == 10) { uVar1 = *(undefined4 *)(DAT_00c7169c + 0x324); - uVar3 = FUN_009586f0(DAT_00c7169c + 0x4a920,"#EDEN_TOKENS_COUNT"); + uVar3 = string_table_translate(DAT_00c7169c + 0x4a920,"#EDEN_TOKENS_COUNT"); sprintf(local_a8,uVar3,uVar1,uVar2); local_cc = 0; local_c8 = 0xffff; @@ -798130,7 +798130,7 @@ void FUN_0094bbd0(undefined4 param_1,char param_2) local_14 = 0; KColor::SetFromARGB(0xff362f2d); FUN_00a1b8e0(local_a8,0xffffffff); - FUN_00a1af90(local_a8,local_10c,&local_cc); + Font::DrawString(local_a8,local_10c,&local_cc); local_14 = 0xffffffff; in_ECX = local_b0; param_1 = local_ac; @@ -798938,7 +798938,7 @@ void FUN_0094d040(void) /* WARNING: Subroutine does not return */ KAGE_LogMessage(1,"Seed %d added to SaveState\n",iVar3); } - FUN_009294f0(); + PersistentGameData::Save(); Seeds::RemoveBlockingSeedEffects(iVar3); Seeds::AddSeedEffect(iVar3); FUN_008f19f0(); @@ -798950,10 +798950,10 @@ void FUN_0094d040(void) } if (*pcVar10 == '#') { local_21 = '\0'; - FUN_00a26af0("SeedMenu",*(undefined4 *)(DAT_00c7169c + 0x4a920),pcVar10 + 1,&local_21); + StringTable::get_string("SeedMenu",*(undefined4 *)(DAT_00c7169c + 0x4a920),pcVar10 + 1,&local_21); if (local_21 == '\0') { local_21 = '\0'; - pcVar10 = (char *)FUN_00a26af0("SeedMenu",*(undefined4 *)(iVar2 + 0x4a920),pcVar10 + 1, + pcVar10 = (char *)StringTable::get_string("SeedMenu",*(undefined4 *)(iVar2 + 0x4a920),pcVar10 + 1, &local_21); } } @@ -799002,10 +799002,10 @@ LAB_0094d2cc: } if (*pcVar10 == '#') { local_21 = '\0'; - FUN_00a26af0("SeedMenu",*(undefined4 *)(DAT_00c7169c + 0x4a920),pcVar10 + 1,&local_21); + StringTable::get_string("SeedMenu",*(undefined4 *)(DAT_00c7169c + 0x4a920),pcVar10 + 1,&local_21); if (local_21 == '\0') { local_21 = '\0'; - pcVar10 = (char *)FUN_00a26af0("SeedMenu",*(undefined4 *)(iVar2 + 0x4a920),pcVar10 + 1, + pcVar10 = (char *)StringTable::get_string("SeedMenu",*(undefined4 *)(iVar2 + 0x4a920),pcVar10 + 1, &local_21); } } @@ -799585,22 +799585,22 @@ void FUN_0094e170(void) undefined8 local_c; local_c = 0; - FUN_006856c0(&local_c); - puVar1 = (undefined4 *)FUN_00684f30(); + std::vector::resize(&local_c); + puVar1 = (undefined4 *)std::deque::back(); if ((byte *)(puVar1 + 1) != (byte *)0x0) { *(byte *)(puVar1 + 1) = (byte)(DAT_00c798e4 >> 5) & 1; } *puVar1 = DAT_00c79948; - FUN_00a18300(*(undefined4 *)(in_ECX + 0xfe0),0); - FUN_00a18230(); + KAGE_Graphics::SetRenderTarget(*(undefined4 *)(in_ECX + 0xfe0),0); + RenderTarget::Clear(); DAT_00c79900 = 0; DAT_00c79904 = 6; DAT_00c79908 = 7; DAT_00c7990c = 1; DAT_00c79910 = 1; FUN_0094bbd0(&DAT_00c7b640,1); - FUN_00a19180(1); - FUN_006836c0(); + _glfw_context_reset(1); + pop_render_target(); return; } @@ -800583,7 +800583,7 @@ LAB_0094f63c: uStack_268 = 0x3e3cbcbd; uStack_264 = 0x3e34b4b5; uStack_260 = 0x3f800000; - FUN_00a10d00(); + render_quad_set_uniform_color(); FUN_00a1d8f0(); uVar7 = *(uint *)((int)in_ECX[0x94] + ((int)in_ECX[4] + ((int)in_ECX[1] * 0x10 - (int)in_ECX[1]) * 8) * 4); @@ -800735,8 +800735,8 @@ LAB_0094f92f: uVar8 = FUN_00a1c480(local_35c,local_228); local_14._0_1_ = 2; FUN_00a1c7d0(uVar8,0x3f800000,0x3f800000,0x3ef0f0f1,0x3ee4e4e5,0x3ec2c2c3,0x3f800000); - FUN_00a55d60(); - FUN_0069dac0(); + std::vector<12byte>::clear(); + std::vector<12byte>::_Tidy(); local_14 = (uint)local_14._1_3_ << 8; } local_314 = (float *)((float)local_314 + 15.0); @@ -800863,7 +800863,7 @@ LAB_0094fd15: local_37c = local_310; local_374 = local_384; local_370 = local_378; - FUN_00a10e70(&local_354); + render_quad_set_rect(&local_354); local_2a0 = 0x3f800000; uStack_29c = 0x3f800000; uStack_298 = 0x3f800000; @@ -801633,7 +801633,7 @@ void __thiscall Manager::destructor(Manager *this) *(_Tree_node **) (*(int *)&this[1]._persistentGameData.field_0x1e0 + 4)); operator_delete(*(undefined4 *)puVar2,0x14); - FUN_00426980(); + std::vector::_Tidy(); std::string::_Tidy_deallocate(); std::string::_Tidy_deallocate(); KColor::Unload(); @@ -802471,9 +802471,9 @@ void FUN_00952410(void) FUN_00423990(); ModManager::ListMods((ModManager *)(puVar12 + 0x2a6c0)); FUN_008f4a30(); - FUN_00a18300(0,0); - FUN_00a18230(); - FUN_00a19180(1); + KAGE_Graphics::SetRenderTarget(0,0); + RenderTarget::Clear(); + _glfw_context_reset(1); Seeds::InitSeedInfo(); puVar12[0x4abd1] = puVar12[0x2a398]; FUN_00951730(); @@ -803939,13 +803939,13 @@ LAB_009549c7: uVar7 = uVar7 + 1; } while (uVar7 < 0xb); } - FUN_009292c0(); + Manager::BackupSaveFile(); cVar1 = FUN_00956750(); if (cVar1 != '\0') { PersistentGameData::SaveToSteamCloud((PersistentGameData *)(in_ECX + 0x14)); return; } - FUN_009294f0(); + PersistentGameData::Save(); } } return; @@ -804519,20 +804519,20 @@ void FUN_009555c0(void) puVar2 = puStack_20; } puStack_20 = puVar2; - FUN_00a18300(0,0); + KAGE_Graphics::SetRenderTarget(0,0); if ((*(int *)(iVar1 + 8) == 3) || (iVar11 = FUN_00a19340(uVar3), iVar11 == DAT_00c79110)) { local_3a = '\0'; } else { local_3a = '\x01'; local_2c = 0; - FUN_006856c0(&local_2c); - puVar5 = (undefined4 *)FUN_00684f30(); + std::vector::resize(&local_2c); + puVar5 = (undefined4 *)std::deque::back(); if ((byte *)(puVar5 + 1) != (byte *)0x0) { *(byte *)(puVar5 + 1) = (byte)(DAT_00c798e4 >> 5) & 1; } *puVar5 = DAT_00c79948; - FUN_00a18300(DAT_00c798a0,1); + KAGE_Graphics::SetRenderTarget(DAT_00c798a0,1); } if (((*(char *)(iVar1 + 0x2a3c6) == '\0') || (*(char *)(iVar1 + 0x2a361) == '\0')) || (((*(int *)(iVar1 + 0x20dd0) == 1 && (iVar11 = *(int *)(iVar1 + 0x215e0), iVar11 != 0)) && @@ -804544,17 +804544,17 @@ void FUN_009555c0(void) else { local_39 = '\x01'; local_2c = 0; - FUN_006856c0(&local_2c); - puVar5 = (undefined4 *)FUN_00684f30(); + std::vector::resize(&local_2c); + puVar5 = (undefined4 *)std::deque::back(); if ((byte *)(puVar5 + 1) != (byte *)0x0) { *(byte *)(puVar5 + 1) = (byte)(DAT_00c798e4 >> 5) & 1; } *puVar5 = DAT_00c79948; - FUN_00a18300(DAT_00c79890,1); + KAGE_Graphics::SetRenderTarget(DAT_00c79890,1); } if (*(char *)(DAT_00c7169c + 0x2a3c2) != '\0') { FUN_00683680(); - FUN_00a18300(DAT_00c798a8,1); + KAGE_Graphics::SetRenderTarget(DAT_00c798a8,1); } if (*(char *)(iVar1 + 0x4a6d8) == '\0') { switch(*(undefined4 *)(iVar1 + 8)) { @@ -804565,10 +804565,10 @@ void FUN_009555c0(void) Game::Render(); break; case 3: - FUN_00a18230(); + RenderTarget::Clear(); iVar6 = *(int *)(iVar1 + 0x215d8) * 0x4c; - uVar7 = FUN_00a10d00(DAT_00c78edc,iVar1 + 0x20e00 + iVar6); - FUN_00a1dfd0(uVar7); + uVar7 = render_quad_set_uniform_color(DAT_00c78edc,iVar1 + 0x20e00 + iVar6); + render_color_shader_pass(uVar7); iVar11 = *(int *)(iVar6 + 0x20e14 + iVar1); pfVar9 = (float *)(iVar1 + 0x20df0 + iVar6); if ((iVar11 < 0) || (local_68 = pfVar9 + 1, (int)*local_68 - (int)*pfVar9 >> 2 <= iVar11)) { @@ -804598,8 +804598,8 @@ void FUN_009555c0(void) DAT_00c79908 = 7; DAT_00c7990c = 1; DAT_00c79910 = 7; - uVar7 = FUN_00a10d00(DAT_00c78edc,iVar1 + 0x20e00 + iVar6); - FUN_00a1dfd0(uVar7); + uVar7 = render_quad_set_uniform_color(DAT_00c78edc,iVar1 + 0x20e00 + iVar6); + render_color_shader_pass(uVar7); } break; case 5: @@ -804654,7 +804654,7 @@ void FUN_009555c0(void) } } else { - FUN_00a18230(); + RenderTarget::Clear(); DAT_00c79904 = 1; DAT_00c79900 = 0; if ((DAT_00c798e4 & 4) == 0) { @@ -804664,8 +804664,8 @@ void FUN_009555c0(void) DAT_00c7990c = 1; DAT_00c79910 = 7; KColor::SetFromARGB(0xff000000); - uVar7 = FUN_00a10d00(DAT_00c78edc,extraout_ECX_05); - FUN_00a1dfd0(uVar7); + uVar7 = render_quad_set_uniform_color(DAT_00c78edc,extraout_ECX_05); + render_color_shader_pass(uVar7); local_2c = CONCAT44((DAT_00c78edc - 270.0) * 0.5,(DAT_00c78dc4 - 480.0) * 0.5); if (*(char *)(iVar1 + 0x4a7fd) != '\0') { if (*(char *)(iVar1 + 0x4a764) == '\0') { @@ -804689,14 +804689,14 @@ void FUN_009555c0(void) if (0xf < *(uint *)(iVar1 + 0x4a6f0)) { puVar5 = (undefined4 *)*puVar5; } - FUN_00a1af90(puVar5,uVar7,&local_5c); + Font::DrawString(puVar5,uVar7,&local_5c); local_14 = 0xffffffff; uVar7 = extraout_ECX_06; } if (*(char *)(DAT_00c7169c + 0x2a3c2) != '\0') { - FUN_00a19180(1); - FUN_006836c0(); - FUN_00a18230(); + _glfw_context_reset(1); + pop_render_target(); + RenderTarget::Clear(); puVar10 = &DAT_00c79398; if ((DAT_00c7939c & 1) == 0) { puVar10 = DAT_00c379b8; @@ -804704,8 +804704,8 @@ void FUN_009555c0(void) local_2c = CONCAT44(*(undefined4 *)(DAT_00c7169c + 0x2a368),(undefined4)local_2c); local_40 = 1.0 / *(float *)(DAT_00c7169c + 0x2a364); DAT_00c379b8 = puVar10; - FUN_00a14c00("Exposure",8,(int)&local_2c + 4,extraout_ECX_10); - FUN_00a14c00("Gamma",8,&local_40,extraout_ECX_11); + Shader::set_uniform("Exposure",8,(int)&local_2c + 4,extraout_ECX_10); + Shader::set_uniform("Gamma",8,&local_40,extraout_ECX_11); local_54 = 0; local_64 = 0; local_58 = 0; @@ -804716,14 +804716,14 @@ void FUN_009555c0(void) local_50 = 0x3f800000; local_44 = local_44 & 0xffffff00; KColor::SetFromARGB(0xffffffff); - FUN_00a10d00(DAT_00c78edc,extraout_ECX_12); + render_quad_set_uniform_color(DAT_00c78edc,extraout_ECX_12); (**(code **)(*DAT_00c798a8 + 0x14))(&local_64,local_100,&DAT_00c37944); uVar7 = extraout_ECX_13; } if (local_39 != '\0') { - FUN_00a19180(1); - FUN_006836c0(); - FUN_00a18230(); + _glfw_context_reset(1); + pop_render_target(); + RenderTarget::Clear(); DAT_00c79904 = 1; DAT_00c79900 = 0; if ((DAT_00c798e4 & 4) == 0) { @@ -804742,7 +804742,7 @@ void FUN_009555c0(void) (float)((double)DAT_00c79890[7] + (double)(&DAT_00bacb00)[-(DAT_00c79890[7] >> 0x1f)])); DAT_00c379b8 = puVar10; - FUN_00a14c00("ScreenSizePow2",10,&local_30,DAT_00c79890); + Shader::set_uniform("ScreenSizePow2",10,&local_30,DAT_00c79890); local_54 = 0; local_64 = 0; local_58 = 0; @@ -804753,15 +804753,15 @@ void FUN_009555c0(void) local_50 = 0x3f800000; local_44 = local_44 & 0xffffff00; KColor::SetFromARGB(0xffffffff); - FUN_00a10d00(DAT_00c78edc,extraout_ECX_14); + render_quad_set_uniform_color(DAT_00c78edc,extraout_ECX_14); (**(code **)(*DAT_00c79890 + 0x14))(&local_64,local_100,&DAT_00c37944); uVar7 = extraout_ECX_15; } - FUN_00a14050(uVar7); + shader_cache_find(uVar7); if (local_3a != '\0') { - FUN_00a19180(1); - FUN_006836c0(); - FUN_00a18230(); + _glfw_context_reset(1); + pop_render_target(); + RenderTarget::Clear(); DAT_00c79900 = 0; DAT_00c79904 = 1; DAT_00c79908 = 0; @@ -804777,10 +804777,10 @@ void FUN_009555c0(void) local_7c = 0x3f800000; local_70 = 0; KColor::SetFromARGB(0xffffffff); - FUN_00a10d00(DAT_00c78edc,extraout_ECX_16); + render_quad_set_uniform_color(DAT_00c78edc,extraout_ECX_16); (**(code **)(*DAT_00c798a0 + 0x14))(&local_90,local_170,&DAT_00c37944); } - FUN_00a19180(1); + _glfw_context_reset(1); ExceptionList = local_1c; return; } @@ -804965,7 +804965,7 @@ uint FUN_009563b0(void) local_1c = DAT_00c7169c; local_18 = 0; local_14 = uVar10; - iVar6 = FUN_009b9480(uVar5); + iVar6 = PlayerManager::count_main_players(uVar5); if (iVar6 != 0) { do { iVar6 = FUN_009b9310(uVar11); @@ -805102,7 +805102,7 @@ LAB_0095667a: } uVar11 = uVar11 + 1; local_18 = uVar11; - uVar9 = FUN_009b9480(uVar5); + uVar9 = PlayerManager::count_main_players(uVar5); } while (uVar11 < uVar9); } ExceptionList = local_10; @@ -807181,9 +807181,9 @@ void FUN_009584b0(undefined4 *param_1) } -//@@ 009586f0 FUN_009586f0 +//@@ 009586f0 string_table_translate -char * FUN_009586f0(undefined4 *param_1,char *param_2) +char * string_table_translate(undefined4 *param_1,char *param_2) { undefined4 *puVar1; @@ -807213,7 +807213,7 @@ char * FUN_009586f0(undefined4 *param_1,char *param_2) uVar3 = *puVar1; pcVar5 = _Str; LAB_0095876e: - FUN_00a26af0(puVar1[5],uVar3,pcVar5,(int)¶m_1 + 3); + StringTable::get_string(puVar1[5],uVar3,pcVar5,(int)¶m_1 + 3); if (_Str == (char *)0x0) goto LAB_009587a0; } else { @@ -807221,7 +807221,7 @@ LAB_0095876e: uVar3 = *puVar1; pcVar5 = pcVar2 + 1; if (_Str == (char *)0x0) goto LAB_0095876e; - FUN_00a26af0(_Str,uVar3,pcVar2 + 1,(int)¶m_1 + 3); + StringTable::get_string(_Str,uVar3,pcVar2 + 1,(int)¶m_1 + 3); } local_8 = 0; tracked_alloc(0,0); @@ -807249,10 +807249,10 @@ char * FUN_009587e0(undefined4 *param_1,undefined4 param_2,char *param_3) if (*param_3 == '#') { pcVar1 = param_3 + 1; param_3 = (char *)((uint)param_3 & 0xffffff); - FUN_00a26af0(param_2,*param_1,pcVar1,(int)¶m_3 + 3); + StringTable::get_string(param_2,*param_1,pcVar1,(int)¶m_3 + 3); if (param_3._3_1_ == '\0') { param_3 = (char *)((uint)param_3 & 0xffffff); - pcVar2 = (char *)FUN_00a26af0(param_2,*param_1,pcVar1,(int)¶m_3 + 3); + pcVar2 = (char *)StringTable::get_string(param_2,*param_1,pcVar1,(int)¶m_3 + 3); return pcVar2; } } @@ -807272,10 +807272,10 @@ char * FUN_00958840(undefined4 param_1,undefined4 param_2,undefined4 param_3,cha if (*param_4 == '#') { pcVar1 = param_4 + 1; param_4 = (char *)((uint)param_4 & 0xffffff); - FUN_00a26af0(param_2,param_3,pcVar1,(int)¶m_4 + 3); + StringTable::get_string(param_2,param_3,pcVar1,(int)¶m_4 + 3); if (param_4._3_1_ == '\0') { param_4 = (char *)((uint)param_4 & 0xffffff); - pcVar2 = (char *)FUN_00a26af0(param_2,param_3,pcVar1,(int)¶m_4 + 3); + pcVar2 = (char *)StringTable::get_string(param_2,param_3,pcVar1,(int)¶m_4 + 3); return pcVar2; } } @@ -807752,7 +807752,7 @@ void FUN_00958ed0(void) *(undefined1 *)(iVar2 + 0x14) = 1; if (*(char *)(iVar2 + 4000) != '\0') { *(undefined1 *)(iVar2 + 0x14) = 0; - FUN_009292c0(); + Manager::BackupSaveFile(); iVar5 = DAT_00c7169c; piVar7 = (int *)SteamInternal_ContextInit(&PTR_FUN_00c5c3a4); if ((*piVar7 != 0) && (*(char *)(iVar5 + 0x2a3a4) != '\0')) { @@ -807760,7 +807760,7 @@ void FUN_00958ed0(void) *(undefined1 *)(iVar2 + 0x20dcc) = 0; return; } - FUN_009294f0(); + PersistentGameData::Save(); } *(undefined1 *)(iVar2 + 0x20dcc) = 0; } @@ -807768,9 +807768,9 @@ void FUN_00958ed0(void) } -//@@ 00959130 FUN_00959130 +//@@ 00959130 Game::DeleteSaveState -void FUN_00959130(void) +void Game::DeleteSaveState(void) { int iVar1; @@ -808127,8 +808127,8 @@ void FUN_00959720(void) ::operator++((_Tree_unchecked_const_iterator_>,std::_Iterator_base0> *)&local_d8); iVar7 = FUN_00828180(); - FUN_00a55d60(); - FUN_0069dac0(); + std::vector<12byte>::clear(); + std::vector<12byte>::_Tidy(); *(undefined ***)(iVar7 + 0x1c) = KAGE::System::UserProfileBase::vftable; SStack_178._seedEffectsCount = 0x95989c; operator_delete(); @@ -808250,7 +808250,7 @@ void FUN_00959720(void) iVar9 = DAT_00c71678; *(undefined1 *)(DAT_00c71678 + 0x2658a) = 1; *(undefined1 *)(iVar9 + 0x269e9) = 1; - FUN_009a1a30(); + HUD::LoadGraphics(); SStack_178._seedEffectsCount = 0x959b26; FUN_006f8140(); FUN_009bf530(); @@ -808483,9 +808483,9 @@ void FUN_0095a680(void) } -//@@ 0095a7b0 FUN_0095a7b0 +//@@ 0095a7b0 PlayerManager::unlock_completion_mark -void FUN_0095a7b0(int param_1) +void PlayerManager::unlock_completion_mark(int param_1) { int iVar1; @@ -809722,7 +809722,7 @@ void FUN_0095c050(int param_1) local_8._0_1_ = 1; FUN_00709280(param_1 + 0x18,param_1); local_8._0_1_ = 2; - FUN_0043eca0(param_1 + 0x20); + std::vector::copy_constructor(param_1 + 0x20); local_8._0_1_ = 3; *(undefined4 *)(in_ECX + 0x2c) = 0; *(undefined4 *)(in_ECX + 0x30) = 0; @@ -809781,7 +809781,7 @@ void FUN_0095c050(int param_1) *(undefined4 *)(in_ECX + 0x80) = *(undefined4 *)(param_1 + 0x80); *(undefined4 *)(in_ECX + 0x84) = *(undefined4 *)(param_1 + 0x84); *(undefined4 *)(in_ECX + 0x88) = *(undefined4 *)(param_1 + 0x88); - FUN_0043eca0(param_1 + 0x8c); + std::vector::copy_constructor(param_1 + 0x8c); local_8._0_1_ = 6; *(undefined4 *)(in_ECX + 0x98) = 0; *(undefined4 *)(in_ECX + 0x9c) = 0; @@ -810464,7 +810464,7 @@ LAB_0095d00e: pvStack_10104 = *ppvVar23; if ((uint)((int)ppvVar23[2] - (int)pvStack_10104 >> 2) < (uint)((int)pcStack_100f8 >> 2)) { - FUN_006a0d30((int)pcStack_100f8 >> 2); + std::vector::reserve_clear((int)pcStack_100f8 >> 2); pvStack_10104 = *ppvVar23; } memmove(pvStack_10104,pvStack_100d4,(size_t)pcStack_100f8); @@ -810646,7 +810646,7 @@ LAB_0095d2a6: if (0xf < local_40) { pppppuVar12 = local_54[0]; } - FUN_00421680(pcStack_10114,uVar7,pppppuVar12,local_44,pcVar19,uVar7); + std::string::concat(pcStack_10114,uVar7,pppppuVar12,local_44,pcVar19,uVar7); pcVar19 = pcStack_100f4; pppppiVar14 = (int *****)(pcStack_100f4 + 0x40); if ((int ******)pppppiVar14 == local_3c) { @@ -810971,13 +810971,13 @@ LAB_0095dbe9: if (0x7fffffffU - local_44 < uVar7) { LAB_0095decb: /* WARNING: Subroutine does not return */ - FUN_0040ccc0(); + std::string::_Xlen(); } pppppuVar12 = local_54; if (0xf < local_40) { pppppuVar12 = local_54[0]; } - FUN_00421680(pcStack_10114,uVar7,pppppuVar12,local_44,pcVar17,uVar7); + std::string::concat(pcStack_10114,uVar7,pppppuVar12,local_44,pcVar17,uVar7); pcVar17 = pcStack_100f4; pppppiVar14 = (int *****)(pcStack_100f4 + 0xc); if ((int ******)pppppiVar14 != local_3c) { @@ -811118,7 +811118,7 @@ LAB_0095d6e6: if (0xf < local_40) { pppppuVar12 = local_54[0]; } - FUN_00421680(pcStack_10114,uVar7,pppppuVar12,local_44,pcVar17,uVar7); + std::string::concat(pcStack_10114,uVar7,pppppuVar12,local_44,pcVar17,uVar7); pcVar17 = pcStack_100f4; pppppiVar14 = (int *****)(pcStack_100f4 + 0x40); if ((int ******)pppppiVar14 == local_3c) { @@ -812127,7 +812127,7 @@ void FUN_0095eb60(int param_1,int param_2) iVar4 = *(int *)(param_2 + 0x840); } local_14 = uVar1; - uVar2 = FUN_009586f0(DAT_00c7169c + 0x4a920,"#Online/VOTE_COUNT_STRING"); + uVar2 = string_table_translate(DAT_00c7169c + 0x4a920,"#Online/VOTE_COUNT_STRING"); sprintf(local_34,uVar2,iVar5,iVar4,uVar1); fVar6 = local_38 * 0.8; local_5c = 0xffff; @@ -812452,7 +812452,7 @@ void FUN_0095f1f0(void) uStack_40 = DAT_00c79908; uStack_3c = DAT_00c7990c; local_34 = DAT_00c79910; - FUN_00a13510(); + set_blend_mode(); uVar4 = DAT_00c798e4 & 0xfffffffd; local_1c = DAT_00c7169c + 0x4b088; local_20 = DAT_00c78dc4 * 0.5; @@ -813113,8 +813113,8 @@ void __thiscall Entity_Player::CheckPoopSpellQueue(Entity_Player *this,float *pa local_70 = local_74; local_6c = (int *)local_74; local_14 = uVar2; - uVar3 = FUN_00a10e70(param_2,&local_7c,&local_74); - FUN_00a1dfd0(uVar3); + uVar3 = render_quad_set_rect(param_2,&local_7c,&local_74); + render_color_shader_pass(uVar3); local_94 = &this->field_0xd8; if (0xf < *(uint *)&this->field_0xec) { local_94 = *(undefined1 **)local_94; @@ -813314,8 +813314,8 @@ LAB_009603a7: uVar3 = FUN_00a1bb10(local_8c,local_94,&local_30,&DAT_00c3793c); local_8._0_1_ = 5; FUN_00a1bd80(uVar3,0x3f800000,0x3f800000,0x3f800000,0x3f800000,0x3f800000,0x3f800000,0,&local_30); - FUN_00a55d60(); - FUN_0069dac0(); + std::vector<12byte>::clear(); + std::vector<12byte>::_Tidy(); local_50 = local_50 + 0x40; if (local_4c != (int *)0x0) { do { @@ -813338,8 +813338,8 @@ LAB_009603a7: local_8._0_1_ = 7; FUN_00a1bd80(uVar3,0x3f800000,0x3f800000,0x3f7afafb,0x3f7afafb,0x3f52d2d3,0x3f800000,0, &local_30); - FUN_00a55d60(); - FUN_0069dac0(); + std::vector<12byte>::clear(); + std::vector<12byte>::_Tidy(); local_50 = local_50 + 0x10; piVar9 = piVar9 + 6; local_4c = (int *)((int)local_4c + -1); @@ -813552,9 +813552,9 @@ undefined4 * FUN_00960880(void *param_1,undefined4 *param_2) } -//@@ 00960a20 FUN_00960a20 +//@@ 00960a20 Entity_Knife::GetBaseVariant -undefined4 FUN_00960a20(void) +undefined4 Entity_Knife::GetBaseVariant(void) { int in_ECX; @@ -813617,9 +813617,9 @@ Entity_Knife * __thiscall Entity_Knife::Free(Entity_Knife *this,byte param_2) *(undefined ***)this = IsaacRepentancePlus::Entity_Knife::vftable; FID_conflict__Tidy(&this->field_0x4d8); FID_conflict__Tidy(&this->field_0x4b0); - FUN_00426980(); - FUN_00426980(); - FUN_00426980(); + std::vector::_Tidy(); + std::vector::_Tidy(); + std::vector::_Tidy(); Entity::destructor((Entity *)this); if ((param_2 & 1) != 0) { operator_delete(this,0x520); @@ -813638,9 +813638,9 @@ void FUN_00960bc0(void) *in_ECX = IsaacRepentancePlus::Entity_Knife::vftable; FID_conflict__Tidy(in_ECX + 0x136); FID_conflict__Tidy(in_ECX + 300); - FUN_00426980(); - FUN_00426980(); - FUN_00426980(); + std::vector::_Tidy(); + std::vector::_Tidy(); + std::vector::_Tidy(); Entity::destructor(); return; } @@ -814105,7 +814105,7 @@ undefined4 FUN_009615e0(void) *(undefined1 *)((int)in_ECX + 0x171) = 0; in_ECX[0x145] = in_ECX[0x111]; *(undefined1 *)((int)in_ECX + 0x4e6) = 1; - iVar2 = FUN_009666c0(); + iVar2 = Entity_Knife::GetRootParent(); *(float *)(iVar2 + 0x448) = *(float *)(iVar2 + 0x448) + 5.0; local_1c = 0; do { @@ -814183,7 +814183,7 @@ undefined4 FUN_00961870(void) *(undefined1 *)((int)in_ECX + 0x171) = 0; in_ECX[0x145] = in_ECX[0x111]; *(undefined1 *)((int)in_ECX + 0x4e5) = 1; - iVar1 = FUN_009666c0(); + iVar1 = Entity_Knife::GetRootParent(); local_24 = &DAT_00c5d2c8; local_20 = (undefined *)0x0; *(float *)(iVar1 + 0x448) = *(float *)(iVar1 + 0x448) + 2.0; @@ -814420,7 +814420,7 @@ LAB_009652a6: local_13c = (Entity_Knife *)&this->field_0x410; piVar12 = (int *)BitSet128::operator_and(&DAT_00c34c50); if ((*piVar12 == 0 && piVar12[1] == 0) && (piVar12[2] == 0 && piVar12[3] == 0)) { - pEVar13 = (Entity_Knife *)FUN_009666c0(); + pEVar13 = (Entity_Knife *)Entity_Knife::GetRootParent(); iVar11 = this->_variant; local_15c = *(Entity_Knife **)&pEVar13->field_0x3bc; local_164 = pEVar13; @@ -814511,7 +814511,7 @@ LAB_00961f49: *(undefined4 *)&this->field_0x4cc = *(undefined4 *)&pEVar13->field_0x4cc; *(undefined4 *)&this->field_0x4d0 = *(undefined4 *)&pEVar13->field_0x4d0; *(undefined4 *)&this->field_0x4d4 = *(undefined4 *)&pEVar13->field_0x4d4; - FUN_00967180(); + Entity_Knife::UpdateHomingPath(); } } local_d9 = '\0'; @@ -814521,7 +814521,7 @@ LAB_00961f49: (this->field_0x175 != '\0')) { if (((pEVar13 != this) && (pEVar13->_isSpinAttack != 0)) && (this->_isSpinAttack == 0)) { - FUN_00968430(); + Entity_Knife::SpinAttack(); local_d9 = '\x01'; } } @@ -814605,7 +814605,7 @@ LAB_00961f49: sVar2 = *(short *)&this[1].field_0x5; } *(short *)&this[1].field_0x5 = sVar2 + -1; - FUN_00968430(); + Entity_Knife::SpinAttack(); local_d9 = '\x01'; } } @@ -814973,7 +814973,7 @@ LAB_00961f38: BitSet128::operator_and(&DAT_00c348a0); cVar9 = BitSet128::IsNonZero(); if (cVar9 != '\0') { - pEVar25 = (Entity_Knife *)FUN_009666c0(); + pEVar25 = (Entity_Knife *)Entity_Knife::GetRootParent(); if (pEVar25 == this) { local_104 = (Entity_Knife *)0x0; } @@ -815014,7 +815014,7 @@ LAB_00961f38: } } else { - pEVar25 = (Entity_Knife *)FUN_009666c0(); + pEVar25 = (Entity_Knife *)Entity_Knife::GetRootParent(); if (pEVar25 == this) { local_104 = (Entity_Knife *)0x0; } @@ -815059,7 +815059,7 @@ LAB_00961f38: BitSet128::operator_and(&DAT_00c348c0); cVar9 = BitSet128::IsNonZero(); if (cVar9 != '\0') { - pEVar25 = (Entity_Knife *)FUN_009666c0(); + pEVar25 = (Entity_Knife *)Entity_Knife::GetRootParent(); if (pEVar25 != this) { RNG::game_constructor(); fVar23 = (float10)RNG::RandomFloat(); @@ -815478,7 +815478,7 @@ LAB_00963c34: (*pcVar4)(&local_160->field_0xf0,0xffffffff,0xff,0,1); (**(code **)(*piVar12 + 0xc))(); SoundEffects::PlayWithFartOverride(0x96,2,0,0x3f800000); - FUN_0067d430(*(float *)local_13c,*(undefined4 *)&local_13c->field_0x4, + tear_flags_area_apply(*(float *)local_13c,*(undefined4 *)&local_13c->field_0x4, *(undefined4 *)&local_13c->field_0x8,*(undefined4 *)&local_13c->field_0xc); fVar24 = *(float *)&local_160->field_0x4cc; pEVar13 = local_11c; @@ -815548,7 +815548,7 @@ LAB_00963c34: piVar12[0x10b] = iVar11; piVar12[0x10c] = iVar3; piVar12[0x10d] = iVar7; - uVar35 = FUN_00665c20(local_6c); + uVar35 = Entity_Player::GetTearHitParams_copy(local_6c); (*(code *)((ulonglong)uVar35 >> 0x20))((int)uVar35,0xffffffff,0xff,0,1); (**(code **)(*piVar12 + 0x40))(*(float *)&this->field_0x460 * this->_collisionDamage); piVar12[0xdf] = 0; @@ -815649,7 +815649,7 @@ LAB_00964bdf: (**(code **)(*piVar12 + 0xc))(); SoundEffects::PlayWithFartOverride(0x96,2,0,0x3f800000); pEVar13 = local_13c; - FUN_0067d430(*(float *)local_13c,*(undefined4 *)&local_13c->field_0x4, + tear_flags_area_apply(*(float *)local_13c,*(undefined4 *)&local_13c->field_0x4, *(undefined4 *)&local_13c->field_0x8,*(undefined4 *)&local_13c->field_0xc); fVar24 = *(float *)&local_160->field_0x4cc; this = local_160; @@ -815852,7 +815852,7 @@ LAB_00964bdf: } if ((this->_isSwinging == 0) && ((**(code **)(*(int *)this + 0x28))(), *(int *)&this[1].field_0x9 != 0)) { - FUN_007525e0(&this->field_0x4d8); + std::vector::assign(&this->field_0x4d8); } } } @@ -815885,7 +815885,7 @@ LAB_00964bdf: piVar12 = (int *)BitSet128::operator_and(&DAT_00c34b20); if (((*piVar12 != 0 || piVar12[1] != 0) || (piVar12[2] != 0 || piVar12[3] != 0)) && (local_d9 == '\0')) { - FUN_00705b90(&this->_pos,0,0); + Game::AttractEntities(&this->_pos,0,0); } if ((local_db == '\0') && (local_da == '\0')) { LAB_009658e1: @@ -816087,14 +816087,14 @@ void __thiscall Entity_Knife::Render(Entity_Knife *this,float *param_2) uStack_60 = uVar12; uStack_5c = uVar13; fStack_58 = fVar14; - iVar3 = FUN_00960a20(); + iVar3 = Entity_Knife::GetBaseVariant(); if (iVar3 == 1) { local_c8 = 4.0; } else { local_c8 = 30.0; } - uVar18 = FUN_009666c0(); + uVar18 = Entity_Knife::GetRootParent(); local_d0 = *(float *)((int)uVar18 + 0x3bc); pfVar6 = (float *)(int)((ulonglong)uVar18 >> 0x20); if (local_d0 != 0.0) { @@ -816218,7 +816218,7 @@ void __thiscall Entity_Knife::Render(Entity_Knife *this,float *param_2) *(float *)&this->field_0x1a4 = local_d0 + *param_2; *(float *)&this->field_0x1a8 = local_e4 / (float)local_e0 + fVar16; ANM2::Render((ANM2 *)&this->field_0x48,&this->field_0x1a4,&DAT_00c7b640,&DAT_00c7b640); - iVar3 = FUN_00960a20(); + iVar3 = Entity_Knife::GetBaseVariant(); if ((iVar3 == 1) && (this->_subtype != 4)) { iVar3 = GetPlayer(this); if ((iVar3 != 0) && (iVar3 = *(int *)(iVar3 + 0x18b0), 0 < iVar3)) { @@ -816327,9 +816327,9 @@ int __thiscall Entity_Knife::GetPlayer(Entity_Knife *this) } -//@@ 009666c0 FUN_009666c0 +//@@ 009666c0 Entity_Knife::GetRootParent -void FUN_009666c0(void) +void Entity_Knife::GetRootParent(void) { int iVar1; @@ -816405,8 +816405,8 @@ Entity_Knife::HandleCollision(Entity_Knife *this,Entity *param_2,undefined4 para if (iVar3 == -1) { return 0; } - fStack_e8 = (float)FUN_00960a20(); - uVar10 = FUN_00960a20(); + fStack_e8 = (float)Entity_Knife::GetBaseVariant(); + uVar10 = Entity_Knife::GetBaseVariant(); if ((int)uVar10 == 10) { return 1; } @@ -816551,7 +816551,7 @@ Entity_Knife::HandleCollision(Entity_Knife *this,Entity *param_2,undefined4 para } fVar8 = (fVar8 * 4.0 + 2.0) * fVar7; } - FUN_0067d1f0(uVar4,uStack_9c,uStack_98,uStack_94,uStack_90); + get_tear_flags_from_player(uVar4,uStack_9c,uStack_98,uStack_94,uStack_90); fStack_b4 = (this->_pos).x; fStack_b0 = (this->_pos).y; pcStack_e4 = *(code **)(*(int *)param_2 + 0x20); @@ -816750,16 +816750,16 @@ LAB_009670d5: AnimationState::SetFrameFloat(); } switchD_00967064_caseD_5: - FUN_00967180(); + Entity_Knife::UpdateHomingPath(); return; } -//@@ 00967180 FUN_00967180 +//@@ 00967180 Entity_Knife::UpdateHomingPath /* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */ -void FUN_00967180(void) +void Entity_Knife::UpdateHomingPath(void) { void *pvVar1; @@ -816811,10 +816811,10 @@ void FUN_00967180(void) if (iVar3 != 0) { pTStack_6c = (TypeDescriptor *)0x9671f4; local_50 = iVar3; - iVar4 = FUN_00960a20(); + iVar4 = Entity_Knife::GetBaseVariant(); if (iVar4 != 1) { pTStack_6c = (TypeDescriptor *)0x967204; - iVar4 = FUN_00960a20(); + iVar4 = Entity_Knife::GetBaseVariant(); if ((iVar4 != 10) && (extraout_DL != '\0')) { pTStack_6c = (TypeDescriptor *)0x0; pTStack_70 = (TypeDescriptor *)0xe5; @@ -817385,11 +817385,11 @@ LAB_00968095: } -//@@ 009680d0 FUN_009680d0 +//@@ 009680d0 Entity_Knife::SetAttackAnimation /* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */ -void FUN_009680d0(void) +void Entity_Knife::SetAttackAnimation(void) { undefined4 uVar1; @@ -817523,9 +817523,9 @@ LAB_0096829f: } -//@@ 00968430 FUN_00968430 +//@@ 00968430 Entity_Knife::SpinAttack -void FUN_00968430(undefined2 param_1,int param_2) +void Entity_Knife::SpinAttack(undefined2 param_1,int param_2) { double dVar1; @@ -817629,7 +817629,7 @@ LAB_009688aa: uVar3 = Random(); if ((uVar3 & 3) != 0) goto LAB_009688aa; } - iVar4 = FUN_007911c0(0x93); + iVar4 = Entity_Player::GetActiveItemSlot(0x93); if (-1 < iVar4) { Entity_Player::AddActiveCharge(pEVar2,-param_1,iVar4,0,0,0); uVar3 = Entity_Player::GetActiveItem(pEVar2,iVar4); @@ -817804,7 +817804,7 @@ void FUN_009688d0(void) } LAB_00968980: local_88 = pEVar9; - local_cc = FUN_00960a20(); + local_cc = Entity_Knife::GetBaseVariant(); fVar21 = *(float *)&in_ECX->field_0x37c; if (in_ECX->_variant == 2) { local_10c = 40.0; @@ -817924,9 +817924,9 @@ LAB_00968b6e: } if (local_cc == 10) { Entity::GetNullCapsule(); - FUN_00499960(); + EntityRef::operator_(); Entity::GetNullCapsule(); - FUN_00499960(); + EntityRef::operator_(); local_c8 = in_ECX->_collisionDamage; if (local_7d == '\0') { if (in_ECX->_isSpinAttack == 0) { @@ -817955,10 +817955,10 @@ LAB_00968b6e: LAB_00968f51: if ((*(uint *)(DAT_00c71678 + 0x26544) >> 5 & 1) != 0) { if (0.0 < local_154._unkFloat1) { - FUN_0042eef0(); + push_shape_points(); } if (0.0 < local_198._unkFloat1) { - FUN_0042eef0(); + push_shape_points(); } } if (local_198._unkFloat1 <= 0.0) { @@ -818763,7 +818763,7 @@ LAB_0096a80d: pcVar16 = "Swing2"; } ANM2::Play((ANM2 *)&pEVar15->field_0x48,pcVar16,1); - FUN_009680d0(); + Entity_Knife::SetAttackAnimation(); } else if (local_cc == 10) { if (in_ECX->_isFlying != 0) { @@ -818771,11 +818771,11 @@ LAB_0096a80d: (pEVar15->_pos).y = (in_ECX->_pos).y; } if (in_ECX->_isSpinAttack == 0) { - FUN_009680d0(); + Entity_Knife::SetAttackAnimation(); } else { uVar19 = ANM2::GetFrame((ANM2 *)&in_ECX->field_0x48); - FUN_00968430(1,uVar19); + Entity_Knife::SpinAttack(1,uVar19); } *(undefined4 *)&pEVar15->field_0xec = *(undefined4 *)&in_ECX->field_0xec; } @@ -818795,7 +818795,7 @@ LAB_0096a80d: uVar27 = 0; uVar19 = Game::Spawn(7,2,&local_f8,&DAT_00c7b640,local_88,3,uVar19); piVar10 = (int *)__RTDynamicCast(uVar19,uVar27,pTVar28,uVar29); - uVar19 = FUN_00665c20(); + uVar19 = Entity_Player::GetTearHitParams_copy(); (**(code **)(*piVar10 + 0x3c))(uVar19,0xffffffff,0xff,0,1); in_ECX = local_8c; piVar10[0xd3] = (int)(local_8c->_posOffset).x; @@ -818991,7 +818991,7 @@ void FUN_0096ae70(float *param_1,Entity *param_2,float *param_3,float param_4,fl local_a8 = *param_3 - (float)local_88 * param_4; local_cc = local_a4 - (float)local_8c * 8.0 * (float)local_78; local_d0 = local_a8 - (float)local_88 * 8.0 * (float)local_78; - if ((param_8 == '\0') && (iVar5 = FUN_00960a20(), iVar5 == 1)) { + if ((param_8 == '\0') && (iVar5 = Entity_Knife::GetBaseVariant(), iVar5 == 1)) { piVar6 = (int *)BitSet128::operator_and(&DAT_00c34bc0); if ((*piVar6 != 0 || piVar6[1] != 0) || (piVar6[2] != 0 || piVar6[3] != 0)) { Game::BombTearflagEffects @@ -819259,7 +819259,7 @@ LAB_0096ba99: BitSet128::operator_and(uVar7); piVar6 = (int *)BitSet128::operator_and(&DAT_00c34850); if (((*piVar6 != 0 || piVar6[1] != 0) || (piVar6[2] != 0 || piVar6[3] != 0)) && - (iVar5 = FUN_00960a20(), iVar5 == 0)) { + (iVar5 = Entity_Knife::GetBaseVariant(), iVar5 == 0)) { *(uint *)&in_ECX->field_0x420 = *(uint *)&in_ECX->field_0x420 | DAT_00c34850; *(uint *)&in_ECX->field_0x424 = *(uint *)&in_ECX->field_0x424 | DAT_00c34854; *(uint *)&in_ECX->field_0x428 = *(uint *)&in_ECX->field_0x428 | DAT_00c34858; @@ -819294,7 +819294,7 @@ LAB_0096ba99: } piVar6 = (int *)BitSet128::operator_and(&DAT_00c34bc0); if (((*piVar6 != 0 || piVar6[1] != 0) || (piVar6[2] != 0 || piVar6[3] != 0)) && - (iVar5 = FUN_00960a20(), iVar5 != 10)) { + (iVar5 = Entity_Knife::GetBaseVariant(), iVar5 != 10)) { *(uint *)&in_ECX->field_0x420 = *(uint *)&in_ECX->field_0x420 | DAT_00c34bc0; *(uint *)&in_ECX->field_0x424 = *(uint *)&in_ECX->field_0x424 | DAT_00c34bc4; *(uint *)&in_ECX->field_0x428 = *(uint *)&in_ECX->field_0x428 | DAT_00c34bc8; @@ -819409,7 +819409,7 @@ LAB_0096ba99: LAB_0096c089: piVar6 = (int *)BitSet128::operator_and(&DAT_00c34850); if (((*piVar6 != 0 || piVar6[1] != 0) || (piVar6[2] != 0 || piVar6[3] != 0)) && - (iVar9 = FUN_00960a20(), iVar9 != 0)) { + (iVar9 = Entity_Knife::GetBaseVariant(), iVar9 != 0)) { local_8c = (Entity_Knife *)((float)local_8c * local_94); local_6c = (int *)0x0; local_88 = (Entity_Knife *)(-(float)local_88 * local_94); @@ -819494,7 +819494,7 @@ LAB_0096c670: *(undefined4 *)&in_ECX->field_0x418, *(float *)&in_ECX->field_0x41c, *(undefined4 *)&in_ECX->field_0x3c8); - FUN_007525e0(&in_ECX->field_0x4d8); + std::vector::assign(&in_ECX->field_0x4d8); (**(code **)(*piVar6 + 0xc))(); } piVar6 = (int *)BitSet128::operator_and(&DAT_00c34970); @@ -819784,18 +819784,18 @@ void FUN_0096cd20(void) } FID_conflict__Tidy(in_ECX + 0x148); FID_conflict__Tidy(in_ECX + 299); - FUN_00426980(); - FUN_00426980(); - FUN_00426980(); + std::vector::_Tidy(); + std::vector::_Tidy(); + std::vector::_Tidy(); Entity::destructor(); ExceptionList = local_10; return; } -//@@ 0096ce30 FUN_0096ce30 +//@@ 0096ce30 Entity_Laser::is_thick_variant -undefined4 FUN_0096ce30(void) +undefined4 Entity_Laser::is_thick_variant(void) { int in_ECX; @@ -820910,7 +820910,7 @@ LAB_0096ead2: piVar13 = (int *)FUN_00707e10(); pTStack_194 = in_ECX + 0xa4; pTStack_198 = (TypeDescriptor *)0x96eb82; - FUN_007525e0(); + std::vector::assign(); pTStack_b8 = (TypeDescriptor *)piVar13[0x3c]; iStack_b4 = piVar13[0x3d]; uStack_b0 = piVar13[0x3e]; @@ -821073,7 +821073,7 @@ undefined4 * FUN_0096ee00(undefined4 *param_1) uStack_44 = 0; uStack_40 = 0; uStack_3c = 0x3f800000; - pfVar13 = (float *)FUN_004e46d0(&local_48); + pfVar13 = (float *)Color::apply_to_kcolor(&local_48); fVar16 = *pfVar13; fVar17 = pfVar13[1]; fVar18 = pfVar13[2]; @@ -821115,7 +821115,7 @@ undefined4 * FUN_0096ee00(undefined4 *param_1) uStack_18 = uVar12; local_14 = uVar2; local_c = uVar4; - pfVar13 = (float *)FUN_004e46d0(&local_48); + pfVar13 = (float *)Color::apply_to_kcolor(&local_48); fVar16 = *pfVar13; fVar17 = pfVar13[1]; fVar18 = pfVar13[2]; @@ -821294,7 +821294,7 @@ void __thiscall Entity_Laser::RotateToAngle(Entity_Laser *this) fVar1 = *(float *)&this->field_0x41c; this->field_0x4c0 = 1; *(undefined4 *)&this->field_0x4c4 = 0; - FUN_006827a0(); + angle_lerp_shortest(); *(float *)&this->field_0x4c8 = fVar1; if (fVar1 < 0.0) { in_XMM2_Da = in_XMM2_Da ^ 0x80000000; @@ -821984,7 +821984,7 @@ LAB_009706c5: Entity_Laser::ClearLaserSamples(); iVar1 = *(int *)(in_ECX + 0x30); if (((iVar1 == 1) || (iVar1 == 2)) || (iVar1 == 3)) { - FUN_0097baa0(); + Entity_Laser::UpdateHits(); return; } goto LAB_00970ca5; @@ -822120,7 +822120,7 @@ LAB_00970af5: } *(float *)(in_ECX + 0xec) = *(float *)(in_ECX + 0x41c) - 90.0; LAB_00970ca5: - FUN_00973c60(); + Entity_Laser::update_laser(); return; } @@ -822755,7 +822755,7 @@ LAB_009736b9: (iVar5 = 4, *(int *)(*(int *)&in_ECX->field_0x3c8 + 0x28) == 1)) goto LAB_009736b9; LAB_00973251: - cVar2 = FUN_0096ce30(); + cVar2 = Entity_Laser::is_thick_variant(); if (cVar2 != '\0') { fVar22 = (float)local_88 * (float)pEVar19; local_88 = (Entity_Tear *)((float)local_88 * (float)pEVar17 + (in_ECX->_pos).y); @@ -823082,7 +823082,7 @@ LAB_00971e12: pEVar17 = local_b0; local_a0 = piVar12; if (local_9c == (Entity_Tear *)0x0) { - cVar2 = FUN_0096ce30(); + cVar2 = Entity_Laser::is_thick_variant(); pEVar17 = local_b0; if (cVar2 != '\0') { fVar22 = *(float *)(extraout_ECX + 0x41c) * 0.017453292; @@ -823290,7 +823290,7 @@ LAB_00972846: local_94 = pEVar17; } } - FUN_006b2210(local_8c); + Entity::IsCollisionIgnored(local_8c); fVar22 = 0.0; pEVar18 = local_94; pEVar19 = local_88; @@ -823323,7 +823323,7 @@ LAB_00972846: LAB_009729ca: fVar22 = 0.0; } - cVar2 = FUN_0096ce30(); + cVar2 = Entity_Laser::is_thick_variant(); pEVar10 = extraout_EDX_02; if (cVar2 != '\0') { iVar7 = *(int *)&(extraout_EDX_02->_homingLaser).field_0x1c; @@ -823666,12 +823666,12 @@ void FUN_00973a50(void) } -//@@ 00973c60 FUN_00973c60 +//@@ 00973c60 Entity_Laser::update_laser /* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */ /* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ -void FUN_00973c60(void) +void Entity_Laser::update_laser(void) { code *pcVar1; @@ -823910,11 +823910,11 @@ LAB_00973e19: } if (*(char *)((int)in_ECX + 0x45d) == '\0') { *(undefined1 *)((int)in_ECX + 0x516) = 0; - cVar4 = FUN_0096ce30(); + cVar4 = Entity_Laser::is_thick_variant(); if ((((cVar4 != '\0') || (iVar5 = in_ECX[0xb], iVar5 == 2)) || ((iVar5 == 10 || ((iVar5 == 5 || (iVar5 == 7)))))) || (iVar5 == 8)) { Vector::__add(&local_120,in_ECX + 0xd3); - FUN_00a10350(&local_f0,in_ECX[0x107]); + Vector::FromAngle(&local_f0,in_ECX[0x107]); if (in_ECX[0x61] == 6) { local_d4[0] = (Entity_Tear *)0x40800000; uVar29 = Vector::operator_mul(&local_f0); @@ -823957,7 +823957,7 @@ LAB_0097663d: local_12c = (Entity_Tear *)0x0; local_ec = (Entity_Tear *)0x0; local_f0 = (Entity_Tear *)0x0; - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); local_14 = 0; local_bc = (Entity_Tear *)0x0; if (puStack_154 == (undefined1 *)0x0) { @@ -823970,7 +823970,7 @@ LAB_00976cc2: do { pEVar15 = (Entity_Tear *)FUN_004a2920(); if (pEVar15 != (Entity_Tear *)0x0) { - FUN_00a10350(&local_cc,*(undefined4 *)&pEVar15->field_0x474); + Vector::FromAngle(&local_cc,*(undefined4 *)&pEVar15->field_0x474); pfVar7 = (float *)Vector::__sub(local_198,&local_120); if ((float)local_c8 * pfVar7[1] + (float)local_cc * *pfVar7 < 0.0) { local_178 = (pEVar15->_pos).x; @@ -824009,7 +824009,7 @@ LAB_00976cc2: uVar29 = Color::Color(0x3f800000,0x40a00000,0x40a00000,0x40800000,0x3f800000,0,0,0); Color::operator_assign(uVar29); } - local_d4[0] = (Entity_Tear *)FUN_00499da0(); + local_d4[0] = (Entity_Tear *)Entity::ToPlayer(); if (in_ECX[0x13a] == 0) { uVar29 = Vector::__sub(local_168,in_ECX + 0xd3); piVar13 = (int *)Entity_Laser::ShootAngle @@ -824081,7 +824081,7 @@ LAB_00976cb2: fVar20 = (float)in_ECX[0x107]; local_e2 = '\x01'; *(undefined1 *)((int)in_ECX + 0x516) = 0; - if (((fVar20 != (float)in_ECX[0x108]) && (cVar4 = FUN_0096ce30(), cVar4 == '\0')) && + if (((fVar20 != (float)in_ECX[0x108]) && (cVar4 = Entity_Laser::is_thick_variant(), cVar4 == '\0')) && (in_ECX[0xb] != 5)) { in_ECX[300] = in_ECX[299]; in_ECX[0x121] = in_ECX[0x120]; @@ -824222,7 +824222,7 @@ LAB_009743d3: local_d4[0] = (Entity_Tear *) (float)((double)in_ECX[8] + (double)(&DAT_00bacb00)[-(in_ECX[8] >> 0x1f)]); if (iVar5 != 0) { - FUN_007c2d50(0x1e); + get_tear_trinket_multiplier(0x1e); } FUN_009a0fa0(); } @@ -824231,7 +824231,7 @@ LAB_009743d3: local_d4[0] = (Entity_Tear *) (float)((double)in_ECX[8] + (double)(&DAT_00bacb00)[-(in_ECX[8] >> 0x1f)]); if (iVar5 != 0) { - FUN_007c2d50(10); + get_tear_trinket_multiplier(10); } FUN_0099ec00(); } @@ -824242,7 +824242,7 @@ LAB_009743d3: local_d4[0] = (Entity_Tear *) (float)((double)in_ECX[8] + (double)(&DAT_00bacb00)[-(in_ECX[8] >> 0x1f)]); if (iVar5 != 0) { - FUN_007c2d50(0x1a); + get_tear_trinket_multiplier(0x1a); } goto LAB_009747b1; } @@ -824251,7 +824251,7 @@ LAB_009743d3: local_d4[0] = (Entity_Tear *) (float)((double)in_ECX[8] + (double)(&DAT_00bacb00)[-(in_ECX[8] >> 0x1f)]); if (iVar5 != 0) { - FUN_007c2d50(0x2e); + get_tear_trinket_multiplier(0x2e); } LAB_009747b1: FUN_0099efc0(); @@ -824758,7 +824758,7 @@ LAB_00975711: local_130 = local_f0; local_12c = local_ec; } while (uVar18 < 4); - FUN_00a104b0(local_d4[0]); + Vector::operator__(local_d4[0]); in_ECX = local_14c; piVar13 = (int *)local_14c[0x14e]; cVar4 = Vector::operator_ne(&local_120); @@ -824773,7 +824773,7 @@ LAB_00975711: uVar29 = Entity_Laser::ShootAngle (in_ECX[0xb],&local_130,local_d4[0],in_ECX[0x116],in_ECX + 0xd3, in_ECX[0xef],1); - FUN_004cf1d0(uVar29); + EntityPtr::Set(uVar29); if (in_ECX[0x14e] != 0) { *(undefined1 *)(in_ECX[0x14e] + 0x518) = 1; *(undefined1 *)(in_ECX[0x14e] + 0x4e4) = 1; @@ -824867,7 +824867,7 @@ LAB_009759d5: local_11c = DAT_00c7b644; local_d4[0] = (Entity_Tear *)0x41a00000; do { - FUN_00a10350(&local_188,(float)iVar5); + Vector::FromAngle(&local_188,(float)iVar5); Vector::__mul(&local_10c,local_d4); iVar10 = in_ECX[0x120]; iVar17 = in_ECX[0x121] - iVar10 >> 3; @@ -824999,7 +824999,7 @@ LAB_00975f41: (((iVar5 == 0xb || (iVar5 == 0xc)) || ((iVar5 == 0xe || (iVar5 == 0xf)))))) && ((0.5 < (float)in_ECX[0x39] && (in_ECX[0xd] == 1)))) && ((((float)in_ECX[0x134] == 0.0 || ((iVar10 != 0 && (iVar10 != 1)))) && - ((*(char *)((int)in_ECX + 0x175) == '\0' && (cVar4 = FUN_00652a90(0x20), cVar4 == '\0')))) + ((*(char *)((int)in_ECX + 0x175) == '\0' && (cVar4 = _has_flag_0x110(0x20), cVar4 == '\0')))) )) { uVar18 = in_ECX[0x121] - in_ECX[0x120] >> 3; if (1 < uVar18) { @@ -825013,7 +825013,7 @@ LAB_00975f41: normalize_angle_degrees(); local_d4[0] = pEVar15; local_bc = (Entity_Tear *)Random(); - FUN_00a10350(&local_140,local_d4[0]); + Vector::FromAngle(&local_140,local_d4[0]); iVar5 = Random(); local_d4[0] = (Entity_Tear *) ((float)((double)iVar5 + (double)(&DAT_00bacb00)[-(iVar5 >> 0x1f)]) * @@ -825142,7 +825142,7 @@ LAB_00976e53: local_d4[0] = (Entity_Tear *)0x41a00000; local_bc = (Entity_Tear *)local_14c[0x138]; Vector::operator_mul_assign(local_d4); - cVar4 = FUN_0096ce30(); + cVar4 = Entity_Laser::is_thick_variant(); uVar29 = extraout_ECX_02; if (cVar4 != '\0') { iVar5 = Random(); @@ -825246,11 +825246,11 @@ LAB_0097754c: pEVar15 = local_b4; LAB_00977554: in_ECX[0x157] = (int)pEVar15; - FUN_00a10350(local_168,pEVar15); + Vector::FromAngle(local_168,pEVar15); local_d4[0] = (Entity_Tear *)0x3e800000; Vector::__mul(local_1a8,local_d4); uVar29 = Vector::__mul(&local_188,in_ECX + 0xdc); - FUN_00a104b0(uVar29); + Vector::operator__(uVar29); local_bc = (Entity_Tear *)0x0; do { piVar13 = in_ECX + (int)&local_bc->field_0x14c; @@ -825258,7 +825258,7 @@ LAB_00977554: uVar29 = Entity_Laser::ShootAngle (in_ECX[0xb],&local_120,0,in_ECX[0x116],in_ECX + 0xd3,in_ECX[0xef],1) ; - FUN_004cf1d0(uVar29); + EntityPtr::Set(uVar29); if (*piVar13 != 0) { *(undefined1 *)(*piVar13 + 0x518) = 1; *(undefined1 *)(*piVar13 + 0x4e4) = 1; @@ -825329,7 +825329,7 @@ LAB_00977677: fVar19 = (float10)Vector::GetAngleDegrees(); local_b4 = (Entity_Tear *)(float)fVar19; if (local_c1 == false) goto LAB_0097754c; - FUN_006827a0(); + angle_lerp_shortest(); pEVar15 = (Entity_Tear *)in_ECX[0x157]; approach_angle(); goto LAB_00977554; @@ -825442,7 +825442,7 @@ LAB_00977beb: ((*(char *)((int)in_ECX + 0x45e) == '\0' && (*(char *)((int)in_ECX + 0x173) == '\0')))) { SoundEffects::PlayWithFartOverride(0x118,2,0,0x3f800000); } - cVar4 = FUN_0096ce30(); + cVar4 = Entity_Laser::is_thick_variant(); if (((cVar4 == '\0') || (iVar5 = in_ECX[0xb], iVar5 == 0xd)) || (((iVar5 == 6 || (iVar5 == 0xf)) && (in_ECX[0xd] != 1)))) { *(undefined1 *)((int)in_ECX + 0x173) = 1; @@ -825532,7 +825532,7 @@ void __thiscall Entity_Laser::Update(Entity_Laser *this) else if (iVar10 == 0xd) { local_44 = (byte *)((float)local_44 * 5.0); } - cVar6 = FUN_0096ce30(); + cVar6 = Entity_Laser::is_thick_variant(); uVar12 = 0x47; if (cVar6 == '\0') { uVar12 = 0x7e; @@ -825648,7 +825648,7 @@ void __thiscall Entity_Laser::Update(Entity_Laser *this) } } else { - FUN_00684b90(0x3f800000); + hsv_to_rgb(0x3f800000); local_30 = local_28 * 4.0; local_2c = (char *)(local_24 * 4.0); local_28 = fStack_20 * 4.0; @@ -825681,10 +825681,10 @@ LAB_00978138: if (this->field_0x45c == '\0') { iVar10 = this->_subtype; if (((iVar10 == 1) || (iVar10 == 2)) || (iVar10 == 3)) { - FUN_0097baa0(); + Entity_Laser::UpdateHits(); } else { - FUN_00973c60(); + Entity_Laser::update_laser(); } if (((this->_variant == 1) && (*(int *)&this->field_0x3c8 != 0)) && (*(int *)(*(int *)&this->field_0x3c8 + 0x28) == 0x193)) { @@ -826010,10 +826010,10 @@ void __thiscall Entity_Laser::Render(Entity_Laser *this,float *param_2) *(float *)&this->field_0x1a8 = local_120 / (float)local_12c + fVar12; fVar12 = 1.0; local_1a4 = 1.0; - uVar4 = FUN_006b7250(0,&IsaacRepentancePlus::Entity::RTTI_Type_Descriptor); + uVar4 = Entity::GetLastParent(0,&IsaacRepentancePlus::Entity::RTTI_Type_Descriptor); iVar5 = __RTDynamicCast(uVar4); if (iVar5 != 0) { - cVar3 = FUN_007cf8c0(); + cVar3 = Entity_Player::IsLocalPlayer(); if (cVar3 == '\0') { FUN_00925df0(); local_1a4 = fVar12; @@ -826036,13 +826036,13 @@ void __thiscall Entity_Laser::Render(Entity_Laser *this,float *param_2) local_198 = (*(uint *)&this->field_0x158 >> 5 & 1) * 2; if (this->_sampleLaser == 0) { if ((*(uint *)&this->field_0xc8 < 2) || - (((cVar3 = FUN_0096ce30(), cVar3 == '\0' && (iVar5 = this->_variant, iVar5 != 2)) && + (((cVar3 = Entity_Laser::is_thick_variant(), cVar3 == '\0' && (iVar5 = this->_variant, iVar5 != 2)) && ((iVar5 != 5 && (iVar5 != 8)))))) { iVar5 = this->_variant; if (((iVar5 == 2) || (iVar5 == 10)) || (iVar5 == 7)) { iVar5 = AnimationState::GetLayerFrame(); if (iVar5 == 0) goto LAB_0097ab0f; - FUN_0040bbf0(); + AnimationState::copy_assign(); local_1e0 = CONCAT31(local_1e0._1_3_,1); fStack_1ec = *(float *)&this->field_0x460 * 0.65 + local_a8; fStack_1f0 = local_ac; @@ -826098,7 +826098,7 @@ void __thiscall Entity_Laser::Render(Entity_Laser *this,float *param_2) pfVar6 = (float *)Isaac::GetRenderPosition(1); local_148 = local_14c + *param_2 + local_188 * local_134 + *pfVar6; local_144 = local_150 + param_2[1] + local_184 * local_134 + pfVar6[1]; - FUN_00a10dd0(&local_148,&local_1b8,&local_1c0); + set_quad_corner_colors(&local_148,&local_1b8,&local_1c0); iVar5 = ANM2::GetLayer((ANM2 *)puVar1); FUN_00a13560(*(undefined4 *)(iVar5 + 0x78),*(undefined4 *)(iVar5 + 0x7c), *(undefined4 *)(iVar5 + 0x80)); @@ -826152,8 +826152,8 @@ LAB_0097ab0f: /* WARNING: Subroutine does not return */ KAGE_LogMessage(); } - FUN_0040bbf0(); - FUN_0040bbf0(); + AnimationState::copy_assign(); + AnimationState::copy_assign(); iVar5 = ANM2::GetLayer((ANM2 *)&this->field_0x48); local_1e0 = CONCAT31(local_1e0._1_3_,1); local_120 = local_94 * *(float *)(iVar5 + 0x34) * (this->_spriteScale).x; @@ -826216,7 +826216,7 @@ LAB_0097ab0f: local_1c0 = local_154 + local_14c; local_1b8 = local_154 + local_134; local_1b4 = local_140 + local_124 / local_130; - FUN_00a10dd0(&local_1b8,&local_1c0,&local_160); + set_quad_corner_colors(&local_1b8,&local_1c0,&local_160); iVar5 = ANM2::GetLayer((ANM2 *)&this->field_0x48); DAT_00c79900 = *(undefined4 *)(iVar5 + 0x78); DAT_00c79904 = *(undefined4 *)(iVar5 + 0x7c); @@ -826254,7 +826254,7 @@ LAB_0097b218: FUN_0040c440(); } } - FUN_00a14050(); + shader_cache_find(); goto LAB_0097b24c; } local_164 = (float)(uint)(1 < *(uint *)&this->field_0xc8); @@ -826263,14 +826263,14 @@ LAB_0097b218: /* WARNING: Subroutine does not return */ KAGE_LogMessage(); } - FUN_0040bbf0(); + AnimationState::copy_assign(); iVar5 = ANM2::GetLayer((ANM2 *)puVar1); local_178 = (float *)0x0; local_174 = (float *)0x0; local_170 = (float *)0x0; local_130 = local_94 * *(float *)(iVar5 + 0x34) * (this->_spriteScale).x; local_8 = 1; - FUN_007e86b0(); + std::vector<8byte>::reserve(); iVar5 = ANM2::GetLayer((ANM2 *)puVar1); *(undefined4 *)(iVar5 + 0x28) = 0; iVar5 = ANM2::GetLayer((ANM2 *)puVar1); @@ -826399,8 +826399,8 @@ LAB_0097b218: iVar5 = this->_subtype; if (((iVar5 == 1) || (iVar5 == 2)) || (iVar5 == 3)) { local_174 = local_138; - FUN_009803e0(&local_124); - FUN_00980430(local_174,local_178); + std::vector::erase(&local_124); + std::vector::_Insert_n(local_174,local_178); iVar5 = this->_subtype; if (((iVar5 != 1) && (iVar5 != 2)) && (iVar5 != 3)) { local_138 = local_174; @@ -826548,7 +826548,7 @@ LAB_00979179: local_15c = local_150 + fVar14 + local_1a8 + fVar11; local_144 = local_150 + fVar14 + local_1a8 + local_134; local_148 = local_14c + fVar2 + local_1a0 + local_16c; - FUN_00a10dd0(&local_148,&local_160,&local_1c0); + set_quad_corner_colors(&local_148,&local_160,&local_1c0); local_208 = *(undefined4 *)&this->field_0xf0; uStack_204 = *(undefined4 *)&this->field_0xf4; fStack_200 = *(float *)&this->field_0xf8; @@ -826596,7 +826596,7 @@ LAB_00979179: /* WARNING: Subroutine does not return */ KAGE_LogMessage(); } - FUN_0040bbf0(); + AnimationState::copy_assign(); iVar5 = ANM2::GetLayer((ANM2 *)&this->field_0x48); pfVar8 = *(float **)&(this->_homingLaser).field_0x1c; local_94 = local_94 * *(float *)(iVar5 + 0x34) * (this->_spriteScale).x; @@ -826644,7 +826644,7 @@ LAB_00979179: local_1b8 = local_14c + *param_2 + local_1a0 + -local_130 * local_17c * local_94 + local_154; local_1b4 = local_150 + param_2[1] + local_1a8 + -local_130 * local_13c * local_94 + local_124 / local_120; - FUN_00a10dd0(&local_1b8,&local_1c0,&local_160); + set_quad_corner_colors(&local_1b8,&local_1c0,&local_160); FUN_00682260(); Color::operator_assign(&this->field_0xf0); FUN_004072e0(); @@ -826694,13 +826694,13 @@ LAB_0097b24c: local_144 = fVar12 + 0.0; local_160 = (float)local_12c - 2.0; local_15c = fVar12 - 0.0; - FUN_00a1d710(&local_160,&local_148,extraout_ECX); + render_color_quad(&local_160,&local_148,extraout_ECX); KColor::SetFromARGB(); local_148 = (float)local_12c + 0.0; local_144 = local_124 + 2.0; local_15c = local_124 - 2.0; local_160 = (float)local_12c - 0.0; - FUN_00a1d710(&local_160,&local_148,extraout_ECX_00); + render_color_quad(&local_160,&local_148,extraout_ECX_00); if (this->_sampleLaser != 0) { pfVar6 = *(float **)&(this->_homingLaser).field_0x1c; local_12c = (int *)0x0; @@ -826721,7 +826721,7 @@ LAB_0097b24c: local_144 = fVar12 + 0.0; local_160 = local_130 - 2.0; local_15c = fVar12 - 0.0; - iVar5 = FUN_00a1d710(&local_160,&local_148,extraout_ECX_01); + iVar5 = render_color_quad(&local_160,&local_148,extraout_ECX_01); if (iVar5 != 0) { *(float *)(iVar5 + 8) = *(float *)(iVar5 + 8) - 1.0; *(float *)(iVar5 + 0x24) = *(float *)(iVar5 + 0x24) - 1.0; @@ -826733,7 +826733,7 @@ LAB_0097b24c: local_1b8 = local_130 - 0.0; local_1bc = local_124 + 2.0; local_1b4 = local_124 - 2.0; - iVar5 = FUN_00a1d710(&local_1b8,&local_1c0,extraout_ECX_02); + iVar5 = render_color_quad(&local_1b8,&local_1c0,extraout_ECX_02); if (iVar5 != 0) { *(float *)(iVar5 + 8) = *(float *)(iVar5 + 8) - 1.0; *(float *)(iVar5 + 0x24) = *(float *)(iVar5 + 0x24) - 1.0; @@ -826765,7 +826765,7 @@ LAB_0097b24c: local_144 = fVar12 + 0.0; local_160 = local_120 - 2.0; local_15c = fVar12 - 0.0; - iVar5 = FUN_00a1d710(&local_160,&local_148,extraout_ECX_03); + iVar5 = render_color_quad(&local_160,&local_148,extraout_ECX_03); if (iVar5 != 0) { *(float *)(iVar5 + 8) = *(float *)(iVar5 + 8) - 1.0; *(float *)(iVar5 + 0x24) = *(float *)(iVar5 + 0x24) - 1.0; @@ -826777,7 +826777,7 @@ LAB_0097b24c: local_160 = local_120 - 0.0; local_144 = local_124 + 2.0; local_15c = local_124 - 2.0; - iVar5 = FUN_00a1d710(&local_160,&local_148,extraout_ECX_04); + iVar5 = render_color_quad(&local_160,&local_148,extraout_ECX_04); if (iVar5 != 0) { *(float *)(iVar5 + 8) = *(float *)(iVar5 + 8) - 1.0; *(float *)(iVar5 + 0x24) = *(float *)(iVar5 + 0x24) - 1.0; @@ -826791,11 +826791,11 @@ LAB_0097b24c: } -//@@ 0097baa0 FUN_0097baa0 +//@@ 0097baa0 Entity_Laser::UpdateHits /* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */ -void FUN_0097baa0(void) +void Entity_Laser::UpdateHits(void) { float *pfVar1; @@ -827251,14 +827251,14 @@ LAB_0097c3ac: if ((*piVar10 != 0 || piVar10[1] != 0) || (piVar10[2] != 0 || piVar10[3] != 0)) { if ((in_ECX[0xef] == 0) || (*(int *)(in_ECX[0xef] + 0x28) != 8)) { if (local_64 != 0) { - FUN_007c2d50(10); + get_tear_trinket_multiplier(10); } } else { pppppbVar19 = (byte *****)((float)*(int *)(DAT_00c71678 + 0x264f8) * 1.6); local_6c[0] = pppppbVar19; if (local_64 != 0) { - FUN_007c2d50(10); + get_tear_trinket_multiplier(10); local_60 = pppppbVar19; } } @@ -827483,14 +827483,14 @@ undefined4 __thiscall Entity_Laser::RenderShadowLayer(Entity_Laser *this,float * /* WARNING: Subroutine does not return */ KAGE_LogMessage(); } - FUN_0040bbf0(); + AnimationState::copy_assign(); iVar3 = ANM2::GetLayer((ANM2 *)&this->field_0x48); local_d0 = (float *)0x0; local_cc = (float *)0x0; local_c8 = (float *)0x0; local_c4 = local_94 * (this->_spriteScale).x * *(float *)(iVar3 + 0x34); local_8 = 1; - FUN_007e86b0(); + std::vector<8byte>::reserve(); iVar3 = ANM2::GetLayer((ANM2 *)&this->field_0x48); *(undefined4 *)(iVar3 + 0x28) = 0; iVar3 = ANM2::GetLayer((ANM2 *)&this->field_0x48); @@ -827610,12 +827610,12 @@ undefined4 __thiscall Entity_Laser::RenderShadowLayer(Entity_Laser *this,float * } iVar3 = this->_subtype; if (((iVar3 == 1) || (iVar3 == 2)) || (iVar3 == 3)) { - FUN_009803e0(&local_d8); - FUN_00980430(local_cc,local_d0); + std::vector::erase(&local_d8); + std::vector::_Insert_n(local_cc,local_d0); } pfVar9 = local_cc; local_ec = 0.0; - cVar2 = FUN_0096ce30(); + cVar2 = Entity_Laser::is_thick_variant(); if (((cVar2 != '\0') || (this->_variant == 5)) || (this->_variant == 8)) { puVar6 = &DAT_00c79118; if ((DAT_00c7911c & 1) == 0) { @@ -827745,7 +827745,7 @@ undefined4 __thiscall Entity_Laser::RenderShadowLayer(Entity_Laser *this,float * local_15c = local_118 + fVar11 + 0.0; local_118 = local_118 + fVar12 + 0.0; local_11c = local_11c + local_fc + local_bc; - FUN_00a10dd0(&local_11c,&local_160,&local_158); + set_quad_corner_colors(&local_11c,&local_160,&local_158); local_40 = 0; local_30 = 0; uStack_2c = 0; @@ -827789,7 +827789,7 @@ undefined4 __thiscall Entity_Laser::RenderShadowLayer(Entity_Laser *this,float * /* WARNING: Subroutine does not return */ KAGE_LogMessage(); } - FUN_0040bbf0(); + AnimationState::copy_assign(); iVar3 = ANM2::GetLayer((ANM2 *)&this->field_0x48); pfVar9 = *(float **)&(this->_homingLaser).field_0x1c; local_180 = fStack_a8 + 0.01; @@ -827831,7 +827831,7 @@ undefined4 __thiscall Entity_Laser::RenderShadowLayer(Entity_Laser *this,float * local_150 = *param_2 + local_fc + (float)local_120 + local_c4 * -local_b4 * local_f4; local_14c = param_2[1] + (float)local_d8 / local_b0 + local_c4 * (float)local_104 * -local_b4 + 0.0; - FUN_00a10dd0(&local_150,&local_158,&local_160); + set_quad_corner_colors(&local_150,&local_158,&local_160); FUN_00682260(); local_30 = 0; uStack_2c = 0; @@ -827980,12 +827980,12 @@ void FUN_0097e3c0(Entity *param_1) local_20 = 8; local_1c = 0; local_24 = (undefined4 *)(in_ECX + 0x428); - FUN_0067d1f0(iVar7,*(undefined4 *)(in_ECX + 0x428),*(undefined4 *)(in_ECX + 0x42c), + get_tear_flags_from_player(iVar7,*(undefined4 *)(in_ECX + 0x428),*(undefined4 *)(in_ECX + 0x42c), *(undefined4 *)(in_ECX + 0x430),*(undefined4 *)(in_ECX + 0x434)); Entity_Tear::ApplyTearFlagEffects (*(undefined4 *)(in_ECX + 0x428),*(undefined4 *)(in_ECX + 0x42c), *(undefined4 *)(in_ECX + 0x430),*(undefined4 *)(in_ECX + 0x434)); - if (((param_1->_flags & 0x100000000000000) != 0) && (cVar3 = FUN_0096ce30(), cVar3 != '\0')) { + if (((param_1->_flags & 0x100000000000000) != 0) && (cVar3 = Entity_Laser::is_thick_variant(), cVar3 != '\0')) { local_10 = 0x4d; seed_fart_sound_override(); SoundEffects::Play(local_10,0x3f333333,8,0,0x3f800000,0); @@ -828059,10 +828059,10 @@ void __thiscall Entity_Laser::Interpolate(Entity_Laser *this) (this->_pos).y = fVar1 * (this->_velocity).y * 0.5 + (this->_pos).y; } else if (iVar2 != 3) { - FUN_00973c60(); + Entity_Laser::update_laser(); return; } - FUN_0097baa0(); + Entity_Laser::UpdateHits(); } return; } @@ -828361,12 +828361,12 @@ void __thiscall Entity_Laser::PostRender(Entity_Laser *this) local_c = fVar7 - fVar15; local_18 = fVar9 - fVar13; local_14 = fVar14 - fVar15; - FUN_00a1d710(&local_18,&local_10,puVar4,puVar4,0x3f800000); + render_color_quad(&local_18,&local_10,puVar4,puVar4,0x3f800000); local_10 = fVar8 + fVar13; local_18 = fVar13 + fVar9; local_c = fVar7 + fVar15; local_14 = fVar15 + fVar14; - FUN_00a1d710(&local_18,&local_10,puVar4,puVar4,0x3f800000); + render_color_quad(&local_18,&local_10,puVar4,puVar4,0x3f800000); } else { local_60 = 0; @@ -828424,12 +828424,12 @@ void __thiscall Entity_Laser::PostRender(Entity_Laser *this) fVar9 = (fVar7 * fVar6 + fVar8 * fVar11) * this->_size * 0.65; local_2c = fVar14 - fVar9; local_24 = fVar13 - fVar9; - FUN_00a1d710(&local_28,&local_30,puVar4,puVar4,0x3f800000); + render_color_quad(&local_28,&local_30,puVar4,puVar4,0x3f800000); local_20 = fVar10 + fVar15; local_1c = fVar14 + fVar9; local_14 = fVar9 + fVar13; local_18 = fVar12 + fVar15; - FUN_00a1d710(&local_18,&local_20,puVar4,puVar4,0x3f800000); + render_color_quad(&local_18,&local_20,puVar4,puVar4,0x3f800000); if (local_60 == 0) { switch(this->_variant) { case 1: @@ -828479,7 +828479,7 @@ void __thiscall Entity_Laser::PostRender(Entity_Laser *this) sin(); fVar6 = fVar6 * this->_size * 0.65 + fVar9; local_c = fVar6; - FUN_00a1d710(&fStack_38,&local_10,puVar4,puVar4,0x3f800000); + render_color_quad(&fStack_38,&local_10,puVar4,puVar4,0x3f800000); iVar5 = iVar5 + 1; fStack_38 = fVar14; fStack_34 = fVar6; @@ -829045,9 +829045,9 @@ LAB_0098039e: } -//@@ 009803e0 FUN_009803e0 +//@@ 009803e0 std::vector::erase -void FUN_009803e0(undefined4 *param_1,undefined4 *param_2,undefined4 *param_3) +void std::vector::erase(undefined4 *param_1,undefined4 *param_2,undefined4 *param_3) { undefined4 *puVar1; @@ -829069,9 +829069,9 @@ void FUN_009803e0(undefined4 *param_1,undefined4 *param_2,undefined4 *param_3) } -//@@ 00980430 FUN_00980430 +//@@ 00980430 std::vector::_Insert_n -void FUN_00980430(int param_1,int param_2,int param_3) +void std::vector::_Insert_n(int param_1,int param_2,int param_3) { uint uVar1; @@ -829270,11 +829270,11 @@ LAB_0098071a: } -//@@ 009807a0 FUN_009807a0 +//@@ 009807a0 Game::ShowFortuneText /* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */ -void FUN_009807a0(char *param_1) +void Game::ShowFortuneText(char *param_1) { uint uVar1; @@ -829378,7 +829378,7 @@ void FUN_009807a0(char *param_1) else { if (local_20 == 0x7fffffff) { /* WARNING: Subroutine does not return */ - FUN_0040ccc0(); + std::string::_Xlen(); } uVar12 = local_20 + 1 | 0xf; if (uVar12 < 0x80000000) { @@ -830271,14 +830271,14 @@ LAB_00981e4c: local_78 = (local_64 + 72.0 + local_6c) - fVar11 * 0.5; local_74 = (local_68 + 124.0 + local_70) - fVar10 * 0.5; uVar14 = extraout_ECX_00; - FUN_00a10e70(&local_78,pfVar4,extraout_ECX_00); + render_quad_set_rect(&local_78,pfVar4,extraout_ECX_00); KAGE::SmartPointer::operator_assign(piVar1); apply_sprite_shader_params(1,pfVar4,uVar14); (**(code **)(*(int *)*piVar1 + 0x14))(local_b0,local_120,&DAT_00c37944); pcVar8 = (char *)extraout_ECX_01; } LAB_00982038: - FUN_00a14050(pcVar8); + shader_cache_find(pcVar8); return; } @@ -830414,14 +830414,14 @@ void FUN_00982100(void) local_2ac = 0; local_2a4 = in_ECX; local_24 = uVar5; - FUN_006856c0(&local_2ac); - puVar6 = (undefined4 *)FUN_00684f30(uVar5); + std::vector::resize(&local_2ac); + puVar6 = (undefined4 *)std::deque::back(uVar5); if ((byte *)(puVar6 + 1) != (byte *)0x0) { *(byte *)(puVar6 + 1) = (byte)(DAT_00c798e4 >> 5) & 1; } *puVar6 = DAT_00c79948; - FUN_00a18300(in_ECX[0x8e],0); - FUN_00a18230(); + KAGE_Graphics::SetRenderTarget(in_ECX[0x8e],0); + RenderTarget::Clear(); piVar16 = DAT_00c7169c; local_298 = DAT_00c7169c; if ((char)DAT_00c7169c[0x8364] == '\0') goto LAB_00983081; @@ -830621,7 +830621,7 @@ LAB_009829b7: if (0xf < *(uint *)(local_2b0 + 0x14)) { pcVar13 = *(char **)local_2b0; } - FUN_00421680(local_2b0,local_2b0,&DAT_00b656ec,1,pcVar13,uVar5); + std::string::concat(local_2b0,local_2b0,&DAT_00b656ec,1,pcVar13,uVar5); pcVar13 = local_2b0; local_14._0_1_ = 3; ppppuVar11 = local_248; @@ -830659,7 +830659,7 @@ LAB_009829b7: if (0xf < (uint)piVar16[0xb]) { piVar10 = (int *)*piVar17; } - FUN_00421680(local_2b4,piVar17,&DAT_00b656ec,1,piVar10,iVar8); + std::string::concat(local_2b4,piVar17,&DAT_00b656ec,1,piVar10,iVar8); local_14._0_1_ = 4; ppppuVar11 = local_248; if (0xf < local_234) { @@ -830730,13 +830730,13 @@ LAB_009829b7: if (piVar16[0x10] == 0x7fffffff) { LAB_009830f2: /* WARNING: Subroutine does not return */ - FUN_0040ccc0(); + std::string::_Xlen(); } piVar15 = piVar17; if (0xf < (uint)piVar16[0x11]) { piVar15 = (int *)*piVar17; } - FUN_00421680(local_2b4,piVar17,&DAT_00b656ec,1,piVar15,piVar16[0x10]); + std::string::concat(local_2b4,piVar17,&DAT_00b656ec,1,piVar15,piVar16[0x10]); local_14._0_1_ = 5; ppppuVar11 = local_248; if (0xf < local_234) { @@ -830906,13 +830906,13 @@ LAB_00983056: local_260 = (undefined4 ****)((uint)local_260 & 0xffffff00); } LAB_00983081: - FUN_00a19180(1); + _glfw_context_reset(1); if (DAT_00c79790 == 0) { /* WARNING: Subroutine does not return */ KAGE_LogMessage(0x10,"PopRenderTarget: stack is empty!\n"); } - puVar6 = (undefined4 *)FUN_00684f30(); - FUN_00a18300(*puVar6,*(undefined1 *)(puVar6 + 1)); + puVar6 = (undefined4 *)std::deque::back(); + KAGE_Graphics::SetRenderTarget(*puVar6,*(undefined1 *)(puVar6 + 1)); DAT_00c79790 = DAT_00c79790 + -1; if (DAT_00c79790 == 0) { DAT_00c7978c = 0; @@ -832003,7 +832003,7 @@ void GridEntity_PressurePlate::Reward(void) if (uVar13 < 0xe) { ExceptionList = &local_1c; puStack_20 = local_68 + 100; - FUN_00823080(uVar13 - 10); + Room::ClearGreedWaveSpawns(uVar13 - 10); ExceptionList = local_1c; return; } @@ -833010,7 +833010,7 @@ LAB_00985e94: local_58 = 0; local_54 = 0; local_8 = 0; - FUN_00a1af90(local_34,&local_80,&local_6c); + Font::DrawString(local_34,&local_80,&local_6c); ExceptionList = local_10; return; } @@ -834639,15 +834639,15 @@ void FUN_0098a040(void) local_64 = DAT_00c72a20; if (local_49 != '\0') { local_48 = 0; - FUN_006856c0(&local_48); - puVar5 = (undefined4 *)FUN_00684f30(); + std::vector::resize(&local_48); + puVar5 = (undefined4 *)std::deque::back(); if ((byte *)(puVar5 + 1) != (byte *)0x0) { *(byte *)(puVar5 + 1) = (byte)(DAT_00c798e4 >> 5) & 1; } *puVar5 = DAT_00c79948; - FUN_00a18300(DAT_00c798b0,1); + KAGE_Graphics::SetRenderTarget(DAT_00c798b0,1); } - FUN_00a18230(); + RenderTarget::Clear(); DAT_00c79904 = 1; DAT_00c79900 = 0; if ((DAT_00c798e4 & 4) == 0) { @@ -834657,9 +834657,9 @@ void FUN_0098a040(void) DAT_00c7990c = 1; DAT_00c79910 = 7; uVar6 = KColor::SetFromARGB(0xffccbebb); - uVar6 = FUN_00a10d00(DAT_00c78edc,uVar6); + uVar6 = render_quad_set_uniform_color(DAT_00c78edc,uVar6); puVar5 = (undefined4 *)0x98a14f; - FUN_00a1dfd0(uVar6); + render_color_shader_pass(uVar6); local_48 = CONCAT44(*(float *)(DAT_00c72a20 + 0x48) + *(float *)(iVar9 + 0x1d8), *(float *)(DAT_00c72a20 + 0x44) + *(float *)(iVar9 + 0x1d4)); if (*(char *)(iVar9 + 0x2e5) != '\0') { @@ -834787,7 +834787,7 @@ switchD_0098a35a_default: apply_sprite_shader_params(1,puVar5,puVar12); pcVar3 = *(code **)(*(int *)*puVar8 + 0x1c); KColor::SetFromARGB(0xffffffff); - uVar6 = FUN_00a10d00(DAT_00c78edc + 0.5,extraout_ECX); + uVar6 = render_quad_set_uniform_color(DAT_00c78edc + 0.5,extraout_ECX); (*pcVar3)(uVar6,&DAT_00c37944); iVar9 = local_64; local_48 = (ulonglong)(uint)(DAT_00c78edc - 148.0) << 0x20; @@ -834842,7 +834842,7 @@ switchD_0098a35a_default: local_58 = 0x3f800000; local_54 = *(undefined4 *)(local_64 + 0x34); KColor::SetFromARGB(0xffffffff); - uVar6 = FUN_00a10d00(DAT_00c78edc + 0.5,extraout_ECX_02); + uVar6 = render_quad_set_uniform_color(DAT_00c78edc + 0.5,extraout_ECX_02); (*pcVar3)(uVar6,&local_60); local_b8 = 0; uStack_b4 = 0; @@ -834863,9 +834863,9 @@ switchD_0098a35a_default: } } if (local_49 != '\0') { - FUN_00a19180(1); - FUN_006836c0(); - FUN_00a18230(); + _glfw_context_reset(1); + pop_render_target(); + RenderTarget::Clear(); puVar7 = &DAT_00c79348; if ((DAT_00c7934c & 1) == 0) { puVar7 = DAT_00c379b8; @@ -834876,9 +834876,9 @@ switchD_0098a35a_default: DAT_00c7990c = 1; DAT_00c79910 = 0; DAT_00c379b8 = puVar7; - FUN_00a14c00("Amount",8,iVar9 + 0xf7cc,puVar7); - FUN_00a14c00("Brightness",8,iVar9 + 0xf7d0,extraout_ECX_03); - FUN_00a14c00("Contrast",8,iVar9 + 0xf7d4,extraout_ECX_04); + Shader::set_uniform("Amount",8,iVar9 + 0xf7cc,puVar7); + Shader::set_uniform("Brightness",8,iVar9 + 0xf7d0,extraout_ECX_03); + Shader::set_uniform("Contrast",8,iVar9 + 0xf7d4,extraout_ECX_04); uStack_28 = 0; uStack_38 = 0; uStack_2c = 0; @@ -834889,7 +834889,7 @@ switchD_0098a35a_default: uStack_24 = 0x3f800000; local_18 = local_18 & 0xffffff00; KColor::SetFromARGB(0xffffffff); - FUN_00a10d00(DAT_00c78edc,extraout_ECX_05); + render_quad_set_uniform_color(DAT_00c78edc,extraout_ECX_05); local_60 = *(undefined4 *)(iVar9 + 0xf7c0); local_5c = *(undefined4 *)(iVar9 + 0xf7c4); local_58 = *(undefined4 *)(iVar9 + 0xf7c8); @@ -834907,7 +834907,7 @@ switchD_0098a35a_default: DAT_00c79910 = 7; } uVar6 = 1; - FUN_00a14050(puVar5); + shader_cache_find(puVar5); if (*(char *)(iVar9 + 0xd) != '\0') { DAT_00c79904 = 1; if ((DAT_00c798e4 & 4) == 0) { @@ -834922,8 +834922,8 @@ switchD_0098a35a_default: local_60 = 0; local_5c = 0; local_58 = 0; - FUN_00a10d00(DAT_00c78edc,&local_60); - FUN_00a1dfd0(local_148); + render_quad_set_uniform_color(DAT_00c78edc,&local_60); + render_color_shader_pass(local_148); FUN_009522b0(); } if (*(char *)(iVar9 + 0x14) != '\0') { @@ -834940,8 +834940,8 @@ switchD_0098a35a_default: local_58 = *(undefined4 *)(iVar9 + 0x24); local_54 = *(undefined4 *)(iVar9 + 0x18); DAT_00c79904 = uVar6; - FUN_00a10d00(DAT_00c78edc,&local_60); - FUN_00a1dfd0(local_148); + render_quad_set_uniform_color(DAT_00c78edc,&local_60); + render_color_shader_pass(local_148); if (*(float *)(iVar9 + 0x18) <= 0.0) { *(undefined1 *)(iVar9 + 0x14) = 0; *(undefined4 *)(iVar9 + 0x18) = 0; @@ -835590,11 +835590,11 @@ float * __thiscall Minimap::GetDisplayedSize(Minimap *this,float *param_2) } -//@@ 0098b5e0 FUN_0098b5e0 +//@@ 0098b5e0 Minimap::refresh_room_icons /* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */ -void FUN_0098b5e0(void) +void Minimap::refresh_room_icons(void) { int iVar1; @@ -835677,14 +835677,14 @@ void FUN_0098b5e0(void) local_b8 = 0; local_78 = puVar8; local_30 = in_ECX; - FUN_006856c0(); - puVar5 = (undefined4 *)FUN_00684f30(); + std::vector::resize(); + puVar5 = (undefined4 *)std::deque::back(); if ((byte *)(puVar5 + 1) != (byte *)0x0) { *(byte *)(puVar5 + 1) = (byte)(DAT_00c798e4 >> 5) & 1; } *puVar5 = DAT_00c79948; - FUN_00a18300(*(undefined4 *)(in_ECX + 0x114),0); - FUN_00a18230(); + KAGE_Graphics::SetRenderTarget(*(undefined4 *)(in_ECX + 0x114),0); + RenderTarget::Clear(); DAT_00c79904 = 1; DAT_00c79900 = 0; if ((DAT_00c798e4 & 4) == 0) { @@ -835695,8 +835695,8 @@ void FUN_0098b5e0(void) DAT_00c79910 = 7; uVar13 = DAT_00c71678->_currentRoomIndex; if ((int)uVar13 < 0) { - FUN_00a19180(); - FUN_006836c0(); + _glfw_context_reset(); + pop_render_target(); } else { if (*(int *)&DAT_00c71678[1].field_0xe24c == 0x20) { @@ -836952,13 +836952,13 @@ LAB_0098cb7c: local_5c = (float)((int)local_5c + 1); } while ((int)local_5c < *(int *)(iVar12 + 0x138) + (int)fVar7); } - FUN_00a19180(); + _glfw_context_reset(); if (DAT_00c79790 == 0) { /* WARNING: Subroutine does not return */ KAGE_LogMessage(0x10,"PopRenderTarget: stack is empty!\n"); } - puVar5 = (undefined4 *)FUN_00684f30(); - FUN_00a18300(*puVar5,*(undefined1 *)(puVar5 + 1)); + puVar5 = (undefined4 *)std::deque::back(); + KAGE_Graphics::SetRenderTarget(*puVar5,*(undefined1 *)(puVar5 + 1)); DAT_00c79790 = DAT_00c79790 + -1; if (DAT_00c79790 == 0) { DAT_00c7978c = 0; @@ -837218,8 +837218,8 @@ void __thiscall Minimap::Refresh(void) { int iVar1; - FUN_0098b5e0(); - FUN_0098b5e0(); + Minimap::refresh_room_icons(); + Minimap::refresh_room_icons(); iVar1 = DAT_00c71678; if (*(int *)(DAT_00c71678 + 0x22ed4) != 2) { *(undefined4 *)(DAT_00c71678 + 0x22ed4) = 1; @@ -837934,7 +837934,7 @@ void FUN_0098e4d0(void) if (cVar5 == '\0') { KColor::SetFromARGB(); iVar8 = *(int *)(*(int *)((int)in_ECX + 0x28c) + 0x14); - FUN_00a10d00(((float)((double)iVar8 + (double)(&DAT_00bacb00)[-(iVar8 >> 0x1f)]) + + render_quad_set_uniform_color(((float)((double)iVar8 + (double)(&DAT_00bacb00)[-(iVar8 >> 0x1f)]) + fVar11) - local_150,&local_114); (**(code **)(**(int **)((int)in_ECX + 0x28c) + 0x1c))(auStack_80,&local_100); } @@ -837951,7 +837951,7 @@ void FUN_0098e4d0(void) local_b0 = local_b0 & 0xffffff00; KColor::SetFromARGB(); iVar8 = *(int *)(iVar8 + 0x14); - FUN_00a10d00(((float)((double)iVar8 + (double)(&DAT_00bacb00)[-(iVar8 >> 0x1f)]) + + render_quad_set_uniform_color(((float)((double)iVar8 + (double)(&DAT_00bacb00)[-(iVar8 >> 0x1f)]) + fVar11) - local_150,extraout_ECX_00); (**(code **)(**(int **)((int)in_ECX + 0x28c) + 0x14))(&local_d0,auStack_80,&local_100) ; @@ -838064,14 +838064,14 @@ void FUN_0098ef30(void) local_84 = (pGVar2->_screenShakeOffset).x; local_88 = (pGVar2->_screenShakeOffset).y; iVar4 = FUN_00a1b8e0(" 00:00:00",0xffffffff); - uVar5 = FUN_009586f0(local_74,"#MINIMAP_TIME_LABEL"); + uVar5 = string_table_translate(local_74,"#MINIMAP_TIME_LABEL"); iVar6 = FUN_00a1b8e0(uVar5,0xffffffff); iVar13 = DAT_00c7169c + 0x4a920; local_78 = (float)((double)iVar6 + (double)(&DAT_00bacb00)[-(iVar6 >> 0x1f)]) + (float)((double)iVar4 + (double)(&DAT_00bacb00)[-(iVar4 >> 0x1f)]); local_6c = local_78; iVar4 = FUN_00a1b8e0(" 000000",0xffffffff); - uVar5 = FUN_009586f0(iVar13,"#MINIMAP_TIME_LABEL"); + uVar5 = string_table_translate(iVar13,"#MINIMAP_TIME_LABEL"); iVar6 = FUN_00a1b8e0(uVar5,0xffffffff); local_74 = (float)((double)iVar6 + (double)(&DAT_00bacb00)[-(iVar6 >> 0x1f)]) + (float)((double)iVar4 + (double)(&DAT_00bacb00)[-(iVar4 >> 0x1f)]); @@ -838166,10 +838166,10 @@ void FUN_0098ef30(void) uStack_94 = 0; local_90 = 0; local_14 = 0; - uVar5 = FUN_009586f0(DAT_00c7169c + 0x4a920,"#MINIMAP_TIME_LABEL"); + uVar5 = string_table_translate(DAT_00c7169c + 0x4a920,"#MINIMAP_TIME_LABEL"); local_6c = local_84 + local_6c; local_7c = local_70 + 30.0 + local_88; - FUN_00a1af90(uVar5,&local_bc,&local_a8); + Font::DrawString(uVar5,&local_bc,&local_a8); local_a8 = 0; local_a4 = 0xffff; local_a0 = 0; @@ -838178,7 +838178,7 @@ void FUN_0098ef30(void) uStack_94 = 0; local_90 = 0; local_14 = 1; - FUN_00a1af90(local_68,&local_bc,&local_a8); + Font::DrawString(local_68,&local_bc,&local_a8); local_14 = 0xffffffff; LAB_0098f558: if (((DAT_00c71678->_difficulty != 2) && (DAT_00c71678->_difficulty != 3)) && @@ -838189,9 +838189,9 @@ LAB_0098f558: auStack_b4[0] = 0x3f800000; uVar5 = FontSettings::constructor(); local_14 = 2; - uVar12 = FUN_009586f0(DAT_00c7169c + 0x4a920,"#MINIMAP_SCORE_LABEL"); + uVar12 = string_table_translate(DAT_00c7169c + 0x4a920,"#MINIMAP_SCORE_LABEL"); local_70 = local_70 + 46.0 + local_88; - FUN_00a1af90(uVar12,&local_bc,uVar5); + Font::DrawString(uVar12,&local_bc,uVar5); local_14 = 0xffffffff; uStack_94 = 0; local_90 = 0; @@ -838200,7 +838200,7 @@ LAB_0098f558: FUN_00a1b8e0(local_68,0xffffffff); uVar5 = FontSettings::constructor(); local_14 = 3; - FUN_00a1af90(local_68,&local_bc,uVar5); + Font::DrawString(local_68,&local_bc,uVar5); } ExceptionList = local_1c; return; @@ -839875,7 +839875,7 @@ void FUN_00990a40(float *param_1,float param_2,float param_3) } } pfStack_101e0[5] = *(float *)(*(int *)(iVar10 + 0x18300) + 0x1d18); - iVar5 = FUN_0074bae0(); + iVar5 = _RoomDescriptor::GetShapeGridCount(); if ((iVar5 == 4) && (*(int *)(iVar10 + 0x18304) == -10)) { pfVar21[3] = 9.80909e-45; pfVar21[4] = 0.0; @@ -840067,13 +840067,13 @@ LAB_00990f55: if (0x7fffffffU - local_44 < uVar6) { LAB_00993701: /* WARNING: Subroutine does not return */ - FUN_0040ccc0(); + std::string::_Xlen(); } pppppppuVar12 = local_54; if (0xf < local_40) { pppppppuVar12 = local_54[0]; } - FUN_00421680(pfStack_101ec,uVar6,pppppppuVar12,local_44,pcVar27,uVar6); + std::string::concat(pfStack_101ec,uVar6,pppppppuVar12,local_44,pcVar27,uVar6); uStack_10218 = uStack_10218 | 1; if (0xf < uStack_b8) { if ((0xfff < uStack_b8 + 1) && @@ -840799,7 +840799,7 @@ LAB_00991a0b: if (0xf < local_40) { pppppppuVar12 = local_54[0]; } - FUN_00421680(pfStack_101ec,uVar6,pppppppuVar12,local_44,pcVar27,uVar6); + std::string::concat(pfStack_101ec,uVar6,pppppppuVar12,local_44,pcVar27,uVar6); uStack_10218 = uStack_10218 | 2; if (0xf < uStack_70) { if ((0xfff < uStack_70 + 1) && @@ -842148,9 +842148,9 @@ void FUN_00993840(void) } -//@@ 00993a70 FUN_00993a70 +//@@ 00993a70 Camera::Update -void FUN_00993a70(char param_1) +void Camera::Update(char param_1) { char cVar1; @@ -842467,7 +842467,7 @@ void FUN_00994120(int param_1) fStack_2c = fStack_5c; fStack_28 = fStack_68; fStack_24 = fStack_5c; - FUN_00a10e70(&DAT_00c7b640,&local_8c,&local_84); + render_quad_set_rect(&DAT_00c7b640,&local_8c,&local_84); if (*(char *)(iVar8 + 0x48) == '\0') { if ((*(float *)(iVar8 + 0x3c) == fVar10) || (local_48 <= 0.9)) goto LAB_0099461a; iVar7 = **(int **)(iVar8 + 4); @@ -842503,7 +842503,7 @@ void FUN_00994120(int param_1) (double)(&DAT_00bacb00)[-(*(int *)(iVar7 + 0x1c) >> 0x1f)]); local_84 = fStack_7c; fStack_80 = fStack_7c; - FUN_00a14c00("WrapSize",9,&local_94,iVar7); + Shader::set_uniform("WrapSize",9,&local_94,iVar7); LAB_0099461a: iVar7 = **(int **)(iVar8 + 4); } @@ -842826,7 +842826,7 @@ void FUN_009948f0(void) fStack_140 = fStack_150; fStack_138 = fStack_148; fStack_134 = fStack_13c; - FUN_00a10e70(); + render_quad_set_rect(); puVar7 = &DAT_00c79118; if ((DAT_00c7911c & 1) == 0) { puVar7 = DAT_00c379b8; @@ -842972,7 +842972,7 @@ void FUN_009948f0(void) uStack_188 = 0x3f800000; fStack_184 = 1.0; fStack_dc = fStack_e4; - FUN_00a10dd0(); + set_quad_corner_colors(); fVar11 = pfVar3[9]; piStack_1bc = *(int **)(iStack_1a4 + 0x1c + (int)fVar11); if (*(int *)((int)piStack_1bc + 0xc + iVar14) != 0) { @@ -843194,7 +843194,7 @@ void FUN_009956e0(undefined4 param_1) local_ac = DAT_00c78dc4; local_a8 = DAT_00c78edc; local_a0 = in_ECX; - FUN_00a10e70(&DAT_00c7b640,&local_ac,param_1); + render_quad_set_rect(&DAT_00c7b640,&local_ac,param_1); iVar8 = *(int *)(in_ECX + 0x18); iVar6 = *(int *)(in_ECX + 0x1c) - iVar8; local_b8 = 0; @@ -843383,7 +843383,7 @@ void FUN_00995af0(void) local_58 = local_68; local_50 = local_60; local_4c = local_54; - FUN_00a10e70(&local_44,&local_3c,&local_7c); + render_quad_set_rect(&local_44,&local_3c,&local_7c); (**(code **)(**(int **)(iVar5 + 4 + iVar6) + 0x14))(&local_68,local_f0,&DAT_00c37944); local_1c = local_1c + 1; local_20 = local_20 + 0x14; @@ -843496,9 +843496,9 @@ undefined4 * FUN_00995f40(undefined4 *param_1) } -//@@ 009960b0 FUN_009960b0 +//@@ 009960b0 Game::start_poop_cloud_screen_effect -void FUN_009960b0(undefined4 *param_1) +void Game::start_poop_cloud_screen_effect(undefined4 *param_1) { int iVar1; @@ -845596,8 +845596,8 @@ void FUN_00998880(void) uStack_134 = 0x3f008081; local_130 = 0; local_24 = uVar2; - uVar3 = FUN_00a10d00(DAT_00c78edc,&local_140); - FUN_00a1dfd0(uVar3); + uVar3 = render_quad_set_uniform_color(DAT_00c78edc,&local_140); + render_color_shader_pass(uVar3); local_118 = DAT_00c78dc4 * 0.5 + 16.0; local_114 = DAT_00c78edc * 0.5 + 16.0; if (*(int *)(DAT_00c7169c + 0x4b3d8) != *(int *)(DAT_00c7169c + 0x4b3dc)) { @@ -845866,7 +845866,7 @@ LAB_00998f1b: local_14._0_1_ = 6; KColor::SetFromARGB(0xff362f2d); local_100 = local_100 - 4.0; - FUN_00a1af90(&local_d4,extraout_ECX,&local_b4); + Font::DrawString(&local_d4,extraout_ECX,&local_b4); local_d4 = 0; uStack_d0 = 0; uStack_cc = 0; @@ -845885,7 +845885,7 @@ LAB_00998f1b: local_9c = 0; local_14 = CONCAT31(local_14._1_3_,7); KColor::SetFromARGB(0xff362f2d); - FUN_00a1af90(&local_d4,extraout_ECX_00,&local_b4); + Font::DrawString(&local_d4,extraout_ECX_00,&local_b4); uVar2 = local_e0; } } @@ -845967,7 +845967,7 @@ LAB_0099978e: piVar5 = (int *)*piVar5; } local_110 = local_128; - FUN_00a1aec0(piVar5,&local_12c,&local_140,&local_f8); + Font::DrawStringScaled(piVar5,&local_12c,&local_140,&local_f8); puVar6 = &DAT_00c78f08; local_128 = local_110 + 18.0; local_10c = 0.0; @@ -845982,7 +845982,7 @@ LAB_0099978e: if (0xf < (uint)puVar6[5]) { puVar13 = (undefined4 *)*puVar6; } - pcVar8 = (char *)FUN_009586f0(DAT_00c7169c + 0x4a920,puVar13); + pcVar8 = (char *)string_table_translate(DAT_00c7169c + 0x4a920,puVar13); uStack_cc = 0; uStack_c8 = 0xf; local_dc[0] = (undefined4 ******)0x0; @@ -846010,7 +846010,7 @@ LAB_0099978e: uStack_13c = 0x3e3cbcbd; uStack_138 = 0x3e34b4b5; uStack_134 = 0x3f800000; - FUN_00a1aec0(ppppppuVar9,&local_12c,&local_140,&local_b4); + Font::DrawStringScaled(ppppppuVar9,&local_12c,&local_140,&local_b4); local_128 = local_110 + 15.0; local_10c = (float)((int)local_10c + 1); local_14 = CONCAT31(local_14._1_3_,2); @@ -846563,7 +846563,7 @@ void __thiscall GridEntity_Decoration::Update(GridEntity_Decoration *this) ANM2::GetAnimation(); iVar3 = local_3c; local_14 = 0; - iVar2 = FUN_00557bd0(0,"Puddle",6); + iVar2 = std::string::find(0,"Puddle",6); if (iVar2 != -1) { local_50 = &this->_sprite; if ((this->_sprite)._animState._animData != (void *)0x0) { @@ -847088,7 +847088,7 @@ LAB_0099b3bd: goto LAB_0099b160; LAB_0099b406: ANM2::GetAnimation(local_5c); - iVar5 = FUN_00557bd0(0,"Puddle",6); + iVar5 = std::string::find(0,"Puddle",6); if (0xf < local_48) { uVar6 = local_48 + 1; uVar14 = local_5c[0]; @@ -847782,9 +847782,9 @@ void FUN_0099c310(void) int in_ECX; FID_conflict__Tidy((void *)(in_ECX + 0x48)); - FUN_00426980(); - FUN_00426980(); - FUN_00426980(); + std::vector::_Tidy(); + std::vector::_Tidy(); + std::vector::_Tidy(); return; } @@ -850039,14 +850039,14 @@ undefined4 FUN_009a0520(float *param_1,int param_2) if (cVar3 != '\0') { if (uVar5 < 2) { if (2 < (uint)(iVar6 - (int)local_14 >> 3)) { - FUN_009803e0(&local_14,(int)local_14 + 0x10,*(undefined4 *)((int)local_1c + 0x20)); + std::vector::erase(&local_14,(int)local_14 + 0x10,*(undefined4 *)((int)local_1c + 0x20)); } if (uVar5 == 0) { return 1; } } else { - FUN_009803e0(&local_14,(int)local_14 + uVar5 * 8,*(undefined4 *)((int)local_1c + 0x20)); + std::vector::erase(&local_14,(int)local_14 + uVar5 * 8,*(undefined4 *)((int)local_1c + 0x20)); } fVar2 = *pfVar1; uVar5 = *(int *)((int)in_ECX + 0x20) - (int)fVar2 >> 3; @@ -850578,7 +850578,7 @@ FUN_009a12b0(float *param_1,float *param_2,undefined4 param_3,undefined4 param_4 } ExceptionList = &local_10; local_18 = in_ECX; - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); local_8 = 0; param_4 = 1; if (1 < (*(int *)(in_ECX + 0x20) - *(int *)(in_ECX + 0x1c) >> 3) - 1U) { @@ -850980,7 +850980,7 @@ void FUN_009a1970(void) int in_ECX; *(undefined1 *)(in_ECX + 0x54cd) = 0; - FUN_009a1a30(); + HUD::LoadGraphics(); FUN_009a19a0(); FUN_0083c5f0(); return; @@ -851019,11 +851019,11 @@ void FUN_009a19a0(void) } -//@@ 009a1a30 FUN_009a1a30 +//@@ 009a1a30 HUD::LoadGraphics /* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */ -void FUN_009a1a30(void) +void HUD::LoadGraphics(void) { int *piVar1; @@ -851917,10 +851917,10 @@ void __thiscall HUD::ShowItemText(HUD *this,int param_2,int *param_3) } if (*pcVar10 == '#') { local_b9 = 0; - FUN_00a26af0("Players",*(undefined4 *)(DAT_00c7169c + 0x4a920),pcVar10 + 1,&local_b9); + StringTable::get_string("Players",*(undefined4 *)(DAT_00c7169c + 0x4a920),pcVar10 + 1,&local_b9); if (local_b9 == 0) { local_b9 = 0; - pcVar10 = (char *)FUN_00a26af0("Players",*(undefined4 *)(iVar7 + 0x4a920),pcVar10 + 1, + pcVar10 = (char *)StringTable::get_string("Players",*(undefined4 *)(iVar7 + 0x4a920),pcVar10 + 1, &local_b9); } } @@ -851959,7 +851959,7 @@ void __thiscall HUD::ShowItemText(HUD *this,int param_2,int *param_3) if (((*(char *)(local_74 + 0xd) == '\0') && (*(int *)(local_74 + 0x10) < 10)) && (local_74 != *(uint *)(iVar7 + 0x1bbd8))) { std::string::string(&local_a0); - piVar5 = (int *)FUN_00682b90(); + piVar5 = (int *)string_scramble_seeded(); if (&local_a0 != piVar5) { ppiVar15 = (int **)0x9a2fb7; std::string::_Tidy_deallocate(); @@ -851986,7 +851986,7 @@ void __thiscall HUD::ShowItemText(HUD *this,int param_2,int *param_3) operator_delete(pppppcVar14,ppiVar15); } std::string::string(&local_b8); - puVar6 = (uint *)FUN_00682b90(); + puVar6 = (uint *)string_scramble_seeded(); if (&local_b8 != puVar6) { ppiVar15 = (int **)0x9a3041; std::string::_Tidy_deallocate(); @@ -852017,7 +852017,7 @@ void __thiscall HUD::ShowItemText(HUD *this,int param_2,int *param_3) piVar5 = (int *)FUN_00a2c370(); local_c0 = piVar5; if (param_3[1] == 0x2d1) { - pcVar8 = (char *)FUN_009586f0(DAT_00c7169c + 0x4a920,"#ZZAZZ_PATTERN"); + pcVar8 = (char *)string_table_translate(DAT_00c7169c + 0x4a920,"#ZZAZZ_PATTERN"); local_78 = 0; local_74 = 0xf; local_88[0] = (char *****)0x0; @@ -852168,9 +852168,9 @@ LAB_009a33db: } -//@@ 009a3410 FUN_009a3410 +//@@ 009a3410 PlayerHUD::show_pill_name -void FUN_009a3410(undefined4 param_1,undefined4 param_2,undefined4 param_3) +void PlayerHUD::show_pill_name(undefined4 param_1,undefined4 param_2,undefined4 param_3) { uint uVar1; @@ -852558,15 +852558,15 @@ void FUN_009a3ac0(int *param_1) *(undefined1 *)(in_ECX + 0x529c) = 1; } local_2c = 0; - FUN_006856c0(&local_2c); - puVar4 = (undefined4 *)FUN_00684f30(); + std::vector::resize(&local_2c); + puVar4 = (undefined4 *)std::deque::back(); if ((byte *)(puVar4 + 1) != (byte *)0x0) { *(byte *)(puVar4 + 1) = (byte)(DAT_00c798e4 >> 5) & 1; } *puVar4 = DAT_00c79948; - FUN_00a18300(*(undefined4 *)(in_ECX + 0x536c),0); - FUN_00a18230(); - FUN_006836c0(); + KAGE_Graphics::SetRenderTarget(*(undefined4 *)(in_ECX + 0x536c),0); + RenderTarget::Clear(); + pop_render_target(); ExceptionList = local_10; return; } @@ -852618,14 +852618,14 @@ void FUN_009a3ac0(int *param_1) *(undefined1 *)(iVar1 + 0x529c) = 1; } local_2c = 0; - FUN_006856c0(&local_2c); - puVar4 = (undefined4 *)FUN_00684f30(); + std::vector::resize(&local_2c); + puVar4 = (undefined4 *)std::deque::back(); if ((byte *)(puVar4 + 1) != (byte *)0x0) { *(byte *)(puVar4 + 1) = (byte)(DAT_00c798e4 >> 5) & 1; } *puVar4 = DAT_00c79948; - FUN_00a18300(*(undefined4 *)(local_18 + 0x536c),0); - FUN_00a18230(); + KAGE_Graphics::SetRenderTarget(*(undefined4 *)(local_18 + 0x536c),0); + RenderTarget::Clear(); DAT_00c79900 = 0; DAT_00c79904 = 1; DAT_00c79908 = 7; @@ -852652,19 +852652,19 @@ void FUN_009a3ac0(int *param_1) uVar7 = FUN_00a1bb10(local_3c,piVar6,&local_58,&local_2c); local_8 = CONCAT31(local_8._1_3_,1); FUN_00a1bd80(uVar7,local_1c,local_1c,0,0,0,0x3f800000,0,&local_58); - FUN_00a55d60(); - FUN_0069dac0(); + std::vector<12byte>::clear(); + std::vector<12byte>::_Tidy(); local_8 = 0xffffffff; piVar9 = (int *)*piVar9; } while (piVar9 != (int *)*param_1); } - FUN_00a19180(1); + _glfw_context_reset(1); if (DAT_00c79790 == 0) { /* WARNING: Subroutine does not return */ KAGE_LogMessage(0x10,"PopRenderTarget: stack is empty!\n"); } - puVar4 = (undefined4 *)FUN_00684f30(); - FUN_00a18300(*puVar4,*(undefined1 *)(puVar4 + 1)); + puVar4 = (undefined4 *)std::deque::back(); + KAGE_Graphics::SetRenderTarget(*puVar4,*(undefined1 *)(puVar4 + 1)); DAT_00c79790 = DAT_00c79790 + -1; if (DAT_00c79790 == 0) { DAT_00c7978c = 0; @@ -852880,7 +852880,7 @@ void HUD::Render(void) local_d0 = local_7c; local_ac = local_d4; KColor::SetFromARGB(0xffffffff); - FUN_00a10e70(&local_d4,&local_a8,extraout_ECX); + render_quad_set_rect(&local_d4,&local_a8,extraout_ECX); pcVar2 = *(code **)(**(int **)&in_ECX->field_0x54c4 + 0x1c); KColor::SetFromARGB(0xffffffff); (*pcVar2)(local_1b0,extraout_ECX_00); @@ -852890,7 +852890,7 @@ void HUD::Render(void) local_14 = 0; KColor::SetFromARGB(0xffffffff); FUN_00a1b8e0(local_2c,0xffffffff); - FUN_00a1af90(local_2c,local_120,uVar10); + Font::DrawString(local_2c,local_120,uVar10); local_14 = 0xffffffff; local_4c = 0; local_48 = 0; @@ -852921,7 +852921,7 @@ void HUD::Render(void) } local_98 = (HUD *)PlayerManager::FirstPlayerByType(0x12); local_b8 = (float *)PlayerManager::FirstPlayerByType(0x24); - local_7e = FUN_009be670(extraout_ECX_01); + local_7e = PlayerManager::are_all_players_tainted_blue_baby(extraout_ECX_01); local_ac = (undefined **)PlayerManager::FirstPlayerByType(0x19); if (((local_98 != (HUD *)0x0) || (local_b8 != (float *)0x0)) || ((local_ac != (undefined **)0x0 && (local_7e == '\0')))) { @@ -853261,7 +853261,7 @@ LAB_009a5404: local_108 = 0xffff; local_10c = 0; KColor::SetFromARGB(0xffffffff); - FUN_00a1af90(&DAT_00c94328,extraout_ECX_03,&local_10c); + Font::DrawString(&DAT_00c94328,extraout_ECX_03,&local_10c); local_14._0_1_ = 7; } else if (local_99 != '\0') { @@ -853286,7 +853286,7 @@ LAB_009a5404: } } Game::GetPlayer(DAT_00c71678,0); - FUN_007cbb90(iVar9); + Entity_Player::GetGreedDonationJamChance(iVar9); sprintf_s(&DAT_00c94328,0x10,&DAT_00b6d148,(int)(fVar24 + 0.5)); local_14._0_1_ = 10; goto LAB_009a5404; @@ -853313,7 +853313,7 @@ LAB_009a5404: local_f4 = 0; local_14._0_1_ = 0xb; KColor::SetFromARGB(0xffffffff); - FUN_00a1af90(&DAT_00c94328,extraout_ECX_04,&local_10c); + Font::DrawString(&DAT_00c94328,extraout_ECX_04,&local_10c); local_14._0_1_ = 7; fVar24 = local_74 - (float)local_94; local_84 = fVar24; @@ -853480,7 +853480,7 @@ LAB_009a5887: local_114 = 0; local_110 = (int *)0x0; local_14 = 0xc; - FUN_00a288a0(&DAT_00c79a74); + std::shared_ptr::assign(&DAT_00c79a74); local_118 = KAGE::Network::Multiplayer::Lobby::vftable; local_14._1_3_ = 0; local_8c = (Game *)0x0; @@ -854139,7 +854139,7 @@ void FUN_009a6660(uint param_1,float *param_2,undefined4 param_3,undefined4 para fStack_1b8 = (param_2[1] - local_1c0) - 2.0; uVar6 = extraout_ECX; fStack_1b0 = fStack_1b4; - FUN_00a10e70(&fStack_1bc,pfVar7,extraout_ECX); + render_quad_set_rect(&fStack_1bc,pfVar7,extraout_ECX); KAGE::SmartPointer::operator_assign(piVar3); apply_sprite_shader_params(1,pfVar7,uVar6); uStack_19c = 0; @@ -854152,7 +854152,7 @@ void FUN_009a6660(uint param_1,float *param_2,undefined4 param_3,undefined4 para puVar5 = &uStack_1a4; uStack_1c4 = param_2[1] - unaff_ESI; uVar6 = extraout_ECX_00; - FUN_00a10e70(auStack_158 + -0x70,puVar5,extraout_ECX_00); + render_quad_set_rect(auStack_158 + -0x70,puVar5,extraout_ECX_00); uStack_16c = in_stack_0000003c; uStack_168 = 0; uStack_e0 = 0; @@ -854351,7 +854351,7 @@ LAB_009a6c87: fStack_9c = 1.0; fStack_98 = 1.0; fStack_94 = 1.0; - FUN_00a10e70(&local_a8,&local_b4,&local_a0); + render_quad_set_rect(&local_a8,&local_b4,&local_a0); (**(code **)(*(int *)local_bc[0x14db] + 0x1c))(local_80,&DAT_00c37944); } return; @@ -854787,7 +854787,7 @@ void FUN_009a7c90(undefined1 param_1) fStack00000008 = ((DAT_00c78edc - 32.0) - 8.0) + *(float *)(in_ECX + 0x5998); } KColor::SetFromARGB(0xffffffff); - FUN_00a10e70(¶m_1,&local_50,extraout_ECX); + render_quad_set_rect(¶m_1,&local_50,extraout_ECX); pcVar2 = *(code **)(**(int **)(in_ECX + 0x54bc) + 0x1c); KColor::SetFromARGB(0xffffffff); (*pcVar2)(local_14c,extraout_ECX_00,uVar4); @@ -854803,7 +854803,7 @@ void FUN_009a7c90(undefined1 param_1) local_8 = 0; KColor::SetFromARGB(0xffffffff); FUN_00a1b8e0(&local_1c,0xffffffff); - FUN_00a1af90(&local_1c,local_74,&local_90); + Font::DrawString(&local_1c,local_74,&local_90); ExceptionList = local_10; return; } @@ -854824,13 +854824,13 @@ void FUN_009a7c90(undefined1 param_1) local_5c = (undefined1 *)0x0; FUN_00a11160(&local_60,&local_1c,extraout_ECX_01); KColor::SetFromARGB(0xffffffff); - FUN_00a10e70(¶m_1,&local_50,extraout_ECX_02); + render_quad_set_rect(¶m_1,&local_50,extraout_ECX_02); KColor::SetFromARGB(0xffffffff); local_60 = *(float *)(in_ECX + 0x5490) * 110.0; local_50 = _param_1 + 20.0; local_4c = (undefined1 *)(fStack00000008 + fVar6); local_5c = &DAT_42000000; - FUN_00a10e70(&local_50,&local_60,extraout_ECX_03); + render_quad_set_rect(&local_50,&local_60,extraout_ECX_03); Color::Color(); uVar7 = 0x9a800c; KAGE::SmartPointer::operator_assign(in_ECX + 0x54a0); @@ -855432,7 +855432,7 @@ void FUN_009a8b90(float *param_1,int param_2) local_ec[4] = param_1[1] - 4.0; uStack_104 = local_ec + 3; puStack_108 = (undefined4 *)0x9a8d1d; - FUN_00a10e70(); + render_quad_set_rect(); uStack_104 = (float *)&local_d4; local_c4 = 0; local_c8 = (undefined1 *)0x0; @@ -855452,7 +855452,7 @@ void FUN_009a8b90(float *param_1,int param_2) local_ec[0] = 4.0; local_ec[1] = 8.0; pfStack_10c = local_ec; - pfStack_10c = (float *)FUN_00a10e70(auStack_ee + -6); + pfStack_10c = (float *)render_quad_set_rect(auStack_ee + -6); puStack_108 = &DAT_00c37944; pfVar6 = local_ec + 3; local_d0 = 28.0; @@ -855468,7 +855468,7 @@ void FUN_009a8b90(float *param_1,int param_2) pcVar1 = *(code **)(**(int **)(local_c8 + 0x5488) + 0x14); KColor::SetFromARGB(0xffffffff); fVar5 = param_1[1] - 4.0; - uVar3 = FUN_00a10e70(auStack_ee + -0x12,auStack_ee + -10,extraout_ECX); + uVar3 = render_quad_set_rect(auStack_ee + -0x12,auStack_ee + -10,extraout_ECX); local_ec[4] = 4.0; local_ec[3] = 0.0; local_ec[0] = 4.0; @@ -855480,7 +855480,7 @@ void FUN_009a8b90(float *param_1,int param_2) local_cc = (float)CONCAT31(local_cc._1_3_,1); (*pcVar1)(local_ec,uVar3,&DAT_00c37944); fVar5 = fVar5 / (float)local_c8; - FUN_00684b90(); + hsv_to_rgb(); pcVar1 = *(code **)(**(int **)(local_d4 + 0x5488) + 0x14); KColor::SetFromARGB(); local_cc = fVar5 * local_d0; @@ -855488,7 +855488,7 @@ void FUN_009a8b90(float *param_1,int param_2) uStack_104 = (float *)(float)dVar4; pfStack_10c = (float *)((float)pfVar6 + *param_1); puStack_108 = (undefined4 *)(param_1[1] - 4.0); - uVar3 = FUN_00a10e70(&pfStack_10c,&uStack_104,&local_c4); + uVar3 = render_quad_set_rect(&pfStack_10c,&uStack_104,&local_c4); local_ec[1] = 4.0; local_ec[3] = fVar5 * 24.0 + 4.0; local_ec[0] = 8.0; @@ -855500,9 +855500,9 @@ void FUN_009a8b90(float *param_1,int param_2) } -//@@ 009a90b0 FUN_009a90b0 +//@@ 009a90b0 _player_hud_set_heart_anim_state -void FUN_009a90b0(int param_1) +void _player_hud_set_heart_anim_state(int param_1) { uint uVar1; @@ -857099,13 +857099,13 @@ LAB_009ac0f5: if (0x7fffffffU - local_44 < uVar9) { LAB_009aca82: /* WARNING: Subroutine does not return */ - FUN_0040ccc0(); + std::string::_Xlen(); } ppppppuVar14 = local_54; if (0xf < local_40) { ppppppuVar14 = local_54[0]; } - FUN_00421680(in_ECX,uVar9,ppppppuVar14,local_44,pcVar20,uVar9); + std::string::concat(in_ECX,uVar9,ppppppuVar14,local_44,pcVar20,uVar9); if (0xf < uStack_10150) { uVar9 = uStack_10150 + 1; ppppppuVar14 = ppppppuStack_10164; @@ -857198,7 +857198,7 @@ LAB_009ac245: if (0xf < local_40) { ppppppuVar14 = local_54[0]; } - FUN_00421680(in_ECX,uVar9,ppppppuVar14,local_44,pcVar20,uVar9); + std::string::concat(in_ECX,uVar9,ppppppuVar14,local_44,pcVar20,uVar9); if (0xf < uStack_10120) { uVar9 = uStack_10120 + 1; ppppppuVar14 = ppppppuStack_10134; @@ -857856,7 +857856,7 @@ void FUN_009acfe0(void) } if (*(char *)((int)in_ECX + 0x111) == '\0') { if (in_ECX[1] != 0x2d) goto LAB_009ad1ff; - FUN_00a13510(); + set_blend_mode(); local_c4 = 0; uStack_c0 = 0; uStack_bc = 0; @@ -857864,8 +857864,8 @@ void FUN_009acfe0(void) local_b4 = 0; local_d0 = DAT_00c78dc4; local_cc = DAT_00c78edc; - FUN_00a10e70(&DAT_00c7b640,&local_d0,&local_c4); - FUN_00a1dfd0(); + render_quad_set_rect(&DAT_00c7b640,&local_d0,&local_c4); + render_color_shader_pass(); FUN_00682260(); if ((*(char *)((int)in_ECX + 0x12ad) == '\0') || (iVar1 = in_ECX[0x468], iVar1 == 0)) goto LAB_009ad1ff; @@ -857886,7 +857886,7 @@ void FUN_009acfe0(void) } ANM2::Render(pAVar2,&local_d0,&DAT_00c7b640,&DAT_00c7b640); LAB_009ad1ff: - FUN_00a14050(); + shader_cache_find(); return; } @@ -858484,9 +858484,9 @@ undefined4 * FUN_009ada70(undefined4 *param_1) } -//@@ 009adaf0 FUN_009adaf0 +//@@ 009adaf0 RoomDescriptor::Init -void FUN_009adaf0(undefined4 param_1) +void RoomDescriptor::Init(undefined4 param_1) { undefined4 *in_ECX; @@ -858700,7 +858700,7 @@ undefined4 FUN_009addf0(undefined4 param_1,int *param_2) uVar6 = uVar6 + 1; } while (uVar6 < (uint)((*(int *)&in_ECX->field_0x368 - *(int *)&in_ECX->field_0x364) / 0x48)); } - FUN_005cc070(local_34,local_18); + RNG::Shuffle(local_34,local_18); piVar1 = param_2; iVar3 = *(int *)&in_ECX->field_0x364; iVar4 = *(int *)&in_ECX->field_0x368 - iVar3; @@ -862606,8 +862606,8 @@ void FUN_009b31c0(void) uStack_64 = 0x3f1b9b9c; local_60 = 0; *(undefined1 *)(iVar5 + 0x74) = 0; - FUN_00a10d00(DAT_00c78edc,&local_70); - FUN_00a1dfd0(); + render_quad_set_uniform_color(DAT_00c78edc,&local_70); + render_color_shader_pass(); iVar5 = *in_ECX; } else { @@ -863158,7 +863158,7 @@ LAB_009b3ba4: uStack_68 = 0; uStack_64 = 0x3f000000; local_60 = 0; - iVar5 = FUN_00a10d00(DAT_00c78edc,&local_70); + iVar5 = render_quad_set_uniform_color(DAT_00c78edc,&local_70); if ((*(float *)(iVar5 + 0x40) + *(float *)(iVar5 + 0x2c) + *(float *)(iVar5 + 0x54) + *(float *)(iVar5 + 0x68)) * 0.25 != fVar12) { FUN_00a140c0(); @@ -863186,7 +863186,7 @@ LAB_009b3ba4: } } iVar5 = DAT_00c7169c; - uVar7 = FUN_009586f0(DAT_00c7169c + 0x4a920,"#LOADING"); + uVar7 = string_table_translate(DAT_00c7169c + 0x4a920,"#LOADING"); iVar8 = FUN_00a1b8e0(uVar7,0xffffffff); local_78 = 0; local_74 = 0xffff; @@ -863203,8 +863203,8 @@ LAB_009b3ba4: local_14 = CONCAT31(local_14._1_3_,1); FUN_00a1bd80(uVar7,0x3f800000,0x3f800000,0x3f800000,0x3f800000,0x3f800000,0x3f800000,0,&local_78 ); - FUN_00a55d60(); - FUN_0069dac0(); + std::vector<12byte>::clear(); + std::vector<12byte>::_Tidy(); } ExceptionList = local_1c; return; @@ -863456,7 +863456,7 @@ LAB_009b4d28: if (0 < iVar7) { do { ANM2::GetLayer((ANM2 *)(in_ECX + 9),iVar10); - iVar7 = FUN_00557bd0(0,"OptionsMenu.png",0xf); + iVar7 = std::string::find(0,"OptionsMenu.png",0xf); if (iVar7 != -1) { local_3c[0] = (char *)std::_Allocate(); local_2c = 0x24; @@ -863921,11 +863921,11 @@ undefined4 FUN_009b5800(void) } -//@@ 009b5840 FUN_009b5840 +//@@ 009b5840 PauseScreen::Init /* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */ -void FUN_009b5840(void) +void PauseScreen::Init(void) { byte bVar1; @@ -864428,7 +864428,7 @@ LAB_009b60e4: LAB_009b6311: if (*(int *)(DAT_00c7169c + 0x4b3d8) != *(int *)(DAT_00c7169c + 0x4b3dc)) { Game::GetPlayer(DAT_00c71678,0); - cVar3 = FUN_007cf8c0(); + cVar3 = Entity_Player::IsLocalPlayer(); if ((cVar3 != '\0') && (*(int *)(DAT_00c7169c + 0x4b118) != 0)) { local_58[0] = 0x1d; cVar3 = (**(code **)(PTR_vftable_00c57b18 + 0x74))(iVar11,FUN_00a209e0,local_58,0,0); @@ -864489,10 +864489,10 @@ LAB_009b6311: return; case 3: if ((DAT_00c71678->_dailyChallenge)._id != 0) { - local_58[0] = FUN_009586f0(DAT_00c7169c + 0x4a920,"#QUIT_DAILY_RUN_4"); - local_50 = FUN_009586f0(DAT_00c7169c + 0x4a920,"#QUIT_DAILY_RUN_3"); - uVar6 = FUN_009586f0(DAT_00c7169c + 0x4a920,"#QUIT_DAILY_RUN_2"); - uVar7 = FUN_009586f0(DAT_00c7169c + 0x4a920,"#QUIT_DAILY_RUN_1"); + local_58[0] = string_table_translate(DAT_00c7169c + 0x4a920,"#QUIT_DAILY_RUN_4"); + local_50 = string_table_translate(DAT_00c7169c + 0x4a920,"#QUIT_DAILY_RUN_3"); + uVar6 = string_table_translate(DAT_00c7169c + 0x4a920,"#QUIT_DAILY_RUN_2"); + uVar7 = string_table_translate(DAT_00c7169c + 0x4a920,"#QUIT_DAILY_RUN_1"); FUN_00838230(uVar7,uVar6,local_50,local_58[0],0); GenericPrompt::Show((GenericPrompt *)(local_40 + 0x11f),0); *local_40 = 4; @@ -864506,7 +864506,7 @@ LAB_009b6311: pEVar8 = (Entity_Player *)Game::GetPlayer(DAT_00c71678,0); iVar5 = Entity_Player::GetExtraLives(pEVar8); if (iVar5 < 1) { - FUN_00959130(); + Game::DeleteSaveState(); } } KColor::SetFromARGB(0xff000000); @@ -864863,7 +864863,7 @@ LAB_009b6dfb: local_1c = (int *)0x0; local_18 = (int *)0x0; local_8 = 0; - FUN_00a288a0(&DAT_00c79a74); + std::shared_ptr::assign(&DAT_00c79a74); local_8 = 1; if (local_1c == (int *)0x0) { bVar13 = false; @@ -865248,9 +865248,9 @@ LAB_009b7585: } -//@@ 009b7650 FUN_009b7650 +//@@ 009b7650 is_single_player -uint FUN_009b7650(void) +uint is_single_player(void) { uint in_EAX; @@ -865876,7 +865876,7 @@ void FUN_009b8130(float *param_1) uVar3 = FontSettings::constructor(); local_14._0_1_ = 1; KColor::SetFromARGB(0xff362f2d); - FUN_00a1aec0(&local_34,&local_5c,extraout_ECX,uVar3); + Font::DrawStringScaled(&local_34,&local_5c,extraout_ECX,uVar3); local_50 = 4; local_54 = local_3c - 4; psVar6 = &local_54; @@ -865895,7 +865895,7 @@ void FUN_009b8130(float *param_1) uVar3 = FontSettings::constructor(); local_14 = (undefined4 ***)CONCAT31(local_14._1_3_,2); KColor::SetFromARGB(0xff362f2d); - FUN_00a1aec0(&local_34,&local_64,extraout_ECX_00,uVar3); + Font::DrawStringScaled(&local_34,&local_64,extraout_ECX_00,uVar3); if (0xf < local_38) { uVar1 = local_38 + 1; ppppuVar4 = local_4c[0]; @@ -866415,7 +866415,7 @@ void FUN_009b8f40(int param_1,int *param_2) param_2 = (int *)0x0; } else { - param_2 = (int *)FUN_00753da0(); + param_2 = (int *)Entity_Player::constructor(); } local_8 = 0xffffffff; param_2[0x587] = in_ECX[1] - *in_ECX >> 2; @@ -866673,9 +866673,9 @@ uint FUN_009b9450(int param_1) } -//@@ 009b9480 FUN_009b9480 +//@@ 009b9480 PlayerManager::count_main_players -int FUN_009b9480(void) +int PlayerManager::count_main_players(void) { int iVar1; @@ -866983,9 +866983,9 @@ void FUN_009b9fc0(int param_1) } -//@@ 009ba000 FUN_009ba000 +//@@ 009ba000 PlayerManager::RemoveCoPlayer -void FUN_009ba000(Entity_Player *param_1) +void PlayerManager::RemoveCoPlayer(Entity_Player *param_1) { int iVar1; @@ -867073,7 +867073,7 @@ void FUN_009ba000(Entity_Player *param_1) } local_14 = in_ECX; if (param_1->_variant == 1) { - param_1 = (Entity_Player *)FUN_007ce270(DAT_00bf93b4 ^ (uint)(local_24 + 0x20)); + param_1 = (Entity_Player *)Entity_Player::GetMainPlayer(DAT_00bf93b4 ^ (uint)(local_24 + 0x20)); switch(pEVar2->_babySkin) { case 0x1b: uVar8 = pEVar2->_soulHearts - 1; @@ -867099,7 +867099,7 @@ void FUN_009ba000(Entity_Player *param_1) Entity_Player::AddMaxHearts(pEVar2,0xfffffffe,0); break; case 0x1d: - pEVar4 = (Entity_Player *)FUN_007ce270(); + pEVar4 = (Entity_Player *)Entity_Player::GetMainPlayer(); Entity_Player::AddEternalHearts(pEVar4,0xffffffff); break; case 0x1e: @@ -867178,7 +867178,7 @@ LAB_009ba353: } while (uVar8 < uVar5); } } - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); iVar11 = local_30; uVar8 = 0; local_8 = 2; @@ -867366,7 +867366,7 @@ code_r0x009ba2ab: Entity_Player::AddHearts(param_1,pEVar2->_hearts,1,0); in_ECX = local_14; LAB_009ba2d0: - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); pEVar4 = param_1; uVar8 = 0; local_8 = 0; @@ -867421,9 +867421,9 @@ void FUN_009ba8f0(void) iVar1 = *(int *)(iVar3 + 0x1e68); if ((((iVar1 == 0) || (*(int *)(iVar1 + 0x161c) == -1)) || (*(int *)(iVar3 + 0x161c) <= *(int *)(iVar1 + 0x161c))) || (iVar1 == iVar3)) { - iVar3 = FUN_0090ac70(iVar3); + iVar3 = InputManager::GetDeviceByPlayerEntity(iVar3); if (iVar3 == 0) { - FUN_009ba000(*(undefined4 *)(*in_ECX + uVar4 * 4),extraout_ECX); + PlayerManager::RemoveCoPlayer(*(undefined4 *)(*in_ECX + uVar4 * 4),extraout_ECX); } } uVar4 = uVar4 - 1; @@ -867467,11 +867467,11 @@ void FUN_009ba9a0(void) local_10 = ExceptionList; uVar1 = DAT_00bf93b4 ^ (int)register0x00000010 - 4U; ExceptionList = &local_10; - FUN_0043eca0(in_ECX); + std::vector::copy_constructor(in_ECX); local_8 = 0; for (; local_1c != local_18; local_1c = local_1c + 1) { if (*(int *)(*local_1c + 0x2c) == 0) { - FUN_007bc740(uVar1); + Entity_Player::InitPostLevelInitStats(uVar1); } } FID_conflict__Tidy(&local_1c); @@ -867819,7 +867819,7 @@ LAB_009bb19d: local_38 = *(float *)((int)fVar15 + 0x33c) + 0.0; local_34 = *(float *)((int)fVar15 + 0x340) - 10.0; Game::Spawn(1000,0xf,&local_38,&DAT_00c7b640,0,0,uVar10); - FUN_009ba000(fVar15,extraout_ECX); + PlayerManager::RemoveCoPlayer(fVar15,extraout_ECX); } } } @@ -867955,7 +867955,7 @@ LAB_009bb25d: (local_14->_pos).x = local_28; (local_14->_pos).y = fVar15 * 10.0 + local_18; HUD::AssignPlayerHUDs(); - FUN_007bc740(); + Entity_Player::InitPostLevelInitStats(); pEVar11->_controlsCooldown = 0xf; uVar10 = Random(); local_38 = (pEVar11->_pos).x; @@ -868154,7 +868154,7 @@ void FUN_009bb840(void) puVar5 = (undefined4 *)*in_ECX; } while (uVar4 < (uint)(iVar2 - (int)puVar5 >> 2)); } - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); local_8 = 0; uVar1 = 0; if (local_14 != 0) { @@ -868432,7 +868432,7 @@ LAB_009bbdab: do { iVar2 = *(int *)(*(int *)((int)pvVar1 + 0x125c) + uVar9 * 4); if ((iVar2 != 0) && (*(int *)(iVar2 + 0x28) == 3)) { - puVar5 = (undefined4 *)FUN_0063b4a0(local_38,0); + puVar5 = (undefined4 *)Entity_Familiar::GetFollowTargetPosition(local_38,0); *(undefined4 *)(iVar2 + 0x33c) = *puVar5; *(undefined4 *)(iVar2 + 0x340) = puVar5[1]; } @@ -868467,7 +868467,7 @@ LAB_009bbf5f: uVar9 = uVar9 + 1; } while (uVar9 < *(uint *)((int)pvVar1 + 0x1264)); } - FUN_00705ee0(0xffffffff); + Game::save_rewind_state(0xffffffff); ExceptionList = local_10; return; } @@ -868514,7 +868514,7 @@ void FUN_009bc000(void) puVar5 = (undefined4 *)*in_ECX; } while (uVar4 < (uint)(iVar2 - (int)puVar5 >> 2)); } - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); local_8 = 0; uVar1 = 0; if (local_14 != 0) { @@ -868578,7 +868578,7 @@ void FUN_009bc120(int param_1) if (1 < (uint)(in_ECX[1] - iVar4 >> 2)) { do { iVar1 = *(int *)(iVar4 + uVar5 * 4); - if ((iVar1 == param_1) && (FUN_009ba000(iVar1,iVar4), bVar6)) { + if ((iVar1 == param_1) && (PlayerManager::RemoveCoPlayer(iVar1,iVar4), bVar6)) { uVar2 = Random(); local_10 = *(float *)(param_1 + 0x33c) + 0.0; local_c = *(float *)(param_1 + 0x340) - 10.0; @@ -868952,7 +868952,7 @@ int * FUN_009bc790(int *param_1,int param_2,char param_3) if (param_3 != '\0') { if (piVar4 != (int *)*piVar4) { do { - FUN_009ba000(*(undefined4 *)(piVar4[1] + 8),iVar3); + PlayerManager::RemoveCoPlayer(*(undefined4 *)(piVar4[1] + 8),iVar3); piVar4 = (int *)piVar4[1]; iVar3 = extraout_ECX; } while (piVar4 != (int *)*local_30); @@ -869129,7 +869129,7 @@ switchD_009bcd23_caseD_14: uVar3 = 0; } else { - uVar3 = FUN_00753da0(); + uVar3 = Entity_Player::constructor(); } local_8 = (uint)local_8._1_3_ << 8; *(undefined4 *)(*(int *)(local_34[0] + iVar6 * 4) + 0x1e6c) = uVar3; @@ -869175,7 +869175,7 @@ switchD_009bcd23_caseD_14: piVar4 = (int *)0x0; } else { - piVar4 = (int *)FUN_00753da0(); + piVar4 = (int *)Entity_Player::constructor(); } local_8 = (uint)local_8._1_3_ << 8; *piVar9 = (int)piVar4; @@ -869470,7 +869470,7 @@ void FUN_009bd3b0(undefined4 param_1,undefined4 param_2) Entity_Player::AddMaxHearts(pEVar8,2,0); Entity_Player::AddHearts(pEVar8,2,1,0); local_48 = (void *)0x0; - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); local_14 = 0; local_44 = 0; if (local_68 != 0) { @@ -869565,7 +869565,7 @@ void FUN_009bd3b0(undefined4 param_1,undefined4 param_2) local_50 = (Entity_Player *)((int)local_4c >> 2); local_48 = *(void **)&pEVar8->field_0x1748; if ((Entity_Player *)(*(int *)&pEVar8->field_0x1750 - (int)local_48 >> 2) < local_50) { - FUN_006a0d30(local_50); + std::vector::reserve_clear(local_50); local_48 = *(void **)&pEVar8->field_0x1748; } memmove(local_48,local_5c,(size_t)local_4c); @@ -869577,7 +869577,7 @@ void FUN_009bd3b0(undefined4 param_1,undefined4 param_2) local_50 = (Entity_Player *)(*(int *)((int)pvVar12 + 0x1758) - (int)local_5c); local_4c = *(void **)puVar5; if ((uint)(*(int *)&pEVar8->field_0x175c - (int)local_4c >> 2) < (uint)((int)local_50 >> 2)) { - FUN_006a0d30((int)local_50 >> 2); + std::vector::reserve_clear((int)local_50 >> 2); local_4c = *(void **)puVar5; } memmove(local_4c,local_5c,(size_t)local_50); @@ -870116,9 +870116,9 @@ int PlayerManager::FirstPlayerByType(int param_1) } -//@@ 009be670 FUN_009be670 +//@@ 009be670 PlayerManager::are_all_players_tainted_blue_baby -uint FUN_009be670(void) +uint PlayerManager::are_all_players_tainted_blue_baby(void) { int iVar1; @@ -870322,9 +870322,9 @@ LAB_009be966: } -//@@ 009be990 FUN_009be990 +//@@ 009be990 NpcHelper::big_horn_is_any_hole_busy -uint FUN_009be990(void) +uint NpcHelper::big_horn_is_any_hole_busy(void) { int *piVar1; @@ -870365,9 +870365,9 @@ uint FUN_009be9c0(void) } -//@@ 009bea10 FUN_009bea10 +//@@ 009bea10 entity_vector_set_flag_410 -void FUN_009bea10(undefined1 param_1) +void entity_vector_set_flag_410(undefined1 param_1) { int iVar1; @@ -870386,9 +870386,9 @@ void FUN_009bea10(undefined1 param_1) } -//@@ 009bea40 FUN_009bea40 +//@@ 009bea40 vector_iterate_noop -void FUN_009bea40(void) +void vector_iterate_noop(void) { int iVar1; @@ -870762,7 +870762,7 @@ undefined4 FUN_009bee80(int param_1,Entity_Player *param_2) param_2->_entityCollisionClass = *(int *)(param_1 + 0x188); param_2->_entityGridCollisionClass = *(int *)(param_1 + 0x184); param_2->_visible = (uVar4 & 0x2000000) == 0; - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); local_14 = 0; local_28 = (int *)0x0; if (local_44 != (int *)0x0) { @@ -870796,7 +870796,7 @@ undefined4 FUN_009bee80(int param_1,Entity_Player *param_2) param_2->_hasUnlistedRestoreState = 0; } if (param_2->field_0x1824 == '\0') { - FUN_007bc740(); + Entity_Player::InitPostLevelInitStats(); } param_2->_tearDisplacement = *(byte *)(param_1 + 0x1570); param_2->_tearPoisonDamage = 9.18341e-41; @@ -870806,7 +870806,7 @@ undefined4 FUN_009bee80(int param_1,Entity_Player *param_2) *(undefined4 *)¶m_2->field_0x13fc = 0; param_2->field_0x1400 = 0; Entity_Player::TriggerNewRoom_TemporaryEffects(param_2); - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); local_14._0_1_ = 1; local_28 = (int *)0x0; if (local_34 != (int *)0x0) { @@ -870938,7 +870938,7 @@ void FUN_009bf530(void) local_8._0_1_ = 0; local_8._1_3_ = 0; local_14 = *(uint *)(DAT_00c7169c + 0x4abd4); - FUN_004b6a90(&local_14); + std::deque::push_front(&local_14); uVar2 = 0; while( true ) { (**(code **)(PTR_vftable_00c57b2c + 0xc))(0xffffffff); @@ -871138,9 +871138,9 @@ uint PlayerManager::IsCoopPlay(void) } -//@@ 009bfa00 FUN_009bfa00 +//@@ 009bfa00 PlayerManager::GetNumAlivePlayers -int FUN_009bfa00(void) +int PlayerManager::GetNumAlivePlayers(void) { int iVar1; @@ -871202,9 +871202,9 @@ int FUN_009bfa70(void) } -//@@ 009bfae0 FUN_009bfae0 +//@@ 009bfae0 PlayerManager::revive_player_ghosts -void FUN_009bfae0(void) +void PlayerManager::revive_player_ghosts(void) { int iVar1; @@ -871498,11 +871498,11 @@ LAB_009bfdd2: return local_30; } -//@@ 009bffb0 NpcHelper::hush_fly_shape_point +//@@ 009bffb0 NpcHelper::path_point_at /* DB: Hush Fly path: point at share of total length (fmod), linear between vertices */ -void NpcHelper::hush_fly_shape_point(float *param_1) +void NpcHelper::path_point_at(float *param_1) { float fVar1; @@ -872189,8 +872189,8 @@ void FUN_009c0c30(void) local_54 = 0; local_50 = 0; local_4c = 0; - FUN_00a10d00(DAT_00c79980,&local_54); - FUN_00a1dfd0(local_150); + render_quad_set_uniform_color(DAT_00c79980,&local_54); + render_color_shader_pass(local_150); bVar3 = *(byte *)(in_ECX + 0x24); } if ((bVar3 & 2) != 0) { @@ -872254,8 +872254,8 @@ void FUN_009c0c30(void) uVar5 = FUN_00a1bb10(&local_50,local_30[-3],&uStack_70,&local_a4); local_14 = CONCAT31(local_14._1_3_,1); FUN_00a1bd80(uVar5,local_94,local_90,local_24,local_84,local_88,local_8c,fVar9,&uStack_70); - FUN_00a55d60(); - FUN_0069dac0(); + std::vector<12byte>::clear(); + std::vector<12byte>::_Tidy(); fVar9 = local_28; in_ECX = local_38; local_14 = 0xffffffff; @@ -872265,7 +872265,7 @@ void FUN_009c0c30(void) uStack_64 = 0x3f800000; uStack_60 = 0x3f800000; uStack_5c = 0x3f800000; - FUN_00a10d00(local_7c * 15.0 + + render_quad_set_uniform_color(local_7c * 15.0 + (((float)*(ushort *)(*(int *)(local_38 + 0x28) + 0x14) - 15.0) * 0.5 + (float)local_30[7]) * local_7c + local_2c,&local_68); local_78 = 0x42c80000; @@ -872630,7 +872630,7 @@ void FUN_009c16b0(undefined4 *param_1,float *param_2) local_54 = fVar4 - fVar6; local_58 = fVar7 - fVar5; KColor::SetFromARGB(0xffffffff); - pfVar1 = (float *)FUN_00a10d00(fVar5 + fVar5 + (fVar7 - fVar5),extraout_ECX_00); + pfVar1 = (float *)render_quad_set_uniform_color(fVar5 + fVar5 + (fVar7 - fVar5),extraout_ECX_00); pfVar3 = local_f8; for (iVar2 = 0x1c; iVar2 != 0; iVar2 = iVar2 + -1) { *pfVar3 = *pfVar1; @@ -872679,7 +872679,7 @@ void FUN_009c16b0(undefined4 *param_1,float *param_2) uStack_68 = 0x420c0000; local_64 = local_14; KColor::SetFromARGB(0xffffffff); - pfVar1 = (float *)FUN_00a10d00(fVar4 + 7.0,extraout_ECX_01); + pfVar1 = (float *)render_quad_set_uniform_color(fVar4 + 7.0,extraout_ECX_01); pfVar3 = local_f8; for (iVar2 = 0x1c; iVar2 != 0; iVar2 = iVar2 + -1) { *pfVar3 = *pfVar1; @@ -872732,7 +872732,7 @@ void FUN_009c16b0(undefined4 *param_1,float *param_2) local_64 = local_14; fVar4 = local_48 - local_fc; KColor::SetFromARGB(0xffffffff); - pfVar1 = (float *)FUN_00a10d00(fVar4 + 8.0,extraout_ECX_02); + pfVar1 = (float *)render_quad_set_uniform_color(fVar4 + 8.0,extraout_ECX_02); pfVar3 = local_f8; for (iVar2 = 0x1c; iVar2 != 0; iVar2 = iVar2 + -1) { *pfVar3 = *pfVar1; @@ -872780,7 +872780,7 @@ void FUN_009c16b0(undefined4 *param_1,float *param_2) uStack_68 = 0x422c0000; local_64 = local_14; KColor::SetFromARGB(0xffffffff); - pfVar1 = (float *)FUN_00a10d00(fVar4 + 7.0,extraout_ECX_03); + pfVar1 = (float *)render_quad_set_uniform_color(fVar4 + 7.0,extraout_ECX_03); pfVar3 = local_f8; for (iVar2 = 0x1c; iVar2 != 0; iVar2 = iVar2 + -1) { *pfVar3 = *pfVar1; @@ -872832,7 +872832,7 @@ void FUN_009c16b0(undefined4 *param_1,float *param_2) local_64 = local_14; local_4c = fVar4; KColor::SetFromARGB(0xffffffff); - pfVar1 = (float *)FUN_00a10d00(fVar4 + 17.0,extraout_ECX_04); + pfVar1 = (float *)render_quad_set_uniform_color(fVar4 + 17.0,extraout_ECX_04); pfVar3 = local_f8; for (iVar2 = 0x1c; iVar2 != 0; iVar2 = iVar2 + -1) { *pfVar3 = *pfVar1; @@ -872880,7 +872880,7 @@ void FUN_009c16b0(undefined4 *param_1,float *param_2) uStack_68 = 0x41100000; local_64 = local_14; KColor::SetFromARGB(0xffffffff); - pfVar1 = (float *)FUN_00a10d00(fVar4 + 5.0,extraout_ECX_05); + pfVar1 = (float *)render_quad_set_uniform_color(fVar4 + 5.0,extraout_ECX_05); pfVar3 = local_f8; for (iVar2 = 0x1c; iVar2 != 0; iVar2 = iVar2 + -1) { *pfVar3 = *pfVar1; @@ -872928,7 +872928,7 @@ void FUN_009c16b0(undefined4 *param_1,float *param_2) uStack_68 = 0x41100000; local_64 = local_14; KColor::SetFromARGB(0xffffffff); - pfVar1 = (float *)FUN_00a10d00(fVar4 + 8.0,extraout_ECX_06); + pfVar1 = (float *)render_quad_set_uniform_color(fVar4 + 8.0,extraout_ECX_06); pfVar3 = local_f8; for (iVar2 = 0x1c; iVar2 != 0; iVar2 = iVar2 + -1) { *pfVar3 = *pfVar1; @@ -872975,7 +872975,7 @@ void FUN_009c16b0(undefined4 *param_1,float *param_2) uStack_68 = 0x41b80000; local_64 = local_14; KColor::SetFromARGB(0xffffffff); - pfVar1 = (float *)FUN_00a10d00(local_4c + 13.0,extraout_ECX_07); + pfVar1 = (float *)render_quad_set_uniform_color(local_4c + 13.0,extraout_ECX_07); pfVar3 = local_f8; for (iVar2 = 0x1c; iVar2 != 0; iVar2 = iVar2 + -1) { *pfVar3 = *pfVar1; @@ -873023,7 +873023,7 @@ void FUN_009c16b0(undefined4 *param_1,float *param_2) uStack_68 = 0x41d80000; local_64 = local_14; KColor::SetFromARGB(0xffffffff); - pfVar1 = (float *)FUN_00a10d00(fVar4 + 17.0,extraout_ECX_08); + pfVar1 = (float *)render_quad_set_uniform_color(fVar4 + 17.0,extraout_ECX_08); pfVar3 = local_f8; for (iVar2 = 0x1c; iVar2 != 0; iVar2 = iVar2 + -1) { *pfVar3 = *pfVar1; @@ -873500,7 +873500,7 @@ void FUN_009c27c0(void) pcVar5 = pcVar5 + 8; iVar4 = DAT_00c7169c + 0x4a920; LAB_009c288d: - pcVar5 = (char *)FUN_009586f0(iVar4,pcVar5); + pcVar5 = (char *)string_table_translate(iVar4,pcVar5); } else { iVar4 = strncmp(pcVar5,"##PLATFORM##",0xc); @@ -875735,8 +875735,8 @@ void FUN_009c51e0(void) local_50 = 0; uStack_4c = 0; uStack_48 = 0; - FUN_00a10d00(DAT_00c78edc,&local_50); - FUN_00a1dfd0(local_124); + render_quad_set_uniform_color(DAT_00c78edc,&local_50); + render_color_shader_pass(local_124); if (DAT_00c72a20 == 0) { local_18 = DAT_00c78dc4 - 79.0; local_14 = DAT_00c78edc - 96.0; @@ -875783,7 +875783,7 @@ void FUN_009c51e0(void) local_2c = (int *)(local_20 + *pfVar9); local_40 = 0; local_28 = (int *)(local_1c + pfVar9[1]); - uVar2 = FUN_009586f0(extraout_EDX + 0x4a920,"#Online/NO_ONLINE_FRIENDS"); + uVar2 = string_table_translate(extraout_EDX + 0x4a920,"#Online/NO_ONLINE_FRIENDS"); FUN_00a1b050(uVar2,&local_2c,pfVar9 + 4,&local_50,local_b4); ExceptionList = local_10; return; @@ -875835,7 +875835,7 @@ void FUN_009c51e0(void) uVar2 = FUN_0090f5f0(uVar6,uVar2,local_54,in_ECX[0x99]); local_3c = CONCAT44(uVar2,(undefined4)local_3c); KColor::SetFromARGB(0xffffffff); - FUN_00a10d00((float)in_ECX[0x95] + local_1c,extraout_ECX); + render_quad_set_uniform_color((float)in_ECX[0x95] + local_1c,extraout_ECX); iVar7 = *(int *)(in_ECX[0x8b] + 4 + (int)fVar10 * 8); if ((iVar7 == 0) || (piVar3 = (int *)(iVar7 + 0x14), *piVar3 == 0)) { piVar3 = (int *)&DAT_00c799d8; @@ -875886,7 +875886,7 @@ void FUN_009c51e0(void) if (iVar7 != iVar8) { puVar4 = &local_98; } - FUN_00a1aec0(local_3c._4_4_,&local_18,puVar4,&local_70); + Font::DrawStringScaled(local_3c._4_4_,&local_18,puVar4,&local_70); local_30 = local_30 + 1; local_8 = 0xffffffff; fVar10 = (float)((int)local_20 + 1); @@ -876186,7 +876186,7 @@ void FUN_009c5bf0(void) local_24 = uVar4; FUN_00a282c0(&local_50); local_14 = (char *)0x0; - FUN_00a288a0(local_44); + std::shared_ptr::assign(local_44); local_48 = KAGE::Network::Multiplayer::ConstLobby::vftable; local_14 = (char *)0x1; if (((local_40 != (int *)0x0) && (cVar3 = (**(code **)(*local_40 + 0xc))(uVar4), cVar3 != '\0')) @@ -876292,7 +876292,7 @@ void FUN_009c5df0(void) local_1c = 0; FUN_00a282c0(&local_1c); local_8 = 0; - FUN_00a288a0(local_24); + std::shared_ptr::assign(local_24); local_8 = 1; if (local_20 != (int *)0x0) { cVar1 = (**(code **)(*local_20 + 0xc))(uVar2); @@ -876534,10 +876534,10 @@ void FUN_009c61e0(undefined4 param_1,undefined1 param_2,int *param_3) *(undefined4 *)(in_ECX + 0x144) = 0; *puVar4 = 0; uVar5 = 0x9c6249; - FUN_00a288a0(¶m_2); + std::shared_ptr::assign(¶m_2); uVar6 = 0x9c6250; FUN_00837510(); - uVar3 = FUN_009586f0(DAT_00c7169c + 0x4a920,"#Online/LOBBY_JOIN_PASS_CHECK"); + uVar3 = string_table_translate(DAT_00c7169c + 0x4a920,"#Online/LOBBY_JOIN_PASS_CHECK"); FUN_00837660(uVar3,uVar5,uVar6); } local_8 = 1; @@ -876577,7 +876577,7 @@ void FUN_009c62c0(void) local_1c = 0; FUN_00a282c0(&local_1c); local_8 = 0; - FUN_00a288a0(local_24); + std::shared_ptr::assign(local_24); local_8 = 1; if (local_20 != (int *)0x0) { cVar1 = (**(code **)(*local_20 + 0xc))(uVar2); @@ -876653,7 +876653,7 @@ void FUN_009c63a0(void) local_70 = 0xbb; seed_fart_sound_override(); SoundEffects::Play(local_70,0x3f800000,2,0,0x3f800000,0); - FUN_009586f0(DAT_00c7169c + 0x4a920,"#Online/LOBBY_JOIN_PASS_WRONG_PASS"); + string_table_translate(DAT_00c7169c + 0x4a920,"#Online/LOBBY_JOIN_PASS_WRONG_PASS"); FUN_009c62c0(); local_7c = &DAT_bf800000; local_78 = &DAT_bf800000; @@ -876675,7 +876675,7 @@ void FUN_009c63a0(void) FUN_009c62c0(); } local_8 = 0xffffffff; - FUN_00426980(); + std::vector::_Tidy(); std::string::_Tidy_deallocate(); std::string::_Tidy_deallocate(); } @@ -877586,10 +877586,10 @@ void FUN_009c73c0(void) void FUN_009c7750(void) { - FUN_0069dac0(); - FUN_0069dac0(); - FUN_0069dac0(); - FUN_0069dac0(); + std::vector<12byte>::_Tidy(); + std::vector<12byte>::_Tidy(); + std::vector<12byte>::_Tidy(); + std::vector<12byte>::_Tidy(); return; } @@ -877651,8 +877651,8 @@ void FUN_009c7800(void) std::string::_Tidy_deallocate(); FID_conflict__Tidy((void *)(in_ECX + 0x1fd98)); _eh_vector_destructor_iterator_((void *)(in_ECX + 0x1e7b4),800,7,FUN_006f29a0); - FUN_00426980(); - FUN_0069dac0(); + std::vector::_Tidy(); + std::vector<12byte>::_Tidy(); this = (undefined4 *)(in_ECX + 0x1e778); FID_conflict__Erase_tree_>_> (this,(fuzzer_allocator_> *)this, @@ -877668,10 +877668,10 @@ void FUN_009c7800(void) _eh_vector_destructor_iterator_((void *)(in_ECX + 0x19d7c),0x5dc,8,FUN_00754d90); FUN_00752710(); _eh_vector_destructor_iterator_((void *)(in_ECX + 0x1a0),0xb8,0x20f,RoomDescriptor::destructor); - FUN_0069dac0(); - FUN_0069dac0(); - FUN_0069dac0(); - FUN_0069dac0(); + std::vector<12byte>::_Tidy(); + std::vector<12byte>::_Tidy(); + std::vector<12byte>::_Tidy(); + std::vector<12byte>::_Tidy(); ExceptionList = local_10; return; } @@ -877780,13 +877780,13 @@ void FUN_009c79a0(void) do { uVar4 = RoomDescriptor::constructor(&local_e0,uVar3); FUN_007387d0(uVar4); - FUN_00708e20(); + std::vector::_Tidy(); FID_conflict__Erase_tree_>_> (&local_e0.field_0x80, (fuzzer_allocator_> *)&local_e0.field_0x80, *(_Tree_node **)(local_e0._128_4_ + 4)); operator_delete(local_e0._128_4_,0x14); - FUN_00708e20(); + std::vector::_Tidy(); FUN_00708f90(); puVar2 = local_e4; *local_fc = uVar10; @@ -880108,7 +880108,7 @@ undefined4 FUN_009cb020(void) } uVar3 = 0; LAB_009cb5dc: - FUN_006eee10(uVar3); + EntitySaveStateRef::Set(uVar3); FUN_009cb020(); return 1; } @@ -882928,7 +882928,7 @@ undefined4 FUN_009d16ee(void) FUN_004d7530(iVar20,unaff_EBP + -0x100); } else { - FUN_004d3130(unaff_EBP + -0x100); + EntitySaveState::copy(unaff_EBP + -0x100); piVar17 = (int *)(*(int *)(unaff_EBP + -0x3c) + 4); *piVar17 = *piVar17 + 0x78; } @@ -884244,7 +884244,7 @@ LAB_009d422f: (**(code **)(*(int *)*puVar14 + 0x14))(unaff_EBP + -0x7c,4,1); *(undefined4 *)(unaff_EBP + -0x48) = *(undefined4 *)(unaff_EBP + -0x7c); FUN_00683410(unaff_EBP + -0x48,4); - FUN_004b0f50(unaff_EBP + -0x80); + std::deque::push_back(unaff_EBP + -0x80); uVar7 = *(int *)(unaff_EBP + -0x1c) + 1; *(uint *)(unaff_EBP + -0x1c) = uVar7; } while (uVar7 < *(uint *)(unaff_EBP + -0x28)); @@ -885447,7 +885447,7 @@ LAB_009d422f: (**(code **)(*(int *)*puVar16 + 0x14))(unaff_EBP + -0x7c,4,1); *(undefined4 *)(unaff_EBP + -0x48) = *(undefined4 *)(unaff_EBP + -0x7c); FUN_00683410(unaff_EBP + -0x48,4); - FUN_004b0f50(unaff_EBP + -0x80); + std::deque::push_back(unaff_EBP + -0x80); uVar10 = *(int *)(unaff_EBP + -0x1c) + 1; *(uint *)(unaff_EBP + -0x1c) = uVar10; } while (uVar10 < *(uint *)(unaff_EBP + -0x28)); @@ -890061,24 +890061,24 @@ void FUN_009d98f0(undefined4 param_1) pfStack_c0 = &(DAT_00c7169c->_buttonsSprite)._animState._animFrame; pcStack_bc = "#SAVE_DATA_CORRUPTED_NO_BACKUP_LINE_5"; ppuStack_c4 = (undefined **)0x9d9a3f; - uVar2 = FUN_009586f0(); + uVar2 = string_table_translate(); pfStack_c0 = &(DAT_00c7169c->_buttonsSprite)._animState._animFrame; local_90 = CONCAT44(uVar2,(undefined4)local_90); pcStack_bc = "#SAVE_DATA_CORRUPTED_NO_BACKUP_LINE_4"; ppuStack_c4 = (undefined **)0x9d9a5c; - uVar3 = FUN_009586f0(); + uVar3 = string_table_translate(); pfStack_c0 = &(DAT_00c7169c->_buttonsSprite)._animState._animFrame; pcStack_bc = "#SAVE_DATA_CORRUPTED_NO_BACKUP_LINE_3"; ppuStack_c4 = (undefined **)0x9d9a75; - ppuVar6 = (undefined **)FUN_009586f0(); + ppuVar6 = (undefined **)string_table_translate(); pfStack_c0 = &(DAT_00c7169c->_buttonsSprite)._animState._animFrame; pcStack_bc = "#SAVE_DATA_CORRUPTED_NO_BACKUP_LINE_2"; ppuStack_c4 = (undefined **)0x9d9a8e; - uVar2 = FUN_009586f0(); + uVar2 = string_table_translate(); pfStack_c0 = &(DAT_00c7169c->_buttonsSprite)._animState._animFrame; pcStack_bc = "#SAVE_DATA_CORRUPTED_NO_BACKUP_LINE_1"; ppuStack_c4 = (undefined **)0x9d9aa7; - uVar5 = FUN_009586f0(); + uVar5 = string_table_translate(); pcStack_bc = (char *)local_90._4_4_; ppuStack_c4 = ppuVar6; pfStack_c0 = (float *)uVar3; @@ -890087,25 +890087,25 @@ void FUN_009d98f0(undefined4 param_1) pfStack_c0 = (float *)((int)local_84 % 100); pcStack_bc = (char *)(((int)local_84 / 10000) % 10000); ppuStack_c4 = (undefined **)(((int)local_84 / 100) % 100); - uVar2 = FUN_009586f0(&(DAT_00c7169c->_buttonsSprite)._animState._animFrame, + uVar2 = string_table_translate(&(DAT_00c7169c->_buttonsSprite)._animState._animFrame, "#SAVE_DATA_CORRUPTED_HAS_BACKUP_LINE_3"); sprintf_s(local_80,100,uVar2); pfStack_c0 = &(DAT_00c7169c->_buttonsSprite)._animState._animFrame; pcStack_bc = "#SAVE_DATA_CORRUPTED_HAS_BACKUP_LINE_5"; ppuStack_c4 = (undefined **)0x9d99d4; - uVar3 = FUN_009586f0(); + uVar3 = string_table_translate(); pfStack_c0 = &(DAT_00c7169c->_buttonsSprite)._animState._animFrame; pcStack_bc = "#SAVE_DATA_CORRUPTED_HAS_BACKUP_LINE_4"; ppuStack_c4 = (undefined **)0x9d99ed; - uVar4 = FUN_009586f0(); + uVar4 = string_table_translate(); pfStack_c0 = &(DAT_00c7169c->_buttonsSprite)._animState._animFrame; pcStack_bc = "#SAVE_DATA_CORRUPTED_HAS_BACKUP_LINE_2"; ppuStack_c4 = (undefined **)0x9d9a06; - uVar2 = FUN_009586f0(); + uVar2 = string_table_translate(); pfStack_c0 = &(DAT_00c7169c->_buttonsSprite)._animState._animFrame; pcStack_bc = "#SAVE_DATA_CORRUPTED_HAS_BACKUP_LINE_1"; ppuStack_c4 = (undefined **)0x9d9a1f; - uVar5 = FUN_009586f0(); + uVar5 = string_table_translate(); ppuStack_c4 = local_80; pfStack_c0 = (float *)uVar4; pcStack_bc = (char *)uVar3; @@ -890129,7 +890129,7 @@ void FUN_009d98f0(undefined4 param_1) pfStack_c0 = (float *)0x0; pcStack_bc = (char *)0x0; local_8 = (undefined *)0x0; - FUN_00a288a0(in_ECX + 0x1a7); + std::shared_ptr::assign(in_ECX + 0x1a7); local_8 = (undefined *)0xffffffff; cVar1 = FUN_00907960(); pcStack_bc = (char *)extraout_ECX_00; @@ -890146,7 +890146,7 @@ void FUN_009d98f0(undefined4 param_1) pcStack_bc = local_a4; local_8 = (undefined *)0x3; pfStack_c0 = (float *)0x9d9bb3; - FUN_00a288a0(); + std::shared_ptr::assign(); pcStack_bc = (char *)0x9d9bbe; FUN_008e24c0(); ExceptionList = local_10; @@ -890167,7 +890167,7 @@ void FUN_009d98f0(undefined4 param_1) pcStack_bc = local_98; local_8 = (undefined *)0x1; pfStack_c0 = (float *)0x9d9bfa; - FUN_00a288a0(); + std::shared_ptr::assign(); local_9c = KAGE::Network::Multiplayer::ConstLobby::vftable; local_8 = (undefined *)0x2; if (local_94 != (int *)0x0) { @@ -890280,7 +890280,7 @@ LAB_009d9dc5: local_638 = DAT_00c7169c; piVar10 = (int *)SteamInternal_ContextInit(&PTR_FUN_00c5c3a4); if ((*piVar10 == 0) || (local_638->field_0x2a3a4 == '\0')) { - FUN_009294f0(); + PersistentGameData::Save(); } else { PersistentGameData::SaveToSteamCloud(&pMVar2->_persistentGameData); @@ -890672,7 +890672,7 @@ LAB_009da5d2: pPVar16->changesmade = 0; piVar10 = (int *)SteamInternal_ContextInit(&PTR_FUN_00c5c3a4); if ((*piVar10 == 0) || (pMVar3->field_0x2a3a4 == '\0')) { - FUN_009294f0(); + PersistentGameData::Save(); } else { PersistentGameData::SaveToSteamCloud(pPVar16); @@ -891357,7 +891357,7 @@ void FUN_009db250(undefined4 param_1,undefined1 param_2,int *param_3) uVar2 = DAT_00bf93b4 ^ (int)register0x00000010 - 4U; ExceptionList = &local_10; local_8 = 0; - FUN_00a288a0(¶m_2); + std::shared_ptr::assign(¶m_2); local_8 = 1; if (param_3 != (int *)0x0) { cVar1 = (**(code **)(*param_3 + 0xc))(uVar2); @@ -892415,7 +892415,7 @@ void FUN_009dc5a0(char param_1,int param_2) local_1c = 0; FUN_00a282c0(&local_1c); local_8 = 0; - FUN_00a288a0(local_24); + std::shared_ptr::assign(local_24); local_28 = KAGE::Network::Multiplayer::ConstLobby::vftable; local_8 = 1; if (local_20 != (int *)0x0) { @@ -892429,7 +892429,7 @@ void FUN_009dc5a0(char param_1,int param_2) local_1c = 0; FUN_00a282c0(&local_1c); local_8 = 2; - FUN_00a288a0(local_30); + std::shared_ptr::assign(local_30); local_8 = 3; if (local_2c != (int *)0x0) { cVar1 = (**(code **)(*local_2c + 0xc))(); @@ -892635,22 +892635,22 @@ void FUN_009dc830(void) *(int *)(iVar6 + 8) = iVar6; in_ECX[0xb] = 0; local_28 = 0; - FUN_006856c0(&local_28); - puVar5 = (undefined4 *)FUN_00684f30(); + std::vector::resize(&local_28); + puVar5 = (undefined4 *)std::deque::back(); if ((byte *)(puVar5 + 1) != (byte *)0x0) { *(byte *)(puVar5 + 1) = (byte)(DAT_00c798e4 >> 5) & 1; } *puVar5 = DAT_00c79948; - FUN_00a18300(in_ECX[3],0); - FUN_00a18230(); - FUN_00a18300(in_ECX[5],0); - FUN_00a18230(); + KAGE_Graphics::SetRenderTarget(in_ECX[3],0); + RenderTarget::Clear(); + KAGE_Graphics::SetRenderTarget(in_ECX[5],0); + RenderTarget::Clear(); if (DAT_00c79790 == 0) { /* WARNING: Subroutine does not return */ KAGE_LogMessage(0x10,"PopRenderTarget: stack is empty!\n"); } - puVar5 = (undefined4 *)FUN_00684f30(); - FUN_00a18300(*puVar5,*(undefined1 *)(puVar5 + 1)); + puVar5 = (undefined4 *)std::deque::back(); + KAGE_Graphics::SetRenderTarget(*puVar5,*(undefined1 *)(puVar5 + 1)); iVar6 = DAT_00c71678; DAT_00c79790 = DAT_00c79790 + -1; if (DAT_00c79790 == 0) { @@ -892661,7 +892661,7 @@ void FUN_009dc830(void) if (((*(char *)((int)local_28._4_4_ + 0xd) == '\0') && (*(int *)((int)local_28._4_4_ + 0x10) < 0x50)) && (local_28._4_4_ != (int *)*(int *)(iVar6 + 0x1bbd8))) { - FUN_009dcc70(1,0); + ItemPool::CreateGlitchedCollectible(1,0); } ExceptionList = local_10; return; @@ -892717,12 +892717,12 @@ undefined4 FUN_009dcbb0(int param_1,int param_2) } -//@@ 009dcc70 FUN_009dcc70 +//@@ 009dcc70 ItemPool::CreateGlitchedCollectible /* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */ /* WARNING: Type propagation algorithm not settling */ -undefined4 FUN_009dcc70(float param_1,byte param_2) +undefined4 ItemPool::CreateGlitchedCollectible(float param_1,byte param_2) { undefined4 ******ppppppuVar1; @@ -893981,13 +893981,13 @@ int FUN_009dfc90(int param_1,int param_2,undefined4 param_3,int param_4) } local_7c = 0; *(int *)(param_2 + 4) = -(in_ECX[1] - *in_ECX >> 2); - FUN_006856c0(&local_7c); - puVar4 = (undefined4 *)FUN_00684f30(); + std::vector::resize(&local_7c); + puVar4 = (undefined4 *)std::deque::back(); if ((byte *)(puVar4 + 1) != (byte *)0x0) { *(byte *)(puVar4 + 1) = (byte)(DAT_00c798e4 >> 5) & 1; } *puVar4 = DAT_00c79948; - FUN_00a18300(in_ECX[3],0); + KAGE_Graphics::SetRenderTarget(in_ECX[3],0); DAT_00c79900 = 0; DAT_00c79904 = 1; DAT_00c79908 = 7; @@ -894024,7 +894024,7 @@ int FUN_009dfc90(int param_1,int param_2,undefined4 param_3,int param_4) puVar11 = &local_7c; local_70[0] = (int *)((float)((int)(uVar5 + ((int)uVar5 >> 0x1f & 0x1fU)) >> 5) * (float)puVar9) ; - FUN_00a10e70(&local_74,puVar11,local_bc); + render_quad_set_rect(&local_74,puVar11,local_bc); uVar12 = 0x9dfea4; Color::Color(); KAGE::SmartPointer::operator_assign(&local_84); @@ -894033,8 +894033,8 @@ int FUN_009dfc90(int param_1,int param_2,undefined4 param_3,int param_4) } uVar12 = 1; std::string::assign(&DAT_00b1a4ec,0); - FUN_00a19180(1); - FUN_00a18300(in_ECX[5],0); + _glfw_context_reset(1); + KAGE_Graphics::SetRenderTarget(in_ECX[5],0); if ((DAT_00c798e4 & 4) == 0) { uVar12 = 6; } @@ -894080,7 +894080,7 @@ int FUN_009dfc90(int param_1,int param_2,undefined4 param_3,int param_4) puVar9 = local_bc; puVar11 = &local_7c; local_70[0] = (int *)((float)((int)(uVar5 + ((int)uVar5 >> 0x1f & 0x1fU)) >> 5) * fVar10); - FUN_00a10e70(&local_74,puVar11,puVar9); + render_quad_set_rect(&local_74,puVar11,puVar9); local_20 = 0; local_40 = 0x3f800000; uStack_3c = 0x3f800000; @@ -894095,9 +894095,9 @@ int FUN_009dfc90(int param_1,int param_2,undefined4 param_3,int param_4) KAGE::SmartPointer::operator_assign(&local_84); apply_sprite_shader_params(1,puVar11,puVar9); (**(code **)(*local_84 + 0x14))(&local_a8,local_19c,&DAT_00c37944); - FUN_00a19180(1); - FUN_006836c0(); - FUN_00a14050(extraout_ECX_00); + _glfw_context_reset(1); + pop_render_target(); + shader_cache_find(extraout_ECX_00); FUN_0084f0a0(param_2,1); iVar7 = in_ECX[1]; iVar2 = *in_ECX; @@ -894232,7 +894232,7 @@ void FUN_009e0340(int *param_1) uVar1 = 0; if (param_1[1] - *param_1 >> 2 != 0) { do { - FUN_009dcc70(*(undefined4 *)(*param_1 + uVar1 * 4),0); + ItemPool::CreateGlitchedCollectible(*(undefined4 *)(*param_1 + uVar1 * 4),0); uVar1 = uVar1 + 1; } while (uVar1 < (uint)(param_1[1] - *param_1 >> 2)); } @@ -894306,9 +894306,9 @@ void FUN_009e0450(int param_1) } -//@@ 009e04b0 FUN_009e04b0 +//@@ 009e04b0 collectible_set_has -undefined4 FUN_009e04b0(int param_1) +undefined4 collectible_set_has(int param_1) { int in_ECX; @@ -895259,7 +895259,7 @@ LAB_009e197e: local_40 = (float)in_ECX[7]; local_50 = 0; if ((in_ECX[8] != 0 || in_ECX[9] != 0) || (in_ECX[10] != 0 || in_ECX[0xb] != 0)) { - FUN_0067d1f0(uVar10,in_ECX[8],in_ECX[9],in_ECX[10],in_ECX[0xb],param_3,param_2); + get_tear_flags_from_player(uVar10,in_ECX[8],in_ECX[9],in_ECX[10],in_ECX[0xb],param_3,param_2); } pcVar3 = *(code **)(**(int **)((int)local_5c + (int)fVar9 * 4) + 0x20); EntityRef::constructor(param_1); @@ -895845,7 +895845,7 @@ undefined1 FUN_009e3560(uint param_1,uint param_2) local_8 = 0; local_80 = param_1; local_7c = 0xffffffff; - FUN_004b0f50(&local_80); + std::deque::push_back(&local_80); if (0x1bf < param_1) { /* WARNING: Subroutine does not return */ std::bitset::_Xran(); @@ -895971,7 +895971,7 @@ LAB_009e36ce: (cVar3 = FUN_009e3450(local_74,uVar4), cVar3 != '\0')) { local_94 = uVar4; local_90 = iVar12; - FUN_004b0f50(&local_94); + std::deque::push_back(&local_94); *local_78 = *local_78 | uVar10; local_78[1] = local_78[1] | local_7c; } @@ -896655,10 +896655,10 @@ void FUN_009e5300(void) void FUN_009e5370(void) { - FUN_0069dac0(); - FUN_0069dac0(); - FUN_0069dac0(); - FUN_0069dac0(); + std::vector<12byte>::_Tidy(); + std::vector<12byte>::_Tidy(); + std::vector<12byte>::_Tidy(); + std::vector<12byte>::_Tidy(); return; } @@ -897522,7 +897522,7 @@ LAB_009e63f7: local_54 = 0.0; } else { - FUN_006dac30(); + log_precise(); fVar12 = (fVar12 * ((float)*(int *)&DAT_00c71678->field_0x264fc / 30.0)) / (float)((double)(int)local_54 + (double)(&DAT_00bacb00)[-((int)local_54 >> 0x1f)]); FUN_007df1e0(); @@ -897547,7 +897547,7 @@ LAB_009e63f7: } while (piVar17 != piVar16); local_48 = piVar15; } - FUN_006dac30(); + log_precise(); fVar26 = ((float)((double)(int)local_48 + (double)(&DAT_00bacb00)[-((int)local_48 >> 0x1f)]) * fVar12) / 12.0; FUN_007df1e0(); @@ -897973,12 +897973,12 @@ void FUN_009e6c20(undefined4 *param_1,int param_2) iVar3 = param_1[4]; if (0x7fffffffU - iVar3 < 2) { /* WARNING: Subroutine does not return */ - FUN_0040ccc0(uVar1); + std::string::_Xlen(uVar1); } if (0xf < (uint)param_1[5]) { param_1 = (undefined4 *)*param_1; } - FUN_00421680(local_48,iVar3,param_1,iVar3,&DAT_00b80c08,2); + std::string::concat(local_48,iVar3,param_1,iVar3,&DAT_00b80c08,2); local_8 = 0; local_4c = (undefined4 *)FUN_0060c790(pcVar2); if (0xf < (uint)local_4c[5]) { @@ -898837,7 +898837,7 @@ joined_r0x009e7a8a: else { if (_Size == 0x7fffffff) { /* WARNING: Subroutine does not return */ - FUN_0040ccc0(uVar4); + std::string::_Xlen(uVar4); } uVar5 = _Size + 1 | 0xf; if (uVar5 < 0x80000000) { @@ -900938,7 +900938,7 @@ bool Seeds::IsSeedComboBanned(uint param_1,uint param_2) if ((param_1 < 0x50) && (param_2 < 0x50)) { piVar1 = (int *)(DAT_00c798c4 + param_1 * 8); - piVar2 = (int *)FUN_00557b00(¶m_1,¶m_2); + piVar2 = (int *)std::set::find(¶m_1,¶m_2); return *piVar2 != *piVar1; } return true; @@ -901152,7 +901152,7 @@ undefined4 Seeds::GetSeedEffect(undefined4 *param_1) local_14 = uVar1; if (in_stack_00000014 != 9) { if (in_stack_00000014 < 9) { - FUN_00414870(9 - in_stack_00000014,0x20); + std::string::append_n(9 - in_stack_00000014,0x20); } else { in_stack_00000014 = 9; @@ -903963,8 +903963,8 @@ void FUN_009ecdd0(void) uStack_80 = 0; uStack_7c = 0x3f000000; local_78 = 0; - uVar3 = FUN_00a10d00(DAT_00c78edc,&local_88); - FUN_00a1dfd0(uVar3); + uVar3 = render_quad_set_uniform_color(DAT_00c78edc,&local_88); + render_color_shader_pass(uVar3); local_58 = local_54 + 240.0; local_54 = local_48 + 135.0; if (*(char *)((int)in_ECX + 0xc51) != '\0') { @@ -903992,7 +903992,7 @@ void FUN_009ecdd0(void) uStack_7c = 0x3f800000; FUN_00a1b8e0(local_34,0xffffffff); puVar1 = local_40; - FUN_00a1af90(local_34,&local_88,&local_74); + Font::DrawString(local_34,&local_88,&local_74); local_14 = 0xffffffff; local_54 = 0.0; puVar4 = local_40 + 0x323; @@ -904504,13 +904504,13 @@ LAB_009edb15: uVar14 = (int)pcVar12 - (int)(pcVar18 + 1); if (0x7fffffffU - local_2c < uVar14) { /* WARNING: Subroutine does not return */ - FUN_0040ccc0(); + std::string::_Xlen(); } pppppuVar10 = local_3c; if (0xf < local_28) { pppppuVar10 = local_3c[0]; } - FUN_00421680(in_ECX,uVar14,pppppuVar10,local_2c,pcVar18,uVar14); + std::string::concat(in_ECX,uVar14,pppppuVar10,local_2c,pcVar18,uVar14); if (0xf < uStack_100a4) { uVar14 = uStack_100a4 + 1; pppppcVar11 = pppppcStack_100b8; @@ -908501,7 +908501,7 @@ void FUN_009f24b0(float *param_1,int param_2,undefined4 param_3,undefined4 param * local_5c + local_54[1]); FUN_009f2e20(¶m_3); pfVar9 = local_54; - FUN_00a10d00(local_54,&local_74); + render_quad_set_uniform_color(local_54,&local_74); uVar10 = 0x9f266e; Color::Color(); uVar8 = FUN_009f2e20(¶m_3); @@ -908556,7 +908556,7 @@ void FUN_009f24b0(float *param_1,int param_2,undefined4 param_3,undefined4 param local_70 = 0x3f800000; local_6c = 0x3f800000; local_68 = param_4; - FUN_004476a0(&local_74); + Color::Color(&local_74); if ((undefined4 *)(in_ECX + 0xa8) != &local_a0) { *(undefined4 *)(in_ECX + 0xa8) = local_a0; *(undefined4 *)(in_ECX + 0xac) = uStack_9c; @@ -909291,9 +909291,9 @@ undefined4 __thiscall Weapon::IsAxisAligned(Weapon *this) } -//@@ 009f33e0 FUN_009f33e0 +//@@ 009f33e0 Weapon::get_aim_direction -void FUN_009f33e0(undefined4 *param_1,undefined4 *param_2) +void Weapon::get_aim_direction(undefined4 *param_1,undefined4 *param_2) { undefined4 uVar1; @@ -909508,7 +909508,7 @@ LAB_009f3b99: ppWVar15 = &local_50; uVar14 = 1; piVar16 = piVar5; - uVar6 = FUN_009f3bd0(&local_48); + uVar6 = Weapon::get_owner_position(&local_48); piVar5 = (int *)FUN_009f6610(uVar6,uVar14,ppWVar15,piVar5,piVar16,uVar17); *(undefined1 *)(piVar5 + 0x146) = 1; local_64 = (Weapon *)piVar5; @@ -909552,7 +909552,7 @@ LAB_009f39d5: pWVar13 = local_60; atan2f(); Entity_NPC::SetAimAngle((float)pWVar13 * 57.295776); - FUN_009f5a30(&local_48,1,&local_50); + Weapon::GetOwnerLaserOffset(&local_48,1,&local_50); local_5c[0xd4] = (int)local_44; local_5c[0x104] = (int)local_48; local_5c[0xd3] = 0; @@ -909567,7 +909567,7 @@ LAB_009f39d5: local_5c[0x10b] = uVar9 & uVar1; local_5c[0x10c] = uVar11 & uVar2; local_5c[0x10d] = uVar10 & uVar3; - uVar6 = FUN_00665c20(local_38); + uVar6 = Entity_Player::GetTearHitParams_copy(local_38); piVar5 = local_5c; (**(code **)(*local_5c + 0x3c))(uVar6,0xffffffff,0xff,0,1); if (((float)local_60 <= -0.5) || ((float)local_64 <= -0.5)) { @@ -909594,7 +909594,7 @@ LAB_009f39d5: local_44 = (Weapon *)((uint)local_60 ^ 0x80000000); local_40 = local_44; local_3c = local_48; - uVar6 = FUN_009f3bd0(&local_50); + uVar6 = Weapon::get_owner_position(&local_50); piVar5 = (int *)FUN_009f6610(uVar6,5,&local_48,0,1,0x3e051eb8); (**(code **)(*piVar5 + 0xc))(); cVar4 = Entity_Player::HasCollectible(0x57,0); @@ -909602,12 +909602,12 @@ LAB_009f39d5: if (cVar4 != '\0') { local_48 = local_60; local_44 = local_3c; - uVar6 = FUN_009f3bd0(&local_50); + uVar6 = Weapon::get_owner_position(&local_50); piVar5 = (int *)FUN_009f6610(uVar6,5,&local_48,0,1,0x3e051eb8); (**(code **)(*piVar5 + 0xc))(); local_48 = local_40; local_44 = local_64; - uVar6 = FUN_009f3bd0(&local_50); + uVar6 = Weapon::get_owner_position(&local_50); piVar5 = (int *)FUN_009f6610(uVar6,5,&local_48,0,1,0x3e051eb8); (**(code **)(*piVar5 + 0xc))(); uVar6 = extraout_ECX_03; @@ -909618,9 +909618,9 @@ LAB_009f3b6a: } -//@@ 009f3bd0 FUN_009f3bd0 +//@@ 009f3bd0 Weapon::get_owner_position -void FUN_009f3bd0(undefined4 *param_1) +void Weapon::get_owner_position(undefined4 *param_1) { int iVar1; @@ -910063,9 +910063,9 @@ float10 __thiscall Weapon::GetChargeBarAmount(Weapon *this) } -//@@ 009f41c0 FUN_009f41c0 +//@@ 009f41c0 Weapon::GetMultiShotParams -undefined4 * FUN_009f41c0(undefined4 *param_1) +undefined4 * Weapon::GetMultiShotParams(undefined4 *param_1) { int iVar1; @@ -910104,11 +910104,11 @@ FUN_009f4230(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 } -//@@ 009f4280 FUN_009f4280 +//@@ 009f4280 Weapon::UpdateHeadChargeAnimation /* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */ -void FUN_009f4280(int param_1,int param_2,float *param_3,float param_4) +void Weapon::UpdateHeadChargeAnimation(int param_1,int param_2,float *param_3,float param_4) { int iVar1; @@ -910755,7 +910755,7 @@ int FUN_009f4ff0(undefined4 param_1) local_1c = 0; local_2c[0] = 0; iVar6 = iVar3 * 0x130 + *(int *)(iVar4 + 0x1220); - iVar3 = FUN_0075a2b0(iVar6,local_2c,iVar2,uVar1); + iVar3 = Weapon::is_held_item(iVar6,local_2c,iVar2,uVar1); if ((char)iVar3 != '\0') { *(undefined1 *)(iVar6 + 0x11c) = 0; } @@ -910845,7 +910845,7 @@ LAB_009f51e9: local_20 = 0; local_30[0] = 0; bVar8 = true; - cVar2 = FUN_0075a2b0(iVar9,local_30,uVar5,uVar3); + cVar2 = Weapon::is_held_item(iVar9,local_30,uVar5,uVar3); if (cVar2 == '\0') goto LAB_009f51e9; bVar1 = true; } @@ -910922,7 +910922,7 @@ void FUN_009f52c0(undefined4 param_1,int param_2,undefined4 param_3,float param_ iVar5 = *(int *)(in_ECX + 4); local_14 = uVar2; if ((iVar5 == 0) || (*(int *)(iVar5 + 0x28) != 1)) { - FUN_009f4280(0x2a6,param_2,param_3,param_4); + Weapon::UpdateHeadChargeAnimation(0x2a6,param_2,param_3,param_4); ExceptionList = local_10; return; } @@ -911343,9 +911343,9 @@ float * FUN_009f5890(float *param_1,float *param_2) } -//@@ 009f5a30 FUN_009f5a30 +//@@ 009f5a30 Weapon::GetOwnerLaserOffset -undefined4 * FUN_009f5a30(undefined4 *param_1,undefined4 param_2,undefined4 param_3) +undefined4 * Weapon::GetOwnerLaserOffset(undefined4 *param_1,undefined4 param_2,undefined4 param_3) { int *piVar1; @@ -911449,7 +911449,7 @@ LAB_009f5b91: (**(code **)(*piVar2 + 0xc))(); LAB_009f5c1f: if ((*(int *)(local_14 + 4) != 0) && (*(int *)(*(int *)(local_14 + 4) + 0x28) == 1)) { - iVar4 = FUN_007db8d0(); + iVar4 = Entity_Player::get_seeded_variant(); if (iVar4 == 2) { local_c = (float)piVar2[0xd8]; local_10 = (int *)piVar2[0xd9]; @@ -911741,7 +911741,7 @@ LAB_009f5ff5: if (pEVar8 != (Entity_Player *)0x0) { uVar6 = Random(); uVar4 = Entity_Player::GetTearHitParams(local_a8,2,local_bc,(uVar6 & 1) * 2 + -1,local_c4); - FUN_006075a0(uVar4); + TearParams::operator_(uVar4); } (**(code **)(*piVar5 + 0x40))(local_158._tearDamage); if (local_d4[1] <= -0.5) { @@ -911885,7 +911885,7 @@ int * FUN_009f6610(float *param_1,int param_2,float *param_3,char param_4,undefi atan2f(); iVar9 = local_d0; local_e0 = fVar5; - FUN_009f5a30(&local_cc,local_d0,param_3); + Weapon::GetOwnerLaserOffset(&local_cc,local_d0,param_3); fStack_bc = local_c8; local_cc = local_cc + *local_d4; local_c0 = 0.0; @@ -912352,7 +912352,7 @@ LAB_009f6ef1: if (fVar14 != 0.0) { uVar2 = Random(fVar13); uVar3 = Entity_Player::GetTearHitParams(local_c0,0xe,local_130,(uVar2 & 1) * 2 + -1); - FUN_006075a0(uVar3); + TearParams::operator_(uVar3); cVar1 = Entity_Player::HasCollectible(0x18a,0); if (cVar1 != '\0') { puVar4 = (uint *)BitSet128::__bnot(&local_38); @@ -912632,12 +912632,12 @@ LAB_009f7686: } -//@@ 009f7930 FUN_009f7930 +//@@ 009f7930 Weapon::TriggerTearEffects /* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */ /* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ -void FUN_009f7930(Vector *param_1,float *param_2) +void Weapon::TriggerTearEffects(Vector *param_1,float *param_2) { char cVar1; @@ -914314,13 +914314,13 @@ LAB_009f9c09: local_68 = *pfVar2; local_64 = pfVar2[1]; } - FUN_009f7930(&local_68,1); + Weapon::TriggerTearEffects(&local_68,1); fVar8 = local_68 * 12.0; fVar9 = local_64 * 12.0; pfVar2 = (float *)FUN_009f5890(&local_58,&DAT_00c7b640); fVar8 = fVar8 + *pfVar2; fVar9 = fVar9 + pfVar2[1]; - FUN_009f41c0(&local_40,extraout_ECX); + Weapon::GetMultiShotParams(&local_40,extraout_ECX); local_78 = (int *)-fVar9; if (uStack_24._1_1_ != '\0') { local_80 = (int *)(-fVar8 * local_88); @@ -915029,7 +915029,7 @@ LAB_009fabed: Random(); pRVar28 = local_1e8; Entity_Player::GetTearHitParams(); - FUN_006075a0(); + TearParams::operator_(); } Random(); local_238 = (Room *)((float)local_240 + 0.0); @@ -915271,7 +915271,7 @@ LAB_009fb512: goto LAB_009fba4f; } if (1.0 < (float)pRVar24) { - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); local_8 = 4; local_200 = (Room *)0x0; if (puStack_2b0 != (undefined1 *)0x0) { @@ -915300,7 +915300,7 @@ LAB_009fb512: pRVar31 = local_1e8; } Weapon::SetBlinkTime(); - FUN_009f7930(); + Weapon::TriggerTearEffects(); local_1c4._0_4_ = (float)local_224 * 3.0; local_1ec = (Room *)0x43960000; local_224 = (Room *)local_1c4._0_4_; @@ -915478,7 +915478,7 @@ LAB_009fbc0f: if (((0.0 < (float)in_ECX->_gridWidth || (float)in_ECX->_gridWidth == 0.0) || (0.0 < pVVar17->x) ) || ((char)local_1d0[0x119] != '\0')) goto LAB_009fbc27; LAB_009fbcd3: - FUN_009f41c0(); + Weapon::GetMultiShotParams(); pvVar23 = in_ECX->_descriptor; in_ECX->_gridWidth = (int)local_224; if (pvVar23 != (void *)0x0) { @@ -915491,7 +915491,7 @@ LAB_009fbcd3: } LAB_009fbd18: Weapon::SetBlinkTime(); - FUN_009f7930(); + Weapon::TriggerTearEffects(); local_1ec = (Room *)0x3f000000; local_280 = (Room *)0x3f800000; local_1c4._0_4_ = 1.0 / ((float)local_20c * 0.5 + 0.5); @@ -915641,7 +915641,7 @@ LAB_009fbd18: local_280 = *ppRVar22; } if (((char)local_250 != '\0') && ((float)local_228 <= (in_ECX->_topLeftPos).x)) { - FUN_009f4280(); + Weapon::UpdateHeadChargeAnimation(); local_220 = (Room *)((float)local_1f8 * 10.0); local_21c = (Room *)((float)local_1f4 * 10.0); local_1e0 = local_21c; @@ -915796,7 +915796,7 @@ LAB_009fc98a: } } if (((char)local_290 != '\0') && ((float)local_228 <= (in_ECX->_topLeftPos).x)) { - FUN_009f4280(); + Weapon::UpdateHeadChargeAnimation(); pRVar24 = local_1f4; atan2f(); local_21c = (Room *)((float)pRVar24 * 57.295776); @@ -916005,7 +916005,7 @@ LAB_009fc98a: else { local_1e0 = *(Room **)&in_ECX->field_0x5c; } - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); local_8 = 2; uVar26 = 0; if (local_270 != (Room *)0x0) { @@ -916103,7 +916103,7 @@ LAB_009fc98a: iVar16 = *(int *)(&in_ECX->field_0x44 + (int)pRVar24 * 4); *(short *)(iVar16 + 0x4ec) = (short)local_1e0; *(undefined2 *)(iVar16 + 0x4ee) = 0; - FUN_009680d0(); + Entity_Knife::SetAttackAnimation(); *(bool *)(*(int *)(&in_ECX->field_0x44 + (int)pRVar24 * 4) + 0x466) = local_1c8 == '\0'; } local_1c4._0_4_ = &pRVar24->field_0x1; @@ -916192,7 +916192,7 @@ LAB_009fc98a: piVar20[0x3a] = local_1d0[0x3a]; *(short *)(piVar20 + 0x13b) = (short)local_1e0; *(undefined2 *)((int)piVar20 + 0x4ee) = 0; - FUN_009680d0(); + Entity_Knife::SetAttackAnimation(); (**(code **)(*piVar20 + 0xc))(); } local_1c4._0_4_ = &((Room *)local_1c4._0_4_)->field_0x1; @@ -916257,7 +916257,7 @@ LAB_009fc98a: piVar20[0x3a] = local_1d0[0x3a]; *(short *)(piVar20 + 0x13b) = (short)local_1e0; *(undefined2 *)((int)piVar20 + 0x4ee) = 0; - FUN_009680d0(); + Entity_Knife::SetAttackAnimation(); (**(code **)(*piVar20 + 0xc))(); } iVar16 = Random(); @@ -916452,7 +916452,7 @@ LAB_009fe321: } else { if ((float)local_294 < (in_ECX->_topLeftPos).x || (float)local_294 == (in_ECX->_topLeftPos).x) { - FUN_009f4280(); + Weapon::UpdateHeadChargeAnimation(); piVar20 = local_1d0; fStack_34 = 1.0; local_20 = 0x3e4ccccd3e4ccccd; @@ -916460,7 +916460,7 @@ LAB_009fe321: Color::__mul(); } else { - FUN_009f4280(); + Weapon::UpdateHeadChargeAnimation(); piVar20 = local_1d0; } Weapon::SetBlinkTime((Weapon *)in_ECX); @@ -916471,7 +916471,7 @@ LAB_009fe321: } if (local_1d9 != 0) { LAB_009fe472: - FUN_009f4280(); + Weapon::UpdateHeadChargeAnimation(); Weapon::SetBlinkTime((Weapon *)in_ECX); fVar30 = ((float)local_210 / (float)local_224 - 1.0) * 0.5 + 1.0; fVar29 = 1.0; @@ -916513,7 +916513,7 @@ LAB_009fe472: if ((char)local_290 != '\0') { LAB_009fe5d9: if ((float)local_228 <= (in_ECX->_topLeftPos).x) { - FUN_009f4280(); + Weapon::UpdateHeadChargeAnimation(); pRVar24 = local_1e8; Color::Reset(); local_98 = 0x3f800000; @@ -916654,14 +916654,14 @@ LAB_009fe5d9: } } else { - FUN_009f4280(); + Weapon::UpdateHeadChargeAnimation(); } Weapon::SetBlinkTime((Weapon *)in_ECX); } } if ((char)local_250 != '\0') { if ((float)local_228 <= (in_ECX->_topLeftPos).x) { - FUN_009f4280(); + Weapon::UpdateHeadChargeAnimation(); local_40 = 0x3f800000; uStack_3c = 0x3f800000; uStack_38 = 0x3f800000; @@ -916671,7 +916671,7 @@ LAB_009fe5d9: Color::__mul(); } else { - FUN_009f4280(); + Weapon::UpdateHeadChargeAnimation(); } Weapon::SetBlinkTime((Weapon *)in_ECX); } @@ -916686,7 +916686,7 @@ LAB_009fe5d9: if ((iVar16 != 0) && (0.0 < fStack_34)) { (**(code **)(*piVar20 + 0x3c))(); } - pfVar19 = (float *)FUN_009f33e0(); + pfVar19 = (float *)Weapon::get_aim_direction(); (in_ECX->_bottomRightPos).y = *pfVar19; *(float *)&in_ECX->field_0x24 = pfVar19[1]; pRVar24 = local_210; @@ -917336,7 +917336,7 @@ LAB_009ff696: if ((((char)param_3 == '\0') && ((char)param_2 != '\0')) && ((byte)uVar13 != 0)) { pEVar21 = local_a8; if (local_66 != 0) { - pfVar5 = (float *)FUN_009f3bd0(local_34); + pfVar5 = (float *)Weapon::get_owner_position(local_34); fVar20 = ((float)pEVar10 - pfVar5[1]) * ((float)pEVar10 - pfVar5[1]) + ((float)pEVar18 - *pfVar5) * ((float)pEVar18 - *pfVar5); sqrtf(); @@ -917484,12 +917484,12 @@ LAB_009fffc8: local_8c = fVar20 * 0.5; } } - FUN_009f41c0(&local_d8,uVar8); + Weapon::GetMultiShotParams(&local_d8,uVar8); pEVar18 = local_64; atan2f(); in_ECX[0x11] = (int)((float)pEVar18 * 57.295776); if ((char)local_94 == '\0') { - FUN_009f4280(0x76,2,&local_60,&DAT_bf800000); + Weapon::UpdateHeadChargeAnimation(0x76,2,&local_60,&DAT_bf800000); } else { FUN_009f52c0(extraout_ECX_05,2,&local_60,&DAT_bf800000); @@ -917622,13 +917622,13 @@ LAB_00a00882: } else { uVar8 = Entity::GetIntervalTicks(); - FUN_009f7930(local_74,uVar8); + Weapon::TriggerTearEffects(local_74,uVar8); if (((char)local_a0 == '\0') && ((iVar12 = Entity::GetIntervalTicks(), iVar12 != 0 && ((char)local_94 != '\0')))) { FUN_00a00d10(); } if ((local_85 != '\0') || ((local_46 != '\0' && (local_45 != '\0')))) { - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); local_8 = 0; fVar20 = local_74[1]; atan2f(); @@ -917645,7 +917645,7 @@ LAB_00a00882: *(undefined1 *)((int)fVar20 + 0x4c0) = 1; *(undefined4 *)((int)fVar20 + 0x4c4) = 0; local_54 = pEVar18; - FUN_006827a0(); + angle_lerp_shortest(); *(Entity_Player **)((int)fVar20 + 0x4c8) = pEVar18; if (0.0 <= (float)pEVar18) { uVar8 = 0x41000000; @@ -917664,7 +917664,7 @@ LAB_00a00882: } *(undefined4 *)((int)fVar20 + 0x358) = uVar8; if ((local_46 != '\0') && (local_45 != '\0')) { - FUN_009f5a30(&local_60,4,local_74); + Weapon::GetOwnerLaserOffset(&local_60,4,local_74); *(Entity_Player **)((int)fVar20 + 0x34c) = local_60; *(Entity_Player **)((int)fVar20 + 0x350) = local_5c; if (*(int *)((int)fVar20 + 0x458) < 8) { @@ -917677,7 +917677,7 @@ LAB_00a00882: } pEVar18 = (Entity_Player *)in_ECX[0x11]; local_54 = pEVar18; - FUN_006827a0(); + angle_lerp_shortest(); if ((float)pEVar18 <= -8.0) { pEVar18 = (Entity_Player *)0xc1000000; } @@ -917701,7 +917701,7 @@ LAB_00a00882: pfVar5 = local_74; if (cVar2 == '\0') { if ((char)local_94 == '\0') { - FUN_009f4280(0x76,2,local_74,0xc0000000); + Weapon::UpdateHeadChargeAnimation(0x76,2,local_74,0xc0000000); if (((local_45 != '\0') && (local_46 != '\0')) && ((((iVar12 = in_ECX[1], iVar12 != 0 && (iVar11 = iVar12, *(int *)(iVar12 + 0x28) == 1)) || @@ -917761,11 +917761,11 @@ LAB_00a00882: } local_80 = local_54; local_58 = local_4c; - FUN_009f41c0(&local_d8,uVar8); + Weapon::GetMultiShotParams(&local_d8,uVar8); pEVar18 = local_80; atan2f(); in_ECX[0x11] = (int)((float)pEVar18 * 57.295776); - FUN_009f4280(0x76,3,&local_58,&DAT_bf800000); + Weapon::UpdateHeadChargeAnimation(0x76,3,&local_58,&DAT_bf800000); Weapon::SetBlinkTime(); iVar12 = 0; local_4e = 0; @@ -917880,7 +917880,7 @@ LAB_009ffb64: local_2c[0] = 0; std::string::assign(&DAT_00b1a4ec,0); local_70 = local_70 | 2; - cVar2 = FUN_0075a2b0(iVar12,local_2c,local_4c); + cVar2 = Weapon::is_held_item(iVar12,local_2c,local_4c); if ((cVar2 == '\0') || ((*(int *)(iVar12 + 0x34) == 0 || (local_65 = 1, *(char *)(iVar12 + 0x44) == '\0')))) { @@ -917941,7 +917941,7 @@ LAB_009ffde2: local_4c = pEVar18; if ((char)local_94 == '\0') { if (local_46 == '\0') { - FUN_009f4280(0x76,0,local_74,pEVar18); + Weapon::UpdateHeadChargeAnimation(0x76,0,local_74,pEVar18); } } else { @@ -917959,7 +917959,7 @@ LAB_009ffde2: } if ((char)local_94 == '\0') { if (local_46 != '\0') goto LAB_009ffde2; - FUN_009f4280(0x76,1,local_74,&DAT_bf800000); + Weapon::UpdateHeadChargeAnimation(0x76,1,local_74,&DAT_bf800000); } else { FUN_009f52c0(extraout_ECX_01,1,local_74,&DAT_bf800000); @@ -917967,7 +917967,7 @@ LAB_009ffde2: } cVar2 = Weapon::IsAxisAligned(); if (cVar2 == '\0') { - ppEVar7 = (Entity_Player **)FUN_009f33e0(local_34,pfVar5); + ppEVar7 = (Entity_Player **)Weapon::get_aim_direction(local_34,pfVar5); } else { local_60 = (Entity_Player *)*pfVar5; @@ -918035,7 +918035,7 @@ LAB_00a009e9: Entity_Laser::ResetSpriteScale(); FUN_00a00f90(piVar6); (**(code **)(*piVar6 + 0xc))(); - ppEVar4 = (Entity_Player **)FUN_004cf1d0(piVar6); + ppEVar4 = (Entity_Player **)EntityPtr::Set(piVar6); piVar6 = (int *)in_ECX[0x12]; goto LAB_00a00a7b; } @@ -918099,12 +918099,12 @@ LAB_00a00bb9: local_5c = (Entity_Player *) (*(float *)(*piVar6 + 0x340) - *(float *)(in_ECX[1] + 0x340)); uVar8 = Vector::Normalized(local_ac); - FUN_009f7930(uVar8,1); + Weapon::TriggerTearEffects(uVar8,1); goto LAB_009ffe64; } } uVar8 = MusicManager::RandomVector(local_90); - FUN_009f7930(uVar8,1); + Weapon::TriggerTearEffects(uVar8,1); } } } @@ -918179,7 +918179,7 @@ void FUN_00a00d10(void) local_18 = *(float *)(iVar5 + 0x1464); } local_28 = in_ECX; - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); uVar7 = 0; local_8 = 0; if (local_3c != 0) { @@ -918423,7 +918423,7 @@ LAB_00a010c6: uVar12 = *(undefined4 *)(local_f8 + 4); uVar7 = Random(); Entity_Player::GetTearHitParams(local_e8,2,local_ec * 1.5,(uVar7 & 1) * 2 + -1,uVar12); - FUN_006075a0(); + TearParams::operator_(); local_1d8._56_4_ = local_1d8._56_4_ | DAT_00c34c60; local_1d8._60_4_ = local_1d8._60_4_ | DAT_00c34c64; local_1d8._64_4_ = local_1d8._64_4_ | DAT_00c34c68; @@ -918501,7 +918501,7 @@ LAB_00a01301: Capsule::constructor(&local_200,&local_124,&local_148,fVar17 * 57.295776); if (((*(uint *)(DAT_00c71678 + 0x26544) >> 5 & 1) != 0) && (0.0 < local_200._unkFloat1)) { DebugRenderer::Get(*(undefined4 *)(*(int *)(local_f8 + 4) + 0x20),1); - FUN_0042eef0(); + push_shape_points(); } local_150 = local_200._position.x; local_14c = (int *)local_200._position.y; @@ -918877,7 +918877,7 @@ LAB_00a018a9: seed_fart_sound_override(); SoundEffects::Play(local_ec,0x3f800000,2,0,0x3f800000,0); iVar15 = local_f8; - FUN_009f5a30(&local_124,4,param_2); + Weapon::GetOwnerLaserOffset(&local_124,4,param_2); Color::Reset(); piVar11 = local_fc; local_7c = 0x40000000; @@ -919111,7 +919111,7 @@ void __thiscall NPCAI_Pathfinder::MoveRandomlyAxisAligned(NPCAI_Pathfinder *this ppppfStack_b8 = (float ****)&local_70; local_84 = param_2; local_b4 = this; - FUN_009f41c0(); + Weapon::GetMultiShotParams(); fVar15 = (this->_targetRelated1).x; if (fVar15 == 0.0) { LAB_00a02903: @@ -919140,7 +919140,7 @@ LAB_00a02934: local_b4 = (NPCAI_Pathfinder *)&DAT_bf800000; ppppfStack_b8 = (float ****)param_2; if ((*(uint *)&this->field_0x34 >> 9 & 1) == 0) { - FUN_009f4280(0x76,2); + Weapon::UpdateHeadChargeAnimation(0x76,2); ppppiVar10 = (int ****)0x0; local_8c = (float *)0x0; local_98 = (int ****)0x0; @@ -919341,7 +919341,7 @@ LAB_00a02da1: (**(code **)(*piVar19 + 0xc))(); return; } - FUN_009f4280(0x76,3); + Weapon::UpdateHeadChargeAnimation(0x76,3); ppppfStack_b8 = (float ****)0xa; Weapon::SetBlinkTime((Weapon *)this); cVar5 = '\0'; @@ -919515,7 +919515,7 @@ LAB_00a03209: cVar1 = Weapon::IsAxisAligned(); fVar8 = 1.0; if (cVar1 == '\0') { - pfVar2 = (float *)FUN_009f33e0(auStack_18,&fStack_10); + pfVar2 = (float *)Weapon::get_aim_direction(auStack_18,&fStack_10); fVar13 = *pfVar2; fVar9 = pfVar2[1]; fVar8 = fVar13 * fVar13 + fVar9 * fVar9; @@ -919541,7 +919541,7 @@ LAB_00a03209: auVar10._0_4_ = fVar11; } if (auVar10._0_4_ <= fVar13) { - FUN_009f4280(0xe5,2,&fStack_10,&DAT_bf800000); + Weapon::UpdateHeadChargeAnimation(0xe5,2,&fStack_10,&DAT_bf800000); Weapon::SetBlinkTime(); iVar3 = FUN_009f5890(auStack_18,&fStack_10); auStack_18[0] = *(undefined4 *)(iVar3 + 4); @@ -919551,7 +919551,7 @@ LAB_00a03209: Random(); cos(); sin(); - FUN_009f3bd0(&fStack_10); + Weapon::get_owner_position(&fStack_10); iVar3 = Room::MamaMegaExplosion(); if (local_34 != 0) { *(undefined4 *)(iVar3 + 0x420) = 0x3f4ccccd; @@ -919596,7 +919596,7 @@ LAB_00a03209: in_ECX[5] = (int)(fVar8 + fVar13); puVar12 = (undefined1 *)(((fVar8 + fVar13) / (float)fVar7) * 18.0); } - FUN_009f4280(0xe5,uVar6,param_1,puVar12); + Weapon::UpdateHeadChargeAnimation(0xe5,uVar6,param_1,puVar12); Weapon::SetBlinkTime(); in_ECX[8] = *param_1; in_ECX[9] = param_1[1]; @@ -919828,15 +919828,15 @@ LAB_00a03e32: if (iVar5 == 0) { Weapon::SetBlinkTime(); } - FUN_009f7930(&local_60,1); - FUN_009f3bd0(&local_68); + Weapon::TriggerTearEffects(&local_60,1); + Weapon::get_owner_position(&local_68); local_4c = (float)local_60 * 10.0; local_44 = (float)local_5c * 10.0; pfVar3 = (float *)FUN_009f5890(&local_78,&local_60); local_4c = local_4c + *pfVar3; local_44 = local_44 + pfVar3[1]; uVar17 = extraout_ECX_00; - FUN_009f41c0(&local_a4,extraout_ECX_00); + Weapon::GetMultiShotParams(&local_a4,extraout_ECX_00); local_40 = -local_44; if (uStack_88._1_1_ != '\0') { local_58 = -local_4c * local_6c; @@ -919946,7 +919946,7 @@ LAB_00a03e32: } goto LAB_00a03e32; } - FUN_009f4280(0x2a6,2,local_50,&DAT_bf800000); + Weapon::UpdateHeadChargeAnimation(0x2a6,2,local_50,&DAT_bf800000); pfVar3 = extraout_ECX_06; } in_ECX[5] = 0; @@ -919994,7 +919994,7 @@ LAB_00a03f02: } if ((char)param_3 == '\0') { Weapon::SetBlinkTime(); - piVar7 = (int *)FUN_009f33e0(local_70,piVar4); + piVar7 = (int *)Weapon::get_aim_direction(local_70,piVar4); in_ECX[8] = *piVar7; in_ECX[9] = piVar7[1]; } @@ -920203,16 +920203,16 @@ LAB_00a04c17: local_34 = (int *)((float)piVar8[0xd0] - *(float *)(this->SelectedElement + 0x340)); Vector::Normalized(); } - FUN_009f7930(); + Weapon::TriggerTearEffects(); } if ((**(char **)(DAT_00c71678 + 0x18300) != '\0') && (*(int *)(DAT_00c71678 + 0x264f8) == *(int *)(*(char **)(DAT_00c71678 + 0x18300) + 0x11f0))) { - piVar11 = (int *)FUN_009f3bd0(); + piVar11 = (int *)Weapon::get_owner_position(); piVar8[0xcf] = *piVar11; piVar8[0xd0] = piVar11[1]; } - FUN_009f41c0(); + Weapon::GetMultiShotParams(); local_2c = (int *)((short)local_80 + -1); local_3c = 0; if ((int)local_2c < 0) { @@ -920371,7 +920371,7 @@ LAB_00a04e59: local_38 = ppvVar6; local_34 = (int *)fVar20; if (((param_4 == '\0') && (param_3 != '\0')) && (local_11 != '\0')) { - pfVar5 = (float *)FUN_009f3bd0(); + pfVar5 = (float *)Weapon::get_owner_position(); fVar20 = (fVar20 - pfVar5[1]) * (fVar20 - pfVar5[1]) + ((float)ppvVar6 - *pfVar5) * ((float)ppvVar6 - *pfVar5); sqrtf(); @@ -920547,7 +920547,7 @@ LAB_00a044dd: if ((float)pvVar12 <= (float)local_2c) { local_4c = pvVar12; } - FUN_009f7930(); + Weapon::TriggerTearEffects(); local_94 = *(undefined4 *)((int)ppvVar6 + 0x410); uStack_90 = *(undefined4 *)((int)ppvVar6 + 0x414); uStack_8c = *(undefined4 *)((int)ppvVar6 + 0x418); @@ -920656,7 +920656,7 @@ LAB_00a04912: } *(void **)&(this->GameMenuSprite).field_0x4 = pvVar12; } - puVar7 = (undefined4 *)FUN_009f33e0(); + puVar7 = (undefined4 *)Weapon::get_aim_direction(); *(undefined4 *)&(this->GameMenuSprite).field_0x10 = *puVar7; *(undefined4 *)&(this->GameMenuSprite).field_0x14 = puVar7[1]; } @@ -921123,12 +921123,12 @@ LAB_00a06200: fStack_3c = *(float *)(iVar7 + 0x33c) - *(float *)(in_ECX[1] + 0x33c); pfStack_38 = (float *)(*(float *)(iVar7 + 0x340) - *(float *)(in_ECX[1] + 0x340)); uVar9 = Vector::Normalized(); - pfVar8 = (float *)FUN_009f7930(uVar9,1); + pfVar8 = (float *)Weapon::TriggerTearEffects(uVar9,1); return pfVar8; } } uVar9 = MusicManager::RandomVector(); - pfVar8 = (float *)FUN_009f7930(uVar9,1); + pfVar8 = (float *)Weapon::TriggerTearEffects(uVar9,1); return pfVar8; } uVar5 = uVar12 >> 1; @@ -921207,7 +921207,7 @@ LAB_00a054e1: pfStack_44 = pfVar8; fStack_40 = fVar17; if ((((char)param_3 == '\0') && (local_6e != '\0')) && ((char)iVar7 != '\0')) { - pfVar6 = (float *)FUN_009f3bd0(); + pfVar6 = (float *)Weapon::get_owner_position(); fVar16 = (fVar17 - pfVar6[1]) * (fVar17 - pfVar6[1]) + ((float)pfVar8 - *pfVar6) * ((float)pfVar8 - *pfVar6); sqrtf(); @@ -921318,7 +921318,7 @@ LAB_00a056d2: } if (uVar14 == 0) goto LAB_00a05c7f; if ((uVar12 & 1) != 0) { - FUN_009f4280(0xe5,2,&fStack_3c,&DAT_bf800000); + Weapon::UpdateHeadChargeAnimation(0xe5,2,&fStack_3c,&DAT_bf800000); fStack_60 = fStack_3c; pfVar6 = pfStack_38; } @@ -921340,8 +921340,8 @@ LAB_00a056d2: } fStack_3c = fStack_60; Weapon::SetBlinkTime(); - FUN_009f7930(&fStack_3c,1); - FUN_009f41c0(auStack_2c,extraout_ECX); + Weapon::TriggerTearEffects(&fStack_3c,1); + Weapon::GetMultiShotParams(auStack_2c,extraout_ECX); fVar17 = 0.0; if ((uVar12 & 1) != 0) { fVar17 = 1.68156e-44; @@ -921464,13 +921464,13 @@ LAB_00a05c7f: local_58 = pfVar6; if ((bVar13 != 0) || ((uVar12 & 1) != 0)) { if (local_5c <= (float)pfVar6) { - FUN_009f4280(0xe5,1,&fStack_3c,&DAT_bf800000); - FUN_009f4280(0x44,1,&fStack_3c,&DAT_bf800000); + Weapon::UpdateHeadChargeAnimation(0xe5,1,&fStack_3c,&DAT_bf800000); + Weapon::UpdateHeadChargeAnimation(0x44,1,&fStack_3c,&DAT_bf800000); } else { local_58 = (float *)(((float)pfVar6 / local_5c) * 18.0); - FUN_009f4280(0xe5,0,&fStack_3c,local_58); - FUN_009f4280(0x44,0,&fStack_3c,local_58); + Weapon::UpdateHeadChargeAnimation(0xe5,0,&fStack_3c,local_58); + Weapon::UpdateHeadChargeAnimation(0x44,0,&fStack_3c,local_58); if (in_ECX[1] == 0) { local_58 = (float *)((float)in_ECX[5] + 1.0); } @@ -921485,8 +921485,8 @@ LAB_00a05c7f: fVar15 = (float10)(**(code **)(*in_ECX + 0x18))(); local_4c[0] = (float)fVar15; if (local_4c[0] <= (float)in_ECX[5]) { - FUN_009f4280(0x44,1,&fStack_3c,&DAT_bf800000); - FUN_009f4280(0x13c,1,&fStack_3c,&DAT_bf800000); + Weapon::UpdateHeadChargeAnimation(0x44,1,&fStack_3c,&DAT_bf800000); + Weapon::UpdateHeadChargeAnimation(0x13c,1,&fStack_3c,&DAT_bf800000); pfVar6 = local_58; } else { @@ -921494,10 +921494,10 @@ LAB_00a05c7f: fVar17 = ((float)in_ECX[5] / local_4c[0]) * 18.0; uVar20 = CONCAT44(fVar17,&fStack_3c); if (*(int *)(in_ECX[1] + 0x28) == 1) { - FUN_009f4280(0x44,0,&fStack_3c,fVar17); + Weapon::UpdateHeadChargeAnimation(0x44,0,&fStack_3c,fVar17); uVar20 = ZEXT48(&fStack_3c); } - FUN_009f4280(0x13c,0,uVar20); + Weapon::UpdateHeadChargeAnimation(0x13c,0,uVar20); } if (in_ECX[1] == 0) { pfVar6 = (float *)((float)in_ECX[5] + 1.0); @@ -921516,7 +921516,7 @@ LAB_00a05c7f: if ((char)param_2 != '\0') { cVar4 = Weapon::IsAxisAligned(); if (cVar4 == '\0') { - piVar10 = (int *)FUN_009f33e0(local_4c,&fStack_3c); + piVar10 = (int *)Weapon::get_aim_direction(local_4c,&fStack_3c); in_ECX[8] = *piVar10; pfVar8 = (float *)piVar10[1]; in_ECX[9] = (int)pfVar8; @@ -921959,7 +921959,7 @@ LAB_00a06b3a: iVar7 = (int)*(char *)(iVar8 + 0x1578); } uVar4 = Entity_Player::GetTearHitParams(local_7c,8,0x3f800000,iVar7,iVar8); - FUN_006075a0(uVar4); + TearParams::operator_(uVar4); } uVar4 = Random(); local_11c = (Entity_Tear *)((float)local_f0 + 0.0); @@ -922085,11 +922085,11 @@ LAB_00a06df7: *(float *)(*(int *)(iVar7 + 4) + 0x340)); uVar4 = Vector::Normalized(&local_11c); } - FUN_009f7930(uVar4,1); + Weapon::TriggerTearEffects(uVar4,1); iVar8 = extraout_ECX_04; } } - FUN_009f41c0(local_1b0,iVar8); + Weapon::GetMultiShotParams(local_1b0,iVar8); local_e8 = (Entity_Tear *)(local_1b0[0] + -1); local_100 = (Entity_Tear *)0x0; local_14c = 0; @@ -922132,7 +922132,7 @@ LAB_00a06df7: uVar4 = FUN_009f57f0(); uVar4 = Entity_Player::GetTearHitParams (local_7c,8,0x3f800000,uVar4,*(undefined4 *)(extraout_ECX_05 + 4)); - FUN_006075a0(uVar4); + TearParams::operator_(uVar4); pEVar12 = local_e8; } local_e8 = (Entity_Tear *)((int)pEVar12 - (int)local_f4); @@ -922255,7 +922255,7 @@ LAB_00a07202: local_ec = (Entity_Tear *)0x0; local_150 = (Entity_Tear *)0x0; local_8._0_1_ = 1; - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); + EntityList::QuerySublist((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); local_8 = CONCAT31(local_8._1_3_,2); local_e8 = pEStack_160; if (pEStack_160 == (Entity_Tear *)0x0) { @@ -922558,7 +922558,7 @@ LAB_00a07d95: local_38 = (float)in_ECX[9]; cVar3 = Weapon::IsAxisAligned(); if (cVar3 == '\0') { - pfVar6 = (float *)FUN_009f33e0(&local_34,&local_3c); + pfVar6 = (float *)Weapon::get_aim_direction(&local_34,&local_3c); fVar12 = *pfVar6; fVar19 = pfVar6[1]; fVar11 = fVar12 * fVar12 + fVar19 * fVar19; @@ -922595,7 +922595,7 @@ LAB_00a07d95: if ((char)param_2 != '\0') { if (bVar1) { if (bVar4 != 0) { - pfVar6 = (float *)FUN_009f3bd0(); + pfVar6 = (float *)Weapon::get_owner_position(); fVar12 = (fVar19 - pfVar6[1]) * (fVar19 - pfVar6[1]) + (fVar12 - *pfVar6) * (fVar12 - *pfVar6); sqrtf(); @@ -922619,7 +922619,7 @@ LAB_00a07d95: if (auVar16._0_4_ <= (float)in_ECX[5]) goto LAB_00a0811a; } if (local_50 <= (float)in_ECX[5]) { - FUN_009f4280(0xe5,1,param_1,&DAT_bf800000); + Weapon::UpdateHeadChargeAnimation(0xe5,1,param_1,&DAT_bf800000); } else { if (in_ECX[1] == 0) { @@ -922630,7 +922630,7 @@ LAB_00a07d95: } fVar13 = (float)in_ECX[5] + fVar13; in_ECX[5] = (int)fVar13; - FUN_009f4280(0xe5,0,param_1,(fVar13 / local_50) * 18.0); + Weapon::UpdateHeadChargeAnimation(0xe5,0,param_1,(fVar13 / local_50) * 18.0); if (local_50 <= (float)in_ECX[5]) { seed_fart_sound_override(); SoundEffects::Play(0x380,0x3f800000,2,0,0x3f800000,0); @@ -922658,7 +922658,7 @@ LAB_00a0811a: local_4c = auVar18._0_4_; } if (local_4c <= (float)in_ECX[5]) { - FUN_009f4280(0xe5,2,&local_3c,&DAT_bf800000); + Weapon::UpdateHeadChargeAnimation(0xe5,2,&local_3c,&DAT_bf800000); Weapon::SetBlinkTime(); fStack_58 = local_3c * 10.0; fStack_54 = local_38 * 10.0; @@ -922689,7 +922689,7 @@ LAB_00a0811a: } local_50 = fVar13 * 0.8; } - FUN_009f41c0(asStack_2c,uVar9); + Weapon::GetMultiShotParams(asStack_2c,uVar9); local_4c = 1.68156e-44; if (iVar5 != 0) { cVar3 = Entity_Player::HasCollectible(0x213,0); @@ -922709,7 +922709,7 @@ LAB_00a0811a: local_4c = (float)(int)dVar20; } } - FUN_009f7930(&local_3c,local_4c); + Weapon::TriggerTearEffects(&local_3c,local_4c); local_48 = 0; iVar5 = (int)local_4c + (int)(((float)(int)local_4c / 5.0) * (float)(int)asStack_2c[0]); if (0 < iStack_18) { @@ -923179,7 +923179,7 @@ LAB_00a08fb1: ExceptionList = local_10; return; } - FUN_009f41c0(local_88,pfVar16); + Weapon::GetMultiShotParams(local_88,pfVar16); if (((char)local_14 == '\0') || (cVar3 = Entity_Player::HasCollectible(0x164,0), cVar3 == '\0')) { sVar4 = local_88[0]; } @@ -923332,8 +923332,8 @@ LAB_00a08fb1: if ((*piVar8 != 0 || piVar8[1] != 0) || (piVar8[2] != 0 || piVar8[3] != 0)) { local_44 = *(undefined4 *)(*piVar11 + 0x33c); local_40 = *(undefined4 *)(*piVar11 + 0x340); - FUN_00705b90(&local_44,0,0); - NpcAI::ENTITY_MASK((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); + Game::AttractEntities(&local_44,0,0); + EntityList::QuerySublist((Entity_NPC *)(*(int *)(DAT_00c71678 + 0x18300) + 0x1218)); iVar7 = local_50; uVar5 = 0; local_8 = 0; @@ -923343,7 +923343,7 @@ LAB_00a08fb1: if (*(int *)(iVar10 + 0x3bc) == *piVar11) { local_44 = *(undefined4 *)(iVar10 + 0x33c); local_40 = *(undefined4 *)(iVar10 + 0x340); - FUN_00705b90(&local_44,0,0); + Game::AttractEntities(&local_44,0,0); } uVar5 = uVar5 + 1; } while (uVar5 < local_48); @@ -923481,7 +923481,7 @@ LAB_00a098fd: } pfVar16 = &local_3c; } - FUN_009f7930(pfVar16,1); + Weapon::TriggerTearEffects(pfVar16,1); LAB_00a09959: if ((*piVar11 != 0) && (*(char *)(*piVar11 + 0x173) != '\0')) { *(undefined4 *)(in_ECX + 0xc) = *(undefined4 *)(in_ECX + 0x10); @@ -923812,7 +923812,7 @@ LAB_00a09e89: piVar14 = local_88; uVar19 = 0xa0a02d; puVar7 = extraout_ECX; - FUN_009f41c0(piVar14,extraout_ECX); + Weapon::GetMultiShotParams(piVar14,extraout_ECX); if (local_6b != '\0') { piVar13 = (int *)Weapon::FireSword(); puVar7 = (undefined4 *)0xa0a061; @@ -923915,7 +923915,7 @@ LAB_00a09e89: } while (uVar10 < uVar12); uVar10 = 0; do { - FUN_009680d0(); + Entity_Knife::SetAttackAnimation(); (**(code **)(**(int **)(iStack_60 + uVar10 * 4) + 0xc))(); param_1 = *(float **)(*(int *)(iStack_60 + uVar10 * 4) + 0x388); puVar7 = ¶m_1; @@ -923936,7 +923936,7 @@ LAB_00a09e89: if ((20.0 < (float)param_3) && (1.5 < (float)local_18)) { Game::ShakeScreen((int)((float)local_18 * 5.0)); } - FUN_009f7930(&local_54,1); + Weapon::TriggerTearEffects(&local_54,1); local_8 = 0xffffffff; in_ECX = local_30; if (iStack_60 != 0) { @@ -923983,8 +923983,8 @@ LAB_00a0a43d: } } else { - FUN_009f41c0(local_88,param_2); - FUN_00968430((int)(short)local_88[0],0); + Weapon::GetMultiShotParams(local_88,param_2); + Entity_Knife::SpinAttack((int)(short)local_88[0],0); if ((local_11 != '\0') && (iVar8 = *(int *)&in_ECX[1].field_0x8, iVar8 != 0)) { if (local_20 == (int *)0x0) { fVar15 = 260.0; @@ -924009,7 +924009,7 @@ LAB_00a0a43d: Entity_Knife::Shoot(0x3f800000,fVar15); } in_ECX->_charge = 0.0; - FUN_009f7930(&local_54,6); + Weapon::TriggerTearEffects(&local_54,6); } _Str1 = *(char **)(*(int *)&in_ECX[1].field_0x8 + 0x7c); if (_Str1 == (char *)0x0) { @@ -924309,7 +924309,7 @@ LAB_00a0a886: local_128 = (uint)local_a9; } if (local_d4 != 0) { - iVar7 = FUN_007db8d0(uVar6); + iVar7 = Entity_Player::get_seeded_variant(uVar6); local_e0 = (float)((uint)local_e0 & 0xff); if (iVar7 != -1) { local_e0 = 1.4013e-45; @@ -924357,7 +924357,7 @@ LAB_00a0a98e: } if (((char)param_3 == '\0') && (local_a9 != '\0')) { if (bVar17) { - pfVar8 = (float *)FUN_009f3bd0(&local_14c); + pfVar8 = (float *)Weapon::get_owner_position(&local_14c); fVar20 = ((float)pAVar21 - pfVar8[1]) * ((float)pAVar21 - pfVar8[1]) + ((float)pAVar12 - *pfVar8) * ((float)pAVar12 - *pfVar8); sqrtf(); @@ -924651,12 +924651,12 @@ LAB_00a0b10f: FUN_009f4ff0(0x255); } else { - FUN_009f4280(0x255,2,&local_f8,fVar20); + Weapon::UpdateHeadChargeAnimation(0x255,2,&local_f8,fVar20); local_dc = local_f4; local_d8 = local_f8; } } - FUN_009f7930(&local_144,1); + Weapon::TriggerTearEffects(&local_144,1); if (local_d4 != 0) { if (local_13c == 0) { if (local_110 < (ANM2 *)0x2) { @@ -924800,13 +924800,13 @@ LAB_00a0b3c1: if (((0xffffffff < lVar25) && (0 < iVar7)) && (iVar16 < iVar7 + -1)) { local_bc = fVar20 + ((float)iVar16 * 24.0) / (float)iVar7; } - iVar7 = FUN_007db8d0(); + iVar7 = Entity_Player::get_seeded_variant(); if (iVar7 == 2) { local_bc = local_bc + 24.0; LAB_00a0b676: } else { - iVar7 = FUN_007db8d0(); + iVar7 = Entity_Player::get_seeded_variant(); if (iVar7 == 4) { local_bc = local_bc + 8.0; goto LAB_00a0b676; @@ -924999,7 +924999,7 @@ LAB_00a0bfdc: } while ((int)local_b0 < (int)sVar5); } } - if ((local_d4 != 0) && (iVar7 = FUN_007db8d0(), iVar7 != -1)) { + if ((local_d4 != 0) && (iVar7 = Entity_Player::get_seeded_variant(), iVar7 != -1)) { uVar26 = Random(); fVar20 = (float)local_b8 * (float)local_b8 + (float)local_d0 * (float)local_d0; sqrtf(); @@ -925167,7 +925167,7 @@ LAB_00a0d400: -8.0 - (float)((double)iVar14 + (double)(&DAT_00bacb00)[-(iVar14 >> 0x1f)]) * 2.3283064e-10 * 16.0; (**(code **)(iVar7 + 0xc))(); - uVar26 = FUN_007db8d0(); + uVar26 = Entity_Player::get_seeded_variant(); switch(uVar26) { case 2: case 3: @@ -925462,10 +925462,10 @@ LAB_00a0d2c8: fVar19 = (float10)(**(code **)(*in_ECX + 0x18))(); local_b0 = (ANM2 *)(float)fVar19; if ((float)local_b0 <= (float)in_ECX[5]) { - FUN_009f4280(0x45,1,&local_f8,&DAT_bf800000); + Weapon::UpdateHeadChargeAnimation(0x45,1,&local_f8,&DAT_bf800000); } else { - FUN_009f4280(0x45,0,&local_f8,((float)in_ECX[5] / (float)local_b0) * 18.0); + Weapon::UpdateHeadChargeAnimation(0x45,0,&local_f8,((float)in_ECX[5] / (float)local_b0) * 18.0); if (in_ECX[1] == 0) { local_e4 = (ANM2 *)((float)in_ECX[5] + 1.0); if ((float)local_b0 <= (float)in_ECX[5] + 1.0) { @@ -925488,7 +925488,7 @@ LAB_00a0d2c8: fVar19 = (float10)(**(code **)(*in_ECX + 0x18))(); local_110 = (ANM2 *)(float)fVar19; if ((float)local_110 <= (float)in_ECX[5]) { - FUN_009f4280(0x13c,1,&local_f8,&DAT_bf800000); + Weapon::UpdateHeadChargeAnimation(0x13c,1,&local_f8,&DAT_bf800000); local_dc = local_f4; local_d8 = local_f8; pAVar12 = local_e4; @@ -925501,7 +925501,7 @@ LAB_00a0d2c8: else { fVar20 = ((float)in_ECX[5] / (float)local_110) * 18.0; } - FUN_009f4280(0x13c,0,&local_f8,fVar20); + Weapon::UpdateHeadChargeAnimation(0x13c,0,&local_f8,fVar20); local_d8 = local_f8; local_dc = local_f4; } @@ -925528,7 +925528,7 @@ LAB_00a0d2c8: if ((char)param_2 != '\0') { cVar2 = Weapon::IsAxisAligned(); if (cVar2 == '\0') { - ppuVar11 = (undefined1 **)FUN_009f33e0(&local_154,&local_f8); + ppuVar11 = (undefined1 **)Weapon::get_aim_direction(&local_154,&local_f8); } else { ppuVar11 = &local_14c; @@ -925555,12 +925555,12 @@ LAB_00a0d2c8: fVar19 = (float10)(**(code **)(*in_ECX + 0x18))(); local_e4 = (ANM2 *)(float)fVar19; if ((float)local_e4 <= (float)in_ECX[5]) { - FUN_009f4280(0x255,1,&local_120,&DAT_bf800000); + Weapon::UpdateHeadChargeAnimation(0x255,1,&local_120,&DAT_bf800000); in_ECX[5] = (int)local_138; in_ECX[0x12] = (int)local_138; } else { - FUN_009f4280(0x255,0,&local_120,((float)in_ECX[5] / (float)local_e4) * 18.0); + Weapon::UpdateHeadChargeAnimation(0x255,0,&local_120,((float)in_ECX[5] / (float)local_e4) * 18.0); if (in_ECX[1] == 0) { pAVar12 = (ANM2 *)((float)in_ECX[5] + 1.0); if ((float)local_e4 <= (float)in_ECX[5] + 1.0) { @@ -925826,7 +925826,7 @@ LAB_00a0dae1: local_7c = *(float *)(in_ECX + 0x10) * 3.0; } else if (bVar1) { - pfVar4 = (float *)FUN_009f3bd0(&local_58); + pfVar4 = (float *)Weapon::get_owner_position(&local_58); fVar16 = (fVar13 - pfVar4[1]) * (fVar13 - pfVar4[1]) + (fVar16 - *pfVar4) * (fVar16 - *pfVar4) ; sqrtf(); @@ -925882,8 +925882,8 @@ LAB_00a0dae1: if ((fVar14 <= fVar13) || ((-1000.0 < local_7c && (local_7c <= fVar13)))) { *(float *)(in_ECX + 0xc) = fVar16; Weapon::SetBlinkTime(); - FUN_009f7930(&local_68,1); - FUN_009f3bd0(&local_60); + Weapon::TriggerTearEffects(&local_68,1); + Weapon::get_owner_position(&local_60); fVar13 = local_68 * 10.0; fVar14 = local_64 * 10.0; pfVar4 = (float *)FUN_009f5890(&local_58,&local_68); @@ -925894,7 +925894,7 @@ LAB_00a0dae1: if (fVar15 * 3.0 <= fVar16) { fVar16 = fVar15 * 3.0; } - FUN_009f41c0(&local_40,extraout_ECX); + Weapon::GetMultiShotParams(&local_40,extraout_ECX); fVar16 = ((fVar16 - fVar15) / (fVar15 + fVar15)) * 0.75 + 0.25; if (uStack_24._1_1_ != '\0') { local_70 = -fVar13 * fVar11; @@ -925960,7 +925960,7 @@ LAB_00a0dae1: } else { if (fVar16 * 3.0 <= fVar13) { - FUN_009f4280(0x18b,1,param_1,&DAT_bf800000); + Weapon::UpdateHeadChargeAnimation(0x18b,1,param_1,&DAT_bf800000); } else { if (*(int *)(in_ECX + 4) != 0) { @@ -925979,7 +925979,7 @@ LAB_00a0e1fe: *(float **)(in_ECX + 0x24) = pfVar4; return pfVar4; } - puVar7 = (undefined4 *)FUN_009f33e0(&local_60,param_1); + puVar7 = (undefined4 *)Weapon::get_aim_direction(&local_60,param_1); *(undefined4 *)(in_ECX + 0x20) = *puVar7; pfVar4 = (float *)puVar7[1]; *(float **)(in_ECX + 0x24) = pfVar4; @@ -926071,7 +926071,7 @@ LAB_00a0e2cb: uStack_18 = *puVar3; fStack_14 = (float)puVar3[1]; uVar4 = Random(); - uVar5 = FUN_009f3bd0(auStack_10); + uVar5 = Weapon::get_owner_position(auStack_10); iVar6 = Game::SpawnEx(3,0xf0,uVar5,&DAT_00c7b640,local_2c,0,uVar4,0); iVar2 = *(int *)(in_ECX + 0x44); piVar7 = (int *)(in_ECX + 0x44); @@ -926097,7 +926097,7 @@ LAB_00a0e2cb: (**(code **)(*(int *)*piVar7 + 0xc))(); seed_fart_sound_override(); SoundEffects::Play(0x1ee,0x3f800000,2,0,0x3f800000,0); - FUN_009f7930(&uStack_18,1); + Weapon::TriggerTearEffects(&uStack_18,1); piVar7 = *(int **)(in_ECX + 0x44); } } @@ -926408,7 +926408,7 @@ LAB_00a0e7ce: } else if (iVar3 == 0) { *(undefined4 *)(iVar8 + 0x450) = 1; - FUN_009f3bd0(&fStack_78); + Weapon::get_owner_position(&fStack_78); local_8c = (Entity_Tear *)0x216; seed_fart_sound_override(); SoundEffects::Play(local_8c,0x3fcccccd,1,0,0x3f800000,0); @@ -926429,7 +926429,7 @@ LAB_00a0e7ce: (cVar7 = Entity_Player::HasCollectible(0x248,0), cVar7 != '\0')) { uVar20 = 0; uVar19 = 0; - uVar9 = FUN_009f3bd0(&fStack_78); + uVar9 = Weapon::get_owner_position(&fStack_78); Entity_Player::AddWisp(0x280,uVar9,uVar19,uVar20); } } @@ -926438,7 +926438,7 @@ LAB_00a0e7ce: iVar3 = *(int *)(iVar8 + 0x450); if (*(float *)(in_ECX + 0x44) <= 0.0) { if ((iVar3 == 2) || (iVar3 == 3)) { - FUN_009f3bd0(&fStack_78); + Weapon::get_owner_position(&fStack_78); local_90 = (Entity_Tear *)0x218; seed_fart_sound_override(); SoundEffects::Play(local_90,0x3fcccccd,1,0,0x3f800000,0); @@ -926457,7 +926457,7 @@ LAB_00a0e7ce: local_70 = puVar13; } *(undefined1 **)(in_ECX + 0x48) = local_70; - FUN_009f3bd0(&fStack_78); + Weapon::get_owner_position(&fStack_78); pEVar14 = (Entity_Tear *)(*(float *)(iVar8 + 0xec) * 0.017453292); local_90 = pEVar14; cos(); @@ -926498,7 +926498,7 @@ LAB_00a0e7ce: puStack_64 = (undefined1 *)((float)local_80 + pfVar15[1]); if (*(int *)(*(int *)(in_ECX + 0x4c) + 0x30) == 1) { fVar12 = *(float *)(in_ECX + 0x48); - iVar8 = FUN_004360f0(); + iVar8 = _get_index_plus_one_if_kind_4_5(); pfVar15 = (float *)(in_ECX + 0x50); pfVar11 = (float *)*pfVar15; local_48[0] = ((float)iVar8 * 0.3 + 2.8) * 1.5 * (fVar12 * 0.19999999 + 0.8); @@ -926586,7 +926586,7 @@ LAB_00a0e7ce: Entity_Tear::SetTearFlags(pfStack_60,uStack_5c,uStack_58,uStack_54); } fVar12 = *(float *)(in_ECX + 0x48); - iVar8 = FUN_004360f0(); + iVar8 = _get_index_plus_one_if_kind_4_5(); *(undefined4 *)&pEVar14->field_0x37c = 0; pfStack_60 = (float *)(((float)iVar8 * 0.3 + 2.3) * (fVar12 * 0.19999999 + 0.8)); fVar12 = *(float *)(in_ECX + 0x48) * 0.40000004 + 0.7; @@ -926602,7 +926602,7 @@ LAB_00a0e7ce: } LAB_00a0f2ba: Game::ShakeScreen(3); - FUN_009f7930(&local_88,1); + Weapon::TriggerTearEffects(&local_88,1); *(float *)(in_ECX + 0x44) = *(float *)(in_ECX + 0x44) - 1.0; *(undefined1 **)(in_ECX + 0x20) = local_88; *(undefined1 **)(in_ECX + 0x24) = local_84; @@ -926737,9 +926737,9 @@ void FUN_00a0f610(uint param_1) } -//@@ 00a0f690 FUN_00a0f690 +//@@ 00a0f690 KColor::KColor -void FUN_00a0f690(undefined4 param_1) +void KColor::KColor(undefined4 param_1) { undefined4 *in_ECX; @@ -927394,9 +927394,9 @@ float10 Vector::Cross(float *param_1) } -//@@ 00a101c0 FUN_00a101c0 +//@@ 00a101c0 vector_lerp -void FUN_00a101c0(float *param_1,char param_2) +void vector_lerp(float *param_1,char param_2) { float *in_ECX; @@ -927488,9 +927488,9 @@ void Vector::Rotated(float *param_1,float param_2) } -//@@ 00a10350 FUN_00a10350 +//@@ 00a10350 Vector::FromAngle -float * FUN_00a10350(float *param_1,float param_2) +float * Vector::FromAngle(float *param_1,float param_2) { float fVar1; @@ -927625,9 +927625,9 @@ void Vector::__sub(float *param_1,float *param_2) } -//@@ 00a104b0 FUN_00a104b0 +//@@ 00a104b0 Vector::operator__ -void FUN_00a104b0(float *param_1) +void Vector::operator__(float *param_1) { float *in_ECX; @@ -927657,9 +927657,9 @@ void Vector::__mul(float *param_1,float *param_2) } -//@@ 00a10510 FUN_00a10510 +//@@ 00a10510 Vector::Mul -void FUN_00a10510(float *param_1,float *param_2) +void Vector::Mul(float *param_1,float *param_2) { float *in_ECX; @@ -927714,9 +927714,9 @@ void Vector::__div(float *param_1,float *param_2) } -//@@ 00a105d0 FUN_00a105d0 +//@@ 00a105d0 Vector::__div_assign -void FUN_00a105d0(float *param_1) +void Vector::__div_assign(float *param_1) { float *in_ECX; @@ -928104,9 +928104,9 @@ void FUN_00a10c00(undefined4 *param_1) } -//@@ 00a10d00 FUN_00a10d00 +//@@ 00a10d00 render_quad_set_uniform_color -void FUN_00a10d00(undefined4 param_1,undefined4 *param_2) +void render_quad_set_uniform_color(undefined4 param_1,undefined4 *param_2) { undefined4 *in_ECX; @@ -928149,9 +928149,9 @@ void FUN_00a10d00(undefined4 param_1,undefined4 *param_2) } -//@@ 00a10dd0 FUN_00a10dd0 +//@@ 00a10dd0 set_quad_corner_colors -void FUN_00a10dd0(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4, +void set_quad_corner_colors(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4, undefined4 *param_5) { @@ -928182,9 +928182,9 @@ void FUN_00a10dd0(undefined4 param_1,undefined4 param_2,undefined4 param_3,undef } -//@@ 00a10e70 FUN_00a10e70 +//@@ 00a10e70 render_quad_set_rect -void FUN_00a10e70(float *param_1,float *param_2,float *param_3) +void render_quad_set_rect(float *param_1,float *param_2,float *param_3) { float fVar1; @@ -929582,7 +929582,7 @@ void FUN_00a12650(int param_1,undefined4 param_2) local_80 = 0x3f800000; local_88 = 0x3f800000; local_7c = 0; - FUN_00a10d00((float)((double)in_ECX[5] + (double)(&DAT_00bacb00)[-(in_ECX[5] >> 0x1f)]) + + render_quad_set_uniform_color((float)((double)in_ECX[5] + (double)(&DAT_00bacb00)[-(in_ECX[5] >> 0x1f)]) + *(float *)(param_1 + 4),param_2); (**(code **)(*in_ECX + 0x10))(&local_9c,local_78,1); return; @@ -929694,7 +929694,7 @@ void FUN_00a12820(int param_1,int param_2,undefined4 param_3) if (*(char *)(param_1 + 0x20) == '\0') { fVar1 = fVar1 * (float)((double)in_ECX[5] + (double)(&DAT_00bacb00)[-(in_ECX[5] >> 0x1f)]); } - FUN_00a10d00(*(float *)(param_2 + 4) + fVar1,param_3); + render_quad_set_uniform_color(*(float *)(param_2 + 4) + fVar1,param_3); (**(code **)(*in_ECX + 0x10))(param_1,local_78,1); return; } @@ -930258,7 +930258,7 @@ void FUN_00a131f0(void) *(undefined4 *)(in_ECX + 0x28) = 0; *(undefined4 *)(in_ECX + 0x2c) = 1; *(undefined4 *)(in_ECX + 0x30) = 0; - FUN_00a14050(in_ECX); + shader_cache_find(in_ECX); return; } @@ -930325,7 +930325,7 @@ void FUN_00a13220(void) DAT_00c379d8 = 0; DAT_00c379dc = 0; } - FUN_00a14050(); + shader_cache_find(); return; } @@ -930472,9 +930472,9 @@ void FUN_00a13500(undefined4 param_1) } -//@@ 00a13510 FUN_00a13510 +//@@ 00a13510 set_blend_mode -void FUN_00a13510(undefined4 param_1) +void set_blend_mode(undefined4 param_1) { undefined4 uVar1; @@ -931310,9 +931310,9 @@ LAB_00a13fd7: } -//@@ 00a14050 FUN_00a14050 +//@@ 00a14050 shader_cache_find -uint FUN_00a14050(void) +uint shader_cache_find(void) { uint uVar1; @@ -931983,9 +931983,9 @@ void FUN_00a14bf0(void) } -//@@ 00a14c00 FUN_00a14c00 +//@@ 00a14c00 Shader::set_uniform -void FUN_00a14c00(char *param_1,undefined4 param_2,int *param_3) +void Shader::set_uniform(char *param_1,undefined4 param_2,int *param_3) { char cVar1; @@ -933469,7 +933469,7 @@ char * FUN_00a16220(void) in_ECX = local_14; } while ((((*(char *)(local_24 + 0xd) != '\0') || (uVar4 < *(uint *)(local_24 + 0x10))) || (local_24 == *(int *)(iVar3 + 4))) || - (piVar5 = (int *)FUN_00651990(&local_18), in_ECX = local_14, *piVar5 == 0)); + (piVar5 = (int *)map_find_value(&local_18), in_ECX = local_14, *piVar5 == 0)); if (_Str1 != (char *)0x0) { local_8 = 0; tracked_alloc(0,0); @@ -934016,7 +934016,7 @@ undefined4 FUN_00a16c60(uint param_1,undefined1 *param_2) _Find_lower_bound<>(local_20,¶m_1); if (((*(char *)(local_18 + 0xd) == '\0') && (*(uint *)(local_18 + 0x10) <= param_1)) && (local_18 != *(int *)(iVar5 + 4))) { - piVar6 = (int *)FUN_00651990(¶m_1); + piVar6 = (int *)map_find_value(¶m_1); if (*piVar6 != 0) { if (iVar4 != 0) { local_8 = 0; @@ -935167,9 +935167,9 @@ undefined4 FUN_00a180b0(void) } -//@@ 00a18230 FUN_00a18230 +//@@ 00a18230 RenderTarget::Clear -void FUN_00a18230(void) +void RenderTarget::Clear(void) { int in_ECX; @@ -935194,7 +935194,7 @@ void FUN_00a18230(void) *(undefined4 *)(in_ECX + 0x28) = 0; *(undefined4 *)(in_ECX + 0x2c) = 1; *(undefined4 *)(in_ECX + 0x30) = 0; - FUN_00a14050(uVar1); + shader_cache_find(uVar1); return; } @@ -935217,9 +935217,9 @@ void FUN_00a182c0(char param_1) } -//@@ 00a18300 FUN_00a18300 +//@@ 00a18300 KAGE_Graphics::SetRenderTarget -void FUN_00a18300(int param_1,char param_2) +void KAGE_Graphics::SetRenderTarget(int param_1,char param_2) { int iVar1; @@ -935891,11 +935891,11 @@ void FUN_00a19130(void) } -//@@ 00a19180 FUN_00a19180 +//@@ 00a19180 _glfw_context_reset /* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ -void FUN_00a19180(char param_1) +void _glfw_context_reset(char param_1) { char cVar1; @@ -935954,7 +935954,7 @@ void FUN_00a19180(char param_1) DAT_00c379d8 = 0; DAT_00c379dc = 0; } - FUN_00a14050(DAT_00c379dc); + shader_cache_find(DAT_00c379dc); if (param_1 != '\0') { if (*(int *)(in_ECX + 0x68) == 0) { iVar3 = *(int *)(in_ECX + 0xbc); @@ -937135,7 +937135,7 @@ LAB_00a1a835: iVar14 = 0; uVar6 = 0; do { - puVar15 = (uint *)FUN_00651990(*(int *)(local_424 + 0x28) + iVar14); + puVar15 = (uint *)map_find_value(*(int *)(local_424 + 0x28) + iVar14); iVar14 = iVar14 + 0x14; *puVar15 = uVar6; uVar6 = uVar6 + 1; @@ -937306,9 +937306,9 @@ undefined2 KColor::GetBaselineHeight(void) } -//@@ 00a1aec0 FUN_00a1aec0 +//@@ 00a1aec0 Font::DrawStringScaled -void FUN_00a1aec0(undefined4 param_1,undefined4 *param_2,undefined4 *param_3,undefined4 param_4) +void Font::DrawStringScaled(undefined4 param_1,undefined4 *param_2,undefined4 *param_3,undefined4 param_4) { uint uVar1; @@ -937329,16 +937329,16 @@ void FUN_00a1aec0(undefined4 param_1,undefined4 *param_2,undefined4 *param_3,und local_8 = 0; FUN_00a1bd80(uVar2,0x3f800000,0x3f800000,*param_3,param_3[1],param_3[2],param_3[3],param_3[4], param_4); - FUN_00a55d60(uVar1); - FUN_0069dac0(); + std::vector<12byte>::clear(uVar1); + std::vector<12byte>::_Tidy(); ExceptionList = local_10; return; } -//@@ 00a1af90 FUN_00a1af90 +//@@ 00a1af90 Font::DrawString -void FUN_00a1af90(undefined4 param_1,undefined4 *param_2,undefined4 param_3) +void Font::DrawString(undefined4 param_1,undefined4 *param_2,undefined4 param_3) { uint uVar1; @@ -937357,8 +937357,8 @@ void FUN_00a1af90(undefined4 param_1,undefined4 *param_2,undefined4 param_3) local_8 = 0; FUN_00a1bd80(uVar2,0x3f800000,0x3f800000,*param_2,param_2[1],param_2[2],param_2[3],param_2[4], param_3); - FUN_00a55d60(uVar1); - FUN_0069dac0(); + std::vector<12byte>::clear(uVar1); + std::vector<12byte>::_Tidy(); ExceptionList = local_10; return; } @@ -937391,8 +937391,8 @@ void FUN_00a1b050(undefined4 param_1,undefined4 *param_2,undefined4 *param_3,und uVar3 = FUN_00a1bb10(local_2c,param_1,param_5,param_3); local_8 = 0; FUN_00a1bd80(uVar3,local_18,uVar1,*param_4,param_4[1],param_4[2],param_4[3],param_4[4],param_5); - FUN_00a55d60(uVar2); - FUN_0069dac0(); + std::vector<12byte>::clear(uVar2); + std::vector<12byte>::_Tidy(); ExceptionList = local_10; return; } @@ -937425,8 +937425,8 @@ void KColor::DrawString(undefined4 param_1,undefined4 param_2,undefined4 param_3 uVar2 = FUN_00a1bb10(local_2c,param_1,param_7,&local_1c); local_8 = 0; FUN_00a1bd80(uVar2,param_4,param_5,*param_6,param_6[1],param_6[2],param_6[3],param_6[4],param_7); - FUN_00a55d60(uVar1); - FUN_0069dac0(); + std::vector<12byte>::clear(uVar1); + std::vector<12byte>::_Tidy(); ExceptionList = local_10; return; } @@ -937453,8 +937453,8 @@ void FUN_00a1b210(undefined4 param_1,undefined4 *param_2,undefined4 param_3) local_8 = 0; FUN_00a1c7d0(uVar2,0x3f800000,0x3f800000,*param_2,param_2[1],param_2[2],param_2[3],param_2[4], param_3); - FUN_00a55d60(uVar1); - FUN_0069dac0(); + std::vector<12byte>::clear(uVar1); + std::vector<12byte>::_Tidy(); ExceptionList = local_10; return; } @@ -937485,8 +937485,8 @@ void FUN_00a1b2d0(undefined4 param_1,undefined4 param_2,undefined4 param_3,undef uVar2 = FUN_00a1c480(local_34,param_1,param_5,&local_24); local_8 = 0; FUN_00a1c7d0(uVar2,param_2,param_3,*param_4,param_4[1],param_4[2],param_4[3],param_4[4],param_5); - FUN_00a55d60(uVar1); - FUN_0069dac0(); + std::vector<12byte>::clear(uVar1); + std::vector<12byte>::_Tidy(); ExceptionList = local_10; return; } @@ -937678,7 +937678,7 @@ void FUN_00a1b580(undefined4 param_1,undefined1 param_2,undefined4 *param_3,floa local_c = (float)*(ushort *)(iVar5 + 10 + iVar2 * 0x14) * param_7; local_20 = (float)(int)*(short *)(iVar5 + 0xc + iVar2 * 0x14) * fVar7 + fVar8; local_1c = (float)(int)*(short *)(iVar5 + 0xe + iVar2 * 0x14) * param_7 + param_5; - FUN_00a10e70(&local_20,&local_10,¶m_8); + render_quad_set_rect(&local_20,&local_10,¶m_8); (**(code **)(**(int **)(*(int *)(in_ECX + 0x3c) + (uint)*(byte *)(iVar5 + 0x12 + iVar2 * 0x14) * 8) + 0x14)) (local_4c,local_1b8,&DAT_00c37944); @@ -937713,7 +937713,7 @@ void FUN_00a1b580(undefined4 param_1,undefined1 param_2,undefined4 *param_3,floa local_c = (float)*(ushort *)(iVar5 + 10 + iVar2 * 0x14) * param_7; local_18 = (float)(int)*(short *)(iVar5 + 0xc + iVar2 * 0x14) * param_6 + param_4; local_14 = (float)(int)*(short *)(iVar5 + 0xe + iVar2 * 0x14) * param_7 + param_5; - puVar4 = (undefined4 *)FUN_00a10e70(&local_18,&local_10,¶m_8); + puVar4 = (undefined4 *)render_quad_set_rect(&local_18,&local_10,¶m_8); puVar6 = local_114; for (iVar5 = 0x1c; iVar5 != 0; iVar5 = iVar5 + -1) { *puVar6 = *puVar4; @@ -937870,7 +937870,7 @@ undefined1 * FUN_00a1bb10(undefined1 *param_1,uint param_2,int param_3,undefined local_20 = 0; local_1c = 0; local_8 = 1; - FUN_00a55d60(DAT_00bf93b4 ^ (uint)(local_28 + 0x24)); + std::vector<12byte>::clear(DAT_00bf93b4 ^ (uint)(local_28 + 0x24)); FUN_00a55ef0(); local_28[0] = local_28[0] | 1; local_8 = 2; @@ -937915,7 +937915,7 @@ undefined1 * FUN_00a1bb10(undefined1 *param_1,uint param_2,int param_3,undefined *(undefined4 *)(param_1 + 0xc) = 0; local_8 = CONCAT31(local_8._1_3_,3); FUN_00a55e20(local_28); - FUN_00a55d60(); + std::vector<12byte>::clear(); if (local_24 != (byte *)0x0) { uVar6 = ((local_1c - (int)local_24) / 0xc) * 0xc; pbVar7 = local_24; @@ -938150,7 +938150,7 @@ byte * FUN_00a1c480(byte *param_1,undefined4 param_2,int param_3,undefined4 *par param_1[0xe] = 0; param_1[0xf] = 0; local_8 = 0; - FUN_00a55d60(uVar7); + std::vector<12byte>::clear(uVar7); local_20 = local_14; local_14 = &local_20; local_18 = FUN_00a56bf0; @@ -938165,7 +938165,7 @@ byte * FUN_00a1c480(byte *param_1,undefined4 param_2,int param_3,undefined4 *par local_28 = 0; local_24 = 0; local_8 = 2; - FUN_00a55d60(uVar7); + std::vector<12byte>::clear(uVar7); FUN_00a56060(); local_8 = 3; if (*(int *)(param_3 + 8) == 2) { @@ -938233,7 +938233,7 @@ byte * FUN_00a1c480(byte *param_1,undefined4 param_2,int param_3,undefined4 *par param_4 = (undefined4 *)((int)param_4 + 0xc); } while (param_2 < (uint)((*(int *)(param_1 + 8) - (int)*ppbVar2) / 0xc)); } - FUN_00a55d60(); + std::vector<12byte>::clear(); if (local_2c != (byte *)0x0) { uVar7 = ((local_24 - (int)local_2c) / 0xc) * 0xc; pbVar9 = local_2c; @@ -939177,10 +939177,10 @@ void FUN_00a1d6b0(int param_1) } -//@@ 00a1d710 FUN_00a1d710 +//@@ 00a1d710 render_color_quad undefined4 -FUN_00a1d710(float *param_1,float *param_2,undefined4 *param_3,undefined4 *param_4,float param_5) +render_color_quad(float *param_1,float *param_2,undefined4 *param_3,undefined4 *param_4,float param_5) { undefined4 uVar1; @@ -939613,9 +939613,9 @@ undefined4 FUN_00a1d8f0(float *param_1) } -//@@ 00a1dfd0 FUN_00a1dfd0 +//@@ 00a1dfd0 render_color_shader_pass -undefined4 FUN_00a1dfd0(int param_1) +undefined4 render_color_shader_pass(int param_1) { undefined4 uVar1; @@ -947743,12 +947743,12 @@ undefined4 FUN_00a26a30(void) pcVar3 = pcVar1 + 1; if (_Str != (char *)0x0) { uStack00000007 = 0; - uVar2 = FUN_00a26af0(_Str,uVar2,pcVar1 + 1,&uStack00000007); + uVar2 = StringTable::get_string(_Str,uVar2,pcVar1 + 1,&uStack00000007); goto LAB_00a26ab7; } } uStack00000007 = 0; - uVar2 = FUN_00a26af0(in_ECX[5],uVar2,pcVar3,&uStack00000007); + uVar2 = StringTable::get_string(in_ECX[5],uVar2,pcVar3,&uStack00000007); if (_Str == (char *)0x0) { ExceptionList = local_10; return uVar2; @@ -947761,9 +947761,9 @@ LAB_00a26ab7: } -//@@ 00a26af0 FUN_00a26af0 +//@@ 00a26af0 StringTable::get_string -char * FUN_00a26af0(int param_1,int param_2,undefined4 param_3,undefined1 *param_4) +char * StringTable::get_string(int param_1,int param_2,undefined4 param_3,undefined1 *param_4) { char *pcVar1; @@ -949776,7 +949776,7 @@ void FUN_00a282c0(void) local_8 = 0; uVar3 = FUN_00a71f00(uVar2); local_8._0_1_ = 1; - FUN_00a288a0(uVar3); + std::shared_ptr::assign(uVar3); local_8 = CONCAT31(local_8._1_3_,2); if (local_1c != (int *)0x0) { cVar1 = (**(code **)(*local_1c + 0xc))(); @@ -949856,7 +949856,7 @@ void FUN_00a28440(int param_1) in_ECX[1] = 0; in_ECX[2] = 0; local_8 = 0; - FUN_00a288a0(param_1 + 4); + std::shared_ptr::assign(param_1 + 4); ExceptionList = local_10; return; } @@ -950136,9 +950136,9 @@ void FUN_00a28840(undefined4 *param_1) } -//@@ 00a288a0 FUN_00a288a0 +//@@ 00a288a0 std::shared_ptr::assign -void FUN_00a288a0(undefined4 param_1) +void std::shared_ptr::assign(undefined4 param_1) { undefined4 uVar1; @@ -950591,7 +950591,7 @@ void FUN_00a28f60(void) (*(int *)(in_ECX + 0xf8) - 1U & *(uint *)(in_ECX + 0xfc)) * 4); *(undefined4 *)(iVar5 + 0x10) = 0; *(undefined4 *)(iVar5 + 0x14) = 0; - FUN_00426980(); + std::vector::_Tidy(); piVar4 = (int *)(in_ECX + 0x100); *piVar4 = *piVar4 + -1; if (*piVar4 == 0) { @@ -950610,7 +950610,7 @@ void FUN_00a28f60(void) local_48 = 0; local_44 = (int *)0x0; local_8._0_1_ = 1; - FUN_00a288a0(in_ECX + 0x24); + std::shared_ptr::assign(in_ECX + 0x24); if (local_48 == 0) { local_24 = 0; local_24._4_4_ = (int *)0x0; @@ -950638,7 +950638,7 @@ void FUN_00a28f60(void) local_54 = 0; local_50 = (int *)0x0; local_8._0_1_ = 3; - FUN_00a288a0(in_ECX + 0x24); + std::shared_ptr::assign(in_ECX + 0x24); local_58 = KAGE::Network::Multiplayer::Lobby::vftable; local_8._0_1_ = 4; local_34 = KAGE::System::UserProfileBase::vftable; @@ -950681,7 +950681,7 @@ void FUN_00a28f60(void) local_3c = 0; local_38 = (int *)0x0; local_8._0_1_ = 8; - FUN_00a288a0(in_ECX + 0x24); + std::shared_ptr::assign(in_ECX + 0x24); local_40 = KAGE::Network::Multiplayer::Lobby::vftable; local_8._0_1_ = 9; (*pcVar1)(&local_40,iVar3); @@ -951236,7 +951236,7 @@ void FUN_00a29d00(code *param_1,undefined4 param_2) local_24 = 0xb9c1bc; local_1c = (int *)0x0; local_8 = 0; - FUN_00a288a0(&DAT_00c79a74); + std::shared_ptr::assign(&DAT_00c79a74); local_24 = CONCAT44(local_24._4_4_,KAGE::Network::Multiplayer::Lobby::vftable); local_8 = 1; if (local_24._4_4_ != (int *)0x0) { @@ -951350,7 +951350,7 @@ undefined4 * FUN_00a29f60(undefined4 *param_1) param_1[1] = 0; param_1[2] = 0; local_8 = 0; - FUN_00a288a0(in_ECX + 0x24); + std::shared_ptr::assign(in_ECX + 0x24); *param_1 = KAGE::Network::Multiplayer::Lobby::vftable; ExceptionList = local_10; return param_1; @@ -951449,7 +951449,7 @@ void FUN_00a2a0b0(int param_1,int *param_2,int param_3) iStack_28 = 0; local_24 = (int *)0x0; local_8 = 0; - FUN_00a288a0(&DAT_00c79a74); + std::shared_ptr::assign(&DAT_00c79a74); if (iStack_28 == 0) { local_20 = 0; local_20._4_4_ = (int *)0x0; @@ -951539,7 +951539,7 @@ void FUN_00a2a0b0(int param_1,int *param_2,int param_3) iStack_28 = 0; local_24 = (int *)0x0; local_8 = 4; - FUN_00a288a0(&DAT_00c79a74); + std::shared_ptr::assign(&DAT_00c79a74); ppuStack_2c = KAGE::Network::Multiplayer::Lobby::vftable; local_8 = 5; FUN_00a71c40(); @@ -951859,7 +951859,7 @@ void FUN_00a2a7e0(void) iVar3 = *(int *)(in_ECX[1] + (iVar3 + in_ECX[3] + -1 & in_ECX[2] - 1) * 4); *(undefined4 *)(iVar3 + 0x10) = 0; *(undefined4 *)(iVar3 + 0x14) = 0; - FUN_00426980(); + std::vector::_Tidy(); iVar3 = in_ECX[4] + -1; in_ECX[4] = iVar3; } while (iVar3 != 0); @@ -951905,7 +951905,7 @@ void FUN_00a2a8b0(void) *(undefined4 *)(in_ECX + 0x10) = 0; *(undefined4 *)(in_ECX + 0x14) = 0; - FUN_00426980(); + std::vector::_Tidy(); return; } @@ -951927,7 +951927,7 @@ void FUN_00a2a8d0(void) (*(int *)(in_ECX + 0x10) - 1U & *(uint *)(in_ECX + 0x14)) * 4); *(undefined4 *)(iVar2 + 0x10) = 0; *(undefined4 *)(iVar2 + 0x14) = 0; - FUN_00426980(); + std::vector::_Tidy(); piVar1 = (int *)(in_ECX + 0x18); *piVar1 = *piVar1 + -1; if (*piVar1 == 0) break; @@ -995458,7 +995458,7 @@ void FUN_00a52a10(byte param_1) undefined4 *in_ECX; *in_ECX = KAGE::Network::Multiplayer::LobbyImplBase::vftable; - FUN_00426980(); + std::vector::_Tidy(); if ((param_1 & 1) != 0) { operator_delete(); } @@ -995474,7 +995474,7 @@ void FUN_00a52a40(void) undefined4 *in_ECX; *in_ECX = KAGE::Network::Multiplayer::LobbyImplBase::vftable; - FUN_00426980(); + std::vector::_Tidy(); return; } @@ -997373,7 +997373,7 @@ undefined1 FUN_00a54890(int param_1) local_34 = (int *)0x0; local_30 = (int *)0x0; local_8 = 0; - FUN_00a288a0(in_ECX + 0x24); + std::shared_ptr::assign(in_ECX + 0x24); local_8 = 1; uVar7 = 0xd; local_18 = (int *)0xd; @@ -997381,7 +997381,7 @@ undefined1 FUN_00a54890(int param_1) local_2c = 0xb9c1bc; local_24 = (int *)0x0; local_8 = 2; - FUN_00a288a0(in_ECX + 0x24); + std::shared_ptr::assign(in_ECX + 0x24); local_2c = CONCAT44(local_2c._4_4_,KAGE::Network::Multiplayer::Lobby::vftable); local_8 = 3; uVar7 = 0x3f; @@ -997422,7 +997422,7 @@ LAB_00a54982: local_30 = (int *)0x0; local_1c = *(code **)(*local_18 + 0x40); local_8 = 6; - FUN_00a288a0(in_ECX + 0x24); + std::shared_ptr::assign(in_ECX + 0x24); local_8 = 7; iVar4 = *(int *)(param_1 + 4); if (iVar4 == 0) { @@ -997523,7 +997523,7 @@ void FUN_00a54b20(uint *param_1) local_2c[1] = 0; local_2c[2] = 0; _local_8 = CONCAT31(auStack_7,2); - FUN_00a288a0(iVar5 + 4); + std::shared_ptr::assign(iVar5 + 4); local_2c = local_2c + 3; } local_8 = 3; @@ -997609,7 +997609,7 @@ void FUN_00a54d00(int *param_1) puVar3[1] = 0; puVar3[2] = 0; local_8 = 0; - FUN_00a288a0(local_18 + iVar6 + 4); + std::shared_ptr::assign(local_18 + iVar6 + 4); local_8 = 0xffffffff; *(int *)(in_ECX + 0x138) = *(int *)(in_ECX + 0x138) + 0xc; } @@ -997726,7 +997726,7 @@ void FUN_00a54f00(uint *param_1) local_20 = 0; local_1c = (int *)0x0; local_8 = 1; - FUN_00a288a0(&DAT_00c79a74); + std::shared_ptr::assign(&DAT_00c79a74); if (local_20 == 0) { local_18 = 0; local_18._4_4_ = 0; @@ -997757,7 +997757,7 @@ void FUN_00a54f00(uint *param_1) local_20 = 0; local_1c = (int *)0x0; local_8 = 3; - FUN_00a288a0(&DAT_00c79a74); + std::shared_ptr::assign(&DAT_00c79a74); local_24 = KAGE::Network::Multiplayer::Lobby::vftable; local_8 = 4; if (local_20 != 0) { @@ -997953,7 +997953,7 @@ void FUN_00a55330(int param_1) puVar1[1] = 0; puVar1[2] = 0; local_8 = 0; - FUN_00a288a0(param_1 + 4); + std::shared_ptr::assign(param_1 + 4); *(int *)(in_ECX + 4) = *(int *)(in_ECX + 4) + 0xc; ExceptionList = local_10; return; @@ -998115,7 +998115,7 @@ void FUN_00a555c0(int param_1,int param_2,undefined4 *param_3) param_3[1] = 0; param_3[2] = 0; local_8 = 1; - FUN_00a288a0(param_1 + 4); + std::shared_ptr::assign(param_1 + 4); param_3 = param_3 + 3; ppvVar1 = ExceptionList; } @@ -998192,7 +998192,7 @@ undefined4 * FUN_00a556c0(int param_1,int param_2) puVar1[1] = 0; puVar1[2] = 0; local_8 = 1; - FUN_00a288a0(param_2 + 4); + std::shared_ptr::assign(param_2 + 4); local_8 = local_8 & 0xffffff00; if (param_1 == in_ECX[1]) { FUN_00a555c0(*in_ECX,in_ECX[1],iVar5); @@ -998294,7 +998294,7 @@ undefined4 * FUN_00a55910(int param_1,int param_2,undefined4 *param_3) param_3[1] = 0; param_3[2] = 0; local_8 = 1; - FUN_00a288a0(param_1 + 4); + std::shared_ptr::assign(param_1 + 4); param_3 = param_3 + 3; ppvVar1 = ExceptionList; } @@ -998527,8 +998527,8 @@ void FUN_00a55b70(undefined1 *param_1) void FUN_00a55c20(void) { - FUN_00a55d60(); - FUN_0069dac0(); + std::vector<12byte>::clear(); + std::vector<12byte>::_Tidy(); return; } @@ -998552,7 +998552,7 @@ void FUN_00a55c40(undefined4 param_1,int param_2,undefined4 param_3,undefined4 p puStack_c = &LAB_00b1283d; local_10 = ExceptionList; ExceptionList = &local_10; - FUN_00a55d60(DAT_00bf93b4 ^ (int)register0x00000010 - 4U); + std::vector<12byte>::clear(DAT_00bf93b4 ^ (int)register0x00000010 - 4U); local_1c = param_2; local_18 = param_4; pbVar1 = in_ECX + 4; @@ -998583,9 +998583,9 @@ void FUN_00a55c40(undefined4 param_1,int param_2,undefined4 param_3,undefined4 p } -//@@ 00a55d60 FUN_00a55d60 +//@@ 00a55d60 std::vector<12byte>::clear -void FUN_00a55d60(void) +void std::vector<12byte>::clear(void) { uint uVar1; @@ -999924,7 +999924,7 @@ void FUN_00a572d0(int *param_1) puVar2[3] = 0; puVar2[4] = 0; local_8 = 1; - FUN_00a288a0(iVar6 + 0xc); + std::shared_ptr::assign(iVar6 + 0xc); local_8 = 0xffffffff; *(int *)(in_ECX + 0x20) = *(int *)(in_ECX + 0x20) + 0x14; } @@ -1000002,7 +1000002,7 @@ void FUN_00a57420(int param_1,undefined4 param_2,int param_3) local_8._0_1_ = 2; local_1c = KAGE::System::UserProfileBase::vftable; local_38 = local_18; - FUN_00a288a0(local_24); + std::shared_ptr::assign(local_24); FUN_00a575e0(&local_3c); local_34 = KAGE::Network::Multiplayer::ConstLobby::vftable; local_8 = CONCAT31(local_8._1_3_,4); @@ -1000071,7 +1000071,7 @@ void FUN_00a575e0(int param_1) puVar1[3] = 0; puVar1[4] = 0; local_8 = 1; - FUN_00a288a0(param_1 + 0xc); + std::shared_ptr::assign(param_1 + 0xc); *(int *)(in_ECX + 4) = *(int *)(in_ECX + 4) + 0x14; ExceptionList = local_10; return; @@ -1000140,7 +1000140,7 @@ void FUN_00a57730(int param_1) in_EDX[3] = 0; in_EDX[4] = 0; local_8 = 1; - FUN_00a288a0(param_1 + 0xc); + std::shared_ptr::assign(param_1 + 0xc); ExceptionList = local_10; return; } @@ -1000206,7 +1000206,7 @@ undefined4 * FUN_00a577b0(int param_1,undefined4 param_2) puVar6[3] = 0; puVar6[4] = 0; local_8._0_1_ = 3; - FUN_00a288a0(iVar7 + 0xc); + std::shared_ptr::assign(iVar7 + 0xc); puVar6 = puVar6 + 5; } FUN_00a57a10(iVar3); @@ -1000322,7 +1000322,7 @@ undefined4 * FUN_00a57aa0(int param_1,int param_2,undefined4 *param_3) param_3[3] = 0; param_3[4] = 0; local_8 = 2; - FUN_00a288a0(iVar3); + std::shared_ptr::assign(iVar3); param_3 = param_3 + 5; iVar1 = iVar3 + 8; in_ECX = extraout_ECX; @@ -1007736,7 +1007736,7 @@ void FUN_00a60700(int param_1) ppvStack_78 = (void **)((int)ppvStack_78 + 4); local_8 = CONCAT31(local_8._1_3_,3); pTStack_7c = (TypeDescriptor *)0xa608c5; - FUN_00a288a0(); + std::shared_ptr::assign(); local_3c = (TypeDescriptor *)&local_3c[1].spare; } local_8._0_1_ = 4; @@ -1009682,7 +1009682,7 @@ undefined4 FUN_00a62910(char *param_1) piVar3 = (int *)in_ECX[2]; } (**(code **)(DAT_00c798e0 + 0x20))(piVar3,0,1); - FUN_00a18230(); + RenderTarget::Clear(); FUN_00a13460(1); ExceptionList = local_10; return 1; @@ -1009743,7 +1009743,7 @@ undefined4 FUN_00a62a10(void) piVar5 = (int *)*unaff_EBX; } (**(code **)(DAT_00c798e0 + 0x20))(piVar5,0,1); - FUN_00a18230(); + RenderTarget::Clear(); FUN_00a13460(1); ExceptionList = *(void **)(unaff_EBP + -0xc); return 1; @@ -1013648,7 +1013648,7 @@ LAB_00a66ecc: local_28 = *(int *)(iVar1 + 0x44) - (int)local_2c; local_24 = (void *)*piVar4; if ((uint)(*(int *)(in_ECX + 0x30) - (int)local_24 >> 2) < (uint)((int)local_28 >> 2)) { - FUN_006a0d30((int)local_28 >> 2); + std::vector::reserve_clear((int)local_28 >> 2); local_24 = (void *)*piVar4; } memmove(local_24,local_2c,local_28); @@ -1014840,7 +1014840,7 @@ undefined4 FUN_00a68790(uint param_1) _Find_lower_bound<>(local_10,¶m_1); if (((*(char *)(local_8 + 0xd) == '\0') && (*(uint *)(local_8 + 0x10) <= uVar1)) && (local_8 != *(int *)(in_ECX + 4))) { - puVar2 = (undefined4 *)FUN_00651990(¶m_1); + puVar2 = (undefined4 *)map_find_value(¶m_1); return *puVar2; } return 0; @@ -1014919,7 +1014919,7 @@ void FUN_00a687f0(undefined4 param_1) else { uVar6 = FUN_00a5a7a0(0,0,uVar5); local_24 = KAGE_Filesys_FileManager::GetPrimaryFilePathHash(); - puVar7 = (undefined4 *)FUN_00651990(&local_24); + puVar7 = (undefined4 *)map_find_value(&local_24); *puVar7 = uVar6; uVar10 = local_1c; } @@ -1021243,7 +1021243,7 @@ void FUN_00a70770(int *param_1,undefined4 param_2,undefined4 param_3) local_18 = param_1[1] - (int)local_1c; local_14 = (void *)*piVar6; if ((uint)(*(int *)(iVar4 + 0x10) - (int)local_14 >> 2) < (uint)((int)local_18 >> 2)) { - FUN_006a0d30((int)local_18 >> 2); + std::vector::reserve_clear((int)local_18 >> 2); local_14 = (void *)*piVar6; } memmove(local_14,local_1c,local_18); @@ -1022283,7 +1022283,7 @@ LAB_00a71cd9: iStack_24 = 0; local_20 = (int *)0x0; local_8._0_1_ = 1; - FUN_00a288a0(&DAT_00c79a74); + std::shared_ptr::assign(&DAT_00c79a74); local_8 = (uint)local_8._1_3_ << 8; uVar3 = 7; ppuStack_28 = KAGE::Network::Multiplayer::Lobby::vftable; @@ -1022343,7 +1022343,7 @@ LAB_00a71d4c: operator_delete(iVar6,uVar3); } } - FUN_00426980(); + std::vector::_Tidy(); ExceptionList = local_10; return; } @@ -1022857,7 +1022857,7 @@ LAB_00a725ee: *(undefined4 *)(iVar4 + 0x14) = 0; local_1c = local_30; local_18 = local_34; - FUN_00426980(); + std::vector::_Tidy(); piVar1 = (int *)(in_ECX + 0x74); *piVar1 = *piVar1 + -1; if (*piVar1 == 0) { @@ -1022906,7 +1022906,7 @@ void FUN_00a72740(int param_1) in_ECX[1] = 0; in_ECX[2] = 0; local_8 = 0; - FUN_00a288a0(param_1 + 4); + std::shared_ptr::assign(param_1 + 4); *in_ECX = KAGE::Network::Multiplayer::Lobby::vftable; ExceptionList = local_10; return; @@ -1023425,7 +1023425,7 @@ void FUN_00a73020(void) ExceptionList = &local_10; *(undefined4 *)(in_ECX + 0x9c) = 0; *(undefined4 *)(in_ECX + 0xa0) = 0; - FUN_00426980(uVar2); + std::vector::_Tidy(uVar2); *(undefined ***)(in_ECX + 0x84) = KAGE::Network::Multiplayer::ConstLobby::vftable; local_8 = 0; if (*(int **)(in_ECX + 0x8c) != (int *)0x0) { @@ -1023502,7 +1023502,7 @@ void FUN_00a73100(undefined4 *param_1) FUN_00a2a5a0(local_38); local_28 = 0; local_24 = 0; - FUN_00426980(); + std::vector::_Tidy(); ExceptionList = local_10; return; } @@ -1023761,7 +1023761,7 @@ void FUN_00a73b60(void) local_3c = 0; local_38 = (int *)0x0; local_8._0_1_ = 1; - FUN_00a288a0(&DAT_00c79a74); + std::shared_ptr::assign(&DAT_00c79a74); local_40 = KAGE::Network::Multiplayer::Lobby::vftable; local_8 = CONCAT31(local_8._1_3_,2); if (local_3c == 0) { @@ -1023795,7 +1023795,7 @@ LAB_00a73ce0: local_48 = 0; local_44 = (int *)0x0; local_8._0_1_ = 4; - FUN_00a288a0(&DAT_00c79a74); + std::shared_ptr::assign(&DAT_00c79a74); local_4c = KAGE::Network::Multiplayer::Lobby::vftable; local_8._0_1_ = 5; FUN_00a2a0b0(&local_4c,piVar5,1); @@ -1023893,7 +1023893,7 @@ undefined1 FUN_00a73e00(undefined4 *param_1,int *param_2) local_8._0_1_ = 1; local_3c = piVar4; local_38 = piVar4; - FUN_00a288a0(&DAT_00c79a74); + std::shared_ptr::assign(&DAT_00c79a74); local_40 = KAGE::Network::Multiplayer::Lobby::vftable; local_8._0_1_ = 2; if (local_3c == (int *)0x0) { @@ -1024077,7 +1024077,7 @@ LAB_00a74405: FUN_00a28840(&local_34); iVar7 = FUN_00a28360(pTVar9,ppiVar12); local_8._0_1_ = 0x13; - FUN_00a288a0(iVar7 + 4); + std::shared_ptr::assign(iVar7 + 4); local_8._0_1_ = 0x10; FUN_008e24c0(); (**(code **)(in_ECX + 0x44)) @@ -1024237,7 +1024237,7 @@ void FUN_00a745a0(undefined4 param_1,undefined1 param_2,code *param_3,undefined4 FUN_00a28840(&local_18); iVar2 = FUN_00a28360(pTVar3,uVar4); local_8._0_1_ = 1; - FUN_00a288a0(iVar2 + 4); + std::shared_ptr::assign(iVar2 + 4); local_8._0_1_ = 2; if (local_24 != (int *)0x0) { cVar1 = (**(code **)(*local_24 + 0xc))(); @@ -1025313,7 +1025313,7 @@ void FUN_00a75740(code *param_1,undefined4 param_2) local_1c = (int *)0x0; pcVar1 = *(code **)(*(int *)*puVar5 + 0x3c); local_8 = 2; - FUN_00a288a0(&DAT_00c79a74); + std::shared_ptr::assign(&DAT_00c79a74); local_24 = KAGE::Network::Multiplayer::Lobby::vftable; local_8 = 3; if (local_20 == 0) { @@ -1026220,7 +1026220,7 @@ void FUN_00a76830(undefined4 param_1,undefined4 param_2) local_18 = 0; local_14 = (int *)0x0; local_8 = 0; - FUN_00a288a0(&DAT_00c79a74); + std::shared_ptr::assign(&DAT_00c79a74); local_1c = KAGE::Network::Multiplayer::Lobby::vftable; local_8 = 1; iVar3 = 0; @@ -1026823,7 +1026823,7 @@ void FUN_00a772a0(int *param_1,int param_2) else { if (0x7fffffff < uVar9) { /* WARNING: Subroutine does not return */ - FUN_0040ccc0(); + std::string::_Xlen(); } local_30 = uVar9 | 0xf; if (local_30 < 0x80000000) { @@ -1026911,7 +1026911,7 @@ LAB_00a77691: local_8._0_1_ = 4; uVar5 = FUN_00a71f00(); local_8._0_1_ = 5; - FUN_00a288a0(uVar5); + std::shared_ptr::assign(uVar5); local_8._0_1_ = 6; if (local_50._4_4_ != (int *)0x0) { cVar2 = (**(code **)(*local_50._4_4_ + 0xc))(); @@ -1026999,7 +1026999,7 @@ void FUN_00a776a0(undefined4 param_1,int param_2) local_34 = 0; local_30 = (int *)0x0; local_8 = 1; - FUN_00a288a0(&DAT_00c79a74); + std::shared_ptr::assign(&DAT_00c79a74); local_38 = KAGE::Network::Multiplayer::Lobby::vftable; bVar1 = false; local_8._0_1_ = 2; @@ -1027039,7 +1027039,7 @@ void FUN_00a776a0(undefined4 param_1,int param_2) else { if (0x7fffffff < uVar4) { /* WARNING: Subroutine does not return */ - FUN_0040ccc0(); + std::string::_Xlen(); } piVar8 = (int *)(uVar4 | 0xf); if (piVar8 < (int *)0x80000000) { @@ -1027095,7 +1027095,7 @@ void FUN_00a776a0(undefined4 param_1,int param_2) local_34 = 0; local_30 = (int *)0x0; local_8._0_1_ = 5; - FUN_00a288a0(&DAT_00c79a74); + std::shared_ptr::assign(&DAT_00c79a74); local_38 = KAGE::Network::Multiplayer::Lobby::vftable; local_8._0_1_ = 6; if (local_34 != 0) { @@ -1037164,7 +1037164,7 @@ void FUN_00a84060(void) _EOS_LobbyDetails_Release_4(in_ECX[10]); in_ECX[10] = 0; *in_ECX = KAGE::Network::Multiplayer::LobbyImplBase::vftable; - FUN_00426980(); + std::vector::_Tidy(); ExceptionList = local_10; return; } @@ -1042430,13 +1042430,13 @@ LAB_00a8a71f: } if (0x7fffffffU - (int)local_74 < 0x24) { /* WARNING: Subroutine does not return */ - FUN_0040ccc0(); + std::string::_Xlen(); } pppppuVar9 = &local_84; if (0xf < local_74._4_4_) { pppppuVar9 = local_84; } - FUN_00421680(puVar4,(int)local_74,pppppuVar9,(int)local_74,"------------------------------------", + std::string::concat(puVar4,(int)local_74,pppppuVar9,(int)local_74,"------------------------------------", 0x24); local_14 = CONCAT31(local_14._1_3_,0x15); (*(code *)PTR_FUN_00c5aa7c)(&local_3c); @@ -1044699,12 +1044699,12 @@ undefined4 FUN_00a8d0a0(void) puVar7 = (undefined4 *)(in_ECX + 4); if (0x7fffffffU - iVar3 < 0x11) { /* WARNING: Subroutine does not return */ - FUN_0040ccc0(); + std::string::_Xlen(); } if (0xf < *(uint *)(in_ECX + 0x18)) { puVar7 = (undefined4 *)*puVar7; } - FUN_00421680(local_38,iVar3,puVar7,iVar3," finished playing",0x11); + std::string::concat(local_38,iVar3,puVar7,iVar3," finished playing",0x11); local_8 = 0; (*(code *)PTR_FUN_00c5aa7c)(local_2c); if (0xf < local_18) { @@ -1045211,12 +1045211,12 @@ void FUN_00a8da40(void) piVar7 = in_ECX + 1; if (0x7fffffffU - iVar2 < 0x2e) { /* WARNING: Subroutine does not return */ - FUN_0040ccc0(); + std::string::_Xlen(); } if (0xf < (uint)in_ECX[6]) { piVar7 = (int *)*piVar7; } - FUN_00421680(local_44._4_4_,iVar2,piVar7,iVar2, + std::string::concat(local_44._4_4_,iVar2,piVar7,iVar2, " [seek]: fineseeking failed, _readData failed!",0x2e); local_8 = CONCAT31(local_8._1_3_,1); (*(code *)PTR_FUN_00c5aa7c)(local_2c); @@ -1060249,7 +1060249,7 @@ void FUN_00a9e950(byte *param_1) (*(int *)(param_1 + 0x14) - 1U & *(uint *)(param_1 + 0x18)) * 4); *(undefined4 *)(iVar4 + 0x10) = 0; *(undefined4 *)(iVar4 + 0x14) = 0; - FUN_00426980(); + std::vector::_Tidy(); pbVar1 = param_1 + 0x1c; *(int *)pbVar1 = *(int *)pbVar1 + -1; if (*(int *)pbVar1 == 0) { @@ -1060329,9 +1060329,9 @@ void FUN_00a9eb80(byte param_1) undefined4 *in_ECX; *in_ECX = KAGE::Network::Multiplayer::LobbyLocalhost::vftable; - FUN_00426980(); + std::vector::_Tidy(); *in_ECX = KAGE::Network::Multiplayer::LobbyImplBase::vftable; - FUN_00426980(); + std::vector::_Tidy(); if ((param_1 & 1) != 0) { operator_delete(); } @@ -1060347,9 +1060347,9 @@ void FUN_00a9ebc0(void) undefined4 *in_ECX; *in_ECX = KAGE::Network::Multiplayer::LobbyLocalhost::vftable; - FUN_00426980(); + std::vector::_Tidy(); *in_ECX = KAGE::Network::Multiplayer::LobbyImplBase::vftable; - FUN_00426980(); + std::vector::_Tidy(); return; } @@ -1060639,7 +1060639,7 @@ void FUN_00a9ede0(int *param_1) local_40 = 0; local_3c = (int *)0x0; local_8 = 7; - FUN_00a288a0(&DAT_00c79a74); + std::shared_ptr::assign(&DAT_00c79a74); local_44 = KAGE::Network::Multiplayer::Lobby::vftable; local_8 = 8; FUN_00a2a0b0(&local_44,param_1,0); @@ -1070110,12 +1070110,12 @@ LAB_00aab848: iVar12 = *(int *)(in_ECX + 0x14); if (0x7fffffffU - iVar12 < 7) { /* WARNING: Subroutine does not return */ - FUN_0040ccc0(); + std::string::_Xlen(); } if (0xf < *(uint *)(in_ECX + 0x18)) { piVar8 = (int *)*piVar8; } - FUN_00421680(in_ECX,iVar12,"FATAL: ",7,piVar8,iVar12); + std::string::concat(in_ECX,iVar12,"FATAL: ",7,piVar8,iVar12); local_14 = 6; (*(code *)PTR_FUN_00c5aa7c)(&local_84); if (0xf < local_74._4_4_) { @@ -1147326,7 +1147326,7 @@ void Unwind_00afb735(void) void Unwind_00afb743(void) { - FUN_00426980(); + std::vector::_Tidy(); return; } @@ -1147360,7 +1147360,7 @@ void Unwind_00afb76c(void) void Unwind_00afb77a(void) { - FUN_0069dac0(); + std::vector<12byte>::_Tidy(); return; } @@ -1151746,7 +1151746,7 @@ void Unwind_00afd981(void) void Unwind_00afd9a3(void) { - FUN_00426980(); + std::vector::_Tidy(); return; } @@ -1153367,7 +1153367,7 @@ void Unwind_00afe863(void) void Unwind_00afe871(void) { - FUN_00426980(); + std::vector::_Tidy(); return; } @@ -1153661,7 +1153661,7 @@ void Unwind_00afea0e(void) void Unwind_00afea1c(void) { - FUN_00426980(); + std::vector::_Tidy(); return; } @@ -1153731,7 +1153731,7 @@ void Unwind_00afea62(void) void Unwind_00afea70(void) { - FUN_00426980(); + std::vector::_Tidy(); return; } @@ -1156843,7 +1156843,7 @@ void Unwind_00b004c8(void) void Unwind_00b00500(void) { - FUN_00426980(); + std::vector::_Tidy(); return; } @@ -1166655,7 +1166655,7 @@ void Unwind_00b0647f(void) void Unwind_00b0648a(void) { - FUN_0069dac0(); + std::vector<12byte>::_Tidy(); return; } @@ -1174125,7 +1174125,7 @@ void Unwind_00b0a0a8(void) void Unwind_00b0a0e0(void) { - FUN_00426980(); + std::vector::_Tidy(); return; } @@ -1174135,7 +1174135,7 @@ void Unwind_00b0a0e0(void) void Unwind_00b0a0e8(void) { - FUN_00426980(); + std::vector::_Tidy(); return; } @@ -1174625,7 +1174625,7 @@ void Unwind_00b0a5d0(void) void Unwind_00b0a5db(void) { - FUN_0069dac0(); + std::vector<12byte>::_Tidy(); return; } @@ -1183892,7 +1183892,7 @@ void Unwind_00b0f1bc(void) void Unwind_00b0f1ca(void) { - FUN_0069dac0(); + std::vector<12byte>::_Tidy(); return; } @@ -1183902,7 +1183902,7 @@ void Unwind_00b0f1ca(void) void Unwind_00b0f1d8(void) { - FUN_00426980(); + std::vector::_Tidy(); return; } @@ -1186722,7 +1186722,7 @@ void Unwind_00b112b0(void) void Unwind_00b112e0(void) { - FUN_0069dac0(); + std::vector<12byte>::_Tidy(); return; } @@ -1186732,7 +1186732,7 @@ void Unwind_00b112e0(void) void Unwind_00b112eb(void) { - FUN_0069dac0(); + std::vector<12byte>::_Tidy(); return; } @@ -1186752,7 +1186752,7 @@ void Unwind_00b112f3(void) void Unwind_00b112fb(void) { - FUN_0069dac0(); + std::vector<12byte>::_Tidy(); return; } @@ -1186762,7 +1186762,7 @@ void Unwind_00b112fb(void) void Unwind_00b11330(void) { - FUN_0069dac0(); + std::vector<12byte>::_Tidy(); return; } @@ -1186782,7 +1186782,7 @@ void Unwind_00b1133b(void) void Unwind_00b11343(void) { - FUN_0069dac0(); + std::vector<12byte>::_Tidy(); return; } @@ -1186802,7 +1186802,7 @@ void Unwind_00b1134b(void) void Unwind_00b11353(void) { - FUN_0069dac0(); + std::vector<12byte>::_Tidy(); return; } @@ -1188648,7 +1188648,7 @@ void Unwind_00b127d0(void) void Unwind_00b12800(void) { - FUN_0069dac0(); + std::vector<12byte>::_Tidy(); return; } @@ -1193028,7 +1193028,7 @@ void FUN_00b15460(void) void FUN_00b15570(void) { - FUN_00426980(); + std::vector::_Tidy(); return; } @@ -1193038,7 +1193038,7 @@ void FUN_00b15570(void) void FUN_00b15580(void) { - FUN_00426980(); + std::vector::_Tidy(); return; } @@ -1193355,12 +1193355,12 @@ void FUN_00b15a30(void) void FUN_00b15b30(void) { - FUN_00708e20(); + std::vector::_Tidy(); FID_conflict__Erase_tree_>_> (&DAT_00c81110,(fuzzer_allocator_> *)&DAT_00c81110, *(_Tree_node **)(DAT_00c81110 + 4)); operator_delete(DAT_00c81110,0x14); - FUN_00708e20(); + std::vector::_Tidy(); FUN_00708f90(); return; } diff --git a/dump/functions.tsv b/dump/functions.tsv index fe87422..4f497e1 100644 --- a/dump/functions.tsv +++ b/dump/functions.tsv @@ -29,9 +29,9 @@ 004072c0 Color::GO 4 004072d0 Color::BO 4 004072e0 FUN_004072e0 51 -00407320 FUN_00407320 68 +00407320 _get_name_string 68 00407370 FUN_00407370 6 -00407380 FUN_00407380 22 +00407380 _string_holder_c_str 22 004073a0 FUN_004073a0 8 004073b0 AnimationState::IsLoopingAnimation 14 004073c0 GridEntity::GetType 4 @@ -95,7 +95,7 @@ 0040a740 FUN_0040a740 17 0040a760 Sprite::SetLastFrame 25 0040a780 ANM2::GetFrame 52 -0040a7c0 FUN_0040a7c0 21 +0040a7c0 _empty_check_0x34 21 0040a7e0 ANM2::SetLayerFrame 117 0040a860 FUN_0040a860 54 0040a8a0 FUN_0040a8a0 94 @@ -134,7 +134,7 @@ 0040b520 FUN_0040b520 105 0040b590 Sprite::GetTexel 109 0040b600 FUN_0040b600 1438 -0040bbf0 FUN_0040bbf0 146 +0040bbf0 AnimationState::copy_assign 146 0040bc90 FUN_0040bc90 18 0040bcb0 FUN_0040bcb0 23 0040bcd0 FUN_0040bcd0 118 @@ -178,10 +178,10 @@ 0040cbb0 FUN_0040cbb0 88 0040cc10 FUN_0040cc10 136 0040cca0 FUN_0040cca0 25 -0040ccc0 FUN_0040ccc0 11 +0040ccc0 std::string::_Xlen 11 0040ccd0 std::string::assign 234 0040cdc0 FUN_0040cdc0 10 -0040cdd0 FUN_0040cdd0 10 +0040cdd0 std_min_ptr 10 0040cde0 FUN_0040cde0 24 0040ce00 FUN_0040ce00 18 0040ce20 FUN_0040ce20 49 @@ -194,7 +194,7 @@ 0040d000 FUN_0040d000 55 0040d040 std::string::_Tidy_deallocate 75 0040d090 FUN_0040d090 46 -0040d0c0 FUN_0040d0c0 12 +0040d0c0 std::string::c_str 12 0040d0d0 FUN_0040d0d0 14 0040d0e0 Color::Color 91 0040d170 FUN_0040d170 153 @@ -242,7 +242,7 @@ 00414690 FUN_00414690 149 00414730 FUN_00414730 178 004147f0 FUN_004147f0 127 -00414870 FUN_00414870 346 +00414870 std::string::append_n 346 004149d0 FID_conflict:_Tidy 81 00414a30 FUN_00414a30 69 00414a80 std::_Tree_unchecked_const_iterator_>,std::_Iterator_base0>::operator++ 83 @@ -285,13 +285,13 @@ 004170e0 FUN_004170e0 20 00417100 FUN_00417100 65 00417150 FUN_00417150 8 -00417160 FUN_00417160 8 +00417160 sinf_wrapper 8 00417170 BitSet128::operator_and 57 004171b0 BitSet128::IsNonZero 21 004171d0 Vector::operator_mul 35 00417200 Sprite::Scale 7 00417210 Sprite::Rotation 7 -00417220 FUN_00417220 49 +00417220 Entity::IsType 49 00417260 Entity::Type 4 00417270 Entity::Variant 4 00417280 Entity::SubType 4 @@ -322,13 +322,13 @@ 00417490 FUN_00417490 7 004174a0 Entity::SpawnerEntity 7 004174b0 Entity::GetDropRNG 7 -004174c0 FUN_004174c0 71 +004174c0 buffer_init 71 00417510 EntityList_EL::constructor 33 -00417540 FUN_00417540 94 +00417540 EntityList::sublist_init 94 004175b0 EntityList_Query::~EntityList_Query 78 00417610 FUN_00417610 16 00417620 std::vector::operator_index 16 -00417630 FUN_00417630 46 +00417630 EntityList_EL::push_back 46 00417670 FUN_00417670 121 004176f0 EntityList::Size 4 00417700 FUN_00417700 8 @@ -360,9 +360,9 @@ 00419b50 FUN_00419b50 788 00419e70 FUN_00419e70 2260 0041a790 EntityList::QueryRadius 926 -0041ab50 FUN_0041ab50 1003 -0041af60 NpcAI::ENTITY_MASK 1380 -0041b4f0 FUN_0041b4f0 103 +0041ab50 EntityList::query_player_capsule_hits 1003 +0041af60 EntityList::QuerySublist 1380 +0041b4f0 EntityList::AddPersistentEntity 103 0041b570 FUN_0041b570 278 0041b690 FUN_0041b690 218 0041b770 FUN_0041b770 62 @@ -378,7 +378,7 @@ 0041c6e0 thunk_FUN_0041c7d0 5 0041c6f0 FUN_0041c6f0 32 0041c710 FUN_0041c710 86 -0041c770 FUN_0041c770 93 +0041c770 shared_ptr::assign 93 0041c7d0 FUN_0041c7d0 111 0041c840 FUN_0041c840 76 0041c890 FUN_0041c890 120 @@ -393,7 +393,7 @@ 0041cc60 FUN_0041cc60 131 0041ccf0 FUN_0041ccf0 305 0041ce30 FUN_0041ce30 505 -0041d030 FUN_0041d030 157 +0041d030 std::map::destroy_subtree 157 0041d0e0 FUN_0041d0e0 60 0041d120 FUN_0041d120 40 0041d150 FID_conflict:_Change_array 90 @@ -456,7 +456,7 @@ 004215a0 FUN_004215a0 60 004215e0 FUN_004215e0 52 00421620 FUN_00421620 91 -00421680 FUN_00421680 149 +00421680 std::string::concat 149 00421720 FUN_00421720 74 00421770 Game::Challenge 7 00421780 FUN_00421780 11 @@ -529,7 +529,7 @@ 004267f0 FUN_004267f0 227 004268e0 FID_conflict:_Change_array 90 00426940 deallocate 62 -00426980 FUN_00426980 81 +00426980 std::vector::_Tidy 81 004269e0 thunk_FUN_00426980 5 004269f0 FUN_004269f0 88 00426a50 FUN_00426a50 1898 @@ -540,10 +540,10 @@ 004286b0 FUN_004286b0 457 00428880 FUN_00428880 19 004288a0 std::set::find_node 75 -004288f0 FUN_004288f0 27 -00428910 FUN_00428910 27 +004288f0 Entity::SetPosition 27 +00428910 Entity::SetVelocity 27 00428930 GridEntity::GetSprite 4 -00428940 FUN_00428940 235 +00428940 Seeds::Init3 235 00428a50 Room::GetEntities 7 00428a60 FUN_00428a60 7 00428a70 FUN_00428a70 7 @@ -572,7 +572,7 @@ 0042a040 FUN_0042a040 448 0042a210 FUN_0042a210 19 0042a230 FUN_0042a230 19 -0042a250 FUN_0042a250 8 +0042a250 Entity::IsFamiliar 8 0042a260 Entity::Parent 7 0042a270 Room::GetRoomShape 24 0042a290 Room::SetGridPath 36 @@ -597,7 +597,7 @@ 0042b480 FUN_0042b480 32 0042b520 FUN_0042b520 36 0042b550 FUN_0042b550 4 -0042b560 FUN_0042b560 507 +0042b560 ItemPool::ReplaceBlacklistedPickup 507 0042b770 FUN_0042b770 66 0042b7c0 FUN_0042b7c0 383 0042b940 FUN_0042b940 94 @@ -625,7 +625,7 @@ 0042c7f0 FUN_0042c7f0 27 0042c810 FUN_0042c810 15 0042c820 FUN_0042c820 44 -0042c850 FUN_0042c850 39 +0042c850 std::vector::push_back 39 0042c880 std::vector::_Reallocate 82 0042c8e0 FID_conflict:_Erase_tree_>_> 59 0042c920 std::vector::_Emplace_reallocate 221 @@ -677,12 +677,12 @@ 0042eb10 DebugRenderer::Get 657 0042edb0 FUN_0042edb0 36 0042ede0 FUN_0042ede0 268 -0042eef0 FUN_0042eef0 345 +0042eef0 push_shape_points 345 0042f050 FUN_0042f050 15 0042f060 FUN_0042f060 89 0042f0c0 FUN_0042f0c0 46 0042f0f0 FUN_0042f0f0 88 -0042f150 FUN_0042f150 15 +0042f150 std::vector::operator__ 15 0042f160 FUN_0042f160 9 0042f170 FUN_0042f170 48 0042f1a0 FUN_0042f1a0 122 @@ -726,8 +726,8 @@ 00431450 Entity::AddVelocity 82 004314b0 Entity::AddVelocity 111 00431520 Entity::Mass 7 -00431530 FUN_00431530 8 -00431540 FUN_00431540 8 +00431530 Entity::IsTear 8 +00431540 Entity::IsProjectile 8 00431550 FUN_00431550 8 00431560 Entity::Child 7 00431570 sorted_vector_insert_unique 164 @@ -753,7 +753,7 @@ 00435590 FUN_00435590 34 004355c0 FUN_004355c0 370 00435740 FUN_00435740 156 -004357e0 FUN_004357e0 158 +004357e0 Entity_Familiar::set_extra_data 158 00435880 FUN_00435880 35 004358b0 FUN_004358b0 88 00435910 FUN_00435910 315 @@ -762,7 +762,7 @@ 00435ad0 Color::Color 120 00435b50 Color::Color 103 00435bc0 FUN_00435bc0 34 -00435bf0 FUN_00435bf0 34 +00435bf0 BitSet128::operator__ 34 00435c20 BitSet128::operator_or 57 00435c60 FUN_00435c60 16 00435c70 EntityRef::EntityRef 96 @@ -770,18 +770,18 @@ 00435ce0 FUN_00435ce0 9 00435cf0 set_field_358 20 00435d10 Entity::DepthOffset 7 -00435d20 FUN_00435d20 20 +00435d20 Entity::SetField380 20 00435d40 FUN_00435d40 20 -00435d60 FUN_00435d60 33 +00435d60 Entity::SetTargetPosition 33 00435d90 FUN_00435d90 16 00435da0 FUN_00435da0 8 -00435db0 FUN_00435db0 19 +00435db0 Entity::GetHitPointsLost 19 00435dd0 Entity::GetSprite 4 00435de0 FUN_00435de0 16 00435df0 FUN_00435df0 16 00435e00 FUN_00435e00 43 00435e30 FUN_00435e30 16 -00435e40 FUN_00435e40 16 +00435e40 Entity::ToTear 16 00435e50 Entity_Tear::FallingAcceleration 7 00435e60 FUN_00435e60 16 00435e70 FUN_00435e70 20 @@ -793,7 +793,7 @@ 00435f30 Entity_Laser::SetMaxDistance 20 00435f50 Entity_Laser::IsCircleLaser 24 00435f70 FUN_00435f70 16 -00435f80 FUN_00435f80 34 +00435f80 TemporaryEffect::TemporaryEffect 34 00435fb0 Level::SetHeartPicked 5 00435fc0 GridEntity_Door::IsOpen 8 00435fd0 GridEntity_Door::IsLocked 34 @@ -808,7 +808,7 @@ 004360c0 Room::GetTintedRockIdx 7 004360d0 FUN_004360d0 7 004360e0 Level::GetCurrentRoomIndex 7 -004360f0 FUN_004360f0 39 +004360f0 _get_index_plus_one_if_kind_4_5 39 00436120 FUN_00436120 22 00436140 Seeds::GetStartSeed 24 00436160 Entity_Player::AddCacheFlags 16 @@ -822,9 +822,9 @@ 004361f0 Entity_Familiar::Player 7 00436200 FUN_00436200 16 00436210 FUN_00436210 16 -00436220 FUN_00436220 56 +00436220 Entity::SetVisibleFlag 56 00436260 FUN_00436260 53 -004362a0 FUN_004362a0 135 +004362a0 ItemConfig::get_wisp_config 135 00436330 FUN_00436330 2555 00436fb0 FUN_00436fb0 28 00436fd0 Entity_Familiar::wisp_kill 59 @@ -838,7 +838,7 @@ 0043e990 FUN_0043e990 88 0043e9f0 FUN_0043e9f0 274 0043eb10 Entity_Familiar::GetRandomWisp 386 -0043eca0 FUN_0043eca0 123 +0043eca0 std::vector::copy_constructor 123 0043ed20 FUN_0043ed20 204 0043edf0 FUN_0043edf0 141 0043ee80 Sprite::SetRotation 20 @@ -846,7 +846,7 @@ 0043eec0 GridEntity::GetVariant 4 0043eed0 FUN_0043eed0 65 0043ef20 Room::GetBossID 7 -0043ef30 NpcAI::ENTITY_GEMINI 400 +0043ef30 ProjectileParams::ProjectileParams 400 0043f0c0 NpcAI::ENTITY_BABY_PLUM 140 004405e0 FUN_004405e0 46 00440610 Game::GetDarknessModifier 7 @@ -872,8 +872,8 @@ 00444cb0 FUN_00444cb0 16 00444cc0 FUN_00444cc0 1018 00447180 FUN_00447180 1299 -004476a0 FUN_004476a0 122 -00447720 FUN_00447720 20 +004476a0 Color::Color 122 +00447720 set_field_0x37c 20 00447740 FUN_00447740 25 00447760 FUN_00447760 7 00447770 Entity_NPC::ParentNPC 60 @@ -895,7 +895,7 @@ 004508a0 FUN_004508a0 20 004508c0 ItemPool::pick_collectible 1239 00450da0 NpcAI::ENTITY_LIL_BLUB 7684 -00452be0 FUN_00452be0 13 +00452be0 _ptr_deref_or_minus1 13 00452bf0 ANM2::GetAnimation 66 00452c40 Entity_Bomb::SetExplosionCountdown 22 00452c60 FUN_00452c60 209 @@ -905,16 +905,16 @@ 00453140 NpcAI::ENTITY_BIG_HORN 12244 00456170 FUN_00456170 19 00456190 FUN_00456190 15 -004561a0 FUN_004561a0 14 +004561a0 std::iterator_copy 14 004561b0 str_eq_cstr 49 004561f0 FUN_004561f0 53 00456230 FUN_00456230 8 -00456240 FUN_00456240 163 +00456240 ColorParams::set_from_bytes 163 004562f0 FUN_004562f0 68 00456340 FUN_00456340 27 00456360 Sprite::PlaybackSpeed 7 00456370 PathFinder::GetGridIndex 4 -00456380 FUN_00456380 50 +00456380 Color::assign 50 004563c0 FUN_004563c0 27 004563e0 FUN_004563e0 27 00456400 FUN_00456400 27 @@ -1003,10 +1003,10 @@ 00496fb0 NpcAI::ENTITY_SISTERS_VIS 7960 00498f80 FUN_00498f80 55 00498fc0 thunk_FUN_00499380 5 -00498fd0 FUN_00498fd0 435 +00498fd0 std::deque::erase 435 00499190 std::deque::push_back 160 -00499230 FUN_00499230 54 -00499270 FUN_00499270 30 +00499230 std::deque::front 54 +00499270 _range_to_span 30 00499290 FUN_00499290 153 00499330 FUN_00499330 27 00499350 SimpleString::operator= 40 @@ -1017,13 +1017,13 @@ 00499580 FUN_00499580 615 004997f0 std::string::append 337 00499950 FUN_00499950 11 -00499960 FUN_00499960 70 +00499960 EntityRef::operator_ 70 004999b0 FUN_004999b0 19 004999d0 FUN_004999d0 113 00499a50 FUN_00499a50 715 00499d20 fmodf 57 00499d60 atan2f 57 -00499da0 FUN_00499da0 16 +00499da0 Entity::ToPlayer 16 00499db0 FUN_00499db0 4 00499dc0 PathFinder::SetCanCrushRocks 16 00499dd0 Entity_Player::GetNumCoins 7 @@ -1057,7 +1057,7 @@ 004a9860 FUN_004a9860 4028 004aaaa0 FUN_004aaaa0 67 004aaaf0 FUN_004aaaf0 62 -004aab30 FUN_004aab30 330 +004aab30 std::vector::assign_0x38 330 004aac80 FUN_004aac80 127 004aad00 FUN_004aad00 6 004aad10 FUN_004aad10 6 @@ -1084,8 +1084,8 @@ 004ae4d0 FUN_004ae4d0 7403 004b0200 FUN_004b0200 2082 004b0a30 FUN_004b0a30 1026 -004b0e40 FUN_004b0e40 264 -004b0f50 FUN_004b0f50 137 +004b0e40 std::deque::assign 264 +004b0f50 std::deque::push_back 137 004b0fe0 FUN_004b0fe0 542 004b1210 NpcHelper::gideon_choose_attack 1775 004b1910 NpcHelper::gideon_spawn_wave 1437 @@ -1093,14 +1093,14 @@ 004b3610 FUN_004b3610 813 004b3940 thunk_FUN_004b3610 5 004b3950 FUN_004b3950 81 -004b39b0 FUN_004b39b0 310 +004b39b0 std::vector::_Emplace_reallocate 310 004b3af0 FUN_004b3af0 602 004b3d50 FUN_004b3d50 355 004b3ec0 FUN_004b3ec0 74 004b3f10 FUN_004b3f10 437 004b40d0 FUN_004b40d0 740 004b43c0 NpcAI::ENTITY_HERETIC 1264 -004b6a90 FUN_004b6a90 132 +004b6a90 std::deque::push_front 132 004b6b20 FUN_004b6b20 443 004b6ce0 FUN_004b6ce0 130 004b6d70 FUN_004b6d70 68 @@ -1121,16 +1121,16 @@ 004b7e30 NpcHelper::hornfel_charge 175 004b7ee0 FUN_004b7ee0 675 004b8190 NpcHelper::hornfel_minecart 2160 -004b8a30 FUN_004b8a30 610 +004b8a30 NpcHelper::hornfel_ride_minecart 610 004b8ca0 NpcHelper::hornfel_attack 1077 004b90e0 FUN_004b90e0 500 004b92e0 Entity_NPC::Hornfel_UpdateAI 7601 004bb0e0 Entity_NPC::Hornfel_UpdateFrame 322 004bb230 FUN_004bb230 276 004bb350 FUN_004bb350 497 -004bb550 FUN_004bb550 343 +004bb550 NpcHelper::hornfel_get_rail_direction 343 004bb6b0 FUN_004bb6b0 371 -004bb830 FUN_004bb830 229 +004bb830 NpcHelper::hornfel_set_anim 229 004bb920 FUN_004bb920 135 004bb9b0 NpcAI::ENTITY_HORNFEL_DOOR 1151 004bbe30 Entity_Pickup::Render 1558 @@ -1144,7 +1144,7 @@ 004bcc70 FUN_004bcc70 859 004bcfd0 FUN_004bcfd0 712 004bd2a0 NpcAI::ENTITY_HORNY_BOYS 425 -004be670 FUN_004be670 103 +004be670 NpcHelper::query_nearest_other 103 004be6e0 PathFinder::HasDirectPath 7 004be6f0 NpcAI::ENTITY_HUSH_BOIL 1858 004bee40 NpcAI::ENTITY_HUSH_GAPER 1231 @@ -1166,13 +1166,13 @@ 004ce120 FUN_004ce120 1446 004ce6d0 FUN_004ce6d0 449 004ce8a0 NpcAI::ENTITY_MINECART 1517 -004cee90 FUN_004cee90 415 +004cee90 NpcHelper::minecart_break 415 004cf030 Entity_NPC::SetMinecartPosVel 186 004cf0f0 FUN_004cf0f0 44 004cf120 Entity_NPC::MinecartUpdateChild 163 -004cf1d0 FUN_004cf1d0 62 +004cf1d0 EntityPtr::Set 62 004cf210 std::multiset::erase 307 -004cf350 FUN_004cf350 33 +004cf350 std::set::clear 33 004cf380 FUN_004cf380 58 004cf3c0 FUN_004cf3c0 489 004cf5b0 FUN_004cf5b0 210 @@ -1184,7 +1184,7 @@ 004d3060 Entity_Projectile::CurvingStrength 7 004d3070 Entity_Projectile::WiggleFrameOffset 7 004d3080 EntitySaveState::constructor 161 -004d3130 FUN_004d3130 256 +004d3130 EntitySaveState::copy 256 004d3230 FUN_004d3230 319 004d3380 Level::GetLastBossRoomListIndex 7 004d3390 Game::SetStateFlag 50 @@ -1219,8 +1219,8 @@ 004d7790 Entity_Knife::Rotation 7 004d77a0 Entity_Knife::GetKnifeVelocity 7 004d77b0 NpcAI::ENTITY_SMALL_MAGGOT 4403 -004d8910 FUN_004d8910 568 -004d8b50 FUN_004d8b50 436 +004d8910 spawn_small_maggot_jump 568 +004d8b50 spawn_small_maggot 436 004d8d10 FUN_004d8d10 514 004d8f20 FUN_004d8f20 198 004d9000 NpcAI::ENTITY_ADULT_LEECH 610 @@ -1242,7 +1242,7 @@ 004e4690 pow 27 004e46b0 FUN_004e46b0 6 004e46c0 FUN_004e46c0 6 -004e46d0 FUN_004e46d0 205 +004e46d0 Color::apply_to_kcolor 205 004e47a0 Entity::SplatColor 7 004e47b0 FUN_004e47b0 11 004e47c0 std::vector::clear 112 @@ -1258,8 +1258,8 @@ 004e7d10 FUN_004e7d10 399 004e7ea0 NpcAI::ENTITY_BISHOP 1248 004e8380 NpcAI::ENTITY_BABY_BEGOTTEN 3100 -004e8fa0 FUN_004e8fa0 2913 -004e9b10 FUN_004e9b10 2227 +004e8fa0 Entity_NPC::UpdateCordChain 2913 +004e9b10 Entity_NPC::render_overlay 2227 004ea3d0 NpcAI::ENTITY_VIS_FATTY 7711 004ec240 NpcAI::ENTITY_EXORCIST 168 004ecc10 NpcAI::ENTITY_REVENANT 3120 @@ -1273,12 +1273,12 @@ 004f76f0 NpcAI::ENTITY_MOCKULUS 1872 004f7e60 NpcAI::ENTITY_MORNINGSTAR 1310 004f8390 FUN_004f8390 9 -004f83a0 FUN_004f83a0 188 +004f83a0 std::deque::resize 188 004f8460 FUN_004f8460 51 -004f84a0 FUN_004f84a0 53 +004f84a0 str_ne 53 004f84e0 FUN_004f84e0 481 004f86d0 FUN_004f86d0 457 -004f88a0 FUN_004f88a0 55 +004f88a0 rng_pair_init 55 004f88e0 FUN_004f88e0 12 004f88f0 Level::GetStateFlag 56 004f8930 FUN_004f8930 7 @@ -1305,11 +1305,11 @@ 005041d0 NpcAI::ENTITY_BIG_BONY 2157 00504a40 NpcAI::ENTITY_DUSTY_DEATHS_HEAD 2115 005052a0 NpcAI::ENTITY_NECRO 2208 -00505b40 FUN_00505b40 8 -00505b50 FUN_00505b50 16 +00505b40 pow_wrapper 8 +00505b50 set_byte_0x101 16 00505b60 Entity::GetColor 7 00505b70 Entity::InitSeed 7 -00505b80 FUN_00505b80 161 +00505b80 _Entity_NPC::GetColorWithFlash 161 00505c30 RoomDescriptor::HasWater 9 00505c40 Room::HasWaterPits 12 00505c50 Room::GetWaterCurrent 27 @@ -1394,7 +1394,7 @@ 005441e0 FUN_005441e0 179 005442a0 NpcAI::ENTITY_TARBOY 7292 00545f70 NpcAI::ENTITY_FISTULOID 4300 -00547040 FUN_00547040 741 +00547040 npc_distribute_orbit_angles 741 00547330 NpcAI::ENTITY_GUSH 2088 00547b60 NpcAI::ENTITY_LEPER 3003 00548720 NpcHelper::leper_flesh_ai 2045 @@ -1419,15 +1419,15 @@ 005562b0 NpcAI::ENTITY_PEEPER_FATTY 5879 005579b0 FUN_005579b0 163 00557a60 FUN_00557a60 156 -00557b00 FUN_00557b00 67 +00557b00 std::set::find 67 00557b50 FUN_00557b50 19 00557b70 FUN_00557b70 55 00557bb0 FUN_00557bb0 17 -00557bd0 FUN_00557bd0 242 +00557bd0 std::string::find 242 00557cd0 Entity_Tear::Scale 7 -00557ce0 FUN_00557ce0 634 +00557ce0 collect_npcs_with_same_parent 634 00557f70 NpcHelper::willo_slot 252 -00558070 FUN_00558070 307 +00558070 NpcHelper::willo_get_target_pos 307 005581b0 NpcHelper::willo_orbit 530 005583d0 NpcHelper::willo_attack 734 005586b0 NpcAI::ENTITY_WILLO 163 @@ -1532,7 +1532,7 @@ 00587aa0 Entity_Familiar::HandleCollision 8962 00589de0 FUN_00589de0 95 00589e40 FUN_00589e40 327 -00589f90 FUN_00589f90 116 +00589f90 Room::CanSpawnObstacleAtPos 116 0058a010 Entity_NPC::Render 2857 0058ab60 FUN_0058ab60 161 0058ac10 FUN_0058ac10 701 @@ -1542,8 +1542,8 @@ 0058e230 Entity_Player::StopExtraAnimation 15 0058e240 FUN_0058e240 24 0058e260 FUN_0058e260 549 -0058e490 FUN_0058e490 244 -0058e590 FUN_0058e590 228 +0058e490 NpcHelper::siren_familiar_counts 244 +0058e590 NpcHelper::siren_charmed_count 228 0058e680 NpcHelper::siren_pick 1433 0058ec70 NpcAI::ENTITY_SIREN_main 9459 005911b0 FUN_005911b0 680 @@ -1571,7 +1571,7 @@ 00599f80 FUN_00599f80 625 0059a200 FUN_0059a200 208 0059a2d0 NpcAI::ENTITY_TUFF_TWINS 7162 -0059bed0 FUN_0059bed0 1505 +0059bed0 Entity_NPC::RenderSegmentLink 1505 0059c4c0 FUN_0059c4c0 267 0059c5d0 FUN_0059c5d0 604 0059c830 NpcAI::ENTITY_TURDLET 6639 @@ -1719,7 +1719,7 @@ 005cbbd0 FUN_005cbbd0 292 005cbd00 FUN_005cbd00 15 005cbd10 FUN_005cbd10 16 -005cbd20 FUN_005cbd20 158 +005cbd20 std::vector::erase 158 005cbdd0 FUN_005cbdd0 48 005cbe00 FUN_005cbe00 24 005cbe20 FUN_005cbe20 56 @@ -1733,7 +1733,7 @@ 005cbfa0 FUN_005cbfa0 19 005cbfc0 FUN_005cbfc0 21 005cbfe0 FUN_005cbfe0 129 -005cc070 FUN_005cc070 128 +005cc070 RNG::Shuffle 128 005cc100 FUN_005cc100 21 005cc120 FUN_005cc120 21 005cc140 FUN_005cc140 392 @@ -1765,7 +1765,7 @@ 005cd3f0 FUN_005cd3f0 17 005cd410 FUN_005cd410 17 005cd430 FUN_005cd430 34 -005cd460 FUN_005cd460 16 +005cd460 Entity::AddFlagsLow 16 005cd470 FUN_005cd470 18 005cd490 FUN_005cd490 21 005cd4b0 FUN_005cd4b0 46 @@ -1821,7 +1821,7 @@ 005d4380 Entity_Effect::Update 1370 006073f0 FUN_006073f0 330 00607540 FUN_00607540 93 -006075a0 FUN_006075a0 114 +006075a0 TearParams::operator_ 114 00607620 Entity_Effect::Render 13647 0060abb0 Entity_Effect::ClearReferences 105 0060ac20 Entity_Effect::IsPlayerCreep 76 @@ -1844,7 +1844,7 @@ 0060c530 FUN_0060c530 36 0060c560 FUN_0060c560 27 0060c580 FUN_0060c580 156 -0060c620 FUN_0060c620 156 +0060c620 Entity_Effect::ExtraDataRef::Set 156 0060c6c0 FUN_0060c6c0 18 0060c6e0 FUN_0060c6e0 23 0060c700 FUN_0060c700 132 @@ -1916,8 +1916,8 @@ 0060d110 FUN_0060d110 7 0060d120 FUN_0060d120 12 0060d130 FUN_0060d130 7 -0060d140 FUN_0060d140 64 -0060d180 FUN_0060d180 51 +0060d140 Entity_NPC::set_entity_ptr_f54 64 +0060d180 Entity_Familiar::GetPlayerSlot 51 0060d1c0 FUN_0060d1c0 20 0060d1e0 FUN_0060d1e0 12 0060d1f0 FUN_0060d1f0 16 @@ -1932,22 +1932,22 @@ 0060d8e0 Entity_Familiar::CanBlockProjectiles 449 0060dab0 Entity_Familiar::CanShutDoors 33 0060dae0 FUN_0060dae0 91 -0060dc40 FUN_0060dc40 391 +0060dc40 Entity_Familiar::apply_tear_modifiers 391 0060ddd0 FUN_0060ddd0 153 0060de70 Entity_Familiar::Init 6717 00610470 Entity_Familiar::Remove 174 00610540 Entity_Familiar::Kill 7223 006121d0 Entity_Familiar::ClearReferences 350 -00612330 FUN_00612330 264 +00612330 Entity_Familiar::get_orbit_parent 264 00612440 Entity_Familiar::RecalculateOrbitOffset 870 006127b0 Entity_Familiar::AddToOrbit 110 00612820 Entity_Familiar::RemoveFromOrbit 33 00612850 Entity_Familiar::GetOrbitDistance 50 -00612890 FUN_00612890 216 +00612890 Entity_Familiar::is_detached_from_follow 216 00612970 Entity_Familiar::GetFollowerPriority 70 00612ad0 FUN_00612ad0 24 00612af0 Entity_Familiar::IsLilithBirthrightIncubus 89 -00612b50 FUN_00612b50 82 +00612b50 Entity_Familiar::get_incubus_umbilical_whip 82 00612bb0 Entity_Familiar::FollowParent 3405 00613910 Entity_Familiar::FollowPosition 160 006139b0 Entity_Familiar::GetOrbitPosition 616 @@ -1983,7 +1983,7 @@ 00624dd0 Entity_Familiar::RenderShadowLayer 57 00624e10 Entity_Familiar::Render 2726 006261f0 Entity_Familiar::HandleCollision 15287 -0062a8f0 FUN_0062a8f0 62 +0062a8f0 Entity_Familiar::CanPlayerFire 62 0062a930 Entity_Familiar::AddCoins 329 0062aaa0 Entity_Familiar::AddHearts 16 0062aab0 FUN_0062aab0 2028 @@ -2000,7 +2000,7 @@ 0062e020 FUN_0062e020 185 0062e0e0 FUN_0062e0e0 57 0062e120 FUN_0062e120 1268 -0062e620 FUN_0062e620 921 +0062e620 Entity_Familiar::update_weapon 921 0062e9c0 FUN_0062e9c0 1129 0062ee30 FUN_0062ee30 2481 0062f7f0 FUN_0062f7f0 3129 @@ -2010,7 +2010,7 @@ 00630c90 FUN_00630c90 955 00631050 Entity_Familiar::MoveDelayed 668 006312f0 Entity_Familiar::MoveDiagonally 1373 -00631850 FUN_00631850 417 +00631850 Entity_Familiar::move_to_parent_offset 417 00631a00 FUN_00631a00 251 00631b20 Entity_Familiar::delirium_morph 1982 006322f0 FUN_006322f0 464 @@ -2020,12 +2020,12 @@ 00633500 FUN_00633500 1150 00633990 FUN_00633990 1238 00633ea0 FUN_00633ea0 352 -00634000 FUN_00634000 414 +00634000 Entity_Familiar::TryFireTear 414 006341a0 FUN_006341a0 183 -00634260 FUN_00634260 1643 -006348d0 FUN_006348d0 74 +00634260 Entity_Familiar::UpdateFollowPosition 1643 +006348d0 Entity_Familiar::reset_follow_target 74 00634920 FUN_00634920 42 -00634a40 FUN_00634a40 201 +00634a40 Entity_Familiar::ResolveOrbitConflict 201 00634b10 FUN_00634b10 2068 00635390 FUN_00635390 9504 006378c0 FUN_006378c0 2188 @@ -2034,16 +2034,16 @@ 00638c10 Entity_Familiar::FireBrimstone 526 00638e20 FUN_00638e20 15 00638e30 spawn_blue_spider 464 -00639000 FUN_00639000 898 -006393a0 FUN_006393a0 561 +00639000 Entity_Familiar::ThrowDip 898 +006393a0 spawn_dip_at 561 006395e0 FUN_006395e0 360 00639750 Entity_Familiar::FireProjectile 5527 0063acf0 FUN_0063acf0 502 0063aef0 FUN_0063aef0 370 0063b070 FUN_0063b070 449 0063b240 FUN_0063b240 247 -0063b340 FUN_0063b340 347 -0063b4a0 FUN_0063b4a0 1026 +0063b340 Entity_Familiar::update_idle_anim_by_size 347 +0063b4a0 Entity_Familiar::GetFollowTargetPosition 1026 0063b8b0 FUN_0063b8b0 979 0063c060 FUN_0063c060 57 0063c0a0 Entity_Familiar::TryThrow 288 @@ -2061,7 +2061,7 @@ 00640ca0 FUN_00640ca0 2064 006414c0 RoomTransition::ChangeRoom 3241 006424d0 FUN_006424d0 1977 -00642cb0 FUN_00642cb0 1269 +00642cb0 FamiliarAI::tinytoma 1269 006431b0 FUN_006431b0 28 006431d0 FUN_006431d0 1487 006437a0 FUN_006437a0 688 @@ -2070,8 +2070,8 @@ 00644e80 FUN_00644e80 3349 00645bc0 FUN_00645bc0 116 006468a0 FUN_006468a0 2068 -006470c0 FUN_006470c0 39 -006470f0 FUN_006470f0 121 +006470c0 Entity_Familiar::get_item_config_entry 39 +006470f0 ItemConfig::get_wisp_entry 121 00647170 FUN_00647170 426 00647320 FUN_00647320 5754 006489a0 Entity_NPC::HandleCollision 2288 @@ -2082,8 +2082,8 @@ 0064b6a0 FUN_0064b6a0 28 0064b6c0 FUN_0064b6c0 553 0064b920 FUN_0064b920 393 -0064bab0 FUN_0064bab0 179 -0064bb70 FUN_0064bb70 1067 +0064bab0 Entity_Familiar::RemoveFromPlayer 179 +0064bb70 Entity::convert_shot_for_enemy_owner 1067 0064bfa0 FUN_0064bfa0 2696 0064ca30 Entity_Familiar::UpdateDirtColor 701 0064ccf0 FUN_0064ccf0 56 @@ -2098,13 +2098,13 @@ 0064fd40 FUN_0064fd40 1239 00650220 FUN_00650220 996 00650610 FUN_00650610 4551 -00651810 FUN_00651810 122 +00651810 apply_forgotten_lullaby 122 00651890 Entity_Familiar::TriggerGlowingHourglass 45 006518c0 FUN_006518c0 8 006518d0 FUN_006518d0 32 -006518f0 FUN_006518f0 23 +006518f0 set_iterator_post_increment 23 00651910 FUN_00651910 117 -00651990 FUN_00651990 32 +00651990 map_find_value 32 006519b0 FUN_006519b0 86 00651a10 FUN_00651a10 60 00651a50 FUN_00651a50 63 @@ -2131,7 +2131,7 @@ 00652a00 FUN_00652a00 47 00652a30 FUN_00652a30 52 00652a70 FUN_00652a70 23 -00652a90 FUN_00652a90 19 +00652a90 _has_flag_0x110 19 00652ab0 Room::ScreenWrapPosition 46 00652ae0 FUN_00652ae0 31 00652b00 Entity_Projectile::Constructor 75 @@ -2143,7 +2143,7 @@ 00652fa0 Entity_Projectile::Reflect 200 00653070 Entity_Projectile::Update 31552 0065ad30 FUN_0065ad30 1866 -0065b490 FUN_0065b490 104 +0065b490 TearParams::copy 104 0065b500 FUN_0065b500 363 0065b670 Entity_Projectile::HandleCollision 3735 0065c510 Entity_Projectile::Interpolate 1614 @@ -2172,12 +2172,12 @@ 0065d200 Entity_Slot::Init 1639 0065d950 Entity_Slot::Update 19930 006627e0 Entity_Slot::HandleCollision 3841 -00663aa0 FUN_00663aa0 2706 +00663aa0 Entity_Slot::spawn_break_drops 2706 00664560 Entity_Slot::TakeDamage 3548 00665370 Entity_Slot::Render 78 006653c0 FUN_006653c0 24 006653e0 FUN_006653e0 267 -00665500 FUN_00665500 212 +00665500 Entity_Slot::SetPrizeType 212 006655e0 FUN_006655e0 72 00665630 FUN_00665630 318 006657a0 Entity_Slot::HandleCollision 621 @@ -2185,7 +2185,7 @@ 00665a50 FUN_00665a50 36 00665a80 Entity::CollidesWithGrid 7 00665a90 FUN_00665a90 108 -00665b00 FUN_00665b00 40 +00665b00 Entity_Tear::GetRootPlayer 40 00665b30 FUN_00665b30 52 00665b70 FUN_00665b70 13 00665b80 FUN_00665b80 18 @@ -2196,7 +2196,7 @@ 00665bf0 FUN_00665bf0 16 00665c00 FUN_00665c00 9 00665c10 Entity_Player::GetTractorBeam 7 -00665c20 FUN_00665c20 53 +00665c20 Entity_Player::GetTearHitParams_copy 53 00665c60 Game::IsInTimedSet 81 00665cc0 FUN_00665cc0 46 00665cf0 Entity_Tear::Constructor 422 @@ -2204,9 +2204,9 @@ 00665ed0 FUN_00665ed0 446 006660a0 Entity_Tear::Init 1566 006666c0 Entity_Tear::ClearReferences 501 -006668c0 FUN_006668c0 319 -00666a00 FUN_00666a00 404 -00666ba0 FUN_00666ba0 396 +006668c0 Entity_Tear::apply_wiggle 319 +00666a00 Entity_Tear::apply_wiggle 404 +00666ba0 Entity_Tear::update_wiggle 396 00666d40 FUN_00666d40 940 006670f0 Entity_Tear::Update 45733 00673660 Entity_Tear::HandleCollision 10549 @@ -2216,17 +2216,17 @@ 00676120 Entity_Tear::SetScale 41 00676150 Entity_Tear::SetTearFlags 2678 00676bd0 FUN_00676bd0 9 -00676be0 FUN_00676be0 2960 +00676be0 Entity_Tear::UpdateBoneTear 2960 00677780 Entity_Tear::ResetSpriteScale 2179 -00678060 FUN_00678060 22 +00678060 Entity_Tear::is_not_familiar_spawned 22 00678080 FUN_00678080 4144 006790c0 Entity_Tear::Render 821 00679400 Entity_Tear::Interpolate 2678 00679e80 Entity_Tear::SetDeadEyeIntensity 501 -0067a080 FUN_0067a080 266 +0067a080 Entity_Projectile::Deflect 266 0067a190 Entity_Tear::MakeMultidimensionalCopy 622 0067a400 Entity_Tear::ChangeVariant 800 -0067a720 FUN_0067a720 68 +0067a720 Entity::GetRootParent 68 0067a770 FUN_0067a770 369 0067a8f0 FUN_0067a8f0 500 0067aaf0 FUN_0067aaf0 706 @@ -2234,8 +2234,8 @@ 0067ae30 FUN_0067ae30 242 0067af30 FUN_0067af30 37 0067af60 Entity_Tear::ApplyTearFlagEffects 8848 -0067d1f0 FUN_0067d1f0 564 -0067d430 FUN_0067d430 292 +0067d1f0 get_tear_flags_from_player 564 +0067d430 tear_flags_area_apply 292 0067d560 FUN_0067d560 1103 0067d9b0 FUN_0067d9b0 64 0067da40 FUN_0067da40 124 @@ -2273,14 +2273,14 @@ 00682350 FUN_00682350 61 00682390 FUN_00682390 942 00682740 normalize_angle_degrees 83 -006827a0 FUN_006827a0 268 +006827a0 angle_lerp_shortest 268 006828b0 LerpAngleDeg 353 00682a20 FUN_00682a20 38 00682a50 approach_angle 314 -00682b90 FUN_00682b90 815 +00682b90 string_scramble_seeded 815 00682ed0 Color::Reset 77 00682f20 Color::SetTint 46 -00682f50 FUN_00682f50 82 +00682f50 KColor::FromRGBA255 82 00682fb0 Color::SetColorize 47 00682fe0 Color::SetOffset 37 00683010 FUN_00683010 66 @@ -2290,7 +2290,7 @@ 00683410 FUN_00683410 363 00683580 FUN_00683580 245 00683680 FUN_00683680 62 -006836c0 FUN_006836c0 71 +006836c0 pop_render_target 71 00683710 FUN_00683710 253 00683820 FUN_00683820 252 00683930 FUN_00683930 113 @@ -2308,7 +2308,7 @@ 00684590 FUN_00684590 303 006846c0 FUN_006846c0 608 00684920 FUN_00684920 609 -00684b90 FUN_00684b90 262 +00684b90 hsv_to_rgb 262 00684cb0 nullsub_684cb0 42 00684ce0 FUN_00684ce0 296 00684e10 FUN_00684e10 32 @@ -2316,7 +2316,7 @@ 00684e50 FUN_00684e50 20 00684e70 FUN_00684e70 100 00684ee0 FUN_00684ee0 79 -00684f30 FUN_00684f30 53 +00684f30 std::deque::back 53 00684f70 FUN_00684f70 70 00684fc0 FUN_00684fc0 49 00685000 FUN_00685000 412 @@ -2327,7 +2327,7 @@ 00685360 FUN_00685360 521 00685570 FUN_00685570 175 00685620 FUN_00685620 158 -006856c0 FUN_006856c0 491 +006856c0 std::vector::resize 491 006858b0 FUN_006858b0 250 006859aa Catch_All@006859aa 26 006859cd FUN_006859cd 78 @@ -2425,7 +2425,7 @@ 006998d0 FUN_006998d0 7886 0069b7b0 FUN_0069b7b0 96 0069b810 FUN_0069b810 633 -0069ba90 FUN_0069ba90 324 +0069ba90 EntityConfig::PreloadResources 324 0069bbf0 FUN_0069bbf0 281 0069bd10 FUN_0069bd10 63 0069bd50 FUN_0069bd50 1733 @@ -2454,7 +2454,7 @@ 0069da00 FUN_0069da00 74 0069da50 FUN_0069da50 49 0069da90 FUN_0069da90 39 -0069dac0 FUN_0069dac0 102 +0069dac0 std::vector<12byte>::_Tidy 102 0069db30 FUN_0069db30 128 0069dbc0 FUN_0069dbc0 116 0069dc40 FUN_0069dc40 22 @@ -2490,7 +2490,7 @@ 0069f4e0 FUN_0069f4e0 52 0069f520 FUN_0069f520 60 0069f560 FUN_0069f560 1065 -0069f990 FUN_0069f990 155 +0069f990 Color::copy_constructor_ext 155 0069fa30 FUN_0069fa30 52 0069fa70 FUN_0069fa70 65 0069fac0 FUN_0069fac0 145 @@ -2517,7 +2517,7 @@ 006a0cc0 FUN_006a0cc0 13 006a0cd0 FUN_006a0cd0 34 006a0d00 FUN_006a0d00 34 -006a0d30 FUN_006a0d30 134 +006a0d30 std::vector::reserve_clear 134 006a0dc0 FUN_006a0dc0 151 006a0e60 FUN_006a0e60 686 006a1110 FUN_006a1110 562 @@ -2540,7 +2540,7 @@ 006a6930 FUN_006a6930 16 006a6940 FUN_006a6940 149 006a69e0 FUN_006a69e0 1323 -006a6f10 FUN_006a6f10 4007 +006a6f10 Entity_Bomb::update_sparks 4007 006a7ec0 FUN_006a7ec0 28 006a7ee0 FUN_006a7ee0 44 006a7f20 FUN_006a7f20 9 @@ -2548,7 +2548,7 @@ 006a7f80 FUN_006a7f80 317 006a80c0 GridEntity::Hurt 5 006a80d0 FUN_006a80d0 20 -006a80f0 FUN_006a80f0 35 +006a80f0 LuaRef::push 35 006a8120 FUN_006a8120 81 006a8180 FUN_006a8180 13 006a8190 FUN_006a8190 117 @@ -2560,14 +2560,14 @@ 006a8850 Entity::destructor 315 006a8990 Entity::GetLastParent 31 006a89b0 Entity::GetLastChild 31 -006a89d0 FUN_006a89d0 31 +006a89d0 Entity::GetLastSpawner 31 006a89f0 Entity::GetStatusEffectTarget 36 006a8a20 Entity::CopyStatusEffects 474 006a8c00 Entity::HasCommonParentWithEntity 91 006a8c60 FUN_006a8c60 246 006a8db0 Entity::DoesEntityShareStatus 60 006a8ee0 Entity::IsValidTarget 58 -006a8f20 FUN_006a8f20 87 +006a8f20 Entity::is_valid_boss_enemy 87 006a8f80 Entity::CanDevolve 30 006a8fa0 Entity::IsDescendantOf 407 006a9140 Entity::GetPlayerAncestor 349 @@ -2581,7 +2581,7 @@ 006a9c10 Entity::FrameCount 18 006a9c30 Entity::HasFullHealth 19 006a9c50 Entity::AddHealth 52 -006a9c90 FUN_006a9c90 5530 +006a9c90 Entity::CollideWithGrid 5530 006ab240 FUN_006ab240 504 006ab440 FUN_006ab440 3670 006ac2a0 Entity::SetSize 645 @@ -2592,7 +2592,7 @@ 006ac710 Entity::IsFrame 75 006ac760 Entity::GetIntervalTicks 114 006ac7e0 Entity::CountRelatedEntities 230 -006ac8d0 FUN_006ac8d0 74 +006ac8d0 Entity::get_velocity_direction 74 006ac920 Entity::Kill 473 006acb00 Entity::Remove 88 006acb60 Entity::ClearReferences 426 @@ -2619,7 +2619,7 @@ 006b10f0 Entity::Render 361 006b1260 Entity::PostRender 3488 006b2000 Entity::RenderShadowLayer 527 -006b2210 FUN_006b2210 382 +006b2210 Entity::IsCollisionIgnored 382 006b2390 FUN_006b2390 114 006b2410 FUN_006b2410 416 006b25b0 FUN_006b25b0 905 @@ -2636,7 +2636,7 @@ 006b5de0 FUN_006b5de0 53 006b5e20 FUN_006b5e20 58 006b5e60 Entity::GetData 162 -006b5f10 FUN_006b5f10 33 +006b5f10 Entity::GetDebugShape 33 006b5f40 FUN_006b5f40 138 006b5fd0 FUN_006b5fd0 728 006b62b0 Entity::GetHitListIndex 171 @@ -2644,16 +2644,16 @@ 006b6470 play_sound_with_fart_seed 89 006b64d0 Entity_NPC::MakeSplat 113 006b6550 Entity::MakeGroundPoof 323 -006b66a0 FUN_006b66a0 25 +006b66a0 Entity::MakeGroundPoofAtSelf 25 006b66c0 Entity::MakeBloodPoof 323 -006b6810 FUN_006b6810 25 +006b6810 Entity::MakeBloodPoofAtPos 25 006b6830 Entity_NPC::MakeBloodCloud 137 -006b68c0 FUN_006b68c0 555 +006b68c0 spawn_rock_particles 555 006b6af0 Entity::GetNullOffset 298 006b6c20 Entity::GetNullCapsule 529 006b6e40 FUN_006b6e40 140 006b6ed0 FUN_006b6ed0 887 -006b7250 FUN_006b7250 33 +006b7250 Entity::GetLastParent 33 006b7280 FUN_006b7280 725 006b7560 Entity::AddBaited 613 006b77d0 Entity::AddWeakness 242 @@ -2662,21 +2662,21 @@ 006b7a80 Entity::AddKnockback 340 006b7be0 Entity::GiveMinecart 209 006b7cc0 FUN_006b7cc0 82 -006b7d20 FUN_006b7d20 32 +006b7d20 _Entity::GetAncestorField 32 006b7d40 FUN_006b7d40 109 006b7db0 FUN_006b7db0 67 006b7e00 FUN_006b7e00 448 006b7fd0 FUN_006b7fd0 398 006b8160 FUN_006b8160 333 -006b82b0 FUN_006b82b0 50 +006b82b0 Entity::SetColor 50 006b82f0 Entity_Projectile::AddChangeFlags 25 006b8310 FUN_006b8310 10 -006b8320 FUN_006b8320 155 +006b8320 EntityList::assign 155 006b83d0 Room::IsInitialized 3 006b83e0 Room::GetRenderSurfaceTopLeft 7 006b83f0 Room::IsFirstEnemyDead 7 006b8400 Room::SetFirstEnemyDead 16 -006b8410 FUN_006b8410 39 +006b8410 Room::has_room_config_flag 39 006b8440 FUN_006b8440 7 006b8450 Entity_NPC::CanShutDoors 31 006b8470 Entity_NPC::IsBoss 7 @@ -2685,7 +2685,7 @@ 006b84a0 Entity_Player::ControlsEnabled 7 006b84b0 Game::GetVictoryLap 7 006b84c0 FUN_006b84c0 29 -006b84e0 FUN_006b84e0 146 +006b84e0 std::deque::push_back 146 006b8580 FUN_006b8580 10 006b8590 Entity_NPC::Constructor 839 006b88e0 Entity_NPC::Free 38 @@ -2700,7 +2700,7 @@ 006b9bb0 Level::GetStageID 83 006b9c10 FUN_006b9c10 3112 006ba840 Menu_Character::ChangeCharacterPage 553 -006baa70 FUN_006baa70 1217 +006baa70 _NpcHelper::spider_load_graphics 1217 006baf40 Entity_NPC::load_graphics 2126 006bb790 Game::RestoreState 1567 006bbdc0 Entity_Pickup::Update 10347 @@ -2715,10 +2715,10 @@ 006c0f30 Entity_NPC::Morph 449 006c1100 Entity_NPC::ResetColor 556 006c1330 Entity_NPC::AnimWalkFrame 643 -006c15c0 FUN_006c15c0 684 -006c1870 FUN_006c1870 580 +006c15c0 NpcHelper::charger_update_move_anim 684 +006c1870 Entity_NPC::anim_walk_frame_4dir 580 006c1ac0 Entity_NPC::shopkeeper_get_loot 1474 -006c20e0 FUN_006c20e0 309 +006c20e0 LootList::LootList 309 006c2220 NpcAI::ENTITY_SHOPKEEPER 1295 006c2750 Entity_NPC::ThrowSpider 574 006c2990 Entity_NPC_UpdateAI_dispatch 6220 @@ -2728,7 +2728,7 @@ 006ca930 FUN_006ca930 1318 006cae60 Entity_NPC::IsTargetInAttackRange 420 006cb010 FUN_006cb010 644 -006cb2a0 FUN_006cb2a0 64 +006cb2a0 Entity_NPC::fire_projectile_from_params 64 006cb2e0 Entity_NPC::FireProjectiles 6844 006ccdd0 Entity_NPC::FireBossProjectiles 1587 006cd410 Entity_NPC::HandleCollision 12002 @@ -2748,9 +2748,9 @@ 006d48a0 Entity_NPC::GetForwardVector 341 006d4a00 Entity_NPC::CanBeDamagedFromVelocity 937 006d4db0 Entity_NPC::CanReroll 77 -006d4e00 FUN_006d4e00 1042 +006d4e00 Entity_NPC::PlayDeathEffects 1042 006d5350 FUN_006d5350 169 -006d5400 FUN_006d5400 3180 +006d5400 Entity_NPC::trigger_kill_item_effects 3180 006d60a0 Entity_NPC::TakeDamage 1378 006d6610 Entity_NPC::SetScale 63 006d6650 FUN_006d6650 52 @@ -2764,8 +2764,8 @@ 006d7520 FUN_006d7520 1991 006d7cf0 spawn_blood_explosion 99 006d7d60 Entity::IsHostileTo 142 -006d7df0 FUN_006d7df0 976 -006d81c0 FUN_006d81c0 127 +006d7df0 Entity_NPC::FollowParentSegment 976 +006d81c0 Entity_NPC::ClearDequeRefs 127 006d8240 Game::IsHardMode 30 006d8260 Entity_NPC::IsControllerActionPressed 44 006d8290 Entity_NPC::IsControllerActionTriggered 51 @@ -2774,14 +2774,14 @@ 006d88b0 Entity_NPC::TransferControl 220 006d8990 FUN_006d8990 385 006d8b20 Entity_NPC::SpawnControlTarget 460 -006d8cf0 FUN_006d8cf0 57 +006d8cf0 Entity_NPC::ClearChild 57 006d8d30 Entity_NPC::GetAimTargetPosition 70 -006d8d80 FUN_006d8d80 130 -006d8e10 FUN_006d8e10 46 +006d8d80 Entity_NPC::is_controller_input_idle 130 +006d8e10 is_local_player_owned 46 006d8e40 Entity_NPC::UpdateChargeBar 514 006d9050 Entity_NPC::UpdateControllerMovement 139 -006d90e0 FUN_006d90e0 572 -006d9320 FUN_006d9320 276 +006d90e0 Entity_NPC::UpdateChildEffectPosition 572 +006d9320 Entity_NPC::apply_controller_movement 276 006d9440 Entity_NPC::TryThrow 258 006d9550 FUN_006d9550 646 006d97e0 Entity_Player::Update 3384 @@ -2794,13 +2794,13 @@ 006da7b0 FUN_006da7b0 29 006da7d0 FUN_006da7d0 80 006da830 FUN_006da830 18 -006da850 FUN_006da850 137 +006da850 std::deque::clear 137 006da8e0 FUN_006da8e0 418 006daa90 FUN_006daa90 17 006daab0 FUN_006daab0 11 006daac0 FUN_006daac0 315 006dac00 FUN_006dac00 36 -006dac30 FUN_006dac30 23 +006dac30 log_precise 23 006dac50 ItemPool::GetLastPool 7 006dac60 ItemConfig::IsQuestItem 56 006daca0 FUN_006daca0 34 @@ -2814,22 +2814,22 @@ 006dad80 FUN_006dad80 117 006dae00 Entity_Player::GetBabySkin 7 006dae10 Entity_Player::GetSubPlayer 7 -006dae20 FUN_006dae20 24 -006dae40 FUN_006dae40 11577 +006dae20 Game::IsChallengeOrDaily 24 +006dae40 Entity_Pickup::GetChestLoot 11577 006ddcd0 Pickup_PickVariant 8591 006e0010 Entity_Pickup::Constructor 273 006e0130 Entity_Pickup::Free 38 006e0160 FUN_006e0160 383 006e02f0 Entity_Pickup::Init 4874 006e1640 Entity_Pickup::TryFlip 377 -006e17c0 FUN_006e17c0 332 +006e17c0 Entity_Pickup::UpdateLootPreview 332 006e1910 FUN_006e1910 356 006e1a80 Entity_Pickup::SetAlternatePedestal 752 006e1d70 Entity_Pickup::GetAlternatePedestal 238 006e1e60 Entity_Pickup::SetForceBlind 47 -006e1e90 FUN_006e1e90 848 +006e1e90 Entity_Pickup::load_collectible_gfx 848 006e21f0 Entity_Pickup::UpdateSprite 855 -006e2570 FUN_006e2570 2575 +006e2570 Entity_Pickup::update_price_sprite 2575 006e2ff0 FUN_006e2ff0 35 006e3020 Entity_Pickup::AppearFast 115 006e30a0 Entity_Pickup::Morph 1873 @@ -2841,8 +2841,8 @@ 006e7be0 Entity_Pickup::PlayDropSound 449 006e7dc0 Entity_Pickup::PlayPickupSound 1441 006e8380 Entity_Pickup::GetCoinValue 28 -006e83a0 FUN_006e83a0 297 -006e84d0 FUN_006e84d0 1500 +006e83a0 Entity_Pickup::can_player_buy 297 +006e84d0 Entity_Pickup::CollectTrinket 1500 006e8ae0 Entity_Pickup::HandleCollision 18286 006ed580 FUN_006ed580 258 006ed690 FUN_006ed690 1502 @@ -2858,11 +2858,11 @@ 006ee3f0 Entity_Pickup::CanJeraDuplicate 79 006ee440 Isaac::GetRandomPickupVelocity 487 006ee640 FUN_006ee640 245 -006ee750 FUN_006ee750 722 -006eea30 FUN_006eea30 102 +006ee750 Entity_Pickup::RemoveOtherOptions 722 +006eea30 Entity_Pickup::MakeShopItem 102 006eeaa0 Isaac::GetCollectibleSpawnPosition 641 -006eed30 FUN_006eed30 207 -006eee10 FUN_006eee10 158 +006eed30 Entity_Pickup::AssignOptionsIndex 207 +006eee10 EntitySaveStateRef::Set 158 006eeeb0 FUN_006eeeb0 100 006eef20 FUN_006eef20 59 006eef60 Random 645 @@ -2891,7 +2891,7 @@ 006f0020 Entity_Player::SetSoulCharge 16 006f0030 Entity_Player::SetBloodCharge 16 006f0040 FUN_006f0040 39 -006f0070 FUN_006f0070 20 +006f0070 Game::IsRoomTransitionActive 20 006f0090 EntityFactory::Create 3037 006f1020 Game::constructor 4063 006f2040 FUN_006f2040 28 @@ -2917,7 +2917,7 @@ 006f37e0 FUN_006f37e0 1050 006f3c00 Game::ReloadStagesXmlOnLuaReset 1387 006f4170 FUN_006f4170 158 -006f43b0 FUN_006f43b0 358 +006f43b0 Game::reset_run_state 358 006f4520 Game::ResetState 539 006f4740 Game::LoadConfigXmls 2768 006f5210 Game::Fadein 122 @@ -2934,7 +2934,7 @@ 006f8120 Game::IsGreedMode 22 006f8140 FUN_006f8140 2047 006f8a40 FUN_006f8a40 799 -006f8d60 FUN_006f8d60 665 +006f8d60 GameState::copy_room_list 665 006f9000 FUN_006f9000 1017 006f9400 Seeds::GetForcedCurses 416 006f95a0 Seeds::GetPreventedCurses 393 @@ -2991,15 +2991,15 @@ 007050c0 Game::RerollEnemy 952 00705480 Game::DevolveEnemy 1369 007059f0 Game::ShowHallucination 404 -00705b90 FUN_00705b90 836 -00705ee0 FUN_00705ee0 319 +00705b90 Game::AttractEntities 836 +00705ee0 Game::save_rewind_state 319 00706020 FUN_00706020 1866 00706780 Game::GetGlowingHourglassState 57 007067c0 Game::SetColorModifier 301 007068f0 FUN_007068f0 67 00706940 Game::GetChallengeParams 89 -007069a0 FUN_007069a0 2493 -00707370 FUN_00707370 853 +007069a0 Game::GetNearestTargetPlayer 2493 +00707370 Game::GetNearestEnemy 853 007076d0 Game::FixErasedEnemyID 146 00707840 Game::AddErasedEnemy 175 007078f0 Game::ShouldEraseEnemy 206 @@ -3023,7 +3023,7 @@ 00708c10 FUN_00708c10 126 00708c90 FUN_00708c90 172 00708d40 FUN_00708d40 86 -00708e20 FUN_00708e20 134 +00708e20 std::vector::_Tidy 134 00708eb0 FUN_00708eb0 200 00708f78 Catch_All@00708f78 20 00708f90 FUN_00708f90 81 @@ -3074,9 +3074,9 @@ 0070bec0 GridEntity::IsEasyCrushableOrWalkable 77 0070bf10 GridEntity::IsDangerousCrushableOrWalkable 75 0070bf60 FUN_0070bf60 22 -0070bf80 FUN_0070bf80 26 +0070bf80 is_grid_type_floor_special 26 0070bfa0 FUN_0070bfa0 88 -0070c000 FUN_0070c000 1343 +0070c000 Entity::DestroyRockGridAt 1343 0070c550 RoomDescriptor::ChallengeDone 9 0070c560 Room::IsAmbushDone 12 0070c570 FUN_0070c570 53 @@ -3172,7 +3172,7 @@ 0071f2b0 GridEntity_TNT::Destroy 318 0071f3f0 FUN_0071f3f0 188 0071f4b0 FUN_0071f4b0 326 -0071f600 FUN_0071f600 46 +0071f600 Level::filter_curses 46 0071f630 GridEntity_TrapDoor::BeginBatches 2225 0071fef0 GridEntity_TrapDoor::Update 4296 00720fe0 GridEntity_Wall::Render 225 @@ -3190,7 +3190,7 @@ 00721eb0 FUN_00721eb0 357 00722020 FUN_00722020 113 007220a0 FUN_007220a0 145 -00722140 FUN_00722140 86 +00722140 std::vector::erase 86 007221a0 FUN_007221a0 57 007221e0 FUN_007221e0 111 00722250 FUN_00722250 211 @@ -3208,7 +3208,7 @@ 00722cb0 FUN_00722cb0 4704 00723f20 FUN_00723f20 2150 00724790 FUN_00724790 857 -00724af0 FUN_00724af0 221 +00724af0 PocketItemConfig::GetName 221 00724bd0 FUN_00724bd0 221 00724cb0 FUN_00724cb0 484 00724ea0 FUN_00724ea0 28 @@ -3247,7 +3247,7 @@ 0072ff10 ItemConfig_Item::GetLocalizedName 221 0072fff0 FUN_0072fff0 221 007300d0 FUN_007300d0 1758 -007307b0 FUN_007307b0 73 +007307b0 ItemConfig_Item::is_mom_item 73 007308d0 FUN_007308d0 59 00730910 FUN_00730910 129 00730aa0 Card::IsAvailable 121 @@ -3303,7 +3303,7 @@ 00732a20 FUN_00732a20 505 00732c70 ItemPool::GetPool 16 00732c90 FUN_00732c90 104 -00732d00 FUN_00732d00 177 +00732d00 ItemPool::is_collectible_available 177 00732dc0 ItemPool::GetPoolForRoom 194 00732e90 ItemPool::GetItemPoolsForCollectible 92 00732ef0 ItemPool::GetFirstItemPoolForCollectible 173 @@ -3330,8 +3330,8 @@ 00736f90 ItemPool::ResetRoomBlacklist 61 00736fd0 ItemPool::AddBibleUpgrade 63 00737010 ItemPool::get_chaos_pool 849 -00737380 FUN_00737380 818 -007376c0 FUN_007376c0 1048 +00737380 ItemPool::get_available_collectibles 818 +007376c0 ItemPool::GetCardImpl 1048 00737af0 FUN_00737af0 54 00737b30 FUN_00737b30 220 00737c10 FUN_00737c10 175 @@ -3371,7 +3371,7 @@ 00739080 FUN_00739080 729 00739370 FUN_00739370 17370 0073d9b0 FUN_0073d9b0 131 -0073da40 FUN_0073da40 146 +0073da40 Level::GetTargetSlot 146 0073dae0 FUN_0073dae0 956 0073e040 FUN_0073e040 92 0073e0a0 Level::generate_greed 5371 @@ -3457,26 +3457,26 @@ 0074b5b0 Level::SetRedHeartDamage 18 0074b5d0 FUN_0074b5d0 314 0074b710 Level::IsNextStageAvailable 275 -0074b830 FUN_0074b830 302 +0074b830 Level::IsStageWithinEnd 302 0074b960 Level::GetAbsoluteStage 54 0074b9a0 FUN_0074b9a0 83 0074ba00 Level::StartMamaMega 179 0074bac0 Level::IsAltPath 19 -0074bae0 FUN_0074bae0 169 +0074bae0 _RoomDescriptor::GetShapeGridCount 169 0074bba0 FUN_0074bba0 308 0074bce0 FUN_0074bce0 460 0074beb0 FUN_0074beb0 672 0074c160 FUN_0074c160 932 -0074c540 FUN_0074c540 1136 +0074c540 Level::GetNeighborRoomIdx 1136 0074c9e0 FUN_0074c9e0 359 -0074cb50 FUN_0074cb50 539 +0074cb50 Level::get_door_neighbor_room 539 0074cd70 Level::CanSpawnDoorOutline 302 0074cea0 FUN_0074cea0 352 0074d010 Level::MakeRedRoomDoor 1148 0074d4a0 FUN_0074d4a0 704 0074d780 Level::TryInitializeExtraBossRoom 331 0074d8d0 FUN_0074d8d0 70 -0074d920 FUN_0074d920 683 +0074d920 Level::update_treasure_room_doors_for_trinket 683 0074dbd0 Game::GetPlanetariumChance 597 0074de30 FUN_0074de30 2771 0074e9b0 Level::IsMausoleumHeartStage 153 @@ -3489,15 +3489,15 @@ 0074f0c0 FUN_0074f0c0 655 0074f360 FUN_0074f360 763 0074f690 Level::GetRoomStageType 390 -0074f820 FUN_0074f820 951 +0074f820 Level::InitStageSeeds 951 0074fbe0 FUN_0074fbe0 2861 007507d0 FUN_007507d0 236 007508c0 FUN_007508c0 3196 007515c0 FUN_007515c0 139 00751650 Level::GenerateHome 1074 -007523e0 FUN_007523e0 125 +007523e0 Level::boss_count_adjust 125 00752460 FUN_00752460 372 -007525e0 FUN_007525e0 82 +007525e0 std::vector::assign 82 00752640 FUN_00752640 111 007526b0 FUN_007526b0 90 00752710 FUN_00752710 156 @@ -3580,7 +3580,7 @@ 00753d40 FUN_00753d40 16 00753d50 FUN_00753d50 7 00753d60 FUN_00753d60 56 -00753da0 FUN_00753da0 3039 +00753da0 Entity_Player::constructor 3039 00754980 FUN_00754980 991 00754d60 FUN_00754d60 38 00754d90 FUN_00754d90 310 @@ -3606,16 +3606,16 @@ 007591e0 Entity_Player::RemoveBlackHeart 57 00759220 Entity_Player::IsBlackHeart 63 00759260 FUN_00759260 55 -007592a0 FUN_007592a0 235 +007592a0 Entity_Player::UpdateBlackHeartMask 235 00759390 Entity_Player::AddJarHearts 100 00759400 Entity_Player::AddCoins 245 00759500 Entity_Player::AddBombs 174 007595b0 Entity_Player::AddKeys 110 00759620 Entity_Player::AddGoldenKey 49 00759660 Entity_Player::RemoveGoldenKey 49 -007596a0 FUN_007596a0 307 +007596a0 Entity_Player::SyncConsumables 307 007597e0 Entity_Player::ConsumableCountChanged 351 -00759950 FUN_00759950 114 +00759950 Entity_Player::restore_curse_mist_backup 114 007599d0 Entity_Player::AddBlueFlies 431 00759b80 Entity_Player::RemoveBlueFly 7 00759b90 Entity_Player::AddLeprosy 37 @@ -3623,7 +3623,7 @@ 00759bf0 Entity_Player::AddSwarmFlyOrbital 542 00759e20 Entity_Player::TryUseKey 293 00759f50 Entity_Player::PlayCollectibleAnim 857 -0075a2b0 FUN_0075a2b0 193 +0075a2b0 Weapon::is_held_item 193 0075a3e0 FUN_0075a3e0 799 0075a700 FUN_0075a700 1238 0075abe0 FUN_0075abe0 353 @@ -3639,11 +3639,11 @@ 0075d9c0 Entity_Player::IsCollectibleCostumeVisible 42 0075d9f0 FUN_0075d9f0 113 0075dfe0 Entity_Player::ClearCostumes 103 -0075e050 FUN_0075e050 243 +0075e050 Entity_Player::SetQueuedItem 243 0075e160 Entity_Player::QueueItem 35 0075e190 Entity_Player::ClearQueueItem 62 0075e1d0 Entity_Player::FlushQueueItem 50 -0075e320 FUN_0075e320 1608 +0075e320 Entity_Player::IncrementPlayerFormCounter 1608 0075e9a0 Entity_Player::AddPlayerFormCostume 117 0075ea20 Entity_Player::SetItemState 25 0075ea40 FUN_0075ea40 1229 @@ -3660,19 +3660,19 @@ 007706e0 Entity_Player::HasCollectible 1461 00770ca0 Entity_Player::GetCollectibleNum 1064 007711a0 Entity_Player::VoidHasCollectible 96 -00771200 FUN_00771200 525 +00771200 Entity_Player::IsInnateCollectible 525 00771410 FUN_00771410 310 00771550 Entity_Player::HasTrinket 195 00771620 Entity_Player::HasGoldenTrinket 160 -007716c0 FUN_007716c0 35 +007716c0 is_trinket_unpickable_id 35 007716f0 Entity_Player::TryHoldTrinket 206 007717c0 Entity_Player::GetMaxTrinkets 49 00771800 Entity_Player::DropTrinket 1319 00771d30 Entity_Player::AddTrinket 315 00771f60 Entity_Player::TryRemoveTrinket 578 -00772260 FUN_00772260 393 +00772260 Entity_Player::TryRemoveSmeltedTrinket 393 00772530 FUN_00772530 744 -007729d0 FUN_007729d0 25905 +007729d0 Entity_Player::take_damage_impl 25905 007791f0 Entity_Player::SetFullHearts 252 007792f0 FUN_007792f0 33 00779320 Entity_Player::GetFocusEntity 49 @@ -3684,7 +3684,7 @@ 0077b020 FUN_0077b020 21328 00780560 Entity_Player::GetBombFlags 2373 00780eb0 Entity_Player::GetBombVariant 5 -00780ec0 FUN_00780ec0 115 +00780ec0 Entity_Player::check_bomb_tearflags 115 00780f40 FUN_00780f40 3122 00781b90 Entity_Player::GetMultiShotParams 1487 00782160 Entity_Player::GetMultiShotPositionVelocity 1149 @@ -3717,9 +3717,9 @@ 007906f0 Entity_Player::DropCollectibleByHistoryIndex 170 007907a0 Entity_Player::ClearTemporaryEffects 841 00790af0 Entity_Player::FireTear 1531 -007910f0 FUN_007910f0 200 -007911c0 FUN_007911c0 36 -007911f0 FUN_007911f0 294 +007910f0 Entity_Player::GetTotalActiveCharge 200 +007911c0 Entity_Player::GetActiveItemSlot 36 +007911f0 Entity_Player::GetCollectibleMaxCharge 294 00791320 Entity_Player::GetActiveMaxCharge 85 00791380 FUN_00791380 160 00791420 Entity_Player::SetActiveCharge 235 @@ -3805,7 +3805,7 @@ 007ae1d0 Entity_Player::FireBrimstoneBall 607 007ae430 FUN_007ae430 126 007ae4b0 FUN_007ae4b0 5733 -007afc20 FUN_007afc20 1099 +007afc20 Entity_Player::try_trigger_astral_projection 1099 007b0070 FUN_007b0070 2755 007b0b40 FUN_007b0b40 156 007b0be0 FUN_007b0be0 5631 @@ -3819,12 +3819,12 @@ 007b9aa0 FUN_007b9aa0 164 007b9b50 FUN_007b9b50 704 007b9e10 Entity_Player::TryDecreaseGlowingHourglassUses 336 -007b9f60 FUN_007b9f60 833 +007b9f60 Entity_Player::GetMouseAimTarget 833 007ba2b0 FUN_007ba2b0 4897 007bb5e0 FUN_007bb5e0 1512 007bbbd0 FUN_007bbbd0 2818 -007bc740 FUN_007bc740 8986 -007bebb0 FUN_007bebb0 1166 +007bc740 Entity_Player::InitPostLevelInitStats 8986 +007bebb0 Entity_Player::update_player_skin 1166 007bf040 Entity_Player::InitBabySkin 332 007bf1a0 Entity_Player::FireDelayedBrimstone 560 007bf3d0 Entity_Player::CanPickupItem 177 @@ -3835,7 +3835,7 @@ 007bf660 Entity_Player::RemoveBlueSpider 7 007bf670 Entity_Player::GetExtraLives 74 007bf6c0 Entity_Player::GetTearHitParams 11997 -007c2d50 FUN_007c2d50 229 +007c2d50 get_tear_trinket_multiplier 229 007c2e80 FUN_007c2e80 15 007c2e90 Entity_Player::GetGlitchBabySubType 542 007c3100 Entity_Player::HasInvincibility 434 @@ -3861,7 +3861,7 @@ 007c7b10 FUN_007c7b10 327 007c7c60 Entity_Knife::Init 259 007c7d70 FUN_007c7d70 722 -007c8050 FUN_007c8050 484 +007c8050 Entity_Player::AddImmaculateConceptionCounter 484 007c8240 FUN_007c8240 1520 007c8830 FUN_007c8830 1413 007c8dc0 Entity_Player::SpawnMawOfVoid 433 @@ -3900,23 +3900,23 @@ 007cba30 Entity_Player::UpdateCanShoot 278 007cbb60 Entity_Player::WillPlayerRevive 8 007cbb70 Entity_Player::GetGreedDonationBreakChance 23 -007cbb90 FUN_007cbb90 206 +007cbb90 Entity_Player::GetGreedDonationJamChance 206 007cbc60 FUN_007cbc60 70 007cbcb0 FUN_007cbcb0 24 -007cbcd0 FUN_007cbcd0 544 +007cbcd0 Entity_Player::init_forgotten_twin 544 007cbef0 FUN_007cbef0 775 -007cc200 FUN_007cc200 5953 +007cc200 Entity_Player::init_player_type_state 5953 007cd950 Entity_Player::Teleport 1414 007cdee0 FUN_007cdee0 75 007cdf30 FUN_007cdf30 802 -007ce270 FUN_007ce270 42 +007ce270 Entity_Player::GetMainPlayer 42 007ce2a0 Entity_Player::CanRerollCollectible 232 007ce390 Entity_Player::GetGreedsGulletHearts 134 007ce420 Entity_Player::update_greeds_gullet 660 007ce6e0 Entity_Player::ChangePlayerType 3868 007cf610 Entity_Player::RemoveCollectible 680 -007cf8c0 FUN_007cf8c0 36 -007cf8f0 FUN_007cf8f0 70 +007cf8c0 Entity_Player::IsLocalPlayer 36 +007cf8f0 Entity_Player::IsLocalPlayer 70 007cf940 FUN_007cf940 96 007cf9a0 FUN_007cf9a0 237 007cfa90 FUN_007cfa90 261 @@ -3926,7 +3926,7 @@ 007d1810 FUN_007d1810 66 007d1860 Entity_Player::AddMinisaac 937 007d1c10 FUN_007d1c10 982 -007d2000 FUN_007d2000 363 +007d2000 Entity_Player::InitTwin 363 007d2170 Entity_Player::TryHoldEntity 761 007d2470 Entity_Player::ThrowHeldEntity 1204 007d2930 Entity_Player::TryThrow 193 @@ -3957,12 +3957,12 @@ 007d4340 FUN_007d4340 73 007d4390 FUN_007d4390 3545 007d5170 Entity_Player::bag_of_crafting_collect 1793 -007d58f0 FUN_007d58f0 3095 +007d58f0 Entity_Player::tainted_cain_pedestal_burst 3095 007d65c0 Entity_Player::GetMaxPoopMana 30 007d65e0 Entity_Player::AddPoopMana 143 007d6670 Entity_Player::poop_spell_roll 3035 007d7290 Entity_Player::UsePoopSpell 1169 -007d7740 FUN_007d7740 1254 +007d7740 Entity_Player::UpdateFamiliarCounts 1254 007d7c30 FUN_007d7c30 1533 007d8240 Entity_Player::AddItemCard 418 007d83f0 FUN_007d83f0 574 @@ -3976,7 +3976,7 @@ 007d9360 FUN_007d9360 71 007d93b0 Entity_Player::RevivePlayerGhost 823 007d96f0 Entity_Player::MorphToCoopGhost 1143 -007d9b70 FUN_007d9b70 290 +007d9b70 Entity_Player::reset_body_sprite 290 007d9ca0 FUN_007d9ca0 85 007d9d00 Entity_Player::CalculateBagOfCraftingOutput 2621 007da770 FUN_007da770 38 @@ -3991,21 +3991,21 @@ 007db0a0 FUN_007db0a0 179 007db160 FUN_007db160 353 007db2d0 FUN_007db2d0 93 -007db330 FUN_007db330 46 +007db330 Game::damage_cooldown_scale 46 007db360 FUN_007db360 77 007db3b0 FUN_007db3b0 752 007db6b0 Entity_Player::HasInstantDeathCurse 69 007db700 Entity_Player::IsHologram 64 007db740 Entity_Player::TriggerEchoChamber 288 -007db860 FUN_007db860 107 -007db8d0 FUN_007db8d0 306 +007db860 is_achievement_79_unlocked 107 +007db8d0 Entity_Player::get_seeded_variant 306 007dba30 FUN_007dba30 175 -007dbba0 FUN_007dbba0 204 -007dbc80 FUN_007dbc80 228 -007dbd70 FUN_007dbd70 241 +007dbba0 Entity_Player::add_random_drug_item_effect 204 +007dbc80 Entity_Player::AddRandomMomItemEffect 228 +007dbd70 Entity_Player::ModelingClay_roll 241 007dbe70 FUN_007dbe70 54 007dbeb0 HistoryHUD::RecomputeAll 1019 -007dc2d0 FUN_007dc2d0 782 +007dc2d0 _Entity_Player::SpawnTrinketRandomPickup 782 007dc610 FUN_007dc610 6 007dc620 FUN_007dc620 39 007dc650 FUN_007dc650 5 @@ -4091,7 +4091,7 @@ 007df450 FUN_007df450 344 007df5b0 FUN_007df5b0 73 007df600 FUN_007df600 131 -007df690 FUN_007df690 123 +007df690 Music::SetPitchAll 123 007df710 FUN_007df710 454 007df8e0 FUN_007df8e0 528 007dfaf0 FUN_007dfaf0 6425 @@ -4139,7 +4139,7 @@ 007e2fa0 FUN_007e2fa0 190 007e3060 FUN_007e3060 295 007e3190 FUN_007e3190 8 -007e31a0 FUN_007e31a0 129 +007e31a0 PathFinder::Init 129 007e3230 FUN_007e3230 38 007e3260 PathFinder::Reset 219 007e3340 FUN_007e3340 113 @@ -4161,7 +4161,7 @@ 007e84c0 FUN_007e84c0 224 007e85a0 FUN_007e85a0 119 007e8620 FUN_007e8620 128 -007e86b0 FUN_007e86b0 44 +007e86b0 std::vector<8byte>::reserve 44 007e86e0 FUN_007e86e0 37 007e8710 deallocate 61 007e8750 KAGE_Graphics_ImageManager::CreateProceduralImage_Internal 190 @@ -4220,11 +4220,11 @@ 007ea630 FUN_007ea630 2520 007eb010 FUN_007eb010 411 007eb1b0 Room::PlayMusic 1575 -007eb870 FUN_007eb870 950 +007eb870 Level::UpdateBackwardsPathStages 950 007ebc40 FUN_007ebc40 94 007ebca0 Room::SpawnGridEntity 164 007ebd50 Room::SpawnGridEntityDesc 192 -007ebe20 FUN_007ebe20 608 +007ebe20 ItemPool::get_pool_from_room_entities 608 007ec080 Room::GetSeededCollectible 24 007ec0a0 ItemPool::GetSeededCollectible 82 007ec100 Room::TransformEntry 3927 @@ -4235,8 +4235,8 @@ 007eea90 Room::MakeDoor 586 007eece0 Room::GetRoomConfigStage 29 007eed10 FUN_007eed10 409 -007eeeb0 FUN_007eeeb0 1386 -007ef420 FUN_007ef420 1574 +007eeeb0 Entity_Pickup::CanFlip 1386 +007ef420 Entity_Pickup::RestoreState 1574 007efa50 FUN_007efa50 1273 007eff50 Room::RestoreState 617 007f01c0 FUN_007f01c0 1472 @@ -4247,7 +4247,7 @@ 007f0df0 Room::CheckLine 1421 007f1380 FUN_007f1380 3133 007f2070 FUN_007f2070 100 -007f20e0 FUN_007f20e0 519 +007f20e0 room_shape_get_door_grid_index 519 007f2390 FUN_007f2390 1103 007f2800 Room::Init 689 007f79d0 Room::GetDoorSlotPosition 106 @@ -4271,7 +4271,7 @@ 00801ee0 Room::UpdateGreedWave 494 008020d0 FUN_008020d0 1033 008024f0 FUN_008024f0 370 -00802670 FUN_00802670 200 +00802670 Room::update_door_targets 200 00802740 FUN_00802740 549 00802980 Room::Update 16105 008068f0 Room::TriggerClear 810 @@ -4293,7 +4293,7 @@ 008131e0 FUN_008131e0 374 00813360 Room::IsPositionInRoom 186 00813420 FUN_00813420 53 -00813460 FUN_00813460 181 +00813460 Room::get_random_pickup_position 181 00813520 Room::FindFreePickupSpawnPosition 1541 00813b30 Room::DamageGridWithSource 44 00813b60 Room::DamageGrid 133 @@ -4304,12 +4304,12 @@ 00813d90 FUN_00813d90 3009 00814980 FUN_00814980 194 00814a50 FUN_00814a50 1794 -008151e0 FUN_008151e0 1480 +008151e0 Room::GetShopItemPrice 1480 00815800 Room::TriggerRestock 149 008158a0 Room::ShopRestockPartial 507 00815ae0 Room::ShopRestockFull 204 00816000 Room::ShopReshuffle 575 -00816250 FUN_00816250 1416 +00816250 _Room::ResolveHeartSubType 1416 008167e0 Room::RemoveDoor 287 00816910 Room::SpawnGreedModeWave 1331 00817830 FUN_00817830 26335 @@ -4355,7 +4355,7 @@ 00822d20 FUN_00822d20 55 00822d60 FUN_00822d60 612 00822fd0 FUN_00822fd0 172 -00823080 FUN_00823080 200 +00823080 Room::ClearGreedWaveSpawns 200 00823150 FUN_00823150 538 00823370 FUN_00823370 457 00823540 FUN_00823540 70 @@ -4425,8 +4425,8 @@ 0082b2f0 RoomConfig::LoadStagesXml 2668 0082bd60 RoomConfigStage::operator_assign 414 0082bf00 RoomConfig::LoadCursesXml 1034 -0082c310 FUN_0082c310 747 -0082c600 FUN_0082c600 287 +0082c310 Game::LoadMinibossesXml 747 +0082c600 Level::GetCurseNameByIdx 287 0082c720 RoomConfig::GetRoomByStageTypeAndVariant 156 0082c7d0 RoomConfig::GetRandomRoom 1374 0082cdd0 RoomConfig::GetRandomRoomWithFallbackStage 98 @@ -4461,11 +4461,11 @@ 0082ebd0 FUN_0082ebd0 285 0082ed00 FUN_0082ed00 291 0082ee30 FUN_0082ee30 7 -0082ee40 FUN_0082ee40 91 +0082ee40 log_room_transition 91 0082f1c0 RoomTransition::StartBossIntro 5976 00830950 FUN_00830950 3557 00831780 FUN_00831780 283 -008318a0 FUN_008318a0 3864 +008318a0 Game::update_pending_pickup_animations 3864 008327e0 FUN_008327e0 100 00832850 Entity_Player::TriggerRoomExit 1683 00832fd0 FUN_00832fd0 63 @@ -4476,7 +4476,7 @@ 008332a0 FUN_008332a0 28 008332c0 Room::SetAmbushDone 31 008332e0 FUN_008332e0 307 -00833420 FUN_00833420 475 +00833420 Ambush::StartChallenge 475 00833600 Ambush::SpawnWave 1514 00833c40 Ambush::SpawnBossrushWave 1787 00834350 FUN_00834350 806 @@ -4530,9 +4530,9 @@ 00837fe0 FUN_00837fe0 258 008380f0 GenericPrompt::Show 147 00838190 GenericPrompt::Disappear 117 -00838210 FUN_00838210 18 +00838210 is_screen_transition_active 18 00838230 FUN_00838230 331 -00838380 FUN_00838380 410 +00838380 VictoryRunPrompt::Load 410 00838520 GridEntity_Statue::Update 62 00838560 GridEntity_Statue::Destroy 1392 00838ae0 GridEntity_Statue::BeginBatches 325 @@ -4681,7 +4681,7 @@ 00856f70 FUN_00856f70 221 00857050 FUN_00857050 333 008571b0 FUN_008571b0 96 -00857220 FUN_00857220 467 +00857220 ScoreSheet::LoadAnm2 467 00857400 FUN_00857400 55 00857450 FUN_00857450 611 008576c0 FUN_008576c0 1484 @@ -4716,7 +4716,7 @@ 0085b7f0 FUN_0085b7f0 1255 0085bd40 FUN_0085bd40 289 0085be70 FUN_0085be70 84 -0085bed0 FUN_0085bed0 103 +0085bed0 EntitySpawner::Spawn 103 0085bf50 FUN_0085bf50 64 0085bf90 FUN_0085bf90 53 0085bfd0 FUN_0085bfd0 25 @@ -5004,7 +5004,7 @@ 00865e99 Catch@00865e99 23 00865f10 FUN_00865f10 238 00865fe8 Catch@00865fe8 23 -00866060 FUN_00866060 140 +00866060 Entity::ReleaseLuaRef 140 008660ec Catch@008660ec 23 00866140 LuaEngine::PostEntityKill 140 008661cc Catch@008661cc 23 @@ -7281,7 +7281,7 @@ 008ef400 FUN_008ef400 66 008ef450 FUN_008ef450 88 008ef4b0 FUN_008ef4b0 164 -008ef560 FUN_008ef560 734 +008ef560 RevivePlayerMenu::Init 734 008ef840 FUN_008ef840 335 008ef990 FUN_008ef990 1147 008efe10 FUN_008efe10 550 @@ -7470,7 +7470,7 @@ 0090a890 FUN_0090a890 8 0090a8a0 FUN_0090a8a0 835 0090abf0 FUN_0090abf0 122 -0090ac70 FUN_0090ac70 230 +0090ac70 InputManager::GetDeviceByPlayerEntity 230 0090aeb0 FUN_0090aeb0 110 0090af30 FUN_0090af30 59 0090b010 FUN_0090b010 72 @@ -7692,9 +7692,9 @@ 00928ee0 PersistentGameData::SaveToSteamCloud 211 00929010 FUN_00929010 545 00929240 FUN_00929240 113 -009292c0 FUN_009292c0 265 +009292c0 Manager::BackupSaveFile 265 009293d0 FUN_009293d0 267 -009294f0 FUN_009294f0 336 +009294f0 PersistentGameData::Save 336 00929660 FUN_00929660 95 009296c0 FUN_009296c0 201 00929790 PersistentGameData::UnlockSteamAchievement 73 @@ -7714,7 +7714,7 @@ 0092abd0 FUN_0092abd0 79 0092ac20 FUN_0092ac20 136 0092acb0 PersistentGameData::AddBestiaryKill 336 -0092aea0 FUN_0092aea0 450 +0092aea0 PersistentGameData::TryAddBestiaryEncounter 450 0092b070 PersistentGameData::GetBestiaryDeathCount 131 0092b100 PersistentGameData::GetBestiaryKillCount 131 0092b190 PersistentGameData::GetBestiaryEncounterCount 73 @@ -7778,7 +7778,7 @@ 009304a0 TemporaryEffects::RemoveCollectibleEffect 77 009304f0 TemporaryEffects::RemoveTrinketEffect 91 00930550 TemporaryEffects::RemoveNullEffect 97 -009305c0 FUN_009305c0 45 +009305c0 vector_contains_int 45 009305f0 TemporaryEffects::HasCollectibleEffect 71 00930640 TemporaryEffects::HasTrinketEffect 56 00930680 TemporaryEffects::HasNullEffect 56 @@ -7824,7 +7824,7 @@ 0093b760 FUN_0093b760 7586 0093d510 FUN_0093d510 1069 0093d960 Backdrop::Init 155 -0093da00 FUN_0093da00 3382 +0093da00 Backdrop::load_details 3382 0093e770 FUN_0093e770 646 0093ea00 FUN_0093ea00 1512 0093f000 FUN_0093f000 449 @@ -7846,7 +7846,7 @@ 00944d10 Camera::SetFocusPosition 38 00944d40 Camera::SnapToPosition 754 00945080 FUN_00945080 171 -00945130 FUN_00945130 87 +00945130 ring_buffer_push 87 00945190 Capsule::constructor 326 009452e0 Capsule::constructor2 287 00945400 FUN_00945400 106 @@ -7924,7 +7924,7 @@ 009569a0 Manager::GetChallengeParams 69 009569f0 FUN_009569f0 6818 009584b0 FUN_009584b0 564 -009586f0 FUN_009586f0 234 +009586f0 string_table_translate 234 009587e0 FUN_009587e0 84 00958840 FUN_00958840 82 009588a0 Manager::LoadImage 290 @@ -7935,7 +7935,7 @@ 00958cb0 Manager::RestartGame 426 00958e60 Manager::ShowCutscene 101 00958ed0 FUN_00958ed0 582 -00959130 FUN_00959130 76 +00959130 Game::DeleteSaveState 76 00959180 FUN_00959180 844 00959500 FUN_00959500 215 009595e0 Manager::IsGameplayInputActive 143 @@ -7946,7 +7946,7 @@ 00959fa0 FUN_00959fa0 112 0095a4a0 FUN_0095a4a0 189 0095a680 FUN_0095a680 194 -0095a7b0 FUN_0095a7b0 634 +0095a7b0 PlayerManager::unlock_completion_mark 634 0095aa30 FUN_0095aa30 356 0095aba0 FUN_0095aba0 308 0095ad30 FUN_0095ad30 183 @@ -8009,7 +8009,7 @@ 009607b0 CutsceneEntry::Destructor 135 00960840 CutsceneEntry::Unload 60 00960880 FUN_00960880 404 -00960a20 FUN_00960a20 43 +00960a20 Entity_Knife::GetBaseVariant 43 00960a70 Entity_Knife::Constructor 209 00960b50 Entity_Knife::Free 101 00960bc0 FUN_00960bc0 72 @@ -8025,24 +8025,24 @@ 00965d30 Entity_Knife::Render 2221 009665e0 Entity_Knife::GetRenderZ 97 00966650 Entity_Knife::GetPlayer 97 -009666c0 FUN_009666c0 35 +009666c0 Entity_Knife::GetRootParent 35 009666f0 Entity_Knife::HandleCollision 2045 00966ef0 Entity_Knife::Shoot 604 -00967180 FUN_00967180 1221 +00967180 Entity_Knife::UpdateHomingPath 1221 00967650 FUN_00967650 1054 00967a70 FUN_00967a70 681 00967d20 FUN_00967d20 136 00967db0 Entity_Knife::Interpolate 528 00967fc0 Entity_Knife::Reset 237 -009680d0 FUN_009680d0 828 -00968430 FUN_00968430 524 +009680d0 Entity_Knife::SetAttackAnimation 828 +00968430 Entity_Knife::SpinAttack 524 00968660 FUN_00968660 608 009688d0 FUN_009688d0 9619 0096ae70 FUN_0096ae70 7408 0096cb60 Entity_Laser::Constructor 386 0096ccf0 Entity_Laser::Free 38 0096cd20 FUN_0096cd20 260 -0096ce30 FUN_0096ce30 29 +0096ce30 Entity_Laser::is_thick_variant 29 0096ce70 FUN_0096ce70 24 0096ce90 Entity_NPC::SetAimAngle 56 0096ced0 Entity_Laser::GetRenderZ 97 @@ -8067,10 +8067,10 @@ 00971810 FUN_00971810 8081 009737b0 FUN_009737b0 667 00973a50 FUN_00973a50 514 -00973c60 FUN_00973c60 16469 +00973c60 Entity_Laser::update_laser 16469 00977cc0 Entity_Laser::Update 2198 009785d0 Entity_Laser::Render 13374 -0097baa0 FUN_0097baa0 4079 +0097baa0 Entity_Laser::UpdateHits 4079 0097ca90 Entity_Laser::RenderShadowLayer 4998 0097e3b0 Entity_Laser::GetSamples 7 0097e3c0 FUN_0097e3c0 785 @@ -8085,10 +8085,10 @@ 0097fc10 Entity_Laser::ResetSpriteScale 559 0097fe50 FUN_0097fe50 16 0097fe60 FUN_0097fe60 1398 -009803e0 FUN_009803e0 67 -00980430 FUN_00980430 383 +009803e0 std::vector::erase 67 +00980430 std::vector::_Insert_n 383 009805b0 FUN_009805b0 489 -009807a0 FUN_009807a0 926 +009807a0 Game::ShowFortuneText 926 00980b40 FUN_00980b40 210 00980eb0 FUN_00980eb0 647 00981140 FUN_00981140 2743 @@ -8128,7 +8128,7 @@ 0098b130 FUN_0098b130 146 0098b1d0 FUN_0098b1d0 908 0098b570 Minimap::GetDisplayedSize 112 -0098b5e0 FUN_0098b5e0 7652 +0098b5e0 Minimap::refresh_room_icons 7652 0098d560 FUN_0098d560 1518 0098db50 Minimap::Refresh 68 0098dba0 FUN_0098dba0 1471 @@ -8147,7 +8147,7 @@ 00993740 FUN_00993740 94 009937b0 FUN_009937b0 144 00993840 FUN_00993840 549 -00993a70 FUN_00993a70 1710 +00993a70 Camera::Update 1710 00994120 FUN_00994120 1356 00994670 FUN_00994670 307 009947b0 FUN_009947b0 307 @@ -8156,7 +8156,7 @@ 00995af0 FUN_00995af0 772 00995e00 FUN_00995e00 307 00995f40 FUN_00995f40 365 -009960b0 FUN_009960b0 1175 +009960b0 Game::start_poop_cloud_screen_effect 1175 00996580 FUN_00996580 808 009968b0 FUN_009968b0 630 00996b30 FUN_00996b30 763 @@ -8237,7 +8237,7 @@ 009a1940 FUN_009a1940 47 009a1970 FUN_009a1970 45 009a19a0 FUN_009a19a0 138 -009a1a30 FUN_009a1a30 3484 +009a1a30 HUD::LoadGraphics 3484 009a27d0 FUN_009a27d0 442 009a2990 HUD::Update 412 009a2b30 HUD::PostUpdate 142 @@ -8245,7 +8245,7 @@ 009a2c00 HUD::InvalidateActiveItem 108 009a2c70 HUD::InvalidateCraftingItem 175 009a2d20 HUD::ShowItemText 1766 -009a3410 FUN_009a3410 138 +009a3410 PlayerHUD::show_pill_name 138 009a34a0 HUD::ShowStackedItemTextCustomUTF16 180 009a3560 FUN_009a3560 47 009a3590 FUN_009a3590 309 @@ -8270,7 +8270,7 @@ 009a8970 mark_all_slots_dirty 196 009a8a40 FUN_009a8a40 319 009a8b90 FUN_009a8b90 1304 -009a90b0 FUN_009a90b0 36 +009a90b0 _player_hud_set_heart_anim_state 36 009a90e0 FUN_009a90e0 354 009a9250 FUN_009a9250 678 009a9510 FontKerningPair::SetupSaveDirectories 2516 @@ -8297,7 +8297,7 @@ 009ad9a0 FUN_009ad9a0 150 009ada40 FUN_009ada40 33 009ada70 FUN_009ada70 124 -009adaf0 FUN_009adaf0 180 +009adaf0 RoomDescriptor::Init 180 009adbb0 LevelGenerator::Generate 343 009add30 LevelGenerator::CreateRoom 182 009addf0 FUN_009addf0 748 @@ -8347,13 +8347,13 @@ 009b5320 FUN_009b5320 721 009b5600 FUN_009b5600 502 009b5800 FUN_009b5800 54 -009b5840 FUN_009b5840 1134 +009b5840 PauseScreen::Init 1134 009b5cb0 FUN_009b5cb0 107 009b5d20 FUN_009b5d20 2822 009b6840 FUN_009b6840 2243 009b7190 FUN_009b7190 301 009b7500 FUN_009b7500 336 -009b7650 FUN_009b7650 42 +009b7650 is_single_player 42 009b7680 FUN_009b7680 927 009b7a20 FUN_009b7a20 1383 009b7f90 FUN_009b7f90 403 @@ -8367,14 +8367,14 @@ 009b9310 FUN_009b9310 111 009b9380 FUN_009b9380 194 009b9450 FUN_009b9450 43 -009b9480 FUN_009b9480 84 +009b9480 PlayerManager::count_main_players 84 009b94e0 FUN_009b94e0 103 009b9570 FUN_009b9570 784 009b98e0 PlayerManager::SpawnCoPlayerBaby 61 009b9cd0 PlayerManager::SpawnCoPlayer2 69 009b9f60 FUN_009b9f60 96 009b9fc0 FUN_009b9fc0 57 -009ba000 FUN_009ba000 2235 +009ba000 PlayerManager::RemoveCoPlayer 2235 009ba8f0 FUN_009ba8f0 140 009ba980 PlayerManager::CoopBabiesOnly 25 009ba9a0 FUN_009ba9a0 110 @@ -8402,15 +8402,15 @@ 009be3e0 PlayerManager::RandomTrinketOwner 323 009be530 PlayerManager::GetRandomPlayer 247 009be630 PlayerManager::FirstPlayerByType 62 -009be670 FUN_009be670 59 +009be670 PlayerManager::are_all_players_tainted_blue_baby 59 009be6b0 PlayerManager::FirstTrinketOwner 154 009be750 PlayerManager::GetNumCollectibles 154 009be7f0 PlayerManager::HasTemporaryEffect 84 009be850 FUN_009be850 306 -009be990 FUN_009be990 46 +009be990 NpcHelper::big_horn_is_any_hole_busy 46 009be9c0 FUN_009be9c0 65 -009bea10 FUN_009bea10 37 -009bea40 FUN_009bea40 49 +009bea10 entity_vector_set_flag_410 37 +009bea40 vector_iterate_noop 49 009bea80 PlayerManager::GetTrinketMultiplier 170 009beb30 FUN_009beb30 110 009beba0 FUN_009beba0 702 @@ -8418,9 +8418,9 @@ 009bf530 FUN_009bf530 988 009bf930 PlayerManager::FirstBirthrightOwner 86 009bf990 PlayerManager::IsCoopPlay 109 -009bfa00 FUN_009bfa00 110 +009bfa00 PlayerManager::GetNumAlivePlayers 110 009bfa70 FUN_009bfa70 110 -009bfae0 FUN_009bfae0 55 +009bfae0 PlayerManager::revive_player_ghosts 55 009bfb20 FUN_009bfb20 212 009bfc00 FUN_009bfc00 17 009bfc20 FUN_009bfc20 17 @@ -8430,7 +8430,7 @@ 009bfd00 FUN_009bfd00 25 009bfd20 FUN_009bfd20 25 009bfd40 NpcHelper::hush_fly_shape_build 608 -009bffb0 NpcHelper::hush_fly_shape_point 232 +009bffb0 NpcHelper::path_point_at 232 009c00c0 FUN_009c00c0 94 009c0120 FUN_009c0120 70 009c0170 FUN_009c0170 95 @@ -8590,7 +8590,7 @@ 009dc750 FUN_009dc750 204 009dc830 FUN_009dc830 892 009dcbb0 FUN_009dcbb0 190 -009dcc70 FUN_009dcc70 8492 +009dcc70 ItemPool::CreateGlitchedCollectible 8492 009dfc90 FUN_009dfc90 1211 009e0150 FUN_009e0150 44 009e0180 FUN_009e0180 39 @@ -8600,7 +8600,7 @@ 009e0390 FUN_009e0390 50 009e03d0 FUN_009e03d0 116 009e0450 FUN_009e0450 92 -009e04b0 FUN_009e04b0 70 +009e04b0 collectible_set_has 70 009e0500 FUN_009e0500 329 009e0650 FUN_009e0650 39 009e0680 trigger_set_dispatch 116 @@ -8789,12 +8789,12 @@ 009f3290 FUN_009f3290 139 009f3320 Weapon::ClearReferences 54 009f3360 Weapon::IsAxisAligned 126 -009f33e0 FUN_009f33e0 159 +009f33e0 Weapon::get_aim_direction 159 009f3480 Weapon::Reset 78 009f34d0 Weapon::Init 28 009f34f0 Weapon::Update 72 009f3540 Weapon::Fire 1665 -009f3bd0 FUN_009f3bd0 55 +009f3bd0 Weapon::get_owner_position 55 009f3c10 FUN_009f3c10 45 009f3c40 FUN_009f3c40 50 009f3c80 FUN_009f3c80 122 @@ -8803,9 +8803,9 @@ 009f3f60 FUN_009f3f60 459 009f4130 FUN_009f4130 25 009f4150 Weapon::GetChargeBarAmount 110 -009f41c0 FUN_009f41c0 99 +009f41c0 Weapon::GetMultiShotParams 99 009f4230 FUN_009f4230 75 -009f4280 FUN_009f4280 2823 +009f4280 Weapon::UpdateHeadChargeAnimation 2823 009f4da0 FUN_009f4da0 544 009f4fc0 FUN_009f4fc0 45 009f4ff0 FUN_009f4ff0 250 @@ -8821,7 +8821,7 @@ 009f5850 FUN_009f5850 23 009f5870 FUN_009f5870 23 009f5890 FUN_009f5890 405 -009f5a30 FUN_009f5a30 109 +009f5a30 Weapon::GetOwnerLaserOffset 109 009f5aa0 FUN_009f5aa0 43 009f5ad0 FUN_009f5ad0 648 009f5d60 Room::MamaMegaExplosion 465 @@ -8834,7 +8834,7 @@ 009f6b70 FUN_009f6b70 223 009f6c50 Weapon::FireSword 524 009f6e60 FUN_009f6e60 2754 -009f7930 FUN_009f7930 5862 +009f7930 Weapon::TriggerTearEffects 5862 009f9020 Isaac::CreateWeapon 44 009f9050 Isaac::DestoryWeapon 34 009f9080 FUN_009f9080 111 @@ -8924,7 +8924,7 @@ 00a0f500 FUN_00a0f500 66 00a0f550 KColor::SetFromARGB 180 00a0f610 FUN_00a0f610 115 -00a0f690 FUN_00a0f690 40 +00a0f690 KColor::KColor 40 00a0f6c0 FUN_00a0f6c0 91 00a0f720 FUN_00a0f720 40 00a0f750 FUN_00a0f750 28 @@ -8949,24 +8949,24 @@ 00a10160 FUN_00a10160 23 00a10180 Vector::Dot 22 00a101a0 Vector::Cross 22 -00a101c0 FUN_00a101c0 76 +00a101c0 vector_lerp 76 00a10210 Vector::Lerp 83 00a10270 FUN_00a10270 100 00a102e0 Vector::Rotated 105 -00a10350 FUN_00a10350 56 +00a10350 Vector::FromAngle 56 00a10390 Vector::GetAngleDegrees 40 00a103c0 Vector::Clamp 45 00a103f0 Vector::Clamped 48 00a10420 Vector::__add 40 00a10450 Vector::operator_add_assign 39 00a10480 Vector::__sub 40 -00a104b0 FUN_00a104b0 39 +00a104b0 Vector::operator__ 39 00a104e0 Vector::__mul 38 -00a10510 FUN_00a10510 40 +00a10510 Vector::Mul 40 00a10540 Vector::operator_mul_assign 38 00a10570 FUN_00a10570 39 00a105a0 Vector::__div 43 -00a105d0 FUN_00a105d0 38 +00a105d0 Vector::__div_assign 38 00a10600 Vector::operator_eq 46 00a10630 Vector::operator_ne 46 00a10660 Vector::__unm 42 @@ -8976,9 +8976,9 @@ 00a10950 FUN_00a10950 345 00a10ab0 FUN_00a10ab0 328 00a10c00 FUN_00a10c00 245 -00a10d00 FUN_00a10d00 195 -00a10dd0 FUN_00a10dd0 149 -00a10e70 FUN_00a10e70 290 +00a10d00 render_quad_set_uniform_color 195 +00a10dd0 set_quad_corner_colors 149 +00a10e70 render_quad_set_rect 290 00a10fa0 FUN_00a10fa0 179 00a11060 FUN_00a11060 25 00a11080 FUN_00a11080 83 @@ -9036,7 +9036,7 @@ 00a13460 FUN_00a13460 115 00a134e0 FUN_00a134e0 27 00a13500 FUN_00a13500 16 -00a13510 FUN_00a13510 78 +00a13510 set_blend_mode 78 00a13560 FUN_00a13560 37 00a13590 FUN_00a13590 34 00a135c0 FUN_00a135c0 8 @@ -9061,7 +9061,7 @@ 00a13ec0 FUN_00a13ec0 89 00a13f20 FUN_00a13f20 117 00a13fa0 FUN_00a13fa0 163 -00a14050 FUN_00a14050 111 +00a14050 shader_cache_find 111 00a140c0 FUN_00a140c0 317 00a14200 FUN_00a14200 69 00a14250 FUN_00a14250 32 @@ -9073,7 +9073,7 @@ 00a147e0 FUN_00a147e0 404 00a149a0 FUN_00a149a0 581 00a14bf0 FUN_00a14bf0 8 -00a14c00 FUN_00a14c00 778 +00a14c00 Shader::set_uniform 778 00a14f90 FUN_00a14f90 168 00a15040 FUN_00a15040 132 00a150d0 FUN_00a150d0 455 @@ -9131,9 +9131,9 @@ 00a18070 FUN_00a18070 44 00a180a0 FUN_00a180a0 11 00a180b0 FUN_00a180b0 377 -00a18230 FUN_00a18230 133 +00a18230 RenderTarget::Clear 133 00a182c0 FUN_00a182c0 59 -00a18300 FUN_00a18300 311 +00a18300 KAGE_Graphics::SetRenderTarget 311 00a18460 FUN_00a18460 117 00a184e0 FUN_00a184e0 78 00a18530 FUN_00a18530 438 @@ -9148,7 +9148,7 @@ 00a18e10 FUN_00a18e10 122 00a18e90 FUN_00a18e90 665 00a19130 FUN_00a19130 74 -00a19180 FUN_00a19180 447 +00a19180 _glfw_context_reset 447 00a19340 FUN_00a19340 113 00a193c0 FUN_00a193c0 113 00a19440 FUN_00a19440 6 @@ -9181,8 +9181,8 @@ 00a1ae80 Font::GetStringWidth 17 00a1aea0 KColor::GetLineHeight 5 00a1aeb0 KColor::GetBaselineHeight 5 -00a1aec0 FUN_00a1aec0 203 -00a1af90 FUN_00a1af90 191 +00a1aec0 Font::DrawStringScaled 203 +00a1af90 Font::DrawString 191 00a1b050 FUN_00a1b050 227 00a1b140 KColor::DrawString 206 00a1b210 FUN_00a1b210 191 @@ -9206,9 +9206,9 @@ 00a1d600 FUN_00a1d600 14 00a1d610 FUN_00a1d610 155 00a1d6b0 FUN_00a1d6b0 91 -00a1d710 FUN_00a1d710 474 +00a1d710 render_color_quad 474 00a1d8f0 FUN_00a1d8f0 1758 -00a1dfd0 FUN_00a1dfd0 116 +00a1dfd0 render_color_shader_pass 116 00a1e050 FUN_00a1e050 350 00a1e1b0 FUN_00a1e1b0 52 00a1e1f0 FUN_00a1e1f0 23 @@ -9408,7 +9408,7 @@ 00a26810 FUN_00a26810 264 00a26920 FUN_00a26920 259 00a26a30 FUN_00a26a30 179 -00a26af0 FUN_00a26af0 560 +00a26af0 StringTable::get_string 560 00a26d30 FUN_00a26d30 485 00a26f20 FUN_00a26f20 280 00a27038 FUN_00a27038 2288 @@ -9439,7 +9439,7 @@ 00a28730 FUN_00a28730 86 00a28790 FUN_00a28790 172 00a28840 FUN_00a28840 93 -00a288a0 FUN_00a288a0 138 +00a288a0 std::shared_ptr::assign 138 00a28930 FUN_00a28930 156 00a289d0 FUN_00a289d0 529 00a28bf0 FUN_00a28bf0 38 @@ -12653,7 +12653,7 @@ 00a55b70 FUN_00a55b70 164 00a55c20 FUN_00a55c20 17 00a55c40 FUN_00a55c40 288 -00a55d60 FUN_00a55d60 181 +00a55d60 std::vector<12byte>::clear 181 00a55e20 FUN_00a55e20 197 00a55ef0 FUN_00a55ef0 356 00a56060 FUN_00a56060 396 diff --git a/dump/npc_ai.tsv b/dump/npc_ai.tsv index 81feeba..292532e 100644 --- a/dump/npc_ai.tsv +++ b/dump/npc_ai.tsv @@ -67,7 +67,7 @@ 76 ENTITY_BLASTOCYST_SMALL 006c2c3c 00472c40:NpcAI::ENTITY_BLASTOCYST_BIG 77 ENTITY_EMBRYO 006c2c48 0050a6b0:NpcAI::ENTITY_EMBRYO 78 ENTITY_MOMS_HEART 006c3496 004d48b0:NpcAI::ENTITY_MOMS_HEART -79 ENTITY_GEMINI 006c2a45 0043ef30:NpcAI::ENTITY_GEMINI 00956780:seed_fart_sound_override 0092dc30:SoundEffects::Play 006cb2e0:Entity_NPC::FireProjectiles +79 ENTITY_GEMINI 006c2a45 0043ef30:ProjectileParams::ProjectileParams 00956780:seed_fart_sound_override 0092dc30:SoundEffects::Play 006cb2e0:Entity_NPC::FireProjectiles 80 ENTITY_MOTER 006c3a75 00506bd0:NpcAI::ENTITY_FLY 81 ENTITY_FALLEN 006c2cfc 0045b830:NpcAI::ENTITY_FALLEN 82 ENTITY_HEADLESS_HORSEMAN 006c2cf0 0045cd60:NpcAI::ENTITY_HEADLESS_HORSEMAN @@ -81,7 +81,7 @@ 90 ENTITY_HANGER 006c2d80 0051cb30:NpcAI::ENTITY_HANGER 91 ENTITY_SWARMER 006c2d50 00518e20:NpcAI::ENTITY_SWARMER 92 ENTITY_HEART 006c341e 0051f2f0:NpcAI::ENTITY_HEART -93 ENTITY_MASK 006c2d98 0041af60:NpcAI::ENTITY_MASK 00af08b1:VCRUNTIME140.DLL::__RTDynamicCast +93 ENTITY_MASK 006c2d98 0041af60:EntityList::QuerySublist 00af08b1:VCRUNTIME140.DLL::__RTDynamicCast 94 ENTITY_BIGSPIDER 006c38b9 00529da0:NpcAI::ENTITY_SPIDER 95 TYPE_95 006c41af 00860ac0:NpcAI::TYPE_37 00aef12b:__security_check_cookie 96 ENTITY_ETERNALFLY 006c2c54 0050a8a0:NpcAI::ENTITY_ETERNALFLY diff --git a/dump/strings.tsv b/dump/strings.tsv index 430cf7b..49e2be5 100644 --- a/dump/strings.tsv +++ b/dump/strings.tsv @@ -108,13 +108,13 @@ 00b1a46c kernel32.dll 00aef191:FUN_00aef191 00b1a488 SleepConditionVariableCS 00aef191:FUN_00aef191 00b1a4a4 WakeAllConditionVariable 00aef191:FUN_00aef191 -00b1a4f0 id out of bounds\n 008e3830:FUN_008e3830 009db850:FUN_009db850 009a3eb0:HUD::Render 00713ee0:FUN_00713ee0 009b31c0:FUN_009b31c0 009b31c0:FUN_009b31c0 009b31c0:FUN_009b31c0 009b31c0:FUN_009b31c0 009b31c0:FUN_009b31c0 009b31c0:FUN_009b31c0 009b31c0:FUN_009b31c0 009b31c0:FUN_009b31c0 009b31c0:FUN_009b31c0 009b31c0:FUN_009b31c0 008da030:FUN_008da030 00982100:FUN_00982100 00982100:FUN_00982100 00982100:FUN_00982100 00712180:GridEntity_Pit::Update 0099a300:FUN_0099a300 0099a300:FUN_0099a300 006e2570:FUN_006e2570 006e2570:FUN_006e2570 006e2570:FUN_006e2570 0040a7e0:ANM2::SetLayerFrame 00981140:FUN_00981140 00981140:FUN_00981140 00981140:FUN_00981140 00981140:FUN_00981140 00998880:FUN_00998880 008d0840:FUN_008d0840 008d0840:FUN_008d0840 008d8b00:FUN_008d8b00 00408b90:AnimationState::AdvanceLayerPosition 00408c10:AnimationState::AdvanceNullLayerPosition 00408e00:AnimationState::SetFrameFloat 00408e00:AnimationState::SetFrameFloat 00408ef0:AnimationState::SetLayerFrame 00408fc0:AnimationState::SetNullLayerFrame 00837ab0:GenericPrompt::Update 008e7f60:FUN_008e7f60 009b6840:FUN_009b6840 009b6840:FUN_009b6840 009b6840:FUN_009b6840 009b6840:FUN_009b6840 009b6840:FUN_009b6840 009b6840:FUN_009b6840 008ced40:FUN_008ced40 0094ef10:FUN_0094ef10 0094ef10:FUN_0094ef10 009462c0:FUN_009462c0 009462c0:FUN_009462c0 009462c0:FUN_009462c0 009462c0:FUN_009462c0 008c66a0:FUN_008c66a0 008c66a0:FUN_008c66a0 008c66a0:FUN_008c66a0 008c66a0:FUN_008c66a0 008c66a0:FUN_008c66a0 008c66a0:FUN_008c66a0 008c66a0:FUN_008c66a0 008ddae0:FUN_008ddae0 008ed350:HUD::LoadGraphics 008ed350:HUD::LoadGraphics 009ed5a0:FUN_009ed5a0 0094d500:Menu_Character::UpdateRotations 0094d500:Menu_Character::UpdateRotations 00665630:FUN_00665630 00665630:FUN_00665630 00565680:FUN_00565680 00565680:FUN_00565680 00565680:FUN_00565680 009ecbc0:Menu_Stats::Update 009ecbc0:Menu_Stats::Update 009ecbc0:Menu_Stats::Update 00999d08 00999d97 00999e1d 00999f05 00999fb3 0099a021 008d4940:FUN_008d4940 009b83a0:FUN_009b83a0 008d4940:FUN_008d4940 +00b1a4f0 id out of bounds\n 008e3830:FUN_008e3830 009db850:FUN_009db850 009a3eb0:HUD::Render 00713ee0:FUN_00713ee0 009b31c0:FUN_009b31c0 009b31c0:FUN_009b31c0 009b31c0:FUN_009b31c0 009b31c0:FUN_009b31c0 009b31c0:FUN_009b31c0 009b31c0:FUN_009b31c0 009b31c0:FUN_009b31c0 009b31c0:FUN_009b31c0 009b31c0:FUN_009b31c0 009b31c0:FUN_009b31c0 008da030:FUN_008da030 00982100:FUN_00982100 00982100:FUN_00982100 00982100:FUN_00982100 00712180:GridEntity_Pit::Update 0099a300:FUN_0099a300 0099a300:FUN_0099a300 006e2570:Entity_Pickup::update_price_sprite 006e2570:Entity_Pickup::update_price_sprite 006e2570:Entity_Pickup::update_price_sprite 0040a7e0:ANM2::SetLayerFrame 00981140:FUN_00981140 00981140:FUN_00981140 00981140:FUN_00981140 00981140:FUN_00981140 00998880:FUN_00998880 008d0840:FUN_008d0840 008d0840:FUN_008d0840 008d8b00:FUN_008d8b00 00408b90:AnimationState::AdvanceLayerPosition 00408c10:AnimationState::AdvanceNullLayerPosition 00408e00:AnimationState::SetFrameFloat 00408e00:AnimationState::SetFrameFloat 00408ef0:AnimationState::SetLayerFrame 00408fc0:AnimationState::SetNullLayerFrame 00837ab0:GenericPrompt::Update 008e7f60:FUN_008e7f60 009b6840:FUN_009b6840 009b6840:FUN_009b6840 009b6840:FUN_009b6840 009b6840:FUN_009b6840 009b6840:FUN_009b6840 009b6840:FUN_009b6840 008ced40:FUN_008ced40 0094ef10:FUN_0094ef10 0094ef10:FUN_0094ef10 009462c0:FUN_009462c0 009462c0:FUN_009462c0 009462c0:FUN_009462c0 009462c0:FUN_009462c0 008c66a0:FUN_008c66a0 008c66a0:FUN_008c66a0 008c66a0:FUN_008c66a0 008c66a0:FUN_008c66a0 008c66a0:FUN_008c66a0 008c66a0:FUN_008c66a0 008c66a0:FUN_008c66a0 008ddae0:FUN_008ddae0 008ed350:HUD::LoadGraphics 008ed350:HUD::LoadGraphics 009ed5a0:FUN_009ed5a0 0094d500:Menu_Character::UpdateRotations 0094d500:Menu_Character::UpdateRotations 00665630:FUN_00665630 00665630:FUN_00665630 00565680:FUN_00565680 00565680:FUN_00565680 00565680:FUN_00565680 009ecbc0:Menu_Stats::Update 009ecbc0:Menu_Stats::Update 009ecbc0:Menu_Stats::Update 00999d08 00999d97 00999e1d 00999f05 00999fb3 0099a021 008d4940:FUN_008d4940 009b83a0:FUN_009b83a0 008d4940:FUN_008d4940 00b1a504 AnimationData is NULL\n 005832c0:Entity_Pickup::GetLootList 0040ac70:AnimationState::GetNullFrameById 0040ace0:AnimationState::GetNullFrame 0040ace0:AnimationState::GetNullFrame 0040add0:AnimationState::IsEventTriggered 0040ae70:AnimationState::WasEventTriggered 0040af10:AnimationState::NextEventTrigger 0040a220:AnimationState::GetLayerFrame 0094a500:FUN_0094a500 0094a500:FUN_0094a500 00998880:FUN_00998880 00998880:FUN_00998880 008e8af0:FUN_008e8af0 00408c90:AnimationState::FireTriggersAtCurrentFrame 004b7c30:FUN_004b7c30 004b7c30:FUN_004b7c30 00935010:FUN_00935010 008d3640:FUN_008d3640 00b1a520 Animation::AdvancePosition cannot go backward (new: %d, cur: %d)\n 00408d00:AnimationState::AdvancePosition -00b1a564 LayerId out of bounds\n 008e3830:FUN_008e3830 009db850:FUN_009db850 009a3eb0:HUD::Render 004bbe30:Entity_Pickup::Render 00713ee0:FUN_00713ee0 009b31c0:FUN_009b31c0 009b31c0:FUN_009b31c0 009b31c0:FUN_009b31c0 009b31c0:FUN_009b31c0 009b31c0:FUN_009b31c0 009b31c0:FUN_009b31c0 009b31c0:FUN_009b31c0 009b31c0:FUN_009b31c0 009b31c0:FUN_009b31c0 009b31c0:FUN_009b31c0 009b31c0:FUN_009b31c0 005832c0:Entity_Pickup::GetLootList 00832850:Entity_Player::TriggerRoomExit 0040a8a0:FUN_0040a8a0 008da030:FUN_008da030 00982100:FUN_00982100 00982100:FUN_00982100 00982100:FUN_00982100 00712180:GridEntity_Pit::Update 0040a220:AnimationState::GetLayerFrame 0099a300:FUN_0099a300 0099a300:FUN_0099a300 006e2570:FUN_006e2570 006e2570:FUN_006e2570 006e2570:FUN_006e2570 0094a500:FUN_0094a500 0094a500:FUN_0094a500 0040a7e0:ANM2::SetLayerFrame 00981140:FUN_00981140 00981140:FUN_00981140 00981140:FUN_00981140 00981140:FUN_00981140 00998880:FUN_00998880 00998880:FUN_00998880 00998880:FUN_00998880 008d0840:FUN_008d0840 008d0840:FUN_008d0840 00920940:FUN_00920940 008e8af0:FUN_008e8af0 008d8b00:FUN_008d8b00 00408ef0:AnimationState::SetLayerFrame 00408f70:AnimationState::GetLayerFrameIdx 00837ab0:GenericPrompt::Update 004b7c30:FUN_004b7c30 004b7c30:FUN_004b7c30 008e7f60:FUN_008e7f60 009b6840:FUN_009b6840 009b6840:FUN_009b6840 009b6840:FUN_009b6840 009b6840:FUN_009b6840 009b6840:FUN_009b6840 009b6840:FUN_009b6840 008ced40:FUN_008ced40 0094ef10:FUN_0094ef10 0094ef10:FUN_0094ef10 009462c0:FUN_009462c0 009462c0:FUN_009462c0 009462c0:FUN_009462c0 009462c0:FUN_009462c0 008c66a0:FUN_008c66a0 008c66a0:FUN_008c66a0 008c66a0:FUN_008c66a0 008c66a0:FUN_008c66a0 008c66a0:FUN_008c66a0 008c66a0:FUN_008c66a0 008c66a0:FUN_008c66a0 008ddae0:FUN_008ddae0 00935010:FUN_00935010 008ed350:HUD::LoadGraphics 008ed350:HUD::LoadGraphics 009ed5a0:FUN_009ed5a0 0094d500:Menu_Character::UpdateRotations 0094d500:Menu_Character::UpdateRotations 0093d510:FUN_0093d510 00665630:FUN_00665630 00665630:FUN_00665630 00565680:FUN_00565680 00565680:FUN_00565680 00565680:FUN_00565680 009ecbc0:Menu_Stats::Update 009ecbc0:Menu_Stats::Update 009ecbc0:Menu_Stats::Update 00999cd7 00999d67 00999de9 00999e90 00999f85 00999ff3 00999ed4 008d3640:FUN_008d3640 008d4940:FUN_008d4940 009b83a0:FUN_009b83a0 008d4940:FUN_008d4940 +00b1a564 LayerId out of bounds\n 008e3830:FUN_008e3830 009db850:FUN_009db850 009a3eb0:HUD::Render 004bbe30:Entity_Pickup::Render 00713ee0:FUN_00713ee0 009b31c0:FUN_009b31c0 009b31c0:FUN_009b31c0 009b31c0:FUN_009b31c0 009b31c0:FUN_009b31c0 009b31c0:FUN_009b31c0 009b31c0:FUN_009b31c0 009b31c0:FUN_009b31c0 009b31c0:FUN_009b31c0 009b31c0:FUN_009b31c0 009b31c0:FUN_009b31c0 009b31c0:FUN_009b31c0 005832c0:Entity_Pickup::GetLootList 00832850:Entity_Player::TriggerRoomExit 0040a8a0:FUN_0040a8a0 008da030:FUN_008da030 00982100:FUN_00982100 00982100:FUN_00982100 00982100:FUN_00982100 00712180:GridEntity_Pit::Update 0040a220:AnimationState::GetLayerFrame 0099a300:FUN_0099a300 0099a300:FUN_0099a300 006e2570:Entity_Pickup::update_price_sprite 006e2570:Entity_Pickup::update_price_sprite 006e2570:Entity_Pickup::update_price_sprite 0094a500:FUN_0094a500 0094a500:FUN_0094a500 0040a7e0:ANM2::SetLayerFrame 00981140:FUN_00981140 00981140:FUN_00981140 00981140:FUN_00981140 00981140:FUN_00981140 00998880:FUN_00998880 00998880:FUN_00998880 00998880:FUN_00998880 008d0840:FUN_008d0840 008d0840:FUN_008d0840 00920940:FUN_00920940 008e8af0:FUN_008e8af0 008d8b00:FUN_008d8b00 00408ef0:AnimationState::SetLayerFrame 00408f70:AnimationState::GetLayerFrameIdx 00837ab0:GenericPrompt::Update 004b7c30:FUN_004b7c30 004b7c30:FUN_004b7c30 008e7f60:FUN_008e7f60 009b6840:FUN_009b6840 009b6840:FUN_009b6840 009b6840:FUN_009b6840 009b6840:FUN_009b6840 009b6840:FUN_009b6840 009b6840:FUN_009b6840 008ced40:FUN_008ced40 0094ef10:FUN_0094ef10 0094ef10:FUN_0094ef10 009462c0:FUN_009462c0 009462c0:FUN_009462c0 009462c0:FUN_009462c0 009462c0:FUN_009462c0 008c66a0:FUN_008c66a0 008c66a0:FUN_008c66a0 008c66a0:FUN_008c66a0 008c66a0:FUN_008c66a0 008c66a0:FUN_008c66a0 008c66a0:FUN_008c66a0 008c66a0:FUN_008c66a0 008ddae0:FUN_008ddae0 00935010:FUN_00935010 008ed350:HUD::LoadGraphics 008ed350:HUD::LoadGraphics 009ed5a0:FUN_009ed5a0 0094d500:Menu_Character::UpdateRotations 0094d500:Menu_Character::UpdateRotations 0093d510:FUN_0093d510 00665630:FUN_00665630 00665630:FUN_00665630 00565680:FUN_00565680 00565680:FUN_00565680 00565680:FUN_00565680 009ecbc0:Menu_Stats::Update 009ecbc0:Menu_Stats::Update 009ecbc0:Menu_Stats::Update 00999cd7 00999d67 00999de9 00999e90 00999f85 00999ff3 00999ed4 008d3640:FUN_008d3640 008d4940:FUN_008d4940 009b83a0:FUN_009b83a0 008d4940:FUN_008d4940 00b1a57c layerId out of bounds\n 00408fc0:AnimationState::SetNullLayerFrame 00b1a594 ChampionColor 00409120:AnimationLayer::RenderFrame -00b1a5b0 KAGE_ColorTextureShader 00a1bd80:FUN_00a1bd80 0083a3d0:FUN_0083a3d0 00a18e90:FUN_00a18e90 00a180b0:FUN_00a180b0 00817830:FUN_00817830 00817830:FUN_00817830 00a1c7d0:FUN_00a1c7d0 00a14050:FUN_00a14050 +00b1a5b0 KAGE_ColorTextureShader 00a1bd80:FUN_00a1bd80 0083a3d0:FUN_0083a3d0 00a18e90:FUN_00a18e90 00a180b0:FUN_00a180b0 00817830:FUN_00817830 00817830:FUN_00817830 00a1c7d0:FUN_00a1c7d0 00a14050:shader_cache_find 00b1a5c8 [warn] PlayRandom: no animations\n 0040a2b0:Sprite::PlayRandom 00b1a5ec [warn] Animation index out of range!\n 0040a400:FUN_0040a400 00b1a614 [warn] no animation named %s\n 0040aaf0:ANM2::SetOverlayAnimation 0040a5d0:ANM2::SetAnimation @@ -124,7 +124,7 @@ 00b1a6a8 %s: No null with Id %d\n 0040b4d0:FUN_0040b4d0 00596120:NpcAI::ENTITY_BEAST 0093d510:FUN_0093d510 00b1a6c0 shadow 0060bae0:FUN_0060bae0 0040bd50:ANM2::Load 007ab130:Entity_Player::AnimatePickup 008c8c70:Menu_Bestiary::LoadPreview 0040bd50:ANM2::Load 00b1a6c8 deque too long 0040cad0:FUN_0040cad0 -00b1a714 string too long 0040ccc0:FUN_0040ccc0 +00b1a714 string too long 0040ccc0:std::string::_Xlen 00b1a724 bad array new length 0040cde0:FUN_0040cde0 00b1a748 Unknown exception 0040d0d0:FUN_0040d0d0 00b1b160 map/set too long 004170d0:FUN_004170d0 @@ -197,16 +197,16 @@ 00b1b6e8 expected ' or " 004165a0:FUN_004165a0 004165a0:FUN_004165a0 00b1b6f8 expected ; 00416920:FUN_00416920 00416b70:FUN_00416b70 00416e80:FUN_00416e80 00b1b704 invalid numeric character entity 00416dc0:FUN_00416dc0 -00b1b728 EL: invalid sublist\n 00417540:FUN_00417540 -00b1b740 EL: not enough space for push_back\n 0041b4f0:FUN_0041b4f0 0041ab50:FUN_0041ab50 0041ab50:FUN_0041ab50 0041af60:NpcAI::ENTITY_MASK 0041af60:NpcAI::ENTITY_MASK 0041af60:NpcAI::ENTITY_MASK 0041af60:NpcAI::ENTITY_MASK 0041af60:NpcAI::ENTITY_MASK 00612440:Entity_Familiar::RecalculateOrbitOffset 00612440:Entity_Familiar::RecalculateOrbitOffset 0041a790:EntityList::QueryRadius 0041a790:EntityList::QueryRadius 00419e70:FUN_00419e70 00429570:FUN_00429570 006d0ca0:Entity_NPC::QueryNPCsSpawnerType 006d0dd0:Entity_NPC::QueryNPCsGroup 00418230:EntityList::Reset 00418230:EntityList::Reset 00418230:EntityList::Reset 00418230:EntityList::Reset 00418230:EntityList::Reset 00418230:EntityList::Reset 00630560:Menu_Stats::Render 00418500:EntityList::AddEntity 00418500:EntityList::AddEntity 00418500:EntityList::AddEntity 00417630:FUN_00417630 0060de70:Entity_Familiar::Init 0060de70:Entity_Familiar::Init 0041c490:FUN_0041c490 00610540:Entity_Familiar::Kill 00610540:Entity_Familiar::Kill +00b1b728 EL: invalid sublist\n 00417540:EntityList::sublist_init +00b1b740 EL: not enough space for push_back\n 0041b4f0:EntityList::AddPersistentEntity 0041ab50:EntityList::query_player_capsule_hits 0041ab50:EntityList::query_player_capsule_hits 0041af60:EntityList::QuerySublist 0041af60:EntityList::QuerySublist 0041af60:EntityList::QuerySublist 0041af60:EntityList::QuerySublist 0041af60:EntityList::QuerySublist 00612440:Entity_Familiar::RecalculateOrbitOffset 00612440:Entity_Familiar::RecalculateOrbitOffset 0041a790:EntityList::QueryRadius 0041a790:EntityList::QueryRadius 00419e70:FUN_00419e70 00429570:FUN_00429570 006d0ca0:Entity_NPC::QueryNPCsSpawnerType 006d0dd0:Entity_NPC::QueryNPCsGroup 00418230:EntityList::Reset 00418230:EntityList::Reset 00418230:EntityList::Reset 00418230:EntityList::Reset 00418230:EntityList::Reset 00418230:EntityList::Reset 00630560:Menu_Stats::Render 00418500:EntityList::AddEntity 00418500:EntityList::AddEntity 00418500:EntityList::AddEntity 00417630:EntityList_EL::push_back 0060de70:Entity_Familiar::Init 0060de70:Entity_Familiar::Init 0041c490:FUN_0041c490 00610540:Entity_Familiar::Kill 00610540:Entity_Familiar::Kill 00b1b764 EL: invalid index for remove\n 00429570:FUN_00429570 004186c0:FUN_004186c0 004186c0:FUN_004186c0 004186c0:FUN_004186c0 004186c0:FUN_004186c0 004186c0:FUN_004186c0 0048f110:NpcAI::ENTITY_FORSAKEN 00417670:FUN_00417670 0052db50:NpcAI::ENTITY_MAGGOT 00b1b784 EL: not enough space for insert\n 00418500:EntityList::AddEntity 00b1b7a8 EL: invalid index for insert\n 00418500:EntityList::AddEntity -00b1b7c8 EL: not enough space for copy\n 0041ab50:FUN_0041ab50 0041af60:NpcAI::ENTITY_MASK 0041af60:NpcAI::ENTITY_MASK 0041a790:EntityList::QueryRadius 006b8320:FUN_006b8320 +00b1b7c8 EL: not enough space for copy\n 0041ab50:EntityList::query_player_capsule_hits 0041af60:EntityList::QuerySublist 0041af60:EntityList::QuerySublist 0041a790:EntityList::QueryRadius 006b8320:EntityList::assign 00b1b7e8 gfx/shadow.png 00417930:FUN_00417930 007577da 00b1b7f8 CPU time spent on enemy queries: %.2f seconds.\n 00417e50:FUN_00417e50 00b1b828 EntityList: e_update is empty!\n 004186c0:FUN_004186c0 004186c0:FUN_004186c0 -00b1b848 [warn] Can't add more persistent entities, persistent list is full!\n 0041b4f0:FUN_0041b4f0 +00b1b848 [warn] Can't add more persistent entities, persistent list is full!\n 0041b4f0:EntityList::AddPersistentEntity 00b1b890 Entity Teleport Detected! Type: %d, Variant: %d, Subtype: %d; Pos: %f, %f; Size: %f, %f\n 0041bb50:FUN_0041bb50 00b1b8ec CellSpace::insert: y1 > y2\n 0041bb50:FUN_0041bb50 00b1b908 CellSpace::insert: x1 > x2\n 0041bb50:FUN_0041bb50 @@ -307,8 +307,8 @@ 00b1c5e8 #Online/DEATHMATCH_DRAW 00429b04 00b1c600 Unknown type specified\n 00429be0:FUN_00429be0 00b1c618 invalid bitset position 0042a030:std::bitset::_Xran -00b1c630 list too long 0091be00:FUN_0091be00 009c3e60:FUN_009c3e60 00693470:FUN_00693470 009a36d0:FUN_009a36d0 00a8b7d0:FUN_00a8b7d0 00aaaae0:FUN_00aaaae0 00a52b10:FUN_00a52b10 00a52100:FUN_00a52100 0047a360:NpcAI::ENTITY_CHUB 00a2a510:FUN_00a2a510 00aaa500:FUN_00aaa500 00839840:FUN_00839840 008e1a70:FUN_008e1a70 00901cb0:FUN_00901cb0 008e1fb0:FUN_008e1fb0 00429f90:FUN_00429f90 00a78a10:FUN_00a78a10 00820d30:FUN_00820d30 00870f40:Isaac::RegisterMod 009807a0:FUN_009807a0 00a70770:FUN_00a70770 00a7f010:FUN_00a7f010 00a6f270:FUN_00a6f270 00a7e9d0:FUN_00a7e9d0 0042eb10:DebugRenderer::Get 00686da0:Console::FillOmnicomplete 006eef60:Random 008e5f40:FUN_008e5f40 00a1d610:FUN_00a1d610 008f4a30:FUN_008f4a30 009c4100:FUN_009c4100 009bc790:FUN_009bc790 0085eca0:HUD::ShowFortuneText -00b1c640 Error: Game Start Seed was not set.\n 007db8d0:FUN_007db8d0 0074beb0:FUN_0074beb0 0042a2d0:Seeds::GetPlayerInitSeed 0042a4d0:FUN_0042a4d0 007d9d00:Entity_Player::CalculateBagOfCraftingOutput 009c9340:GameState::write 00751650:Level::GenerateHome 00989750:FUN_00989750 00998880:FUN_00998880 009d8190:GameState::write_rerun 006f8140:FUN_006f8140 006f8140:FUN_006f8140 006f8140:FUN_006f8140 006f8140:FUN_006f8140 00738280:Seeds::GetStageSeed 0074f820:FUN_0074f820 006ef890:Seeds::GetNextSeed 007c7960:Entity_Player::GetZodiacEffect 006f7d9d 006f7db8 007475b0:Level::RestoreGameState 006f6dd0:Game::StartDailyChallenge 00436140:Seeds::GetStartSeed 006f6500:FUN_006f6500 007467c0:Level::SetNextStage 00745b70:FUN_00745b70 00685dc0:Seeds::GetStartSeedString 00744940:Level::Init 006f557a 006f5729 006f5b35 006f5d38 006f5d53 006f5f45 006f6fec 006f71e8 006f7218 006f74b3 006f7668 006f797e 006f7c94 006f7ceb 009b8130:FUN_009b8130 +00b1c630 list too long 0091be00:FUN_0091be00 009c3e60:FUN_009c3e60 00693470:FUN_00693470 009a36d0:FUN_009a36d0 00a8b7d0:FUN_00a8b7d0 00aaaae0:FUN_00aaaae0 00a52b10:FUN_00a52b10 00a52100:FUN_00a52100 0047a360:NpcAI::ENTITY_CHUB 00a2a510:FUN_00a2a510 00aaa500:FUN_00aaa500 00839840:FUN_00839840 008e1a70:FUN_008e1a70 00901cb0:FUN_00901cb0 008e1fb0:FUN_008e1fb0 00429f90:FUN_00429f90 00a78a10:FUN_00a78a10 00820d30:FUN_00820d30 00870f40:Isaac::RegisterMod 009807a0:Game::ShowFortuneText 00a70770:FUN_00a70770 00a7f010:FUN_00a7f010 00a6f270:FUN_00a6f270 00a7e9d0:FUN_00a7e9d0 0042eb10:DebugRenderer::Get 00686da0:Console::FillOmnicomplete 006eef60:Random 008e5f40:FUN_008e5f40 00a1d610:FUN_00a1d610 008f4a30:FUN_008f4a30 009c4100:FUN_009c4100 009bc790:FUN_009bc790 0085eca0:HUD::ShowFortuneText +00b1c640 Error: Game Start Seed was not set.\n 007db8d0:Entity_Player::get_seeded_variant 0074beb0:FUN_0074beb0 0042a2d0:Seeds::GetPlayerInitSeed 0042a4d0:FUN_0042a4d0 007d9d00:Entity_Player::CalculateBagOfCraftingOutput 009c9340:GameState::write 00751650:Level::GenerateHome 00989750:FUN_00989750 00998880:FUN_00998880 009d8190:GameState::write_rerun 006f8140:FUN_006f8140 006f8140:FUN_006f8140 006f8140:FUN_006f8140 006f8140:FUN_006f8140 00738280:Seeds::GetStageSeed 0074f820:Level::InitStageSeeds 006ef890:Seeds::GetNextSeed 007c7960:Entity_Player::GetZodiacEffect 006f7d9d 006f7db8 007475b0:Level::RestoreGameState 006f6dd0:Game::StartDailyChallenge 00436140:Seeds::GetStartSeed 006f6500:FUN_006f6500 007467c0:Level::SetNextStage 00745b70:FUN_00745b70 00685dc0:Seeds::GetStartSeedString 00744940:Level::Init 006f557a 006f5729 006f5b35 006f5d38 006f5d53 006f5f45 006f6fec 006f71e8 006f7218 006f74b3 006f7668 006f797e 006f7c94 006f7ceb 009b8130:FUN_009b8130 00b1c668 %02d:%02d 0042aca0:FUN_0042aca0 00985c10:GridEntity_PressurePlate::Render 00b1c674 Normal 008e0660:FUN_008e0660 00b1c67c No spawnpoints to place player at, add more spawnpoints\n 0042c070:FUN_0042c070 @@ -357,7 +357,7 @@ 00b1d200 BodyDown 00b1d248 00b1d214 BodyUp 00b1d258 00b1d270 Spawn heart! 00437704 -00b1d280 Book of Virtues is missing default wisp config!\n 004362a0:FUN_004362a0 +00b1d280 Book of Virtues is missing default wisp config!\n 004362a0:ItemConfig::get_wisp_config 00b1d2b4 SpecialDown 0043aa90:FUN_0043aa90 0043aa90:FUN_0043aa90 00b1d2c0 SpecialUp 0043aa90:FUN_0043aa90 0043aa90:FUN_0043aa90 00b1d2d4 Sound 00573030:NpcAI::ENTITY_CLUTCH 004b3610:FUN_004b3610 0058aed0:NpcAI::ENTITY_SINGE_body 0058aed0:NpcAI::ENTITY_SINGE_body 0058aed0:NpcAI::ENTITY_SINGE_body 0058aed0:NpcAI::ENTITY_SINGE_body 004aafa0:NpcAI::ENTITY_DOGMA 004aafa0:NpcAI::ENTITY_DOGMA 004aafa0:NpcAI::ENTITY_DOGMA 004aafa0:NpcAI::ENTITY_DOGMA 00592460:FUN_00592460 00592460:FUN_00592460 00592460:FUN_00592460 00522430:NpcAI::ENTITY_LUMP 00949c20:Menu_Character::Update 00499de0:NpcAI::ENTITY_BUMBINO 00499de0:NpcAI::ENTITY_BUMBINO 00499de0:NpcAI::ENTITY_BUMBINO 00499de0:NpcAI::ENTITY_BUMBINO 004b1ee0:NpcAI::ENTITY_GIDEON 00569170:NpcAI::ENTITY_MOTHER 00569170:NpcAI::ENTITY_MOTHER 00569170:NpcAI::ENTITY_MOTHER 00569170:NpcAI::ENTITY_MOTHER 004a12f0:NpcAI::ENTITY_CLOG 004b92e0:Entity_NPC::Hornfel_UpdateAI 004b92e0:Entity_NPC::Hornfel_UpdateAI 00591460:NpcAI::ENTITY_SIREN 00581730:NpcAI::ENTITY_ROTGUT 00587aa0:Entity_Familiar::HandleCollision 00587aa0:Entity_Familiar::HandleCollision 00587aa0:Entity_Familiar::HandleCollision 005769b0:NpcAI::ENTITY_RAGLICH 005769b0:NpcAI::ENTITY_RAGLICH 005769b0:NpcAI::ENTITY_RAGLICH 005769b0:NpcAI::ENTITY_RAGLICH 005769b0:NpcAI::ENTITY_RAGLICH 0058ec70:NpcAI::ENTITY_SIREN_main 0058ec70:NpcAI::ENTITY_SIREN_main 0058ec70:NpcAI::ENTITY_SIREN_main 0058ec70:NpcAI::ENTITY_SIREN_main 0058ec70:NpcAI::ENTITY_SIREN_main 0058ec70:NpcAI::ENTITY_SIREN_main 004ae4d0:FUN_004ae4d0 004ae4d0:FUN_004ae4d0 004ae4d0:FUN_004ae4d0 0057e4a0:FUN_0057e4a0 004e6570:NpcAI::ENTITY_GRUDGE 004ddf00:NpcAI::ENTITY_MAMA_FLY 004e5170:NpcAI::ENTITY_WHIPPER 004e5170:NpcAI::ENTITY_WHIPPER 004dd7f0:NpcAI::ENTITY_GASBAG 009aca90:ItemOverlay::Update 0056cd60:FUN_0056cd60 0056cd60:FUN_0056cd60 0053c0d0:NpcAI::ENTITY_WALL_CREEP 005542e0:NpcAI::ENTITY_DARK_ESAU 0070c5c0:GridEntity_Door::Update 0044d786 00480b1b 0043f3f8 0043f749 00448ace 00449268 0044cdca 0044dd6b 004b47ee 004b64e5 004b66b7 004b66e6 004bd7d7 004bd88a 004bd995 004be326 004d99c2 004d9de6 004da174 0051dbd9 0051dc1f 005e9b0c 0063e45a 0063eab9 006467af @@ -376,7 +376,7 @@ 00b1d384 SummonEnd 00440f00:FUN_00440f00 00440f00:FUN_00440f00 00440f00:FUN_00440f00 00440f00:FUN_00440f00 00b1d390 DieStart 00440f00:FUN_00440f00 00b1d39c SwingPrepareLoop 00440f00:FUN_00440f00 00440f00:FUN_00440f00 00440f00:FUN_00440f00 00440f00:FUN_00440f00 -00b1d3b4 Swing 00502980:NpcAI::ENTITY_FLESH_MAIDEN 009688d0:FUN_009688d0 00440f00:FUN_00440f00 00440f00:FUN_00440f00 009680d0:FUN_009680d0 009680d0:FUN_009680d0 00440f00:FUN_00440f00 009680d0:FUN_009680d0 009688d0:FUN_009688d0 +00b1d3b4 Swing 00502980:NpcAI::ENTITY_FLESH_MAIDEN 009688d0:FUN_009688d0 00440f00:FUN_00440f00 00440f00:FUN_00440f00 009680d0:Entity_Knife::SetAttackAnimation 009680d0:Entity_Knife::SetAttackAnimation 00440f00:FUN_00440f00 009680d0:Entity_Knife::SetAttackAnimation 009688d0:FUN_009688d0 00b1d3bc Rotate4 00443e50:FUN_00443e50 00443e50:FUN_00443e50 00b1d3c4 Rotate3 00443e50:FUN_00443e50 00443e50:FUN_00443e50 00443e50:FUN_00443e50 00443e50:FUN_00443e50 00443e50:FUN_00443e50 00b1d3cc Rotate6 00443e50:FUN_00443e50 00443e50:FUN_00443e50 @@ -412,7 +412,7 @@ 00b1d56b ack04 00459d20:NpcAI::ENTITY_DEATH 00450da0:NpcAI::ENTITY_LIL_BLUB 00b1d584 BombDizzy 00452eb0:FUN_00452eb0 00b1d590 PopDown 00453140:NpcAI::ENTITY_BIG_HORN 00453140:NpcAI::ENTITY_BIG_HORN -00b1d598 Appear 00503af0:NpcAI::ENTITY_DUST 00503af0:NpcAI::ENTITY_DUST 00453140:NpcAI::ENTITY_BIG_HORN 007729d0:FUN_007729d0 007729d0:FUN_007729d0 00782af0:FUN_00782af0 009bac40:FUN_009bac40 004aafa0:NpcAI::ENTITY_DOGMA 006a2050:Entity_Bomb::Init 004aafa0:NpcAI::ENTITY_DOGMA 007a2220:Entity_Player::Revive 00522430:NpcAI::ENTITY_LUMP 00522430:NpcAI::ENTITY_LUMP 00492550:NpcAI::ENTITY_PITFALL 00492550:NpcAI::ENTITY_PITFALL 00492550:NpcAI::ENTITY_PITFALL 00492550:NpcAI::ENTITY_PITFALL 00492550:NpcAI::ENTITY_PITFALL 00492550:NpcAI::ENTITY_PITFALL 007d1860:Entity_Player::AddMinisaac 007d1860:Entity_Player::AddMinisaac 00791a40:FUN_00791a40 004f9ad0:NpcAI::ENTITY_ROCK_SPIDER 00931ba0:FUN_00931ba0 00949c20:Menu_Character::Update 00949c20:Menu_Character::Update 00459d20:NpcAI::ENTITY_DEATH 00459d20:NpcAI::ENTITY_DEATH 00981140:FUN_00981140 00981140:FUN_00981140 004d1290:NpcAI::ENTITY_MOM 00571280:NpcAI::ENTITY_POOP 004d1290:NpcAI::ENTITY_MOM 007d93b0:Entity_Player::RevivePlayerGhost 007d93b0:Entity_Player::RevivePlayerGhost 00591460:NpcAI::ENTITY_SIREN 00830950:FUN_00830950 00830950:FUN_00830950 006d0ec0:FUN_006d0ec0 006d0ec0:FUN_006d0ec0 00948fc0:FUN_00948fc0 008380f0:GenericPrompt::Show 008380f0:GenericPrompt::Show 008580e0:Leaderboard::Show 008580e0:Leaderboard::Show 004c8090:NpcAI::ENTITY_MEGA_SATAN 004c8090:NpcAI::ENTITY_MEGA_SATAN 004c8090:NpcAI::ENTITY_MEGA_SATAN 004c8090:NpcAI::ENTITY_MEGA_SATAN 004c8090:NpcAI::ENTITY_MEGA_SATAN 004c8090:NpcAI::ENTITY_MEGA_SATAN 004b0200:FUN_004b0200 00948200:FUN_00948200 006e02f0:Entity_Pickup::Init 00837ab0:GenericPrompt::Update 005c7ad0:FUN_005c7ad0 004bfd30:NpcAI::ENTITY_HUSH 004bfd30:NpcAI::ENTITY_HUSH 004bfd30:NpcAI::ENTITY_HUSH 004bfd30:NpcAI::ENTITY_HUSH 0056ffa0:NpcAI::ENTITY_MOTHERS_SHADOW 0056ffa0:NpcAI::ENTITY_MOTHERS_SHADOW 0092f1c0:FUN_0092f1c0 0092f1c0:FUN_0092f1c0 00837210:FUN_00837210 006174c0:FUN_006174c0 00857450:FUN_00857450 00837510:FUN_00837510 00837510:FUN_00837510 009b7680:FUN_009b7680 009b6840:FUN_009b6840 00506bd0:NpcAI::ENTITY_FLY 00506bd0:NpcAI::ENTITY_FLY 0070ee40:GridEntity_Door::UpdateAnimation 0070ee40:GridEntity_Door::UpdateAnimation 00616050:FUN_00616050 009ee2a0:FUN_009ee2a0 009ee2a0:FUN_009ee2a0 009ee2a0:FUN_009ee2a0 009ee2a0:FUN_009ee2a0 009ee2a0:FUN_009ee2a0 0094e210:Menu_Character::DoPageSwap 00526470:NpcAI::ENTITY_HOPPER 004ed840:NpcAI::ENTITY_CULTIST 00715940:GridEntity_Poop::BeginBatches 00715940:GridEntity_Poop::BeginBatches 005cdb20:Entity_Effect::Init 005cdb20:Entity_Effect::Init 005cdb20:Entity_Effect::Init 0060de70:Entity_Familiar::Init 0060de70:Entity_Familiar::Init 0060de70:Entity_Familiar::Init 0060de70:Entity_Familiar::Init 009ede60:FUN_009ede60 0065d200:Entity_Slot::Init 009bd3b0:FUN_009bd3b0 00635390:FUN_00635390 004cca10:NpcAI::ENTITY_MEGA_SATAN_hand 004cca10:NpcAI::ENTITY_MEGA_SATAN_hand 00524a10:NpcAI::ENTITY_FRED 009c4a50:FUN_009c4a50 009c4100:FUN_009c4100 009c4100:FUN_009c4100 005542e0:NpcAI::ENTITY_DARK_ESAU 005542e0:NpcAI::ENTITY_DARK_ESAU 005542e0:NpcAI::ENTITY_DARK_ESAU 00492550:NpcAI::ENTITY_PITFALL 00492550:NpcAI::ENTITY_PITFALL 00492550:NpcAI::ENTITY_PITFALL 004bfd30:NpcAI::ENTITY_HUSH 004bfd30:NpcAI::ENTITY_HUSH 004c8090:NpcAI::ENTITY_MEGA_SATAN 004c8090:NpcAI::ENTITY_MEGA_SATAN 004c8090:NpcAI::ENTITY_MEGA_SATAN 004c8090:NpcAI::ENTITY_MEGA_SATAN 004cca10:NpcAI::ENTITY_MEGA_SATAN_hand 0060de70:Entity_Familiar::Init 0060de70:Entity_Familiar::Init 00616050:FUN_00616050 00635390:FUN_00635390 006d0ec0:FUN_006d0ec0 0070ee40:GridEntity_Door::UpdateAnimation 00715940:GridEntity_Poop::BeginBatches 00782af0:FUN_00782af0 007d1860:Entity_Player::AddMinisaac 00837210:FUN_00837210 00837510:FUN_00837510 00837ab0:GenericPrompt::Update 008380f0:GenericPrompt::Show 008580e0:Leaderboard::Show 00949c20:Menu_Character::Update 00981140:FUN_00981140 009b6840:FUN_009b6840 009bac40:FUN_009bac40 009c4100:FUN_009c4100 009c4a50:FUN_009c4a50 009ee2a0:FUN_009ee2a0 009ee2a0:FUN_009ee2a0 009ee2a0:FUN_009ee2a0 009ee2a0:FUN_009ee2a0 006a24d0:Entity_Bomb::Update 00714770:GridEntity_Poop::Update 00714770:GridEntity_Poop::Update 00714770:GridEntity_Poop::Update 0065d950:Entity_Slot::Update 0065d950:Entity_Slot::Update 006e3940:Entity_Pickup::Update 006e3940:Entity_Pickup::Update 006e3940:Entity_Pickup::Update 006e3940:Entity_Pickup::Update 006e3940:Entity_Pickup::Update 006c4b30:Entity_NPC::Update 006c4b30:Entity_NPC::Update 006c4b30:Entity_NPC::Update 006c4b30:Entity_NPC::Update 006c4b30:Entity_NPC::Update 0065d950:Entity_Slot::Update 006e3940:Entity_Pickup::Update 006e3940:Entity_Pickup::Update 006e3940:Entity_Pickup::Update 00714770:GridEntity_Poop::Update 00714770:GridEntity_Poop::Update 007abcb0:Entity_Player::AnimateAppear 006e3020:Entity_Pickup::AppearFast 006e3020:Entity_Pickup::AppearFast 005d0d66 005d11e9 005d198d 005d1a6e 005db904 005f2300 005f253c 005f2849 005fe295 00601605 005fe284 +00b1d598 Appear 00503af0:NpcAI::ENTITY_DUST 00503af0:NpcAI::ENTITY_DUST 00453140:NpcAI::ENTITY_BIG_HORN 007729d0:Entity_Player::take_damage_impl 007729d0:Entity_Player::take_damage_impl 00782af0:FUN_00782af0 009bac40:FUN_009bac40 004aafa0:NpcAI::ENTITY_DOGMA 006a2050:Entity_Bomb::Init 004aafa0:NpcAI::ENTITY_DOGMA 007a2220:Entity_Player::Revive 00522430:NpcAI::ENTITY_LUMP 00522430:NpcAI::ENTITY_LUMP 00492550:NpcAI::ENTITY_PITFALL 00492550:NpcAI::ENTITY_PITFALL 00492550:NpcAI::ENTITY_PITFALL 00492550:NpcAI::ENTITY_PITFALL 00492550:NpcAI::ENTITY_PITFALL 00492550:NpcAI::ENTITY_PITFALL 007d1860:Entity_Player::AddMinisaac 007d1860:Entity_Player::AddMinisaac 00791a40:FUN_00791a40 004f9ad0:NpcAI::ENTITY_ROCK_SPIDER 00931ba0:FUN_00931ba0 00949c20:Menu_Character::Update 00949c20:Menu_Character::Update 00459d20:NpcAI::ENTITY_DEATH 00459d20:NpcAI::ENTITY_DEATH 00981140:FUN_00981140 00981140:FUN_00981140 004d1290:NpcAI::ENTITY_MOM 00571280:NpcAI::ENTITY_POOP 004d1290:NpcAI::ENTITY_MOM 007d93b0:Entity_Player::RevivePlayerGhost 007d93b0:Entity_Player::RevivePlayerGhost 00591460:NpcAI::ENTITY_SIREN 00830950:FUN_00830950 00830950:FUN_00830950 006d0ec0:FUN_006d0ec0 006d0ec0:FUN_006d0ec0 00948fc0:FUN_00948fc0 008380f0:GenericPrompt::Show 008380f0:GenericPrompt::Show 008580e0:Leaderboard::Show 008580e0:Leaderboard::Show 004c8090:NpcAI::ENTITY_MEGA_SATAN 004c8090:NpcAI::ENTITY_MEGA_SATAN 004c8090:NpcAI::ENTITY_MEGA_SATAN 004c8090:NpcAI::ENTITY_MEGA_SATAN 004c8090:NpcAI::ENTITY_MEGA_SATAN 004c8090:NpcAI::ENTITY_MEGA_SATAN 004b0200:FUN_004b0200 00948200:FUN_00948200 006e02f0:Entity_Pickup::Init 00837ab0:GenericPrompt::Update 005c7ad0:FUN_005c7ad0 004bfd30:NpcAI::ENTITY_HUSH 004bfd30:NpcAI::ENTITY_HUSH 004bfd30:NpcAI::ENTITY_HUSH 004bfd30:NpcAI::ENTITY_HUSH 0056ffa0:NpcAI::ENTITY_MOTHERS_SHADOW 0056ffa0:NpcAI::ENTITY_MOTHERS_SHADOW 0092f1c0:FUN_0092f1c0 0092f1c0:FUN_0092f1c0 00837210:FUN_00837210 006174c0:FUN_006174c0 00857450:FUN_00857450 00837510:FUN_00837510 00837510:FUN_00837510 009b7680:FUN_009b7680 009b6840:FUN_009b6840 00506bd0:NpcAI::ENTITY_FLY 00506bd0:NpcAI::ENTITY_FLY 0070ee40:GridEntity_Door::UpdateAnimation 0070ee40:GridEntity_Door::UpdateAnimation 00616050:FUN_00616050 009ee2a0:FUN_009ee2a0 009ee2a0:FUN_009ee2a0 009ee2a0:FUN_009ee2a0 009ee2a0:FUN_009ee2a0 009ee2a0:FUN_009ee2a0 0094e210:Menu_Character::DoPageSwap 00526470:NpcAI::ENTITY_HOPPER 004ed840:NpcAI::ENTITY_CULTIST 00715940:GridEntity_Poop::BeginBatches 00715940:GridEntity_Poop::BeginBatches 005cdb20:Entity_Effect::Init 005cdb20:Entity_Effect::Init 005cdb20:Entity_Effect::Init 0060de70:Entity_Familiar::Init 0060de70:Entity_Familiar::Init 0060de70:Entity_Familiar::Init 0060de70:Entity_Familiar::Init 009ede60:FUN_009ede60 0065d200:Entity_Slot::Init 009bd3b0:FUN_009bd3b0 00635390:FUN_00635390 004cca10:NpcAI::ENTITY_MEGA_SATAN_hand 004cca10:NpcAI::ENTITY_MEGA_SATAN_hand 00524a10:NpcAI::ENTITY_FRED 009c4a50:FUN_009c4a50 009c4100:FUN_009c4100 009c4100:FUN_009c4100 005542e0:NpcAI::ENTITY_DARK_ESAU 005542e0:NpcAI::ENTITY_DARK_ESAU 005542e0:NpcAI::ENTITY_DARK_ESAU 00492550:NpcAI::ENTITY_PITFALL 00492550:NpcAI::ENTITY_PITFALL 00492550:NpcAI::ENTITY_PITFALL 004bfd30:NpcAI::ENTITY_HUSH 004bfd30:NpcAI::ENTITY_HUSH 004c8090:NpcAI::ENTITY_MEGA_SATAN 004c8090:NpcAI::ENTITY_MEGA_SATAN 004c8090:NpcAI::ENTITY_MEGA_SATAN 004c8090:NpcAI::ENTITY_MEGA_SATAN 004cca10:NpcAI::ENTITY_MEGA_SATAN_hand 0060de70:Entity_Familiar::Init 0060de70:Entity_Familiar::Init 00616050:FUN_00616050 00635390:FUN_00635390 006d0ec0:FUN_006d0ec0 0070ee40:GridEntity_Door::UpdateAnimation 00715940:GridEntity_Poop::BeginBatches 00782af0:FUN_00782af0 007d1860:Entity_Player::AddMinisaac 00837210:FUN_00837210 00837510:FUN_00837510 00837ab0:GenericPrompt::Update 008380f0:GenericPrompt::Show 008580e0:Leaderboard::Show 00949c20:Menu_Character::Update 00981140:FUN_00981140 009b6840:FUN_009b6840 009bac40:FUN_009bac40 009c4100:FUN_009c4100 009c4a50:FUN_009c4a50 009ee2a0:FUN_009ee2a0 009ee2a0:FUN_009ee2a0 009ee2a0:FUN_009ee2a0 009ee2a0:FUN_009ee2a0 006a24d0:Entity_Bomb::Update 00714770:GridEntity_Poop::Update 00714770:GridEntity_Poop::Update 00714770:GridEntity_Poop::Update 0065d950:Entity_Slot::Update 0065d950:Entity_Slot::Update 006e3940:Entity_Pickup::Update 006e3940:Entity_Pickup::Update 006e3940:Entity_Pickup::Update 006e3940:Entity_Pickup::Update 006e3940:Entity_Pickup::Update 006c4b30:Entity_NPC::Update 006c4b30:Entity_NPC::Update 006c4b30:Entity_NPC::Update 006c4b30:Entity_NPC::Update 006c4b30:Entity_NPC::Update 0065d950:Entity_Slot::Update 006e3940:Entity_Pickup::Update 006e3940:Entity_Pickup::Update 006e3940:Entity_Pickup::Update 00714770:GridEntity_Poop::Update 00714770:GridEntity_Poop::Update 007abcb0:Entity_Player::AnimateAppear 006e3020:Entity_Pickup::AppearFast 006e3020:Entity_Pickup::AppearFast 005d0d66 005d11e9 005d198d 005d1a6e 005db904 005f2300 005f253c 005f2849 005fe295 00601605 005fe284 00b1d5a0 BigHoleClose 00453140:NpcAI::ENTITY_BIG_HORN 00453140:NpcAI::ENTITY_BIG_HORN 006c4b30:Entity_NPC::Update 00b1d5b8 BigHoleOpen 00453140:NpcAI::ENTITY_BIG_HORN 00453140:NpcAI::ENTITY_BIG_HORN 00453140:NpcAI::ENTITY_BIG_HORN 00453140:NpcAI::ENTITY_BIG_HORN 00453140:NpcAI::ENTITY_BIG_HORN 00453140:NpcAI::ENTITY_BIG_HORN 00453140:NpcAI::ENTITY_BIG_HORN 00453140:NpcAI::ENTITY_BIG_HORN 00453140:NpcAI::ENTITY_BIG_HORN 00b1d5c4 Failed to find safe spawn location for Big Horn's Small Hole\n 00453140:NpcAI::ENTITY_BIG_HORN @@ -594,7 +594,7 @@ 00b1dff0 TeleportUp 007abcc0:Entity_Player::AnimateTeleport 00709fb0:FUN_00709fb0 00467670:NpcAI::ENTITY_LOKI 007cd950:Entity_Player::Teleport 007cd950:Entity_Player::Teleport 006fd7c0:Game::StartRoomTransition 007abcc0:Entity_Player::AnimateTeleport 007cd950:Entity_Player::Teleport 004bd513 004bd91c 0064384a 00b1dffc JumpIn 00467670:NpcAI::ENTITY_LOKI 00b1e004 StompArm 0061bd50:FUN_0061bd50 00468180:NpcAI::ENTITY_DADDYLONGLEGS 00468180:NpcAI::ENTITY_DADDYLONGLEGS 00468180:NpcAI::ENTITY_DADDYLONGLEGS 00468180:NpcAI::ENTITY_DADDYLONGLEGS 00468180:NpcAI::ENTITY_DADDYLONGLEGS 0061bd50:FUN_0061bd50 -00b1e010 TeleportDown 007abcc0:Entity_Player::AnimateTeleport 008318a0:FUN_008318a0 007b9aa0:FUN_007b9aa0 00467670:NpcAI::ENTITY_LOKI 007cd950:Entity_Player::Teleport 007abcc0:Entity_Player::AnimateTeleport 004bd83a 00644152 00644190 006441d4 00644212 00644144 006441cd +00b1e010 TeleportDown 007abcc0:Entity_Player::AnimateTeleport 008318a0:Game::update_pending_pickup_animations 007b9aa0:FUN_007b9aa0 00467670:NpcAI::ENTITY_LOKI 007cd950:Entity_Player::Teleport 007abcc0:Entity_Player::AnimateTeleport 004bd83a 00644152 00644190 006441d4 00644212 00644144 006441cd 00b1e028 StompLeg 0061bd50:FUN_0061bd50 00468180:NpcAI::ENTITY_DADDYLONGLEGS 00468180:NpcAI::ENTITY_DADDYLONGLEGS 00468180:NpcAI::ENTITY_DADDYLONGLEGS 0061bd50:FUN_0061bd50 00b1e034 AttackHeadHori 0059a2d0:NpcAI::ENTITY_TUFF_TWINS 0059a2d0:NpcAI::ENTITY_TUFF_TWINS 00b1dc7c 00b1dc84 00b1e044 WalkDown 004ecc10:NpcAI::ENTITY_REVENANT 00503af0:NpcAI::ENTITY_DUST 0075bf00:Entity_Player::UpdateCostumes 00782af0:FUN_00782af0 0046a0f0:NpcAI::ENTITY_LARRYJR 00779b40:RoomTransition::Update 00779b40:RoomTransition::Update 00479d80:NpcAI::ENTITY_PRIDE 00479d80:NpcAI::ENTITY_PRIDE 00538b70:NpcAI::ENTITY_SKINNY 00538b70:NpcAI::ENTITY_SKINNY 004efb90:NpcAI::ENTITY_CLICKETY_CLACK 00616770:FUN_00616770 00616770:FUN_00616770 00616770:FUN_00616770 00616770:FUN_00616770 00616770:FUN_00616770 004e5170:NpcAI::ENTITY_WHIPPER 004e5170:NpcAI::ENTITY_WHIPPER 004e5170:NpcAI::ENTITY_WHIPPER 0054d250:NpcAI::ENTITY_BUTT_SLICKER 0054d250:NpcAI::ENTITY_BUTT_SLICKER 0054d250:NpcAI::ENTITY_BUTT_SLICKER 0054d250:NpcAI::ENTITY_BUTT_SLICKER 00525650:NpcAI::ENTITY_DOPLE 00525650:NpcAI::ENTITY_DOPLE 00525650:NpcAI::ENTITY_DOPLE 00525650:NpcAI::ENTITY_DOPLE 00525650:NpcAI::ENTITY_DOPLE 0063c1c0:FUN_0063c1c0 0063c1c0:FUN_0063c1c0 00756b68 0046a0f0:NpcAI::ENTITY_LARRYJR 004e5170:NpcAI::ENTITY_WHIPPER 00503af0:NpcAI::ENTITY_DUST 00525650:NpcAI::ENTITY_DOPLE 00525650:NpcAI::ENTITY_DOPLE 00525650:NpcAI::ENTITY_DOPLE 0054d250:NpcAI::ENTITY_BUTT_SLICKER 0054d250:NpcAI::ENTITY_BUTT_SLICKER 0054d250:NpcAI::ENTITY_BUTT_SLICKER 00616770:FUN_00616770 00782af0:FUN_00782af0 00782af0:FUN_00782af0 0061da10:Entity_Familiar::Update 0061da10:Entity_Familiar::Update 0061da10:Entity_Familiar::Update 0061da10:Entity_Familiar::Update 0064e0c0:Entity_Familiar::ai_blood_clot 00b60b0c 004f2498 004f2581 0060fc8f @@ -612,7 +612,7 @@ 00b1e0f8 IdleHead 00471050:FUN_00471050 00471050:FUN_00471050 00b1e104 Walk01 004ea3d0:NpcAI::ENTITY_VIS_FATTY 004ea3d0:NpcAI::ENTITY_VIS_FATTY 00471cc0:FUN_00471cc0 00471cc0:FUN_00471cc0 00b1e124 Wrath: Evade own bomb.\n 00475110:NpcAI::ENTITY_WRATH -00b1e13c Death 007d35b0:FUN_007d35b0 007d35b0:FUN_007d35b0 004b3610:FUN_004b3610 00483710:NpcAI::ENTITY_THE_LAMB 007828f0:Entity_Player::GetDeathAnimName 008318a0:FUN_008318a0 005911b0:FUN_005911b0 004c8090:NpcAI::ENTITY_MEGA_SATAN 004c8090:NpcAI::ENTITY_MEGA_SATAN 004c8090:NpcAI::ENTITY_MEGA_SATAN 004c8090:NpcAI::ENTITY_MEGA_SATAN 00630560:Menu_Stats::Render 007d87a0:FUN_007d87a0 007d87a0:FUN_007d87a0 00587aa0:Entity_Familiar::HandleCollision 007afc20:FUN_007afc20 007bf3d0:Entity_Player::CanPickupItem 0047f640:NpcAI::ENTITY_SATAN 0059edb0:NpcAI::ENTITY_ULTRA_GREED 004e6570:NpcAI::ENTITY_GRUDGE 0056cd60:FUN_0056cd60 005542e0:NpcAI::ENTITY_DARK_ESAU 004b43c0:NpcAI::ENTITY_HERETIC 0048c3b0:NpcAI::ENTITY_BROWNIE 00664560:Entity_Slot::TakeDamage 00664560:Entity_Slot::TakeDamage 00664560:Entity_Slot::TakeDamage 0047412a 004c8090:NpcAI::ENTITY_MEGA_SATAN 004c8090:NpcAI::ENTITY_MEGA_SATAN 004c8090:NpcAI::ENTITY_MEGA_SATAN 004e6570:NpcAI::ENTITY_GRUDGE 005542e0:NpcAI::ENTITY_DARK_ESAU 0056cd60:FUN_0056cd60 00587aa0:Entity_Familiar::HandleCollision 005911b0:FUN_005911b0 007828f0:Entity_Player::GetDeathAnimName 007bf3d0:Entity_Player::CanPickupItem 007d35b0:FUN_007d35b0 007d87a0:FUN_007d87a0 0065d950:Entity_Slot::Update 0065d950:Entity_Slot::Update 0065d950:Entity_Slot::Update 0065d950:Entity_Slot::Update 0065d950:Entity_Slot::Update 0065d950:Entity_Slot::Update 0065d950:Entity_Slot::Update 0065d950:Entity_Slot::Update 006c4b30:Entity_NPC::Update 006c4b30:Entity_NPC::Update 006c4b30:Entity_NPC::Update 005dddd0 005dee51 006027ad 006467a2 +00b1e13c Death 007d35b0:FUN_007d35b0 007d35b0:FUN_007d35b0 004b3610:FUN_004b3610 00483710:NpcAI::ENTITY_THE_LAMB 007828f0:Entity_Player::GetDeathAnimName 008318a0:Game::update_pending_pickup_animations 005911b0:FUN_005911b0 004c8090:NpcAI::ENTITY_MEGA_SATAN 004c8090:NpcAI::ENTITY_MEGA_SATAN 004c8090:NpcAI::ENTITY_MEGA_SATAN 004c8090:NpcAI::ENTITY_MEGA_SATAN 00630560:Menu_Stats::Render 007d87a0:FUN_007d87a0 007d87a0:FUN_007d87a0 00587aa0:Entity_Familiar::HandleCollision 007afc20:Entity_Player::try_trigger_astral_projection 007bf3d0:Entity_Player::CanPickupItem 0047f640:NpcAI::ENTITY_SATAN 0059edb0:NpcAI::ENTITY_ULTRA_GREED 004e6570:NpcAI::ENTITY_GRUDGE 0056cd60:FUN_0056cd60 005542e0:NpcAI::ENTITY_DARK_ESAU 004b43c0:NpcAI::ENTITY_HERETIC 0048c3b0:NpcAI::ENTITY_BROWNIE 00664560:Entity_Slot::TakeDamage 00664560:Entity_Slot::TakeDamage 00664560:Entity_Slot::TakeDamage 0047412a 004c8090:NpcAI::ENTITY_MEGA_SATAN 004c8090:NpcAI::ENTITY_MEGA_SATAN 004c8090:NpcAI::ENTITY_MEGA_SATAN 004e6570:NpcAI::ENTITY_GRUDGE 005542e0:NpcAI::ENTITY_DARK_ESAU 0056cd60:FUN_0056cd60 00587aa0:Entity_Familiar::HandleCollision 005911b0:FUN_005911b0 007828f0:Entity_Player::GetDeathAnimName 007bf3d0:Entity_Player::CanPickupItem 007d35b0:FUN_007d35b0 007d87a0:FUN_007d87a0 0065d950:Entity_Slot::Update 0065d950:Entity_Slot::Update 0065d950:Entity_Slot::Update 0065d950:Entity_Slot::Update 0065d950:Entity_Slot::Update 0065d950:Entity_Slot::Update 0065d950:Entity_Slot::Update 0065d950:Entity_Slot::Update 006c4b30:Entity_NPC::Update 006c4b30:Entity_NPC::Update 006c4b30:Entity_NPC::Update 005dddd0 005dee51 006027ad 006467a2 00b1e144 Attack01Up 004df3f0:NpcAI::ENTITY_EVIS 00475a30:NpcAI::ENTITY_GREED 004df3f0:NpcAI::ENTITY_EVIS 00b1e150 Attack01Hori 00475a30:NpcAI::ENTITY_GREED 00475a30:NpcAI::ENTITY_GREED 00b1e160 Walk4 004760a0:NpcAI::ENTITY_ENVY 004760a0:NpcAI::ENTITY_ENVY @@ -670,7 +670,7 @@ 00b1e49c WalkChubbyDown 0047a360:NpcAI::ENTITY_CHUB 00b1e4ac WalkChubbyHori 0047a360:NpcAI::ENTITY_CHUB 00b1e4bc Attack%d 0047c850:NpcAI::ENTITY_GURDY 00501b8f -00b1e4c8 Idle%d 0063b340:FUN_0063b340 005562b0:NpcAI::ENTITY_PEEPER_FATTY 0060de70:Entity_Familiar::Init 0060de70:Entity_Familiar::Init 0047c850:NpcAI::ENTITY_GURDY 0060de70:Entity_Familiar::Init 0061da10:Entity_Familiar::Update 00501033 005d06b9 +00b1e4c8 Idle%d 0063b340:Entity_Familiar::update_idle_anim_by_size 005562b0:NpcAI::ENTITY_PEEPER_FATTY 0060de70:Entity_Familiar::Init 0060de70:Entity_Familiar::Init 0047c850:NpcAI::ENTITY_GURDY 0060de70:Entity_Familiar::Init 0061da10:Entity_Familiar::Update 00501033 005d06b9 00b1e4d0 FaceAttackHide 0047c850:NpcAI::ENTITY_GURDY 00b1e4e0 FaceAttackAppear 0047c850:NpcAI::ENTITY_GURDY 00b1e4f4 SmileHide 0047c850:NpcAI::ENTITY_GURDY @@ -750,7 +750,7 @@ 00b1e938 No form for Delirium 004a6500:NpcAI::ENTITY_DELIRIUM 00b1e950 Spawned Delirium companion %d:%u\n 004a84f0:FUN_004a84f0 00b1ec08 Distortion 004aaef0:FUN_004aaef0 -00b1ec14 CordPos 004aafa0:NpcAI::ENTITY_DOGMA 004ea3d0:NpcAI::ENTITY_VIS_FATTY 004e9b10:FUN_004e9b10 005562b0:NpcAI::ENTITY_PEEPER_FATTY 005562b0:NpcAI::ENTITY_PEEPER_FATTY +00b1ec14 CordPos 004aafa0:NpcAI::ENTITY_DOGMA 004ea3d0:NpcAI::ENTITY_VIS_FATTY 004e9b10:Entity_NPC::render_overlay 005562b0:NpcAI::ENTITY_PEEPER_FATTY 005562b0:NpcAI::ENTITY_PEEPER_FATTY 00b1ec1c BrimstoneLoopRight 004aafa0:NpcAI::ENTITY_DOGMA 004aafa0:NpcAI::ENTITY_DOGMA 00b1ec30 BrimstoneStartDown 004aafa0:NpcAI::ENTITY_DOGMA 004aafa0:NpcAI::ENTITY_DOGMA 00b1ec44 BrimstoneLoopDown 004aafa0:NpcAI::ENTITY_DOGMA 004aafa0:NpcAI::ENTITY_DOGMA @@ -4238,20 +4238,20 @@ z 00b605f0 Move Hori 004e38c0:NpcAI::ENTITY_CHARGER_L2 00552d30:NpcAI::ENTITY_BLOOD_PUPPY 0064fd40:FUN_0064fd40 00616db0:FUN_00616db0 00616db0:FUN_00616db0 00616db0:FUN_00616db0 0052db50:NpcAI::ENTITY_MAGGOT 0052db50:NpcAI::ENTITY_MAGGOT 00616db0:FUN_00616db0 00b605fc Move Down 004e38c0:NpcAI::ENTITY_CHARGER_L2 00552d30:NpcAI::ENTITY_BLOOD_PUPPY 0064fd40:FUN_0064fd40 00616db0:FUN_00616db0 00616db0:FUN_00616db0 0052db50:NpcAI::ENTITY_MAGGOT 00616db0:FUN_00616db0 00b60608 Move Up 004e38c0:NpcAI::ENTITY_CHARGER_L2 00552d30:NpcAI::ENTITY_BLOOD_PUPPY 0064fd40:FUN_0064fd40 00616db0:FUN_00616db0 00616db0:FUN_00616db0 00616db0:FUN_00616db0 0052db50:NpcAI::ENTITY_MAGGOT 00616db0:FUN_00616db0 -00b606c0 HeadDown 0075af10:Entity_Player::GetCostumeNullPos 0075bf00:Entity_Player::UpdateCostumes 0077b020:FUN_0077b020 0077b020:FUN_0077b020 00779b40:RoomTransition::Update 00779b40:RoomTransition::Update 00779b40:RoomTransition::Update 004efb90:NpcAI::ENTITY_CLICKETY_CLACK 004efb90:NpcAI::ENTITY_CLICKETY_CLACK 004efb90:NpcAI::ENTITY_CLICKETY_CLACK 004e5170:NpcAI::ENTITY_WHIPPER 004e5170:NpcAI::ENTITY_WHIPPER 004e5170:NpcAI::ENTITY_WHIPPER 00525650:NpcAI::ENTITY_DOPLE 0063c1c0:FUN_0063c1c0 009f4280:FUN_009f4280 00756b9b 004e5170:NpcAI::ENTITY_WHIPPER 00779b40:RoomTransition::Update 00779b40:RoomTransition::Update 00779b40:RoomTransition::Update 00b60b3c 0060fc9e +00b606c0 HeadDown 0075af10:Entity_Player::GetCostumeNullPos 0075bf00:Entity_Player::UpdateCostumes 0077b020:FUN_0077b020 0077b020:FUN_0077b020 00779b40:RoomTransition::Update 00779b40:RoomTransition::Update 00779b40:RoomTransition::Update 004efb90:NpcAI::ENTITY_CLICKETY_CLACK 004efb90:NpcAI::ENTITY_CLICKETY_CLACK 004efb90:NpcAI::ENTITY_CLICKETY_CLACK 004e5170:NpcAI::ENTITY_WHIPPER 004e5170:NpcAI::ENTITY_WHIPPER 004e5170:NpcAI::ENTITY_WHIPPER 00525650:NpcAI::ENTITY_DOPLE 0063c1c0:FUN_0063c1c0 009f4280:Weapon::UpdateHeadChargeAnimation 00756b9b 004e5170:NpcAI::ENTITY_WHIPPER 00779b40:RoomTransition::Update 00779b40:RoomTransition::Update 00779b40:RoomTransition::Update 00b60b3c 0060fc9e 00b606cc WalkAttack 004e5170:NpcAI::ENTITY_WHIPPER 00b606d8 HeadLaugh 004e5170:NpcAI::ENTITY_WHIPPER 00b606e4 HeadLaughUp 004e5170:NpcAI::ENTITY_WHIPPER 004e5170:NpcAI::ENTITY_WHIPPER 004e5170:NpcAI::ENTITY_WHIPPER 00b606f0 WalkAttackDown 004e5170:NpcAI::ENTITY_WHIPPER 004e5170:NpcAI::ENTITY_WHIPPER 00b60700 WalkAttackHori 004e5170:NpcAI::ENTITY_WHIPPER 004e5170:NpcAI::ENTITY_WHIPPER -00b60710 HeadUp 0075af10:Entity_Player::GetCostumeNullPos 0077b020:FUN_0077b020 0077b020:FUN_0077b020 00779b40:RoomTransition::Update 00779b40:RoomTransition::Update 00779b40:RoomTransition::Update 004e5170:NpcAI::ENTITY_WHIPPER 004e5170:NpcAI::ENTITY_WHIPPER 00525650:NpcAI::ENTITY_DOPLE 0063c1c0:FUN_0063c1c0 009f4280:FUN_009f4280 004e5170:NpcAI::ENTITY_WHIPPER 00779b40:RoomTransition::Update 00779b40:RoomTransition::Update 00779b40:RoomTransition::Update -00b60718 HeadRight 0075af10:Entity_Player::GetCostumeNullPos 00779b40:RoomTransition::Update 0077b020:FUN_0077b020 0077b020:FUN_0077b020 00779b40:RoomTransition::Update 00779b40:RoomTransition::Update 00779b40:RoomTransition::Update 004e5170:NpcAI::ENTITY_WHIPPER 0063c1c0:FUN_0063c1c0 009f4280:FUN_009f4280 00779b40:RoomTransition::Update 00779b40:RoomTransition::Update 00779b40:RoomTransition::Update 0077b020:FUN_0077b020 +00b60710 HeadUp 0075af10:Entity_Player::GetCostumeNullPos 0077b020:FUN_0077b020 0077b020:FUN_0077b020 00779b40:RoomTransition::Update 00779b40:RoomTransition::Update 00779b40:RoomTransition::Update 004e5170:NpcAI::ENTITY_WHIPPER 004e5170:NpcAI::ENTITY_WHIPPER 00525650:NpcAI::ENTITY_DOPLE 0063c1c0:FUN_0063c1c0 009f4280:Weapon::UpdateHeadChargeAnimation 004e5170:NpcAI::ENTITY_WHIPPER 00779b40:RoomTransition::Update 00779b40:RoomTransition::Update 00779b40:RoomTransition::Update +00b60718 HeadRight 0075af10:Entity_Player::GetCostumeNullPos 00779b40:RoomTransition::Update 0077b020:FUN_0077b020 0077b020:FUN_0077b020 00779b40:RoomTransition::Update 00779b40:RoomTransition::Update 00779b40:RoomTransition::Update 004e5170:NpcAI::ENTITY_WHIPPER 0063c1c0:FUN_0063c1c0 009f4280:Weapon::UpdateHeadChargeAnimation 00779b40:RoomTransition::Update 00779b40:RoomTransition::Update 00779b40:RoomTransition::Update 0077b020:FUN_0077b020 00b60724 HeadLaughDown 004e5170:NpcAI::ENTITY_WHIPPER 004e5170:NpcAI::ENTITY_WHIPPER 004e5170:NpcAI::ENTITY_WHIPPER 004e5170:NpcAI::ENTITY_WHIPPER 004e5170:NpcAI::ENTITY_WHIPPER 004e5170:NpcAI::ENTITY_WHIPPER 00b60734 HeadLaughRight 004e5170:NpcAI::ENTITY_WHIPPER 004e5170:NpcAI::ENTITY_WHIPPER 004e5170:NpcAI::ENTITY_WHIPPER 004e5170:NpcAI::ENTITY_WHIPPER 00b60744 AttackHori 004f2c20:NpcAI::ENTITY_GOAT 0055ad20:NpcAI::ENTITY_BUBBLES 004ea3d0:NpcAI::ENTITY_VIS_FATTY 00538b70:NpcAI::ENTITY_SKINNY 00538b70:NpcAI::ENTITY_SKINNY 00508f40:NpcAI::ENTITY_GAPER 004e5170:NpcAI::ENTITY_WHIPPER 005041d0:NpcAI::ENTITY_BIG_BONY 004f2c20:NpcAI::ENTITY_GOAT 005041d0:NpcAI::ENTITY_BIG_BONY 00538b70:NpcAI::ENTITY_SKINNY 00538b70:NpcAI::ENTITY_SKINNY 00552793 00b60750 No-Spikes 00521ab0:NpcAI::ENTITY_POKY 004e6570:NpcAI::ENTITY_GRUDGE 005153b0:NpcAI::ENTITY_GUTS 005153b0:NpcAI::ENTITY_GUTS 005153b0:NpcAI::ENTITY_GUTS -00b6075c AttackUp 00538b70:NpcAI::ENTITY_SKINNY 009680d0:FUN_009680d0 004e8380:NpcAI::ENTITY_BABY_BEGOTTEN 004e5170:NpcAI::ENTITY_WHIPPER 004e8380:NpcAI::ENTITY_BABY_BEGOTTEN 00b618ac 00b60af4 -00b60768 AttackDown 00538b70:NpcAI::ENTITY_SKINNY 009680d0:FUN_009680d0 004e8380:NpcAI::ENTITY_BABY_BEGOTTEN 004e5170:NpcAI::ENTITY_WHIPPER 004e8380:NpcAI::ENTITY_BABY_BEGOTTEN 00b6189c 00b60afc +00b6075c AttackUp 00538b70:NpcAI::ENTITY_SKINNY 009680d0:Entity_Knife::SetAttackAnimation 004e8380:NpcAI::ENTITY_BABY_BEGOTTEN 004e5170:NpcAI::ENTITY_WHIPPER 004e8380:NpcAI::ENTITY_BABY_BEGOTTEN 00b618ac 00b60af4 +00b60768 AttackDown 00538b70:NpcAI::ENTITY_SKINNY 009680d0:Entity_Knife::SetAttackAnimation 004e8380:NpcAI::ENTITY_BABY_BEGOTTEN 004e5170:NpcAI::ENTITY_WHIPPER 004e8380:NpcAI::ENTITY_BABY_BEGOTTEN 00b6189c 00b60afc 00b6077c gfx/Monsters/repentance/grudge_retracted.png 004e6570:NpcAI::ENTITY_GRUDGE 004e6570:NpcAI::ENTITY_GRUDGE 00b607bc ChaseUp 004e8380:NpcAI::ENTITY_BABY_BEGOTTEN 004e8380:NpcAI::ENTITY_BABY_BEGOTTEN 00b607c4 ChaseDown 004e8380:NpcAI::ENTITY_BABY_BEGOTTEN 004e8380:NpcAI::ENTITY_BABY_BEGOTTEN @@ -4284,7 +4284,7 @@ z 00b6093c WalkLeft2 00b60b20 00b60948 Attack11 00c5c31c 00b6095c WalkDown2 004efb90:NpcAI::ENTITY_CLICKETY_CLACK 00b60b2c 004f20ef -00b60968 HeadLeft 0075af10:Entity_Player::GetCostumeNullPos 00779b40:RoomTransition::Update 0077b020:FUN_0077b020 0077b020:FUN_0077b020 00779b40:RoomTransition::Update 00779b40:RoomTransition::Update 00779b40:RoomTransition::Update 0063c1c0:FUN_0063c1c0 009f4280:FUN_009f4280 00779b40:RoomTransition::Update 00779b40:RoomTransition::Update 00779b40:RoomTransition::Update 0077b020:FUN_0077b020 00b60b30 +00b60968 HeadLeft 0075af10:Entity_Player::GetCostumeNullPos 00779b40:RoomTransition::Update 0077b020:FUN_0077b020 0077b020:FUN_0077b020 00779b40:RoomTransition::Update 00779b40:RoomTransition::Update 00779b40:RoomTransition::Update 0063c1c0:FUN_0063c1c0 009f4280:Weapon::UpdateHeadChargeAnimation 00779b40:RoomTransition::Update 00779b40:RoomTransition::Update 00779b40:RoomTransition::Update 0077b020:FUN_0077b020 00b60b30 00b6097c WalkRight2 00b60988 StunnedLoop 004efb90:NpcAI::ENTITY_CLICKETY_CLACK 00b60994 FlameIdle 004efb90:NpcAI::ENTITY_CLICKETY_CLACK @@ -4297,7 +4297,7 @@ z 00b609e8 AttackLeft2 00b60b10 00b609f4 AttackUp2 00b60b14 00b60a00 Collapse 00573030:NpcAI::ENTITY_CLUTCH 00573030:NpcAI::ENTITY_CLUTCH 004efb90:NpcAI::ENTITY_CLICKETY_CLACK 0070d3f0:GridEntity_Door::LoadSprite 00573030:NpcAI::ENTITY_CLUTCH -00b60a0c AttackLeft 009680d0:FUN_009680d0 005562b0:NpcAI::ENTITY_PEEPER_FATTY 00538b70:NpcAI::ENTITY_SKINNY 00538b70:NpcAI::ENTITY_SKINNY 00b60af0 +00b60a0c AttackLeft 009680d0:Entity_Knife::SetAttackAnimation 005562b0:NpcAI::ENTITY_PEEPER_FATTY 00538b70:NpcAI::ENTITY_SKINNY 00538b70:NpcAI::ENTITY_SKINNY 00b60af0 00b60a18 DashBegin 004f2c20:NpcAI::ENTITY_GOAT 00b60a24 Chain 004f4730:NpcAI::ENTITY_BALL_AND_CHAIN 00b60a2c AttackRight2 00b60b18 @@ -4488,7 +4488,7 @@ z 00b61720 Shake00 0055fb60:NpcAI::ENTITY_SUB_HORF 00b618d8 00b61728 polty lost target rock (failed to pick up)\n 0055d230:NpcAI::ENTITY_POLTY 00b61754 TeleLoop 0055e876 0055e8b4 0055e86f -00b61760 Pickup 00793970:FUN_00793970 007ab130:Entity_Player::AnimatePickup 007a3430:FUN_007a3430 007a3430:FUN_007a3430 007a23a0:LuaEngine::RunScript 007a23a0:LuaEngine::RunScript 007a23a0:LuaEngine::RunScript 007a23a0:LuaEngine::RunScript 007a23a0:LuaEngine::RunScript 007a23a0:LuaEngine::RunScript 008318a0:FUN_008318a0 008318a0:FUN_008318a0 008318a0:FUN_008318a0 008318a0:FUN_008318a0 008318a0:FUN_008318a0 008318a0:FUN_008318a0 008318a0:FUN_008318a0 008318a0:FUN_008318a0 008318a0:FUN_008318a0 00791a40:FUN_00791a40 005911b0:FUN_005911b0 005911b0:FUN_005911b0 006e8ae0:Entity_Pickup::HandleCollision 006e8ae0:Entity_Pickup::HandleCollision 0092f1c0:FUN_0092f1c0 007bf490:Entity_Player::IsHoldingItem 006e8ae0:Entity_Pickup::HandleCollision 007ab130:Entity_Player::AnimatePickup 007bf490:Entity_Player::IsHoldingItem 006e3940:Entity_Pickup::Update 0055e172 0055e1b0 0055ecbd 0055e16a 005ba23c 007b757c 007b82bc +00b61760 Pickup 00793970:FUN_00793970 007ab130:Entity_Player::AnimatePickup 007a3430:FUN_007a3430 007a3430:FUN_007a3430 007a23a0:LuaEngine::RunScript 007a23a0:LuaEngine::RunScript 007a23a0:LuaEngine::RunScript 007a23a0:LuaEngine::RunScript 007a23a0:LuaEngine::RunScript 007a23a0:LuaEngine::RunScript 008318a0:Game::update_pending_pickup_animations 008318a0:Game::update_pending_pickup_animations 008318a0:Game::update_pending_pickup_animations 008318a0:Game::update_pending_pickup_animations 008318a0:Game::update_pending_pickup_animations 008318a0:Game::update_pending_pickup_animations 008318a0:Game::update_pending_pickup_animations 008318a0:Game::update_pending_pickup_animations 008318a0:Game::update_pending_pickup_animations 00791a40:FUN_00791a40 005911b0:FUN_005911b0 005911b0:FUN_005911b0 006e8ae0:Entity_Pickup::HandleCollision 006e8ae0:Entity_Pickup::HandleCollision 0092f1c0:FUN_0092f1c0 007bf490:Entity_Player::IsHoldingItem 006e8ae0:Entity_Pickup::HandleCollision 007ab130:Entity_Player::AnimatePickup 007bf490:Entity_Player::IsHoldingItem 006e3940:Entity_Pickup::Update 0055e172 0055e1b0 0055ecbd 0055e16a 005ba23c 007b757c 007b82bc 00b61768 Shake04 00b618e8 00b61770 Shake03 00b618e4 00b61778 Shake02 00b618e0 @@ -4657,7 +4657,7 @@ z 00b6223c Attack2BLoop 0058ec70:NpcAI::ENTITY_SIREN_main 00b6224c Attack2BStart 0058ec70:NpcAI::ENTITY_SIREN_main 00b6225c SlashRight 0058ec70:NpcAI::ENTITY_SIREN_main 0058ec70:NpcAI::ENTITY_SIREN_main 0058ec70:NpcAI::ENTITY_SIREN_main 0058ec70:NpcAI::ENTITY_SIREN_main -00b62268 PlayerPickupSparkle 005b39d0:Entity_Player::UseActiveItem 005b39d0:Entity_Player::UseActiveItem 007abf80:FUN_007abf80 007a3430:FUN_007a3430 007a3430:FUN_007a3430 005d2a70:FUN_005d2a70 007a23a0:LuaEngine::RunScript 007a23a0:LuaEngine::RunScript 007a23a0:LuaEngine::RunScript 007a23a0:LuaEngine::RunScript 007a23a0:LuaEngine::RunScript 007a23a0:LuaEngine::RunScript 008318a0:FUN_008318a0 008318a0:FUN_008318a0 008318a0:FUN_008318a0 008318a0:FUN_008318a0 008318a0:FUN_008318a0 008318a0:FUN_008318a0 008318a0:FUN_008318a0 008318a0:FUN_008318a0 008318a0:FUN_008318a0 00791a40:FUN_00791a40 00791a40:FUN_00791a40 00791a40:FUN_00791a40 005911b0:FUN_005911b0 005911b0:FUN_005911b0 007915a0:Entity_Player::AddActiveCharge 006e8ae0:Entity_Pickup::HandleCollision 006e8ae0:Entity_Pickup::HandleCollision 006e8ae0:Entity_Pickup::HandleCollision 007a8350:Entity_Player::TriggerNewRoom_TemporaryEffects 005c7ef0:FUN_005c7ef0 0092f1c0:FUN_0092f1c0 006073f0:FUN_006073f0 00794e50:FUN_00794e50 007ac7e0:Entity_Player::DischargeActiveItem 007ac7e0:Entity_Player::DischargeActiveItem 006e8ae0:Entity_Pickup::HandleCollision 0061da10:Entity_Familiar::Update 005b3cd4 005b615d 005b46e5 005b3ea9 005b40de 005b83b3 005b3f06 005b5450 005b65a8 005b8b7d 005b71d8 005b7f6b 005bce89 005bdf19 005bbaf0 005b7f11 005b8f3d 005b922e 005b93be 005b9c1a 005b9d50 005b9e6f 005ba237 005ba560 005bbe14 005bc055 005bc2d8 005bc322 005bc496 005bc88f 005bd144 005bd686 005bd7c5 005bd920 005be690 005bfaa6 005c3341 005c0926 005c0e25 005c14dd 005c26db 005c27ba 005c286e 005c2d47 005c2e9c 005c3286 005c33d7 005c34a1 005c38f2 005c3c68 005c54de 005c330a 005c47be 005c4859 005c4c35 005c4c51 005c4c6b 005c5017 005c5049 005c5922 005c63d4 005c6e78 005c6ea9 005c6f13 005c6f91 007b7577 007b82b7 +00b62268 PlayerPickupSparkle 005b39d0:Entity_Player::UseActiveItem 005b39d0:Entity_Player::UseActiveItem 007abf80:FUN_007abf80 007a3430:FUN_007a3430 007a3430:FUN_007a3430 005d2a70:FUN_005d2a70 007a23a0:LuaEngine::RunScript 007a23a0:LuaEngine::RunScript 007a23a0:LuaEngine::RunScript 007a23a0:LuaEngine::RunScript 007a23a0:LuaEngine::RunScript 007a23a0:LuaEngine::RunScript 008318a0:Game::update_pending_pickup_animations 008318a0:Game::update_pending_pickup_animations 008318a0:Game::update_pending_pickup_animations 008318a0:Game::update_pending_pickup_animations 008318a0:Game::update_pending_pickup_animations 008318a0:Game::update_pending_pickup_animations 008318a0:Game::update_pending_pickup_animations 008318a0:Game::update_pending_pickup_animations 008318a0:Game::update_pending_pickup_animations 00791a40:FUN_00791a40 00791a40:FUN_00791a40 00791a40:FUN_00791a40 005911b0:FUN_005911b0 005911b0:FUN_005911b0 007915a0:Entity_Player::AddActiveCharge 006e8ae0:Entity_Pickup::HandleCollision 006e8ae0:Entity_Pickup::HandleCollision 006e8ae0:Entity_Pickup::HandleCollision 007a8350:Entity_Player::TriggerNewRoom_TemporaryEffects 005c7ef0:FUN_005c7ef0 0092f1c0:FUN_0092f1c0 006073f0:FUN_006073f0 00794e50:FUN_00794e50 007ac7e0:Entity_Player::DischargeActiveItem 007ac7e0:Entity_Player::DischargeActiveItem 006e8ae0:Entity_Pickup::HandleCollision 0061da10:Entity_Familiar::Update 005b3cd4 005b615d 005b46e5 005b3ea9 005b40de 005b83b3 005b3f06 005b5450 005b65a8 005b8b7d 005b71d8 005b7f6b 005bce89 005bdf19 005bbaf0 005b7f11 005b8f3d 005b922e 005b93be 005b9c1a 005b9d50 005b9e6f 005ba237 005ba560 005bbe14 005bc055 005bc2d8 005bc322 005bc496 005bc88f 005bd144 005bd686 005bd7c5 005bd920 005be690 005bfaa6 005c3341 005c0926 005c0e25 005c14dd 005c26db 005c27ba 005c286e 005c2d47 005c2e9c 005c3286 005c33d7 005c34a1 005c38f2 005c3c68 005c54de 005c330a 005c47be 005c4859 005c4c35 005c4c51 005c4c6b 005c5017 005c5049 005c5922 005c63d4 005c6e78 005c6ea9 005c6f13 005c6f91 007b7577 007b82b7 00b6227c Recall 0058ec70:NpcAI::ENTITY_SIREN_main 00b622ac TransitionDive 00592460:FUN_00592460 00b622bc Sound3 00592460:FUN_00592460 00592460:FUN_00592460 @@ -4871,7 +4871,7 @@ z 00b633f8 gfx/Effects/Effect_062_GroundBreakCorpse.png 005cea20 00b63428 gfx/Effects/Effect_062_GroundBreakCorpse2.png 005cea50 00b63458 gfx/Effects/Effect_BloodDroplets.png 005cdb20:Entity_Effect::Init -00b63480 Droplets 00973c60:FUN_00973c60 005cdb20:Entity_Effect::Init +00b63480 Droplets 00973c60:Entity_Laser::update_laser 005cdb20:Entity_Effect::Init 00b6348c IdleQuick 005cdb20:Entity_Effect::Init 00b63498 gfx/Effects/IsaacCarpet_Barren.png 005cdb20:Entity_Effect::Init 00b634c8 WormHori 005cdb20:Entity_Effect::Init 005f6cf4 @@ -4898,7 +4898,7 @@ z 00b636a4 Bone02 00c5c380 00b636ac Flying 0061b8c0:FUN_0061b8c0 0061b8c0:FUN_0061b8c0 0061b8c0:FUN_0061b8c0 006424d0:FUN_006424d0 006424d0:FUN_006424d0 006424d0:FUN_006424d0 006424d0:FUN_006424d0 005d1c10 006051b6 00b636b4 Broken 005d2a70:FUN_005d2a70 00711780:GridEntity_Lock::BeginBatches 00664560:Entity_Slot::TakeDamage 00664560:Entity_Slot::TakeDamage 005d2a70:FUN_005d2a70 00664560:Entity_Slot::TakeDamage 0065d950:Entity_Slot::Update 005fcff2 -00b636bc ShopIdle 005d2a70:FUN_005d2a70 006e2570:FUN_006e2570 +00b636bc ShopIdle 005d2a70:FUN_005d2a70 006e2570:Entity_Pickup::update_price_sprite 00b636c8 Carry 005d2a70:FUN_005d2a70 00b636d0 gfx/promo/gfuel/effects/explosion3.anm2 005d48c1 00b636f8 GFuelExplosion 005d4ca2 @@ -4924,14 +4924,14 @@ z 00b6381c SmallBlood%02u 005e823a 005e826d 005eb25b 005eb28e 00b6382c Blood%02u 005e82a5 005eb2c6 00b63838 BigBlood%02u 005e82da 005eb2fb -00b63848 rubble_alt 0070c000:FUN_0070c000 0070c000:FUN_0070c000 005ed7a4 005ed795 0071a2d8 0071a2f8 +00b63848 rubble_alt 0070c000:Entity::DestroyRockGridAt 0070c000:Entity::DestroyRockGridAt 005ed7a4 005ed795 0071a2d8 0071a2f8 00b63854 Particle 005ee0b9 005ffed4 00b63860 Size1BloodStains 005ef116 005ef1b5 005ef200 00b63874 Size2BloodStains 005ef133 005ef1b5 00b63888 Spotlight 005e9737 00b63894 Start 005ea3e2 005ea41c 005ea61c 005ea6e7 00a227dd 00b6389c Pentagram 005ed3bc -00b638a8 rubble 00719f80:GridEntity_Rock::BeginBatches 00718fe0:GridEntity_Rock::Update 0070c000:FUN_0070c000 0070c000:FUN_0070c000 005ed6c6 005ed7a4 005ed89d 00604ec5 00604f10 005ed79a 0071a38e 0071a377 +00b638a8 rubble 00719f80:GridEntity_Rock::BeginBatches 00718fe0:GridEntity_Rock::Update 0070c000:Entity::DestroyRockGridAt 0070c000:Entity::DestroyRockGridAt 005ed6c6 005ed7a4 005ed89d 00604ec5 00604f10 005ed79a 0071a38e 0071a377 00b638b0 IdleSmall 0084a3e0:PlayerHUD::RenderSpellQueue 008453c0:FUN_008453c0 005ef82d 00b638bc DeathSound 00782af0:FUN_00782af0 005efb80 00b638d0 UnsummonWomb 0071e9b0:GridEntity_Spikes::Update 0071eb30:FUN_0071eb30 0071eb30:FUN_0071eb30 0071dfc0:GridEntity_Spikes::BeginBatches 0071dfc0:GridEntity_Spikes::BeginBatches 0071dfc0:GridEntity_Spikes::BeginBatches 0071e9b0:GridEntity_Spikes::Update 0071eb30:FUN_0071eb30 005f3039 @@ -4955,7 +4955,7 @@ z 00b639ec PoofLoop 00600eb2 00b639f8 Dissappear 00949c20:Menu_Character::Update 00949c20:Menu_Character::Update 00838190:GenericPrompt::Disappear 00838190:GenericPrompt::Disappear 008576c0:FUN_008576c0 00838190:GenericPrompt::Disappear 00949c20:Menu_Character::Update 006015a8 00b63a0c CarryPos 00607620:Entity_Effect::Render -00b63a18 gfx/Items/Collectibles/questionmark.png 006e1e90:FUN_006e1e90 0060bae0:FUN_0060bae0 00842230:FUN_00842230 0083c8d0:FUN_0083c8d0 +00b63a18 gfx/Items/Collectibles/questionmark.png 006e1e90:Entity_Pickup::load_collectible_gfx 0060bae0:FUN_0060bae0 00842230:FUN_00842230 0083c8d0:FUN_0083c8d0 00b63a40 DugUp 00605098 00b63a48 Success 00a838b0:FUN_00a838b0 00a82750:FUN_00a82750 0060587a 00b63c54 LocustPestilence @@ -4982,7 +4982,7 @@ z 00b63dbc _grey 0075b540:FUN_0075b540 00b63dc4 _shadow 00b63dcc [warn] Tried to add familiar %d to delayed again!\n 00613fe0:Entity_Familiar::AddToDelayed -00b63e00 FloatChargeSide 009f4280:FUN_009f4280 006142e0:Entity_Familiar::PlayChargeAnim 00b816e4 00b816ec +00b63e00 FloatChargeSide 009f4280:Weapon::UpdateHeadChargeAnimation 006142e0:Entity_Familiar::PlayChargeAnim 00b816e4 00b816ec 00b63e10 FloatChargeUp 006142e0:Entity_Familiar::PlayChargeAnim 00b816e8 00b63e20 FloatChargeDown 006142e0:Entity_Familiar::PlayChargeAnim 00b816f0 00b63e30 FloatSide 00613df0:Entity_Familiar::PlayFloatAnim 006174c0:FUN_006174c0 006174c0:FUN_006174c0 006196e0:FUN_006196e0 006196e0:FUN_006196e0 00b64684 00b6468c @@ -5046,7 +5046,7 @@ z 00b6426c gfx/familiar/familiar_125_lilspewer_yellow.png 0063b240:FUN_0063b240 00b64498 00b6429c FlyLeft 0063c1c0:FUN_0063c1c0 0063c1c0:FUN_0063c1c0 00b642a4 FlyRight 0063c1c0:FUN_0063c1c0 -00b642b0 Entity_Familiar::ThrowDip: couldn't find a candidate for removal, remaining: %d\n 00639000:FUN_00639000 +00b642b0 Entity_Familiar::ThrowDip: couldn't find a candidate for removal, remaining: %d\n 00639000:Entity_Familiar::ThrowDip 00b64304 gfx/familiar/familiar_125_lilspewer.png 0063b240:FUN_0063b240 0063b240:FUN_0063b240 00b64488 00b6432c gfx/familiar/familiar_125_lilspewer_white.png 00b6448c 00b6435c gfx/familiar/familiar_125_lilspewer_red.png 00b64490 @@ -5060,7 +5060,7 @@ z 00b64410 animation= 0072b230:FUN_0072b230 0064aab0:FUN_0064aab0 00b6441c GrabLoop 0064bfa0:FUN_0064bfa0 0064bfa0:FUN_0064bfa0 0064bfa0:FUN_0064bfa0 00b64430 hungry_%d.png 0064a830:FUN_0064a830 00647170:FUN_00647170 -00b64440 gfx/tears_brokenbone.png 00676be0:FUN_00676be0 0096ae70:FUN_0096ae70 0096ae70:FUN_0096ae70 0096ae70:FUN_0096ae70 009fa450:FUN_009fa450 00649290:FUN_00649290 +00b64440 gfx/tears_brokenbone.png 00676be0:Entity_Tear::UpdateBoneTear 0096ae70:FUN_0096ae70 0096ae70:FUN_0096ae70 0096ae70:FUN_0096ae70 009fa450:FUN_009fa450 00649290:FUN_00649290 00b6445c anm2= 0072b230:FUN_0072b230 0064aab0:FUN_0064aab0 00b64464 spritesheet= 0072b230:FUN_0072b230 0064aab0:FUN_0064aab0 00b649f8 gfx/bone_projectile_holy.png @@ -5071,7 +5071,7 @@ z 00b64a54 RegularTear%d 00677780:Entity_Tear::ResetSpriteScale 00677780:Entity_Tear::ResetSpriteScale 00b64a68 ReGenProjectile 00b64a78 Fortune_Seeds 0065d070:FUN_0065d070 -00b64a88 Trinket ID out of bounds!\n 006bbdc0:Entity_Pickup::Update 0071b1c0:GridEntity_Rock::TrySpawnLadder 007fb250:Room::SpawnClearAward 0071b410:FUN_0071b410 0071b410:FUN_0071b410 006627e0:Entity_Slot::HandleCollision 006627e0:Entity_Slot::HandleCollision 006627e0:Entity_Slot::HandleCollision 006627e0:Entity_Slot::HandleCollision 00711bb0:FUN_00711bb0 007a1090:Entity_Player::TriggerDeath 007a1090:Entity_Player::TriggerDeath 006e8ae0:Entity_Pickup::HandleCollision 006e8ae0:Entity_Pickup::HandleCollision 006e8ae0:Entity_Pickup::HandleCollision 007a8fd0:Entity_Player::TriggerRoomClear 006e84d0:FUN_006e84d0 0073e0a0:Level::generate_greed 0073e0a0:Level::generate_greed 009be2a0:FUN_009be2a0 009be3e0:PlayerManager::RandomTrinketOwner 006ddcd0:Pickup_PickVariant 0065cf80:Entity_Player::GetTrinketRNG 007dc2d0:FUN_007dc2d0 007dc2d0:FUN_007dc2d0 +00b64a88 Trinket ID out of bounds!\n 006bbdc0:Entity_Pickup::Update 0071b1c0:GridEntity_Rock::TrySpawnLadder 007fb250:Room::SpawnClearAward 0071b410:FUN_0071b410 0071b410:FUN_0071b410 006627e0:Entity_Slot::HandleCollision 006627e0:Entity_Slot::HandleCollision 006627e0:Entity_Slot::HandleCollision 006627e0:Entity_Slot::HandleCollision 00711bb0:FUN_00711bb0 007a1090:Entity_Player::TriggerDeath 007a1090:Entity_Player::TriggerDeath 006e8ae0:Entity_Pickup::HandleCollision 006e8ae0:Entity_Pickup::HandleCollision 006e8ae0:Entity_Pickup::HandleCollision 007a8fd0:Entity_Player::TriggerRoomClear 006e84d0:Entity_Pickup::CollectTrinket 0073e0a0:Level::generate_greed 0073e0a0:Level::generate_greed 009be2a0:FUN_009be2a0 009be3e0:PlayerManager::RandomTrinketOwner 006ddcd0:Pickup_PickVariant 0065cf80:Entity_Player::GetTrinketRNG 007dc2d0:_Entity_Player::SpawnTrinketRandomPickup 007dc2d0:_Entity_Player::SpawnTrinketRandomPickup 00b64aa4 CoinJam4 00b64c48 00b64ab0 Prize 0065d200:Entity_Slot::Init 0065d200:Entity_Slot::Init 00665630:FUN_00665630 0065d950:Entity_Slot::Update 0065d950:Entity_Slot::Update 0065d950:Entity_Slot::Update 0065d950:Entity_Slot::Update 0065d950:Entity_Slot::Update 0065d950:Entity_Slot::Update 0065d950:Entity_Slot::Update 0065d950:Entity_Slot::Update 0065d950:Entity_Slot::Update 0065d950:Entity_Slot::Update 0065d950:Entity_Slot::Update 0065d950:Entity_Slot::Update 0065d950:Entity_Slot::Update 0065d950:Entity_Slot::Update 0065d950:Entity_Slot::Update 0065d950:Entity_Slot::Update 0065d950:Entity_Slot::Update 0065d950:Entity_Slot::Update 0065d950:Entity_Slot::Update 0065d950:Entity_Slot::Update 0065d950:Entity_Slot::Update 0065d950:Entity_Slot::Update 0065d950:Entity_Slot::Update 0065d950:Entity_Slot::Update 0065d950:Entity_Slot::Update 0065d950:Entity_Slot::Update 0065d950:Entity_Slot::Update 0065d950:Entity_Slot::Update 00b64ab8 Shell1Prize 00b64c30 @@ -5144,7 +5144,7 @@ z 00b65124 WaterSurfaceV2 00b1f3ac 00b65134 ***************************************\n 00680080:FUN_00680080 00b65160 Hallucination 00b1f390 -00b65170 Background 009b31c0:FUN_009b31c0 009b31c0:FUN_009b31c0 006998d0:FUN_006998d0 008d0fd0:FUN_008d0fd0 008d0fd0:FUN_008d0fd0 008ef840:FUN_008ef840 008ef840:FUN_008ef840 008ef560:FUN_008ef560 008ef560:FUN_008ef560 008ed090:FUN_008ed090 0070d3f0:GridEntity_Door::LoadSprite 0070c5c0:GridEntity_Door::Update 008d0fd0:FUN_008d0fd0 008ed090:FUN_008ed090 008ef560:FUN_008ef560 008ef840:FUN_008ef840 009b31c0:FUN_009b31c0 00b1f394 +00b65170 Background 009b31c0:FUN_009b31c0 009b31c0:FUN_009b31c0 006998d0:FUN_006998d0 008d0fd0:FUN_008d0fd0 008d0fd0:FUN_008d0fd0 008ef840:FUN_008ef840 008ef840:FUN_008ef840 008ef560:RevivePlayerMenu::Init 008ef560:RevivePlayerMenu::Init 008ed090:FUN_008ed090 0070d3f0:GridEntity_Door::LoadSprite 0070c5c0:GridEntity_Door::Update 008d0fd0:FUN_008d0fd0 008ed090:FUN_008ed090 008ef560:RevivePlayerMenu::Init 008ef840:FUN_008ef840 009b31c0:FUN_009b31c0 00b1f394 00b6517c WaterOverlay 00b1f398 00b6518c HeatWave 00b1f3a0 00b65198 resources/shaders/ @@ -5189,7 +5189,7 @@ z 00b655ac Initialize Water Surface Shader\n 00b655d0 water 00b655d8 ClipPlane 00683060:apply_sprite_shader_params -00b655e4 PopRenderTarget: stack is empty!\n 009a3ac0:FUN_009a3ac0 0098b5e0:FUN_0098b5e0 006836c0:FUN_006836c0 00982100:FUN_00982100 008318a0:FUN_008318a0 00830950:FUN_00830950 00820fd0:FUN_00820fd0 004186c0:FUN_004186c0 008f74c0:FUN_008f74c0 0080ea80:FUN_0080ea80 00826ae0:FUN_00826ae0 00825de0:FUN_00825de0 00825de0:FUN_00825de0 009dc830:FUN_009dc830 +00b655e4 PopRenderTarget: stack is empty!\n 009a3ac0:FUN_009a3ac0 0098b5e0:Minimap::refresh_room_icons 006836c0:pop_render_target 00982100:FUN_00982100 008318a0:Game::update_pending_pickup_animations 00830950:FUN_00830950 00820fd0:FUN_00820fd0 004186c0:FUN_004186c0 008f74c0:FUN_008f74c0 0080ea80:FUN_0080ea80 00826ae0:FUN_00826ae0 00825de0:FUN_00825de0 00825de0:FUN_00825de0 009dc830:FUN_009dc830 00b65608 SteamCloudFile::Write() exeeds max buffer size limits! Current Buffer Size = %u, write size = %u\n 00683c10:FUN_00683c10 00b65670 SteamCloudFile::Write() exceeds buffer size, expanding buffer size. Previous Buffer Size = %u, New Buffer Size = %u\n 00683c10:FUN_00683c10 00b656f0 TextureSize 00683060:apply_sprite_shader_params 00821950:FUN_00821950 0080f200:Room::Render 0080f200:Room::Render @@ -5495,7 +5495,7 @@ z 00b66ad4 homing_soul 00694680:FUN_00694680 00b66ae0 brimstone_soul 00694680:FUN_00694680 00b66af0 nodelirium 00694680:FUN_00694680 -00b66b04 ghost 00782af0:FUN_00782af0 00782af0:FUN_00782af0 007d87a0:FUN_007d87a0 007afc20:FUN_007afc20 007bebb0:FUN_007bebb0 00694680:FUN_00694680 +00b66b04 ghost 00782af0:FUN_00782af0 00782af0:FUN_00782af0 007d87a0:FUN_007d87a0 007afc20:Entity_Player::try_trigger_astral_projection 007bebb0:Entity_Player::update_player_skin 00694680:FUN_00694680 00b66b0c noreroll 00694680:FUN_00694680 00b66b18 cansacrifice 00694680:FUN_00694680 00b66b28 Could not find root node 'entities' in %s\n 006950c0:FUN_006950c0 @@ -5583,7 +5583,7 @@ z 00b67090 Could not find root node 'bosses' in %s\n 0069c420:FUN_0069c420 00b670c4 BombReturn 006a2050:Entity_Bomb::Init 00b670d8 DropSound 006a24d0:Entity_Bomb::Update 006e3940:Entity_Pickup::Update 006e3940:Entity_Pickup::Update 006e3940:Entity_Pickup::Update -00b670e8 sparks 00806c20:Game::Render 006a6f10:FUN_006a6f10 +00b670e8 sparks 00806c20:Game::Render 006a6f10:Entity_Bomb::update_sparks 00b671c8 e%d.%d 006a7f80:FUN_006a7f80 00b671d8 Called PlayerCollideWithGrid with Entity type != Entity_Player\n 006ab440:FUN_006ab440 00727430:FUN_00727430 00b67218 Entity TakeDamage should not be called for Entity Player! 006ace60:Entity::TakeDamage @@ -5643,14 +5643,14 @@ z 00b678ec gfx/promo/gfuel/trophy.anm2 006e02f0:Entity_Pickup::Init 00b67908 gfx/promo/gfuel/effects/explosion4.anm2 006e02f0:Entity_Pickup::Init 006e3940:Entity_Pickup::Update 00b67930 [warn] No sprite for Pickup variant %d\n 006e02f0:Entity_Pickup::Init -00b67958 NumbersRed 006e2570:FUN_006e2570 006e2570:FUN_006e2570 -00b67964 NumbersWhite 006e2570:FUN_006e2570 006e2570:FUN_006e2570 +00b67958 NumbersRed 006e2570:Entity_Pickup::update_price_sprite 006e2570:Entity_Pickup::update_price_sprite +00b67964 NumbersWhite 006e2570:Entity_Pickup::update_price_sprite 006e2570:Entity_Pickup::update_price_sprite 00b67974 AppearFast 00866960:FUN_00866960 006e3940:Entity_Pickup::Update 006e3940:Entity_Pickup::Update 006e3940:Entity_Pickup::Update 006e3940:Entity_Pickup::Update 006e3020:Entity_Pickup::AppearFast 00b67980 IdlePanic 006e3940:Entity_Pickup::Update 00b6798c gfx/Items/Pick Ups/Pickup_005_Chests_coinslot.png 006e21f0:Entity_Pickup::UpdateSprite 00b679c0 gfx/Items/Pick Ups/dirty_chest_coinslot.png 006e21f0:Entity_Pickup::UpdateSprite 00b679ec gfx/Items/Pick Ups/mega_chest_coinslot.png 006e21f0:Entity_Pickup::UpdateSprite -00b67a18 Hearts 006e2570:FUN_006e2570 00866960:FUN_00866960 006e2570:FUN_006e2570 +00b67a18 Hearts 006e2570:Entity_Pickup::update_price_sprite 00866960:FUN_00866960 006e2570:Entity_Pickup::update_price_sprite 00b67a20 FASTER UP! 00b67e64 00b67a2c GENEROSITY UP! 00b67e68 00b67a3c MISERY UP! 00b67e6c @@ -5710,12 +5710,12 @@ z 00b67d7c itemshadow 006ed580:FUN_006ed580 00b67d88 item taken without exchange\n 006e8ae0:Entity_Pickup::HandleCollision 00b67da8 #QUESTION_MARKS_NAME 006e8ae0:Entity_Pickup::HandleCollision 008471c0:FUN_008471c0 008471c0:FUN_008471c0 008471c0:FUN_008471c0 008471c0:FUN_008471c0 007c4180:Entity_Player::UsePill 007c4180:Entity_Player::UsePill 007c4180:Entity_Player::UsePill 008471c0:FUN_008471c0 008471c0:FUN_008471c0 -00b67dc0 PocketItems 006e8ae0:Entity_Pickup::HandleCollision 008471c0:FUN_008471c0 008471c0:FUN_008471c0 008471c0:FUN_008471c0 008471c0:FUN_008471c0 00724af0:FUN_00724af0 00724af0:FUN_00724af0 00724bd0:FUN_00724bd0 00724bd0:FUN_00724bd0 007c4180:Entity_Player::UsePill 007c4180:Entity_Player::UsePill 007c4180:Entity_Player::UsePill 007c4180:Entity_Player::UsePill +00b67dc0 PocketItems 006e8ae0:Entity_Pickup::HandleCollision 008471c0:FUN_008471c0 008471c0:FUN_008471c0 008471c0:FUN_008471c0 008471c0:FUN_008471c0 00724af0:PocketItemConfig::GetName 00724af0:PocketItemConfig::GetName 00724bd0:FUN_00724bd0 00724bd0:FUN_00724bd0 007c4180:Entity_Player::UsePill 007c4180:Entity_Player::UsePill 007c4180:Entity_Player::UsePill 007c4180:Entity_Player::UsePill 00b67dcc Empty 006ed580:FUN_006ed580 006ed580:FUN_006ed580 00b67ff0 EntityFactory cannot spawn Entity_Player.\n 006f0090:EntityFactory::Create 00b6801c itempools.xml 006f8140:FUN_006f8140 008f46f0:FUN_008f46f0 00b6802c Pixelation Surface 006f37e0:FUN_006f37e0 -00b68040 Invalid backwards path stage ID 007eb870:FUN_007eb870 00708050:Game::SaveBackwardsStage 00738340:FUN_00738340 00742ef0:FUN_00742ef0 +00b68040 Invalid backwards path stage ID 007eb870:Level::UpdateBackwardsPathStages 00708050:Game::SaveBackwardsStage 00738340:FUN_00738340 00742ef0:FUN_00742ef0 00b68060 Colormod Surface 006f37e0:FUN_006f37e0 00b68074 stages.xml 006f4740:Game::LoadConfigXmls 006f3c00:Game::ReloadStagesXmlOnLuaReset 00b68080 curses.xml 006f4740:Game::LoadConfigXmls 008f86c0:ModManager::LoadModCurses 006f3c00:Game::ReloadStagesXmlOnLuaReset @@ -5729,7 +5729,7 @@ z 00b6810c preload.xml 006f4740:Game::LoadConfigXmls 00b68118 common 006f4740:Game::LoadConfigXmls 00b68120 players.xml 006f3c00:Game::ReloadStagesXmlOnLuaReset 008f30d0:FUN_008f30d0 00952df0:FUN_00952df0 -00b6812c gfx/ui/Prompt_VictoryRun.png 00838380:FUN_00838380 +00b6812c gfx/ui/Prompt_VictoryRun.png 00838380:VictoryRunPrompt::Load 00b6814c Total entity spawn time: 006f4170:FUN_006f4170 00b68168 giantbook.xml 006f4740:Game::LoadConfigXmls 00b68178 Invalid target specified to Game::Fadeout()\n 006f5290:Game::Fadeout @@ -5866,7 +5866,7 @@ z 00b69274 Spikes%02u 0071dfc0:GridEntity_Spikes::BeginBatches 0071dfc0:GridEntity_Spikes::BeginBatches 00b69283 kes01 0071dfc0:GridEntity_Spikes::BeginBatches 0071dfc0:GridEntity_Spikes::BeginBatches 00b6928c WombSpikes03 0071dfc0:GridEntity_Spikes::BeginBatches 0071dfc0:GridEntity_Spikes::BeginBatches 0071dfc0:GridEntity_Spikes::BeginBatches 0071dfc0:GridEntity_Spikes::BeginBatches 0071dfc0:GridEntity_Spikes::BeginBatches 0071dfc0:GridEntity_Spikes::BeginBatches -00b6929c SummonPayment 006e2570:FUN_006e2570 0071dfc0:GridEntity_Spikes::BeginBatches 0071dfc0:GridEntity_Spikes::BeginBatches 0071dfc0:GridEntity_Spikes::BeginBatches +00b6929c SummonPayment 006e2570:Entity_Pickup::update_price_sprite 0071dfc0:GridEntity_Spikes::BeginBatches 0071dfc0:GridEntity_Spikes::BeginBatches 0071dfc0:GridEntity_Spikes::BeginBatches 00b692ac UnsummonPayment 0071eb30:FUN_0071eb30 0071eb30:FUN_0071eb30 0071dfc0:GridEntity_Spikes::BeginBatches 0071dfc0:GridEntity_Spikes::BeginBatches 0071dfc0:GridEntity_Spikes::BeginBatches 0071eb30:FUN_0071eb30 00b692e4 gfx/grid/grid_tnt.anm2 0071ee90:GridEntity_TNT::BeginBatches 00b69324 gfx/grid/trapdoor_mines.anm2 0071f630:GridEntity_TrapDoor::BeginBatches @@ -6082,7 +6082,7 @@ z 00b6a410 [warn] ChangeRoom() called with current room index\n 0073fc80:Level::ChangeRoom 00b6a444 failed to generate level too often, giving up\n 00742ef0:FUN_00742ef0 00740e10:Level::generate_dungeon 00b6a474 Found a candidate without leave door\n 0073fc80:Level::ChangeRoom -00b6a4a0 Level::get_target_slot: Could not find a valid door slot for room idx %d\n 0073da40:FUN_0073da40 +00b6a4a0 Level::get_target_slot: Could not find a valid door slot for room idx %d\n 0073da40:Level::GetTargetSlot 00b6a4f0 [warn] LevelGenerator could not find a required room (type=ROOM_DEFAULT, shape=%d, difficulty=%d-%d, doors=%s.\n 00739370:FUN_00739370 00b6a560 Level::load_room: could not choose a door from where to enter off grid room 0073e0a0:Level::generate_greed 00b6a5ac Map Generated in %d Loops\n 0074341b @@ -6127,7 +6127,7 @@ z 00b6ab88 [warn] Costume for item %d (%s) has no layers!\n 0075d1d0:Entity_Player::AddCostume 00b6abb8 Adding costume for %d (%s) which was added before and never removed.\n 0075d1d0:Entity_Player::AddCostume 00b6ac08 Costume %s supports skin color alts but no alt spritesheet could be found! (skin color %d)\n 0075bf00:Entity_Player::UpdateCostumes -00b6ac64 Could not load config for player type %d\n 007cba30:Entity_Player::UpdateCanShoot 007bbbd0:FUN_007bbbd0 0075bf00:Entity_Player::UpdateCostumes 007ae4b0:FUN_007ae4b0 007bc740:FUN_007bc740 +00b6ac64 Could not load config for player type %d\n 007cba30:Entity_Player::UpdateCanShoot 007bbbd0:FUN_007bbbd0 0075bf00:Entity_Player::UpdateCostumes 007ae4b0:FUN_007ae4b0 007bc740:Entity_Player::InitPostLevelInitStats 00b6ac90 item queue flush\n 0075e1d0:Entity_Player::FlushQueueItem 00b6aca4 swap (body) %d %d\n 00b6acb8 Adding collectible %d (%s) to player %d (%s) from pool %s\n 0075f0e0:Entity_Player::AddCollectible @@ -6138,28 +6138,28 @@ z 00b6ad40 swap (src body) %d %d\n 0075dc59 00b6ad58 Removing trinket %d (%s) from player %d (%s)\n 00771f60:Entity_Player::TryRemoveTrinket 00b6ad88 Adding trinket %d (%s) to player %d (%s)\n 00771d30:Entity_Player::AddTrinket -00b6adb4 Removing smelted trinket %d (%s) from player %d (%s)\n 00772260:FUN_00772260 00772260:FUN_00772260 -00b6adf0 Tried to remove smelted trinket with invalid trinket type (%d) \n 00772260:FUN_00772260 -00b6ae34 Glitch 007729d0:FUN_007729d0 007729d0:FUN_007729d0 007729d0:FUN_007729d0 00782af0:FUN_00782af0 00782af0:FUN_00782af0 007a4ba0:FUN_007a4ba0 007a4ba0:FUN_007a4ba0 00782af0:FUN_00782af0 007629ba +00b6adb4 Removing smelted trinket %d (%s) from player %d (%s)\n 00772260:Entity_Player::TryRemoveSmeltedTrinket 00772260:Entity_Player::TryRemoveSmeltedTrinket +00b6adf0 Tried to remove smelted trinket with invalid trinket type (%d) \n 00772260:Entity_Player::TryRemoveSmeltedTrinket +00b6ae34 Glitch 007729d0:Entity_Player::take_damage_impl 007729d0:Entity_Player::take_damage_impl 007729d0:Entity_Player::take_damage_impl 00782af0:FUN_00782af0 00782af0:FUN_00782af0 007a4ba0:FUN_007a4ba0 007a4ba0:FUN_007a4ba0 00782af0:FUN_00782af0 007629ba 00b6ae3c Shimmer 00779b40:RoomTransition::Update 0076092a 007b8099 -00b6ae44 FloatNoGlow 007729d0:FUN_007729d0 007c9ea0:Entity_Player::UpdateHeartDependentEffects 007c9ea0:Entity_Player::UpdateHeartDependentEffects 007a8350:Entity_Player::TriggerNewRoom_TemporaryEffects 007a8350:Entity_Player::TriggerNewRoom_TemporaryEffects 00794e50:FUN_00794e50 007cc200:FUN_007cc200 007cc200:FUN_007cc200 007cc200:FUN_007cc200 007cc200:FUN_007cc200 007cc200:FUN_007cc200 007cc200:FUN_007cc200 00762b8d -00b6ae50 FloatGlow 007c9ea0:Entity_Player::UpdateHeartDependentEffects 007c9ea0:Entity_Player::UpdateHeartDependentEffects 007a8350:Entity_Player::TriggerNewRoom_TemporaryEffects 007a8350:Entity_Player::TriggerNewRoom_TemporaryEffects 00794e50:FUN_00794e50 007cc200:FUN_007cc200 007cc200:FUN_007cc200 007cc200:FUN_007cc200 007cc200:FUN_007cc200 007cc200:FUN_007cc200 007cc200:FUN_007cc200 007cc200:FUN_007cc200 007cc200:FUN_007cc200 00762b65 -00b6ae5c GuardLeft 007729d0:FUN_007729d0 -00b6ae68 GuardUp 007729d0:FUN_007729d0 -00b6ae70 ShootingRight 007729d0:FUN_007729d0 -00b6ae80 ShootingDown 007729d0:FUN_007729d0 +00b6ae44 FloatNoGlow 007729d0:Entity_Player::take_damage_impl 007c9ea0:Entity_Player::UpdateHeartDependentEffects 007c9ea0:Entity_Player::UpdateHeartDependentEffects 007a8350:Entity_Player::TriggerNewRoom_TemporaryEffects 007a8350:Entity_Player::TriggerNewRoom_TemporaryEffects 00794e50:FUN_00794e50 007cc200:Entity_Player::init_player_type_state 007cc200:Entity_Player::init_player_type_state 007cc200:Entity_Player::init_player_type_state 007cc200:Entity_Player::init_player_type_state 007cc200:Entity_Player::init_player_type_state 007cc200:Entity_Player::init_player_type_state 00762b8d +00b6ae50 FloatGlow 007c9ea0:Entity_Player::UpdateHeartDependentEffects 007c9ea0:Entity_Player::UpdateHeartDependentEffects 007a8350:Entity_Player::TriggerNewRoom_TemporaryEffects 007a8350:Entity_Player::TriggerNewRoom_TemporaryEffects 00794e50:FUN_00794e50 007cc200:Entity_Player::init_player_type_state 007cc200:Entity_Player::init_player_type_state 007cc200:Entity_Player::init_player_type_state 007cc200:Entity_Player::init_player_type_state 007cc200:Entity_Player::init_player_type_state 007cc200:Entity_Player::init_player_type_state 007cc200:Entity_Player::init_player_type_state 007cc200:Entity_Player::init_player_type_state 00762b65 +00b6ae5c GuardLeft 007729d0:Entity_Player::take_damage_impl +00b6ae68 GuardUp 007729d0:Entity_Player::take_damage_impl +00b6ae70 ShootingRight 007729d0:Entity_Player::take_damage_impl +00b6ae80 ShootingDown 007729d0:Entity_Player::take_damage_impl 00b6ae90 Replacing smelted trinket %d (%s) from player %d (%s) with trinket %d (%s)\n 00772530:FUN_00772530 00b6aee0 Replacing trinket %d (%s) from player %d (%s) with trinket %d (%s)\n 00772530:FUN_00772530 -00b6af24 GuardRight 007729d0:FUN_007729d0 -00b6af30 GuardDown 007729d0:FUN_007729d0 -00b6af3c HeadUpShoot 0077b020:FUN_0077b020 0077b020:FUN_0077b020 009f4da0:FUN_009f4da0 00794e50:FUN_00794e50 00794e50:FUN_00794e50 009f4280:FUN_009f4280 -00b6af48 HeadRightShoot 0077b020:FUN_0077b020 0077b020:FUN_0077b020 009f4da0:FUN_009f4da0 00794e50:FUN_00794e50 00794e50:FUN_00794e50 009f4280:FUN_009f4280 +00b6af24 GuardRight 007729d0:Entity_Player::take_damage_impl +00b6af30 GuardDown 007729d0:Entity_Player::take_damage_impl +00b6af3c HeadUpShoot 0077b020:FUN_0077b020 0077b020:FUN_0077b020 009f4da0:FUN_009f4da0 00794e50:FUN_00794e50 00794e50:FUN_00794e50 009f4280:Weapon::UpdateHeadChargeAnimation +00b6af48 HeadRightShoot 0077b020:FUN_0077b020 0077b020:FUN_0077b020 009f4da0:FUN_009f4da0 00794e50:FUN_00794e50 00794e50:FUN_00794e50 009f4280:Weapon::UpdateHeadChargeAnimation 00b6af58 No Such State %d\n 0077b020:FUN_0077b020 -00b6af6c HeadLeftShoot 0077b020:FUN_0077b020 0077b020:FUN_0077b020 009f4da0:FUN_009f4da0 00794e50:FUN_00794e50 00794e50:FUN_00794e50 009f4280:FUN_009f4280 -00b6af7c ShootingLeft 007729d0:FUN_007729d0 -00b6af8c ShootingUp 007729d0:FUN_007729d0 -00b6af98 HeadDownShoot 009f4da0:FUN_009f4da0 009f4280:FUN_009f4280 0077b020:FUN_0077b020 0077b020:FUN_0077b020 00794e50:FUN_00794e50 00794e50:FUN_00794e50 -00b6afa8 hurt %d 007729d0:FUN_007729d0 +00b6af6c HeadLeftShoot 0077b020:FUN_0077b020 0077b020:FUN_0077b020 009f4da0:FUN_009f4da0 00794e50:FUN_00794e50 00794e50:FUN_00794e50 009f4280:Weapon::UpdateHeadChargeAnimation +00b6af7c ShootingLeft 007729d0:Entity_Player::take_damage_impl +00b6af8c ShootingUp 007729d0:Entity_Player::take_damage_impl +00b6af98 HeadDownShoot 009f4da0:FUN_009f4da0 009f4280:Weapon::UpdateHeadChargeAnimation 0077b020:FUN_0077b020 0077b020:FUN_0077b020 00794e50:FUN_00794e50 00794e50:FUN_00794e50 +00b6afa8 hurt %d 007729d0:Entity_Player::take_damage_impl 00b6afb0 ItemWalk 00782af0:FUN_00782af0 00b6afbc LightTravel 00782af0:FUN_00782af0 007abc10:Entity_Player::AnimateLightTravel 00b6afc8 HeadAnim 00782af0:FUN_00782af0 @@ -6184,7 +6184,7 @@ z 00b6b1b4 Pickup_Online 00793970:FUN_00793970 007ab130:Entity_Player::AnimatePickup 007bf490:Entity_Player::IsHoldingItem 007ab130:Entity_Player::AnimatePickup 007bf490:Entity_Player::IsHoldingItem 00b6b1c4 [Frame %d] Mega Mush Ending, starting Shrink Animation \n 00793970:FUN_00793970 00b6b200 Tractor 007aa850:Entity_Player::GetLaserOffset -00b6b210 gfx/ui/ui_cardspills.anm2 007ab6b0:Entity_Player::AnimateCard 009a1a30:FUN_009a1a30 008d42a0:FUN_008d42a0 +00b6b210 gfx/ui/ui_cardspills.anm2 007ab6b0:Entity_Player::AnimateCard 009a1a30:HUD::LoadGraphics 008d42a0:FUN_008d42a0 00b6b22c Collectible 007ab130:Entity_Player::AnimatePickup 00b6b238 Entity_Player::SetControllerId() Setting controller ID to %d, (Prev: %d) \n 007a6450:Entity_Player::SetControllerIndex 00b6b284 Action PillCard Triggered\n 007a3d30:FUN_007a3d30 @@ -6201,10 +6201,10 @@ z 00b6b380 Bad baby basic id %d 007bf040:Entity_Player::InitBabySkin 00b6b398 #STAT_%s_TEARS_%d 007c4180:Entity_Player::UsePill 00b6b3ac #STAT_%s_HP_%d 007c4180:Entity_Player::UsePill -00b6b3c0 Entity_Player::InitPostLevelInitStats -> Failed to find save data for player %llu, this will incorrectly use the local save data for this player!\n 007bc740:FUN_007bc740 +00b6b3c0 Entity_Player::InitPostLevelInitStats -> Failed to find save data for player %llu, this will incorrectly use the local save data for this player!\n 007bc740:Entity_Player::InitPostLevelInitStats 00b6b454 Dripping 007ba2b0:FUN_007ba2b0 007ba2b0:FUN_007ba2b0 00b6b460 Baby list is smaller than requested baby %d! 007bf040:Entity_Player::InitBabySkin -00b6b490 gfx/characters/costumes/NiceLilith.png 007bebb0:FUN_007bebb0 +00b6b490 gfx/characters/costumes/NiceLilith.png 007bebb0:Entity_Player::update_player_skin 00b6b4c4 Pill %d Effect Not Implemented!\n 007c4180:Entity_Player::UsePill 00b6b4ec #STAT_%s_SPEED_%d 007c4180:Entity_Player::UsePill 00b6b500 #STAT_%s_RANGE_%d 007c4180:Entity_Player::UsePill @@ -6256,7 +6256,7 @@ z 00b6becc music stopped playing\n 007e15a0:FUN_007e15a0 00b6bee8 Music::Crossfade: music already playing, only adjusting target volume.\n 007e1e70:MusicManager::Crossfade 00b6bf30 [warn] no music for ID %d (%s).\n 007e1d50:Music::Play 007e1e70:MusicManager::Crossfade -00b6bf54 RNG Seed is zero!\n 009eb880:Seeds::set_start_seed 009eb880:Seeds::set_start_seed 007db8d0:FUN_007db8d0 009eb980:Seeds::ForgetStageSeed 00793970:FUN_00793970 00793970:FUN_00793970 007c3980:FUN_007c3980 00633990:FUN_00633990 00633990:FUN_00633990 00633990:FUN_00633990 00633990:FUN_00633990 00633990:FUN_00633990 0074399a:FUN_0074399a 00743a6c:FUN_00743a6c 00743a03:FUN_00743a03 00743af9:FUN_00743af9 0060bae0:FUN_0060bae0 0062bb70:FUN_0062bb70 00743b49:FUN_00743b49 00743bf8:FUN_00743bf8 007bbbd0:FUN_007bbbd0 007bbbd0:FUN_007bbbd0 007bbbd0:FUN_007bbbd0 007bbbd0:FUN_007bbbd0 007bbbd0:FUN_007bbbd0 007bbbd0:FUN_007bbbd0 007bbbd0:FUN_007bbbd0 007bbbd0:FUN_007bbbd0 007bbbd0:FUN_007bbbd0 007bbbd0:FUN_007bbbd0 007bbbd0:FUN_007bbbd0 007dbba0:FUN_007dbba0 00743ba3:FUN_00743ba3 00743c43:FUN_00743c43 006fbc10:Game::Render 00743ced:FUN_00743ced 0074bce0:FUN_0074bce0 00733ca0:ItemPool::GetTrinket 00733ca0:ItemPool::GetTrinket 007dbc80:FUN_007dbc80 00743c93:FUN_00743c93 00813d90:FUN_00813d90 00813d90:FUN_00813d90 00813d90:FUN_00813d90 00813d90:FUN_00813d90 00813d90:FUN_00813d90 00813d90:FUN_00813d90 00813d90:FUN_00813d90 00813d90:FUN_00813d90 007dbd70:FUN_007dbd70 008e3db0:AnimationLayer::RenderFrame 0080bd20:FUN_0080bd20 006bbdc0:Entity_Pickup::Update 006bbdc0:Entity_Pickup::Update 006bbdc0:Entity_Pickup::Update 006bbdc0:Entity_Pickup::Update 0080bd20:FUN_0080bd20 006bbdc0:Entity_Pickup::Update 006bbdc0:Entity_Pickup::Update 006bbdc0:Entity_Pickup::Update 006bbdc0:Entity_Pickup::Update 006bbdc0:Entity_Pickup::Update 006bbdc0:Entity_Pickup::Update 006bbdc0:Entity_Pickup::Update 006bbdc0:Entity_Pickup::Update 006bbdc0:Entity_Pickup::Update 006bbdc0:Entity_Pickup::Update 006bbdc0:Entity_Pickup::Update 006bbdc0:Entity_Pickup::Update 006bbdc0:Entity_Pickup::Update 006bbdc0:Entity_Pickup::Update 006bbdc0:Entity_Pickup::Update 006bbdc0:Entity_Pickup::Update 006bbdc0:Entity_Pickup::Update 00743d94:FUN_00743d94 00743e72:FUN_00743e72 0085bed0:FUN_0085bed0 007dbeb0:HistoryHUD::RecomputeAll 007dbeb0:HistoryHUD::RecomputeAll 0074beb0:FUN_0074beb0 0074beb0:FUN_0074beb0 00743f73:FUN_00743f73 00743f23:FUN_00743f23 005cbfe0:FUN_005cbfe0 00743fc3:FUN_00743fc3 007abf80:FUN_007abf80 006e30a0:Entity_Pickup::Morph 006e30a0:Entity_Pickup::Morph 005b30b0:FUN_005b30b0 005b30b0:FUN_005b30b0 005b30b0:FUN_005b30b0 005b30b0:FUN_005b30b0 005b30b0:FUN_005b30b0 007eb1b0:Room::PlayMusic 007eb1b0:Room::PlayMusic 007fb250:Room::SpawnClearAward 008332e0:FUN_008332e0 00763370:Entity_Player::CheckFamiliar 007333f0:FUN_007333f0 007333f0:FUN_007333f0 0071b410:FUN_0071b410 0071b410:FUN_0071b410 0071b410:FUN_0071b410 0071b410:FUN_0071b410 0071b410:FUN_0071b410 0071b410:FUN_0071b410 0071b410:FUN_0071b410 0071b410:FUN_0071b410 0071b410:FUN_0071b410 0071b410:FUN_0071b410 0071b410:FUN_0071b410 0071b410:FUN_0071b410 0071b410:FUN_0071b410 0071b410:FUN_0071b410 0071b410:FUN_0071b410 0071b410:FUN_0071b410 0071b410:FUN_0071b410 0071b410:FUN_0071b410 0071b410:FUN_0071b410 0071b410:FUN_0071b410 0071b410:FUN_0071b410 0071b410:FUN_0071b410 0071b410:FUN_0071b410 0071b410:FUN_0071b410 0071b410:FUN_0071b410 0071b410:FUN_0071b410 0071b410:FUN_0071b410 0071b410:FUN_0071b410 0071b410:FUN_0071b410 0071b410:FUN_0071b410 0071b410:FUN_0071b410 0071b410:FUN_0071b410 0042b560:FUN_0042b560 0042b560:FUN_0042b560 007435c8:FUN_007435c8 0099b520:Entity_Player::InitPreLevelInitStats 00813520:Room::FindFreePickupSpawnPosition 0078b640:FUN_0078b640 00733610:ItemPool::GetCollectible 00833600:Ambush::SpawnWave 00833600:Ambush::SpawnWave 00833600:Ambush::SpawnWave 00833600:Ambush::SpawnWave 00833600:Ambush::SpawnWave 00713760:GridEntity_Pit::BeginBatches 00713760:GridEntity_Pit::BeginBatches 00713760:GridEntity_Pit::BeginBatches 00543720:NpcAI::ENTITY_PORTAL 0074371e:FUN_0074371e 0074378b:FUN_0074378b 00422830:FUN_00422830 00802980:Room::Update 00802980:Room::Update 00802980:Room::Update 00802980:Room::Update 00802980:Room::Update 00802980:Room::Update 007fa920:RoomClear_PickVariant 007fa920:RoomClear_PickVariant 007fa920:RoomClear_PickVariant 007fa920:RoomClear_PickVariant 007fa920:RoomClear_PickVariant 007fa920:RoomClear_PickVariant 007fa920:RoomClear_PickVariant 007fa920:RoomClear_PickVariant 007fa920:RoomClear_PickVariant 007fa920:RoomClear_PickVariant 007fa920:RoomClear_PickVariant 007fa920:RoomClear_PickVariant 007fa920:RoomClear_PickVariant 0062a930:Entity_Familiar::AddCoins 0062a930:Entity_Familiar::AddCoins 00802980:Room::Update 00802980:Room::Update 00802980:Room::Update 00802980:Room::Update 00802980:Room::Update 005caa70:FUN_005caa70 005caa70:FUN_005caa70 00612bb0:Entity_Familiar::FollowParent 00612bb0:Entity_Familiar::FollowParent 00682b90:FUN_00682b90 00682b90:FUN_00682b90 0099acc0:GridEntity_Decoration::BeginBatches 0065ad30:FUN_0065ad30 0065ad30:FUN_0065ad30 00732dc0:ItemPool::GetPoolForRoom 006dae40:FUN_006dae40 006dae40:FUN_006dae40 006dae40:FUN_006dae40 006dae40:FUN_006dae40 006dae40:FUN_006dae40 006dae40:FUN_006dae40 006dae40:FUN_006dae40 006dae40:FUN_006dae40 006dae40:FUN_006dae40 006dae40:FUN_006dae40 006dae40:FUN_006dae40 006dae40:FUN_006dae40 006dae40:FUN_006dae40 006dae40:FUN_006dae40 006dae40:FUN_006dae40 006dae40:FUN_006dae40 006dae40:FUN_006dae40 007c2e90:Entity_Player::GetGlitchBabySubType 0071af60:GridEntity_Rock::TrySpawnWorms 006a2050:Entity_Bomb::Init 008020d0:FUN_008020d0 008020d0:FUN_008020d0 008020d0:FUN_008020d0 0058a010:Entity_NPC::Render 0058a010:Entity_NPC::Render 00712180:GridEntity_Pit::Update 00712180:GridEntity_Pit::Update 00712180:GridEntity_Pit::Update 00712180:GridEntity_Pit::Update 0059a2d0:NpcAI::ENTITY_TUFF_TWINS 005b23f0:FUN_005b23f0 005b23f0:FUN_005b23f0 005ca470:Entity_Player::TriggerBookOfVirtues 0061a4e0:FUN_0061a4e0 0061a4e0:FUN_0061a4e0 0061a4e0:FUN_0061a4e0 0061a4e0:FUN_0061a4e0 0061a4e0:FUN_0061a4e0 0061a4e0:FUN_0061a4e0 0061a4e0:FUN_0061a4e0 0061a4e0:FUN_0061a4e0 0061a4e0:FUN_0061a4e0 0061a4e0:FUN_0061a4e0 0061a4e0:FUN_0061a4e0 0061a4e0:FUN_0061a4e0 0061a4e0:FUN_0061a4e0 0061a4e0:FUN_0061a4e0 0061a4e0:FUN_0061a4e0 0061a4e0:FUN_0061a4e0 0061a4e0:FUN_0061a4e0 0074a500:FUN_0074a500 0074a500:FUN_0074a500 0074a500:FUN_0074a500 0074a500:FUN_0074a500 0074a500:FUN_0074a500 0074a500:FUN_0074a500 0074a500:FUN_0074a500 0074a500:FUN_0074a500 0074a500:FUN_0074a500 0074a500:FUN_0074a500 0074a500:FUN_0074a500 0074a500:FUN_0074a500 0074a500:FUN_0074a500 0074a500:FUN_0074a500 0074a500:FUN_0074a500 0074a500:FUN_0074a500 0074a500:FUN_0074a500 0074a500:FUN_0074a500 0074a500:FUN_0074a500 0074a500:FUN_0074a500 0074a500:FUN_0074a500 004da590:NpcAI::ENTITY_ROTTEN_GAPER 004218e0:FUN_004218e0 00579890:NpcAI::ENTITY_REAP_CREEP 00579890:NpcAI::ENTITY_REAP_CREEP 004098a0:AnimationLayer::GetSourceQuad 004098a0:AnimationLayer::GetSourceQuad 004b1910:NpcHelper::gideon_spawn_wave 004b1910:NpcHelper::gideon_spawn_wave 004b1910:NpcHelper::gideon_spawn_wave 004b1910:NpcHelper::gideon_spawn_wave 004b1910:NpcHelper::gideon_spawn_wave 006e1910:FUN_006e1910 007499a0:Level::InitializeDevilAngelRoom 007499a0:Level::InitializeDevilAngelRoom 007499a0:Level::InitializeDevilAngelRoom 006c1ac0:Entity_NPC::shopkeeper_get_loot 006c1ac0:Entity_NPC::shopkeeper_get_loot 006c1ac0:Entity_NPC::shopkeeper_get_loot 006c1ac0:Entity_NPC::shopkeeper_get_loot 006c1ac0:Entity_NPC::shopkeeper_get_loot 00631b20:Entity_Familiar::delirium_morph 00631b20:Entity_Familiar::delirium_morph 009b1b20:FUN_009b1b20 00759bf0:Entity_Player::AddSwarmFlyOrbital 00711bb0:FUN_00711bb0 00711bb0:FUN_00711bb0 00711bb0:FUN_00711bb0 00711bb0:FUN_00711bb0 00921ce0:NightmareScene::Show 00921ce0:NightmareScene::Show 00921ce0:NightmareScene::Show 00921ce0:NightmareScene::Show 00921ce0:NightmareScene::Show 00921ce0:NightmareScene::Show 00541ce0:NpcAI::ENTITY_MEATBALL 00541ce0:NpcAI::ENTITY_MEATBALL 007d9ca0:FUN_007d9ca0 007d9d00:Entity_Player::CalculateBagOfCraftingOutput 007d9d00:Entity_Player::CalculateBagOfCraftingOutput 00741e60:FUN_00741e60 00741e60:FUN_00741e60 00741e60:FUN_00741e60 00741e60:FUN_00741e60 00741e60:FUN_00741e60 00741e60:FUN_00741e60 00741e60:FUN_00741e60 00741e60:FUN_00741e60 00741e60:FUN_00741e60 00741e60:FUN_00741e60 00741e60:FUN_00741e60 00741e60:FUN_00741e60 00741e60:FUN_00741e60 00741e60:FUN_00741e60 007520a2 007520dd 00751cf5 006e1e90:FUN_006e1e90 00751d60 00751dc6 00751e64 00709fb0:FUN_00709fb0 00709fb0:FUN_00709fb0 00709fb0:FUN_00709fb0 00709fb0:FUN_00709fb0 00709fb0:FUN_00709fb0 00719f80:GridEntity_Rock::BeginBatches 00719f80:GridEntity_Rock::BeginBatches 00719f80:GridEntity_Rock::BeginBatches 00719f80:GridEntity_Rock::BeginBatches 00719f80:GridEntity_Rock::BeginBatches 007e9020:RNG::RandomInt 007e90f0:RNG::Next 007e9080:RNG::RandomFloat 00739080:FUN_00739080 00739080:FUN_00739080 007a1090:Entity_Player::TriggerDeath 007a1090:Entity_Player::TriggerDeath 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 005c93b0:Entity_Player::AddWisp 00591460:NpcAI::ENTITY_SIREN 009e14b0:FUN_009e14b0 009e14b0:FUN_009e14b0 009e14b0:FUN_009e14b0 009e14b0:FUN_009e14b0 00751650:Level::GenerateHome 005c96f0:Entity_Player::AddItemWisp 006d97e0:Entity_Player::Update 006d97e0:Entity_Player::Update 006d97e0:Entity_Player::Update 007c97f0:FUN_007c97f0 00740860:Level::GetRandomRoomIndex 00740860:Level::GetRandomRoomIndex 007c8830:FUN_007c8830 007508c0:FUN_007508c0 007508c0:FUN_007508c0 007508c0:FUN_007508c0 007508c0:FUN_007508c0 007508c0:FUN_007508c0 007508c0:FUN_007508c0 007508c0:FUN_007508c0 007508c0:FUN_007508c0 007508c0:FUN_007508c0 007508c0:FUN_007508c0 007508c0:FUN_007508c0 007508c0:FUN_007508c0 007508c0:FUN_007508c0 007508c0:FUN_007508c0 007508c0:FUN_007508c0 005c88a0:FUN_005c88a0 005c88a0:FUN_005c88a0 00428940:FUN_00428940 00428940:FUN_00428940 00428940:FUN_00428940 00428940:FUN_00428940 004d8910:FUN_004d8910 007009a0:Game::BombTearflagEffects 009e0ad0:FUN_009e0ad0 009e0ad0:FUN_009e0ad0 009e0ad0:FUN_009e0ad0 009e0ad0:FUN_009e0ad0 006e8ae0:Entity_Pickup::HandleCollision 006e8ae0:Entity_Pickup::HandleCollision 006e8ae0:Entity_Pickup::HandleCollision 00990a40:FUN_00990a40 00990a40:FUN_00990a40 00990a40:FUN_00990a40 00990a40:FUN_00990a40 00990a40:FUN_00990a40 00990a40:FUN_00990a40 00990a40:FUN_00990a40 00990a40:FUN_00990a40 00990a40:FUN_00990a40 00738ab0:FUN_00738ab0 004d8b50:FUN_004d8b50 00618b00:FUN_00618b00 00618b00:FUN_00618b00 00618b00:FUN_00618b00 009b0b00:LevelGenerator::get_neighbor_candidates 004d8d10:FUN_004d8d10 004f8df0:NpcAI::ENTITY_BOMB_GRIMACE 004f8df0:NpcAI::ENTITY_BOMB_GRIMACE 00540df0:NpcAI::ENTITY_SWARM 00930ee0:FUN_00930ee0 00528ec0:FUN_00528ec0 00528ec0:FUN_00528ec0 00528ec0:FUN_00528ec0 00528ec0:FUN_00528ec0 004b0fe0:FUN_004b0fe0 007a8fd0:Entity_Player::TriggerRoomClear 007a8fd0:Entity_Player::TriggerRoomClear 007a8fd0:Entity_Player::TriggerRoomClear 007a8fd0:Entity_Player::TriggerRoomClear 007a8fd0:Entity_Player::TriggerRoomClear 007a8fd0:Entity_Player::TriggerRoomClear 007a8fd0:Entity_Player::TriggerRoomClear 007a8fd0:Entity_Player::TriggerRoomClear 007a8fd0:Entity_Player::TriggerRoomClear 007a8fd0:Entity_Player::TriggerRoomClear 009e0f60:FUN_009e0f60 009e0f60:FUN_009e0f60 007c8050:FUN_007c8050 005c8020:FUN_005c8020 005c8020:FUN_005c8020 005c8020:FUN_005c8020 00678080:FUN_00678080 007481d0:Level::ForceHorsemanBoss 00820170:Room::TrySpawnBlueWombDoor 00468180:NpcAI::ENTITY_DADDYLONGLEGS 00468180:NpcAI::ENTITY_DADDYLONGLEGS 006e02f0:Entity_Pickup::Init 006e02f0:Entity_Pickup::Init 007a8350:Entity_Player::TriggerNewRoom_TemporaryEffects 007a8350:Entity_Player::TriggerNewRoom_TemporaryEffects 007a8350:Entity_Player::TriggerNewRoom_TemporaryEffects 006d03e0:Entity_NPC::MakeChampion 006d03e0:Entity_NPC::MakeChampion 005c83f0:FUN_005c83f0 005c83f0:FUN_005c83f0 007f83b0:Room::TrySpawnDevilRoomDoor 007f83b0:Room::TrySpawnDevilRoomDoor 007f83b0:Room::TrySpawnDevilRoomDoor 009b04d0:FUN_009b04d0 009b04d0:FUN_009b04d0 009b04d0:FUN_009b04d0 009b04d0:FUN_009b04d0 009b04d0:FUN_009b04d0 009b04d0:FUN_009b04d0 009b04d0:FUN_009b04d0 00790530:Entity_Player::DropCollectible 005505c0:NpcAI::ENTITY_SWARM_SPIDER 00838560:GridEntity_Statue::Destroy 00838560:GridEntity_Statue::Destroy 00838560:GridEntity_Statue::Destroy 00650610:FUN_00650610 00650610:FUN_00650610 00650610:FUN_00650610 00650610:FUN_00650610 008f06e0:FUN_008f06e0 008f06e0:FUN_008f06e0 009e0700:FUN_009e0700 009e0700:FUN_009e0700 00548720:NpcHelper::leper_flesh_ai 00548720:NpcHelper::leper_flesh_ai 0074f820:FUN_0074f820 007178c0:MenuManager::Render 007178c0:MenuManager::Render 007178c0:MenuManager::Render 007178c0:MenuManager::Render 007178c0:MenuManager::Render 007178c0:MenuManager::Render 007178c0:MenuManager::Render 007178c0:MenuManager::Render 007178c0:MenuManager::Render 007178c0:MenuManager::Render 007178c0:MenuManager::Render 007178c0:MenuManager::Render 007178c0:MenuManager::Render 007178c0:MenuManager::Render 007178c0:MenuManager::Render 007178c0:MenuManager::Render 007178c0:MenuManager::Render 007178c0:MenuManager::Render 007178c0:MenuManager::Render 007178c0:MenuManager::Render 007178c0:MenuManager::Render 007178c0:MenuManager::Render 007178c0:MenuManager::Render 006ef890:Seeds::GetNextSeed 004878a0:NpcAI::ENTITY_CAGE 004878a0:NpcAI::ENTITY_CAGE 007c7960:Entity_Player::GetZodiacEffect 007f7a40:Room::TrySpawnSecretExit 005c7ad0:FUN_005c7ad0 00707ad0:FUN_00707ad0 00967a70:FUN_00967a70 00827bf0:FUN_00827bf0 0074fbe0:FUN_0074fbe0 0074fbe0:FUN_0074fbe0 0074fbe0:FUN_0074fbe0 0074fbe0:FUN_0074fbe0 0074fbe0:FUN_0074fbe0 0074fbe0:FUN_0074fbe0 0074fbe0:FUN_0074fbe0 0074fbe0:FUN_0074fbe0 0074fbe0:FUN_0074fbe0 0074fbe0:FUN_0074fbe0 0074fbe0:FUN_0074fbe0 0081fb70:LRoomTileDesc::GetRandomTile 0081fb70:LRoomTileDesc::GetRandomTile 0081fb70:LRoomTileDesc::GetRandomTile 0081fb70:LRoomTileDesc::GetRandomTile 0081fb70:LRoomTileDesc::GetRandomTile 007d7c30:FUN_007d7c30 0097fc10:Entity_Laser::ResetSpriteScale 004bfd30:NpcAI::ENTITY_HUSH 004bfd30:NpcAI::ENTITY_HUSH 004bfd30:NpcAI::ENTITY_HUSH 004bfd30:NpcAI::ENTITY_HUSH 004bfd30:NpcAI::ENTITY_HUSH 004bfd30:NpcAI::ENTITY_HUSH 004bfd30:NpcAI::ENTITY_HUSH 004f7e60:NpcAI::ENTITY_MORNINGSTAR 005c7f20:FUN_005c7f20 00737010:ItemPool::get_chaos_pool 00737010:ItemPool::get_chaos_pool 0067f0d0:RandomVector 0074f0c0:FUN_0074f0c0 009df1f6 009df29a 009df2e4 009df32c 009df3a5 009df416 009df465 009df5a5 006bf120:NpcHelper::ChampionDrop 006bf120:NpcHelper::ChampionDrop 006bf120:NpcHelper::ChampionDrop 006bf120:NpcHelper::ChampionDrop 006bf120:NpcHelper::ChampionDrop 006bf120:NpcHelper::ChampionDrop 006bf120:NpcHelper::ChampionDrop 006bf120:NpcHelper::ChampionDrop 006bf120:NpcHelper::ChampionDrop 006bf120:NpcHelper::ChampionDrop 006bf120:NpcHelper::ChampionDrop 009df19d 007d7290:Entity_Player::UsePoopSpell 0074f360:FUN_0074f360 0074f360:FUN_0074f360 0074f360:FUN_0074f360 0044f2b0:FUN_0044f2b0 0044f2b0:FUN_0044f2b0 008176e8 00817729 0081712c 00817370 008173df 0081744e 0079f3c0:FUN_0079f3c0 0079f3c0:FUN_0079f3c0 00737380:FUN_00737380 00737380:FUN_00737380 00937420:FUN_00937420 00937420:FUN_00937420 00937420:FUN_00937420 00937420:FUN_00937420 00937420:FUN_00937420 00937420:FUN_00937420 0071f4b0:FUN_0071f4b0 0071f4b0:FUN_0071f4b0 007475b0:Level::RestoreGameState 007cf610:Entity_Player::RemoveCollectible 008276e0:FUN_008276e0 008276e0:FUN_008276e0 008276e0:FUN_008276e0 007bf6c0:Entity_Player::GetTearHitParams 007bf6c0:Entity_Player::GetTearHitParams 007376c0:FUN_007376c0 007376c0:FUN_007376c0 007376c0:FUN_007376c0 007bf6c0:Entity_Player::GetTearHitParams 0062f7f0:FUN_0062f7f0 004d77b0:NpcAI::ENTITY_SMALL_MAGGOT 004d77b0:NpcAI::ENTITY_SMALL_MAGGOT 004d77b0:NpcAI::ENTITY_SMALL_MAGGOT 006ae820:Entity::Update 006ae820:Entity::Update 00816910:Room::SpawnGreedModeWave 00426a50:FUN_00426a50 00426a50:FUN_00426a50 00426a50:FUN_00426a50 00426a50:FUN_00426a50 00426a50:FUN_00426a50 00426a50:FUN_00426a50 0075ea40:FUN_0075ea40 0043eb10:Entity_Familiar::GetRandomWisp 00996b30:FUN_00996b30 00736ba0:ItemPool::ForceAddPillEffect 007a6c50:FUN_007a6c50 007a6c50:FUN_007a6c50 007a6c50:FUN_007a6c50 00736c30:FUN_00736c30 006f6dd0:Game::StartDailyChallenge 00716db0:FUN_00716db0 00716db0:FUN_00716db0 00716db0:FUN_00716db0 00716db0:FUN_00716db0 00716db0:FUN_00716db0 00716db0:FUN_00716db0 00716db0:FUN_00716db0 00716db0:FUN_00716db0 00716db0:FUN_00716db0 00716db0:FUN_00716db0 00716db0:FUN_00716db0 00716db0:FUN_00716db0 00716db0:FUN_00716db0 00716db0:FUN_00716db0 00716db0:FUN_00716db0 00716db0:FUN_00716db0 00716db0:FUN_00716db0 00716db0:FUN_00716db0 00716db0:FUN_00716db0 006d6d80:FUN_006d6d80 00996e90:FUN_00996e90 006e6e40:Entity_Pickup::TryOpenChest 006e6e40:Entity_Pickup::TryOpenChest 009df144 009defa3 007570d5 009960b0:FUN_009960b0 009960b0:FUN_009960b0 009960b0:FUN_009960b0 009960b0:FUN_009960b0 009960b0:FUN_009960b0 009960b0:FUN_009960b0 00816000:Room::ShopReshuffle 00816000:Room::ShopReshuffle 0073e0a0:Level::generate_greed 0073e0a0:Level::generate_greed 0073e0a0:Level::generate_greed 0073e0a0:Level::generate_greed 0073e0a0:Level::generate_greed 009be140:PlayerManager::RandomCollectibleOwner 009ae170:FUN_009ae170 009ae170:FUN_009ae170 007fe220:FUN_007fe220 007fe220:FUN_007fe220 007fe220:FUN_007fe220 007fe220:FUN_007fe220 007fe220:FUN_007fe220 007fe220:FUN_007fe220 007fe220:FUN_007fe220 0046e290:NpcAI::ENTITY_DUKE 0046e290:NpcAI::ENTITY_DUKE 0046e290:NpcAI::ENTITY_DUKE 0046e290:NpcAI::ENTITY_DUKE 009be3e0:PlayerManager::RandomTrinketOwner 00436330:FUN_00436330 00436330:FUN_00436330 00436330:FUN_00436330 00436330:FUN_00436330 00436330:FUN_00436330 00436330:FUN_00436330 0080e320:FUN_0080e320 006ee440:Isaac::GetRandomPickupVelocity 006ee440:Isaac::GetRandomPickupVelocity 004d64f0:FUN_004d64f0 004d64f0:FUN_004d64f0 004d64f0:FUN_004d64f0 004d64f0:FUN_004d64f0 004d64f0:FUN_004d64f0 004d64f0:FUN_004d64f0 004d64f0:FUN_004d64f0 004d64f0:FUN_004d64f0 004d64f0:FUN_004d64f0 004d64f0:FUN_004d64f0 004d64f0:FUN_004d64f0 004d64f0:FUN_004d64f0 004d64f0:FUN_004d64f0 008ce430:FUN_008ce430 009be530:PlayerManager::GetRandomPlayer 007d6670:Entity_Player::poop_spell_roll 007d6670:Entity_Player::poop_spell_roll 007d6670:Entity_Player::poop_spell_roll 007d6670:Entity_Player::poop_spell_roll 007d6670:Entity_Player::poop_spell_roll 007d6670:Entity_Player::poop_spell_roll 007d6670:Entity_Player::poop_spell_roll 006ee640:FUN_006ee640 006ee640:FUN_006ee640 007ce6e0:Entity_Player::ChangePlayerType 007ce6e0:Entity_Player::ChangePlayerType 009ae640:FUN_009ae640 009ae640:FUN_009ae640 006d6690:NpcAI::ENTITY_MOVABLE_TNT 00956780:seed_fart_sound_override 0082d880:RoomConfig::GetRandomSplitRoom 0082d880:RoomConfig::GetRandomSplitRoom 008158a0:Room::ShopRestockPartial 008158a0:Room::ShopRestockPartial 007d58f0:FUN_007d58f0 007d58f0:FUN_007d58f0 007d58f0:FUN_007d58f0 007d58f0:FUN_007d58f0 007d58f0:FUN_007d58f0 007d58f0:FUN_007d58f0 007d58f0:FUN_007d58f0 007d58f0:FUN_007d58f0 007d58f0:FUN_007d58f0 007d58f0:FUN_007d58f0 007d58f0:FUN_007d58f0 007d58f0:FUN_007d58f0 007d58f0:FUN_007d58f0 007d58f0:FUN_007d58f0 007d58f0:FUN_007d58f0 007d58f0:FUN_007d58f0 007d58f0:FUN_007d58f0 007d58f0:FUN_007d58f0 0058d8b0:NpcAI::ENTITY_SINGE_ball 00715940:GridEntity_Poop::BeginBatches 00735a30:FUN_00735a30 00735a30:FUN_00735a30 006ddcd0:Pickup_PickVariant 006ddcd0:Pickup_PickVariant 006ddcd0:Pickup_PickVariant 00815ed0 00815c14 0092dc30:SoundEffects::Play 009bdc60:FUN_009bdc60 00825de0:FUN_00825de0 00825de0:FUN_00825de0 00825de0:FUN_00825de0 00825de0:FUN_00825de0 00825de0:FUN_00825de0 00825de0:FUN_00825de0 0074de30:FUN_0074de30 0074de30:FUN_0074de30 0074de30:FUN_0074de30 0074de30:FUN_0074de30 0074de30:FUN_0074de30 0074de30:FUN_0074de30 0074de30:FUN_0074de30 0074de30:FUN_0074de30 0074de30:FUN_0074de30 0074de30:FUN_0074de30 0074de30:FUN_0074de30 0074de30:FUN_0074de30 0074de30:FUN_0074de30 0074de30:FUN_0074de30 0074de30:FUN_0074de30 0074de30:FUN_0074de30 00545f70:NpcAI::ENTITY_FISTULOID 007cdf30:FUN_007cdf30 007cdf30:FUN_007cdf30 0071dfc0:GridEntity_Spikes::BeginBatches 0071dfc0:GridEntity_Spikes::BeginBatches 0071dfc0:GridEntity_Spikes::BeginBatches 00535280:NpcAI::ENTITY_SQUIRT 00535280:NpcAI::ENTITY_SQUIRT 0050d370:NpcAI::ENTITY_CLOTTY 006b5320:FUN_006b5320 006b5320:FUN_006b5320 007ed310:Room::SpawnEntry 007ed310:Room::SpawnEntry 007ed310:Room::SpawnEntry 007ed310:Room::SpawnEntry 007ed310:Room::SpawnEntry 007ed310:Room::SpawnEntry 0096d3f0:FUN_0096d3f0 0096d3f0:FUN_0096d3f0 0096d3f0:FUN_0096d3f0 0096d3f0:FUN_0096d3f0 006653e0:FUN_006653e0 00755470:FUN_00755470 00755470:FUN_00755470 00755470:FUN_00755470 00755470:FUN_00755470 00755470:FUN_00755470 00755470:FUN_00755470 00755470:FUN_00755470 00755470:FUN_00755470 00755470:FUN_00755470 006d5400:FUN_006d5400 006d5400:FUN_006d5400 006d5400:FUN_006d5400 006d5400:FUN_006d5400 0074d4a0:FUN_0074d4a0 00705480:Game::DevolveEnemy 0063d570:FUN_0063d570 0063d570:FUN_0063d570 0093d510:FUN_0093d510 009356a0:FUN_009356a0 009356a0:FUN_009356a0 009356a0:FUN_009356a0 009356a0:FUN_009356a0 009356a0:FUN_009356a0 006657a0:Entity_Slot::HandleCollision 006657a0:Entity_Slot::HandleCollision 006657a0:Entity_Slot::HandleCollision 0062c8d0:FUN_0062c8d0 007f4757 007f4891 007f4e0b 007f4f12 007f52cc 007f53cb 007f5455 007f557d 007f5b3a 007f5c71 007f6658 007f6828 007f5a87 007f54c2 007f4fd4 00744940:Level::Init 00734900:ItemPool::GetPill 00734900:ItemPool::GetPill 00734900:ItemPool::GetPill 00504a40:NpcAI::ENTITY_DUSTY_DEATHS_HEAD 00504a40:NpcAI::ENTITY_DUSTY_DEATHS_HEAD 0065cb60:Entity_Projectile::Render 0065cb60:Entity_Projectile::Render 0065cb60:Entity_Projectile::Render 00634b10:FUN_00634b10 00634b10:FUN_00634b10 00634b10:FUN_00634b10 00634b10:FUN_00634b10 00634b10:FUN_00634b10 00634b10:FUN_00634b10 00634b10:FUN_00634b10 00634b10:FUN_00634b10 00634b10:FUN_00634b10 0051cb30:NpcAI::ENTITY_HANGER 0049cbf0:WeightedOutcomePicker::PickOutcome 007a4ba0:FUN_007a4ba0 007a4ba0:FUN_007a4ba0 007a4ba0:FUN_007a4ba0 007a4ba0:FUN_007a4ba0 007a4ba0:FUN_007a4ba0 007a4ba0:FUN_007a4ba0 007a4ba0:FUN_007a4ba0 007a4ba0:FUN_007a4ba0 007a4ba0:FUN_007a4ba0 00704c50:Game::RerollLevelPickups 00734cc0:FUN_00734cc0 009dcc70:FUN_009dcc70 009dcc70:FUN_009dcc70 009dcc70:FUN_009dcc70 009dcc70:FUN_009dcc70 009dcc70:FUN_009dcc70 009dcc70:FUN_009dcc70 009dcc70:FUN_009dcc70 009dcc70:FUN_009dcc70 009dcc70:FUN_009dcc70 009dcc70:FUN_009dcc70 009dcc70:FUN_009dcc70 009dcc70:FUN_009dcc70 009dcc70:FUN_009dcc70 009dcc70:FUN_009dcc70 009dcc70:FUN_009dcc70 009dcc70:FUN_009dcc70 009dcc70:FUN_009dcc70 009dcc70:FUN_009dcc70 009dcc70:FUN_009dcc70 009dcc70:FUN_009dcc70 009dcc70:FUN_009dcc70 009dcc70:FUN_009dcc70 009dcc70:FUN_009dcc70 009dcc70:FUN_009dcc70 009dcc70:FUN_009dcc70 009dcc70:FUN_009dcc70 009dcc70:FUN_009dcc70 009dcc70:FUN_009dcc70 009dcc70:FUN_009dcc70 00624e10:Entity_Familiar::Render 0074cea0:FUN_0074cea0 00644e80:FUN_00644e80 00644e80:FUN_00644e80 00734f30:FUN_00734f30 00734f30:FUN_00734f30 00734f30:FUN_00734f30 00734f30:FUN_00734f30 0074406b:FUN_0074406b 005cc070:FUN_005cc070 005240a0:NpcAI::ENTITY_PARA_BITE 00584140:NpcAI::ENTITY_SCOURGE 00584140:NpcAI::ENTITY_SCOURGE 0074413a:FUN_0074413a 007ec100:Room::TransformEntry 0063c1c0:FUN_0063c1c0 0063c1c0:FUN_0063c1c0 007c4180:Entity_Player::UsePill 007c4180:Entity_Player::UsePill 00734180:ItemPool::GetCardEx 00734180:ItemPool::GetCardEx 00734180:ItemPool::GetCardEx 00734180:ItemPool::GetCardEx 00734180:ItemPool::GetCardEx 00734180:ItemPool::GetCardEx 00744209:FUN_00744209 007dc2d0:FUN_007dc2d0 007dc2d0:FUN_007dc2d0 005442a0:NpcAI::ENTITY_TARBOY 005442a0:NpcAI::ENTITY_TARBOY 00744348:FUN_00744348 00744348:FUN_00744348 00744348:FUN_00744348 00824350:FUN_00824350 00824350:FUN_00824350 00824350:FUN_00824350 00824350:FUN_00824350 00824350:FUN_00824350 00824350:FUN_00824350 00744466:FUN_00744466 00664560:Entity_Slot::TakeDamage 00664560:Entity_Slot::TakeDamage 00664560:Entity_Slot::TakeDamage 00664560:Entity_Slot::TakeDamage 00664560:Entity_Slot::TakeDamage 00744500:FUN_00744500 00984550:GridEntity_PressurePlate::Reward 00984550:GridEntity_PressurePlate::Reward 00984550:GridEntity_PressurePlate::Reward 007bc740:FUN_007bc740 007bc740:FUN_007bc740 007bc740:FUN_007bc740 007bc740:FUN_007bc740 007bc740:FUN_007bc740 007bc740:FUN_007bc740 007bc740:FUN_007bc740 007bc740:FUN_007bc740 0082c7d0:RoomConfig::GetRandomRoom 0082c7d0:RoomConfig::GetRandomRoom 0082c7d0:RoomConfig::GetRandomRoom 007ac7e0:Entity_Player::DischargeActiveItem 00934770:FUN_00934770 006f5cc1 006f5e66 006f710a 00756e24 00756f7e 0075db63 007f4354 008170c1 009deee9 009def3f 006378c0:FUN_006378c0 00610540:Entity_Familiar::Kill 00610540:Entity_Familiar::Kill 006e69b0:Entity_Pickup::Render 00580eae 00580f12 0058072b 005807a1 0043fd44 0043fcc5 0063f0b9 0063f132 00716019 00716085 0071612b 00745477 00740e10:Level::generate_dungeon 00740e10:Level::generate_dungeon 00740e10:Level::generate_dungeon 00740e10:Level::generate_dungeon 00740e10:Level::generate_dungeon 00742ef0:FUN_00742ef0 00743550:FUN_00743550 00743550:FUN_00743550 0075fe32 0075fef5 00760556 007601fa 0076024c 007607c8 0075ffbd 00760680 00760a18 00760ae2 00760c76 007f3227 007f339d 007f4142 007f4185 007f420a 007f428c 007f3684 007f42da 007f396c 007f39e4 007f3db6 007f360e 0093b760:FUN_0093b760 009e0e34 +00b6bf54 RNG Seed is zero!\n 009eb880:Seeds::set_start_seed 009eb880:Seeds::set_start_seed 007db8d0:Entity_Player::get_seeded_variant 009eb980:Seeds::ForgetStageSeed 00793970:FUN_00793970 00793970:FUN_00793970 007c3980:FUN_007c3980 00633990:FUN_00633990 00633990:FUN_00633990 00633990:FUN_00633990 00633990:FUN_00633990 00633990:FUN_00633990 0074399a:FUN_0074399a 00743a6c:FUN_00743a6c 00743a03:FUN_00743a03 00743af9:FUN_00743af9 0060bae0:FUN_0060bae0 0062bb70:FUN_0062bb70 00743b49:FUN_00743b49 00743bf8:FUN_00743bf8 007bbbd0:FUN_007bbbd0 007bbbd0:FUN_007bbbd0 007bbbd0:FUN_007bbbd0 007bbbd0:FUN_007bbbd0 007bbbd0:FUN_007bbbd0 007bbbd0:FUN_007bbbd0 007bbbd0:FUN_007bbbd0 007bbbd0:FUN_007bbbd0 007bbbd0:FUN_007bbbd0 007bbbd0:FUN_007bbbd0 007bbbd0:FUN_007bbbd0 007dbba0:Entity_Player::add_random_drug_item_effect 00743ba3:FUN_00743ba3 00743c43:FUN_00743c43 006fbc10:Game::Render 00743ced:FUN_00743ced 0074bce0:FUN_0074bce0 00733ca0:ItemPool::GetTrinket 00733ca0:ItemPool::GetTrinket 007dbc80:Entity_Player::AddRandomMomItemEffect 00743c93:FUN_00743c93 00813d90:FUN_00813d90 00813d90:FUN_00813d90 00813d90:FUN_00813d90 00813d90:FUN_00813d90 00813d90:FUN_00813d90 00813d90:FUN_00813d90 00813d90:FUN_00813d90 00813d90:FUN_00813d90 007dbd70:Entity_Player::ModelingClay_roll 008e3db0:AnimationLayer::RenderFrame 0080bd20:FUN_0080bd20 006bbdc0:Entity_Pickup::Update 006bbdc0:Entity_Pickup::Update 006bbdc0:Entity_Pickup::Update 006bbdc0:Entity_Pickup::Update 0080bd20:FUN_0080bd20 006bbdc0:Entity_Pickup::Update 006bbdc0:Entity_Pickup::Update 006bbdc0:Entity_Pickup::Update 006bbdc0:Entity_Pickup::Update 006bbdc0:Entity_Pickup::Update 006bbdc0:Entity_Pickup::Update 006bbdc0:Entity_Pickup::Update 006bbdc0:Entity_Pickup::Update 006bbdc0:Entity_Pickup::Update 006bbdc0:Entity_Pickup::Update 006bbdc0:Entity_Pickup::Update 006bbdc0:Entity_Pickup::Update 006bbdc0:Entity_Pickup::Update 006bbdc0:Entity_Pickup::Update 006bbdc0:Entity_Pickup::Update 006bbdc0:Entity_Pickup::Update 006bbdc0:Entity_Pickup::Update 00743d94:FUN_00743d94 00743e72:FUN_00743e72 0085bed0:EntitySpawner::Spawn 007dbeb0:HistoryHUD::RecomputeAll 007dbeb0:HistoryHUD::RecomputeAll 0074beb0:FUN_0074beb0 0074beb0:FUN_0074beb0 00743f73:FUN_00743f73 00743f23:FUN_00743f23 005cbfe0:FUN_005cbfe0 00743fc3:FUN_00743fc3 007abf80:FUN_007abf80 006e30a0:Entity_Pickup::Morph 006e30a0:Entity_Pickup::Morph 005b30b0:FUN_005b30b0 005b30b0:FUN_005b30b0 005b30b0:FUN_005b30b0 005b30b0:FUN_005b30b0 005b30b0:FUN_005b30b0 007eb1b0:Room::PlayMusic 007eb1b0:Room::PlayMusic 007fb250:Room::SpawnClearAward 008332e0:FUN_008332e0 00763370:Entity_Player::CheckFamiliar 007333f0:FUN_007333f0 007333f0:FUN_007333f0 0071b410:FUN_0071b410 0071b410:FUN_0071b410 0071b410:FUN_0071b410 0071b410:FUN_0071b410 0071b410:FUN_0071b410 0071b410:FUN_0071b410 0071b410:FUN_0071b410 0071b410:FUN_0071b410 0071b410:FUN_0071b410 0071b410:FUN_0071b410 0071b410:FUN_0071b410 0071b410:FUN_0071b410 0071b410:FUN_0071b410 0071b410:FUN_0071b410 0071b410:FUN_0071b410 0071b410:FUN_0071b410 0071b410:FUN_0071b410 0071b410:FUN_0071b410 0071b410:FUN_0071b410 0071b410:FUN_0071b410 0071b410:FUN_0071b410 0071b410:FUN_0071b410 0071b410:FUN_0071b410 0071b410:FUN_0071b410 0071b410:FUN_0071b410 0071b410:FUN_0071b410 0071b410:FUN_0071b410 0071b410:FUN_0071b410 0071b410:FUN_0071b410 0071b410:FUN_0071b410 0071b410:FUN_0071b410 0071b410:FUN_0071b410 0042b560:ItemPool::ReplaceBlacklistedPickup 0042b560:ItemPool::ReplaceBlacklistedPickup 007435c8:FUN_007435c8 0099b520:Entity_Player::InitPreLevelInitStats 00813520:Room::FindFreePickupSpawnPosition 0078b640:FUN_0078b640 00733610:ItemPool::GetCollectible 00833600:Ambush::SpawnWave 00833600:Ambush::SpawnWave 00833600:Ambush::SpawnWave 00833600:Ambush::SpawnWave 00833600:Ambush::SpawnWave 00713760:GridEntity_Pit::BeginBatches 00713760:GridEntity_Pit::BeginBatches 00713760:GridEntity_Pit::BeginBatches 00543720:NpcAI::ENTITY_PORTAL 0074371e:FUN_0074371e 0074378b:FUN_0074378b 00422830:FUN_00422830 00802980:Room::Update 00802980:Room::Update 00802980:Room::Update 00802980:Room::Update 00802980:Room::Update 00802980:Room::Update 007fa920:RoomClear_PickVariant 007fa920:RoomClear_PickVariant 007fa920:RoomClear_PickVariant 007fa920:RoomClear_PickVariant 007fa920:RoomClear_PickVariant 007fa920:RoomClear_PickVariant 007fa920:RoomClear_PickVariant 007fa920:RoomClear_PickVariant 007fa920:RoomClear_PickVariant 007fa920:RoomClear_PickVariant 007fa920:RoomClear_PickVariant 007fa920:RoomClear_PickVariant 007fa920:RoomClear_PickVariant 0062a930:Entity_Familiar::AddCoins 0062a930:Entity_Familiar::AddCoins 00802980:Room::Update 00802980:Room::Update 00802980:Room::Update 00802980:Room::Update 00802980:Room::Update 005caa70:FUN_005caa70 005caa70:FUN_005caa70 00612bb0:Entity_Familiar::FollowParent 00612bb0:Entity_Familiar::FollowParent 00682b90:string_scramble_seeded 00682b90:string_scramble_seeded 0099acc0:GridEntity_Decoration::BeginBatches 0065ad30:FUN_0065ad30 0065ad30:FUN_0065ad30 00732dc0:ItemPool::GetPoolForRoom 006dae40:Entity_Pickup::GetChestLoot 006dae40:Entity_Pickup::GetChestLoot 006dae40:Entity_Pickup::GetChestLoot 006dae40:Entity_Pickup::GetChestLoot 006dae40:Entity_Pickup::GetChestLoot 006dae40:Entity_Pickup::GetChestLoot 006dae40:Entity_Pickup::GetChestLoot 006dae40:Entity_Pickup::GetChestLoot 006dae40:Entity_Pickup::GetChestLoot 006dae40:Entity_Pickup::GetChestLoot 006dae40:Entity_Pickup::GetChestLoot 006dae40:Entity_Pickup::GetChestLoot 006dae40:Entity_Pickup::GetChestLoot 006dae40:Entity_Pickup::GetChestLoot 006dae40:Entity_Pickup::GetChestLoot 006dae40:Entity_Pickup::GetChestLoot 006dae40:Entity_Pickup::GetChestLoot 007c2e90:Entity_Player::GetGlitchBabySubType 0071af60:GridEntity_Rock::TrySpawnWorms 006a2050:Entity_Bomb::Init 008020d0:FUN_008020d0 008020d0:FUN_008020d0 008020d0:FUN_008020d0 0058a010:Entity_NPC::Render 0058a010:Entity_NPC::Render 00712180:GridEntity_Pit::Update 00712180:GridEntity_Pit::Update 00712180:GridEntity_Pit::Update 00712180:GridEntity_Pit::Update 0059a2d0:NpcAI::ENTITY_TUFF_TWINS 005b23f0:FUN_005b23f0 005b23f0:FUN_005b23f0 005ca470:Entity_Player::TriggerBookOfVirtues 0061a4e0:FUN_0061a4e0 0061a4e0:FUN_0061a4e0 0061a4e0:FUN_0061a4e0 0061a4e0:FUN_0061a4e0 0061a4e0:FUN_0061a4e0 0061a4e0:FUN_0061a4e0 0061a4e0:FUN_0061a4e0 0061a4e0:FUN_0061a4e0 0061a4e0:FUN_0061a4e0 0061a4e0:FUN_0061a4e0 0061a4e0:FUN_0061a4e0 0061a4e0:FUN_0061a4e0 0061a4e0:FUN_0061a4e0 0061a4e0:FUN_0061a4e0 0061a4e0:FUN_0061a4e0 0061a4e0:FUN_0061a4e0 0061a4e0:FUN_0061a4e0 0074a500:FUN_0074a500 0074a500:FUN_0074a500 0074a500:FUN_0074a500 0074a500:FUN_0074a500 0074a500:FUN_0074a500 0074a500:FUN_0074a500 0074a500:FUN_0074a500 0074a500:FUN_0074a500 0074a500:FUN_0074a500 0074a500:FUN_0074a500 0074a500:FUN_0074a500 0074a500:FUN_0074a500 0074a500:FUN_0074a500 0074a500:FUN_0074a500 0074a500:FUN_0074a500 0074a500:FUN_0074a500 0074a500:FUN_0074a500 0074a500:FUN_0074a500 0074a500:FUN_0074a500 0074a500:FUN_0074a500 0074a500:FUN_0074a500 004da590:NpcAI::ENTITY_ROTTEN_GAPER 004218e0:FUN_004218e0 00579890:NpcAI::ENTITY_REAP_CREEP 00579890:NpcAI::ENTITY_REAP_CREEP 004098a0:AnimationLayer::GetSourceQuad 004098a0:AnimationLayer::GetSourceQuad 004b1910:NpcHelper::gideon_spawn_wave 004b1910:NpcHelper::gideon_spawn_wave 004b1910:NpcHelper::gideon_spawn_wave 004b1910:NpcHelper::gideon_spawn_wave 004b1910:NpcHelper::gideon_spawn_wave 006e1910:FUN_006e1910 007499a0:Level::InitializeDevilAngelRoom 007499a0:Level::InitializeDevilAngelRoom 007499a0:Level::InitializeDevilAngelRoom 006c1ac0:Entity_NPC::shopkeeper_get_loot 006c1ac0:Entity_NPC::shopkeeper_get_loot 006c1ac0:Entity_NPC::shopkeeper_get_loot 006c1ac0:Entity_NPC::shopkeeper_get_loot 006c1ac0:Entity_NPC::shopkeeper_get_loot 00631b20:Entity_Familiar::delirium_morph 00631b20:Entity_Familiar::delirium_morph 009b1b20:FUN_009b1b20 00759bf0:Entity_Player::AddSwarmFlyOrbital 00711bb0:FUN_00711bb0 00711bb0:FUN_00711bb0 00711bb0:FUN_00711bb0 00711bb0:FUN_00711bb0 00921ce0:NightmareScene::Show 00921ce0:NightmareScene::Show 00921ce0:NightmareScene::Show 00921ce0:NightmareScene::Show 00921ce0:NightmareScene::Show 00921ce0:NightmareScene::Show 00541ce0:NpcAI::ENTITY_MEATBALL 00541ce0:NpcAI::ENTITY_MEATBALL 007d9ca0:FUN_007d9ca0 007d9d00:Entity_Player::CalculateBagOfCraftingOutput 007d9d00:Entity_Player::CalculateBagOfCraftingOutput 00741e60:FUN_00741e60 00741e60:FUN_00741e60 00741e60:FUN_00741e60 00741e60:FUN_00741e60 00741e60:FUN_00741e60 00741e60:FUN_00741e60 00741e60:FUN_00741e60 00741e60:FUN_00741e60 00741e60:FUN_00741e60 00741e60:FUN_00741e60 00741e60:FUN_00741e60 00741e60:FUN_00741e60 00741e60:FUN_00741e60 00741e60:FUN_00741e60 007520a2 007520dd 00751cf5 006e1e90:Entity_Pickup::load_collectible_gfx 00751d60 00751dc6 00751e64 00709fb0:FUN_00709fb0 00709fb0:FUN_00709fb0 00709fb0:FUN_00709fb0 00709fb0:FUN_00709fb0 00709fb0:FUN_00709fb0 00719f80:GridEntity_Rock::BeginBatches 00719f80:GridEntity_Rock::BeginBatches 00719f80:GridEntity_Rock::BeginBatches 00719f80:GridEntity_Rock::BeginBatches 00719f80:GridEntity_Rock::BeginBatches 007e9020:RNG::RandomInt 007e90f0:RNG::Next 007e9080:RNG::RandomFloat 00739080:FUN_00739080 00739080:FUN_00739080 007a1090:Entity_Player::TriggerDeath 007a1090:Entity_Player::TriggerDeath 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 00739370:FUN_00739370 005c93b0:Entity_Player::AddWisp 00591460:NpcAI::ENTITY_SIREN 009e14b0:FUN_009e14b0 009e14b0:FUN_009e14b0 009e14b0:FUN_009e14b0 009e14b0:FUN_009e14b0 00751650:Level::GenerateHome 005c96f0:Entity_Player::AddItemWisp 006d97e0:Entity_Player::Update 006d97e0:Entity_Player::Update 006d97e0:Entity_Player::Update 007c97f0:FUN_007c97f0 00740860:Level::GetRandomRoomIndex 00740860:Level::GetRandomRoomIndex 007c8830:FUN_007c8830 007508c0:FUN_007508c0 007508c0:FUN_007508c0 007508c0:FUN_007508c0 007508c0:FUN_007508c0 007508c0:FUN_007508c0 007508c0:FUN_007508c0 007508c0:FUN_007508c0 007508c0:FUN_007508c0 007508c0:FUN_007508c0 007508c0:FUN_007508c0 007508c0:FUN_007508c0 007508c0:FUN_007508c0 007508c0:FUN_007508c0 007508c0:FUN_007508c0 007508c0:FUN_007508c0 005c88a0:FUN_005c88a0 005c88a0:FUN_005c88a0 00428940:Seeds::Init3 00428940:Seeds::Init3 00428940:Seeds::Init3 00428940:Seeds::Init3 004d8910:spawn_small_maggot_jump 007009a0:Game::BombTearflagEffects 009e0ad0:FUN_009e0ad0 009e0ad0:FUN_009e0ad0 009e0ad0:FUN_009e0ad0 009e0ad0:FUN_009e0ad0 006e8ae0:Entity_Pickup::HandleCollision 006e8ae0:Entity_Pickup::HandleCollision 006e8ae0:Entity_Pickup::HandleCollision 00990a40:FUN_00990a40 00990a40:FUN_00990a40 00990a40:FUN_00990a40 00990a40:FUN_00990a40 00990a40:FUN_00990a40 00990a40:FUN_00990a40 00990a40:FUN_00990a40 00990a40:FUN_00990a40 00990a40:FUN_00990a40 00738ab0:FUN_00738ab0 004d8b50:spawn_small_maggot 00618b00:FUN_00618b00 00618b00:FUN_00618b00 00618b00:FUN_00618b00 009b0b00:LevelGenerator::get_neighbor_candidates 004d8d10:FUN_004d8d10 004f8df0:NpcAI::ENTITY_BOMB_GRIMACE 004f8df0:NpcAI::ENTITY_BOMB_GRIMACE 00540df0:NpcAI::ENTITY_SWARM 00930ee0:FUN_00930ee0 00528ec0:FUN_00528ec0 00528ec0:FUN_00528ec0 00528ec0:FUN_00528ec0 00528ec0:FUN_00528ec0 004b0fe0:FUN_004b0fe0 007a8fd0:Entity_Player::TriggerRoomClear 007a8fd0:Entity_Player::TriggerRoomClear 007a8fd0:Entity_Player::TriggerRoomClear 007a8fd0:Entity_Player::TriggerRoomClear 007a8fd0:Entity_Player::TriggerRoomClear 007a8fd0:Entity_Player::TriggerRoomClear 007a8fd0:Entity_Player::TriggerRoomClear 007a8fd0:Entity_Player::TriggerRoomClear 007a8fd0:Entity_Player::TriggerRoomClear 007a8fd0:Entity_Player::TriggerRoomClear 009e0f60:FUN_009e0f60 009e0f60:FUN_009e0f60 007c8050:Entity_Player::AddImmaculateConceptionCounter 005c8020:FUN_005c8020 005c8020:FUN_005c8020 005c8020:FUN_005c8020 00678080:FUN_00678080 007481d0:Level::ForceHorsemanBoss 00820170:Room::TrySpawnBlueWombDoor 00468180:NpcAI::ENTITY_DADDYLONGLEGS 00468180:NpcAI::ENTITY_DADDYLONGLEGS 006e02f0:Entity_Pickup::Init 006e02f0:Entity_Pickup::Init 007a8350:Entity_Player::TriggerNewRoom_TemporaryEffects 007a8350:Entity_Player::TriggerNewRoom_TemporaryEffects 007a8350:Entity_Player::TriggerNewRoom_TemporaryEffects 006d03e0:Entity_NPC::MakeChampion 006d03e0:Entity_NPC::MakeChampion 005c83f0:FUN_005c83f0 005c83f0:FUN_005c83f0 007f83b0:Room::TrySpawnDevilRoomDoor 007f83b0:Room::TrySpawnDevilRoomDoor 007f83b0:Room::TrySpawnDevilRoomDoor 009b04d0:FUN_009b04d0 009b04d0:FUN_009b04d0 009b04d0:FUN_009b04d0 009b04d0:FUN_009b04d0 009b04d0:FUN_009b04d0 009b04d0:FUN_009b04d0 009b04d0:FUN_009b04d0 00790530:Entity_Player::DropCollectible 005505c0:NpcAI::ENTITY_SWARM_SPIDER 00838560:GridEntity_Statue::Destroy 00838560:GridEntity_Statue::Destroy 00838560:GridEntity_Statue::Destroy 00650610:FUN_00650610 00650610:FUN_00650610 00650610:FUN_00650610 00650610:FUN_00650610 008f06e0:FUN_008f06e0 008f06e0:FUN_008f06e0 009e0700:FUN_009e0700 009e0700:FUN_009e0700 00548720:NpcHelper::leper_flesh_ai 00548720:NpcHelper::leper_flesh_ai 0074f820:Level::InitStageSeeds 007178c0:MenuManager::Render 007178c0:MenuManager::Render 007178c0:MenuManager::Render 007178c0:MenuManager::Render 007178c0:MenuManager::Render 007178c0:MenuManager::Render 007178c0:MenuManager::Render 007178c0:MenuManager::Render 007178c0:MenuManager::Render 007178c0:MenuManager::Render 007178c0:MenuManager::Render 007178c0:MenuManager::Render 007178c0:MenuManager::Render 007178c0:MenuManager::Render 007178c0:MenuManager::Render 007178c0:MenuManager::Render 007178c0:MenuManager::Render 007178c0:MenuManager::Render 007178c0:MenuManager::Render 007178c0:MenuManager::Render 007178c0:MenuManager::Render 007178c0:MenuManager::Render 007178c0:MenuManager::Render 006ef890:Seeds::GetNextSeed 004878a0:NpcAI::ENTITY_CAGE 004878a0:NpcAI::ENTITY_CAGE 007c7960:Entity_Player::GetZodiacEffect 007f7a40:Room::TrySpawnSecretExit 005c7ad0:FUN_005c7ad0 00707ad0:FUN_00707ad0 00967a70:FUN_00967a70 00827bf0:FUN_00827bf0 0074fbe0:FUN_0074fbe0 0074fbe0:FUN_0074fbe0 0074fbe0:FUN_0074fbe0 0074fbe0:FUN_0074fbe0 0074fbe0:FUN_0074fbe0 0074fbe0:FUN_0074fbe0 0074fbe0:FUN_0074fbe0 0074fbe0:FUN_0074fbe0 0074fbe0:FUN_0074fbe0 0074fbe0:FUN_0074fbe0 0074fbe0:FUN_0074fbe0 0081fb70:LRoomTileDesc::GetRandomTile 0081fb70:LRoomTileDesc::GetRandomTile 0081fb70:LRoomTileDesc::GetRandomTile 0081fb70:LRoomTileDesc::GetRandomTile 0081fb70:LRoomTileDesc::GetRandomTile 007d7c30:FUN_007d7c30 0097fc10:Entity_Laser::ResetSpriteScale 004bfd30:NpcAI::ENTITY_HUSH 004bfd30:NpcAI::ENTITY_HUSH 004bfd30:NpcAI::ENTITY_HUSH 004bfd30:NpcAI::ENTITY_HUSH 004bfd30:NpcAI::ENTITY_HUSH 004bfd30:NpcAI::ENTITY_HUSH 004bfd30:NpcAI::ENTITY_HUSH 004f7e60:NpcAI::ENTITY_MORNINGSTAR 005c7f20:FUN_005c7f20 00737010:ItemPool::get_chaos_pool 00737010:ItemPool::get_chaos_pool 0067f0d0:RandomVector 0074f0c0:FUN_0074f0c0 009df1f6 009df29a 009df2e4 009df32c 009df3a5 009df416 009df465 009df5a5 006bf120:NpcHelper::ChampionDrop 006bf120:NpcHelper::ChampionDrop 006bf120:NpcHelper::ChampionDrop 006bf120:NpcHelper::ChampionDrop 006bf120:NpcHelper::ChampionDrop 006bf120:NpcHelper::ChampionDrop 006bf120:NpcHelper::ChampionDrop 006bf120:NpcHelper::ChampionDrop 006bf120:NpcHelper::ChampionDrop 006bf120:NpcHelper::ChampionDrop 006bf120:NpcHelper::ChampionDrop 009df19d 007d7290:Entity_Player::UsePoopSpell 0074f360:FUN_0074f360 0074f360:FUN_0074f360 0074f360:FUN_0074f360 0044f2b0:FUN_0044f2b0 0044f2b0:FUN_0044f2b0 008176e8 00817729 0081712c 00817370 008173df 0081744e 0079f3c0:FUN_0079f3c0 0079f3c0:FUN_0079f3c0 00737380:ItemPool::get_available_collectibles 00737380:ItemPool::get_available_collectibles 00937420:FUN_00937420 00937420:FUN_00937420 00937420:FUN_00937420 00937420:FUN_00937420 00937420:FUN_00937420 00937420:FUN_00937420 0071f4b0:FUN_0071f4b0 0071f4b0:FUN_0071f4b0 007475b0:Level::RestoreGameState 007cf610:Entity_Player::RemoveCollectible 008276e0:FUN_008276e0 008276e0:FUN_008276e0 008276e0:FUN_008276e0 007bf6c0:Entity_Player::GetTearHitParams 007bf6c0:Entity_Player::GetTearHitParams 007376c0:ItemPool::GetCardImpl 007376c0:ItemPool::GetCardImpl 007376c0:ItemPool::GetCardImpl 007bf6c0:Entity_Player::GetTearHitParams 0062f7f0:FUN_0062f7f0 004d77b0:NpcAI::ENTITY_SMALL_MAGGOT 004d77b0:NpcAI::ENTITY_SMALL_MAGGOT 004d77b0:NpcAI::ENTITY_SMALL_MAGGOT 006ae820:Entity::Update 006ae820:Entity::Update 00816910:Room::SpawnGreedModeWave 00426a50:FUN_00426a50 00426a50:FUN_00426a50 00426a50:FUN_00426a50 00426a50:FUN_00426a50 00426a50:FUN_00426a50 00426a50:FUN_00426a50 0075ea40:FUN_0075ea40 0043eb10:Entity_Familiar::GetRandomWisp 00996b30:FUN_00996b30 00736ba0:ItemPool::ForceAddPillEffect 007a6c50:FUN_007a6c50 007a6c50:FUN_007a6c50 007a6c50:FUN_007a6c50 00736c30:FUN_00736c30 006f6dd0:Game::StartDailyChallenge 00716db0:FUN_00716db0 00716db0:FUN_00716db0 00716db0:FUN_00716db0 00716db0:FUN_00716db0 00716db0:FUN_00716db0 00716db0:FUN_00716db0 00716db0:FUN_00716db0 00716db0:FUN_00716db0 00716db0:FUN_00716db0 00716db0:FUN_00716db0 00716db0:FUN_00716db0 00716db0:FUN_00716db0 00716db0:FUN_00716db0 00716db0:FUN_00716db0 00716db0:FUN_00716db0 00716db0:FUN_00716db0 00716db0:FUN_00716db0 00716db0:FUN_00716db0 00716db0:FUN_00716db0 006d6d80:FUN_006d6d80 00996e90:FUN_00996e90 006e6e40:Entity_Pickup::TryOpenChest 006e6e40:Entity_Pickup::TryOpenChest 009df144 009defa3 007570d5 009960b0:Game::start_poop_cloud_screen_effect 009960b0:Game::start_poop_cloud_screen_effect 009960b0:Game::start_poop_cloud_screen_effect 009960b0:Game::start_poop_cloud_screen_effect 009960b0:Game::start_poop_cloud_screen_effect 009960b0:Game::start_poop_cloud_screen_effect 00816000:Room::ShopReshuffle 00816000:Room::ShopReshuffle 0073e0a0:Level::generate_greed 0073e0a0:Level::generate_greed 0073e0a0:Level::generate_greed 0073e0a0:Level::generate_greed 0073e0a0:Level::generate_greed 009be140:PlayerManager::RandomCollectibleOwner 009ae170:FUN_009ae170 009ae170:FUN_009ae170 007fe220:FUN_007fe220 007fe220:FUN_007fe220 007fe220:FUN_007fe220 007fe220:FUN_007fe220 007fe220:FUN_007fe220 007fe220:FUN_007fe220 007fe220:FUN_007fe220 0046e290:NpcAI::ENTITY_DUKE 0046e290:NpcAI::ENTITY_DUKE 0046e290:NpcAI::ENTITY_DUKE 0046e290:NpcAI::ENTITY_DUKE 009be3e0:PlayerManager::RandomTrinketOwner 00436330:FUN_00436330 00436330:FUN_00436330 00436330:FUN_00436330 00436330:FUN_00436330 00436330:FUN_00436330 00436330:FUN_00436330 0080e320:FUN_0080e320 006ee440:Isaac::GetRandomPickupVelocity 006ee440:Isaac::GetRandomPickupVelocity 004d64f0:FUN_004d64f0 004d64f0:FUN_004d64f0 004d64f0:FUN_004d64f0 004d64f0:FUN_004d64f0 004d64f0:FUN_004d64f0 004d64f0:FUN_004d64f0 004d64f0:FUN_004d64f0 004d64f0:FUN_004d64f0 004d64f0:FUN_004d64f0 004d64f0:FUN_004d64f0 004d64f0:FUN_004d64f0 004d64f0:FUN_004d64f0 004d64f0:FUN_004d64f0 008ce430:FUN_008ce430 009be530:PlayerManager::GetRandomPlayer 007d6670:Entity_Player::poop_spell_roll 007d6670:Entity_Player::poop_spell_roll 007d6670:Entity_Player::poop_spell_roll 007d6670:Entity_Player::poop_spell_roll 007d6670:Entity_Player::poop_spell_roll 007d6670:Entity_Player::poop_spell_roll 007d6670:Entity_Player::poop_spell_roll 006ee640:FUN_006ee640 006ee640:FUN_006ee640 007ce6e0:Entity_Player::ChangePlayerType 007ce6e0:Entity_Player::ChangePlayerType 009ae640:FUN_009ae640 009ae640:FUN_009ae640 006d6690:NpcAI::ENTITY_MOVABLE_TNT 00956780:seed_fart_sound_override 0082d880:RoomConfig::GetRandomSplitRoom 0082d880:RoomConfig::GetRandomSplitRoom 008158a0:Room::ShopRestockPartial 008158a0:Room::ShopRestockPartial 007d58f0:Entity_Player::tainted_cain_pedestal_burst 007d58f0:Entity_Player::tainted_cain_pedestal_burst 007d58f0:Entity_Player::tainted_cain_pedestal_burst 007d58f0:Entity_Player::tainted_cain_pedestal_burst 007d58f0:Entity_Player::tainted_cain_pedestal_burst 007d58f0:Entity_Player::tainted_cain_pedestal_burst 007d58f0:Entity_Player::tainted_cain_pedestal_burst 007d58f0:Entity_Player::tainted_cain_pedestal_burst 007d58f0:Entity_Player::tainted_cain_pedestal_burst 007d58f0:Entity_Player::tainted_cain_pedestal_burst 007d58f0:Entity_Player::tainted_cain_pedestal_burst 007d58f0:Entity_Player::tainted_cain_pedestal_burst 007d58f0:Entity_Player::tainted_cain_pedestal_burst 007d58f0:Entity_Player::tainted_cain_pedestal_burst 007d58f0:Entity_Player::tainted_cain_pedestal_burst 007d58f0:Entity_Player::tainted_cain_pedestal_burst 007d58f0:Entity_Player::tainted_cain_pedestal_burst 007d58f0:Entity_Player::tainted_cain_pedestal_burst 0058d8b0:NpcAI::ENTITY_SINGE_ball 00715940:GridEntity_Poop::BeginBatches 00735a30:FUN_00735a30 00735a30:FUN_00735a30 006ddcd0:Pickup_PickVariant 006ddcd0:Pickup_PickVariant 006ddcd0:Pickup_PickVariant 00815ed0 00815c14 0092dc30:SoundEffects::Play 009bdc60:FUN_009bdc60 00825de0:FUN_00825de0 00825de0:FUN_00825de0 00825de0:FUN_00825de0 00825de0:FUN_00825de0 00825de0:FUN_00825de0 00825de0:FUN_00825de0 0074de30:FUN_0074de30 0074de30:FUN_0074de30 0074de30:FUN_0074de30 0074de30:FUN_0074de30 0074de30:FUN_0074de30 0074de30:FUN_0074de30 0074de30:FUN_0074de30 0074de30:FUN_0074de30 0074de30:FUN_0074de30 0074de30:FUN_0074de30 0074de30:FUN_0074de30 0074de30:FUN_0074de30 0074de30:FUN_0074de30 0074de30:FUN_0074de30 0074de30:FUN_0074de30 0074de30:FUN_0074de30 00545f70:NpcAI::ENTITY_FISTULOID 007cdf30:FUN_007cdf30 007cdf30:FUN_007cdf30 0071dfc0:GridEntity_Spikes::BeginBatches 0071dfc0:GridEntity_Spikes::BeginBatches 0071dfc0:GridEntity_Spikes::BeginBatches 00535280:NpcAI::ENTITY_SQUIRT 00535280:NpcAI::ENTITY_SQUIRT 0050d370:NpcAI::ENTITY_CLOTTY 006b5320:FUN_006b5320 006b5320:FUN_006b5320 007ed310:Room::SpawnEntry 007ed310:Room::SpawnEntry 007ed310:Room::SpawnEntry 007ed310:Room::SpawnEntry 007ed310:Room::SpawnEntry 007ed310:Room::SpawnEntry 0096d3f0:FUN_0096d3f0 0096d3f0:FUN_0096d3f0 0096d3f0:FUN_0096d3f0 0096d3f0:FUN_0096d3f0 006653e0:FUN_006653e0 00755470:FUN_00755470 00755470:FUN_00755470 00755470:FUN_00755470 00755470:FUN_00755470 00755470:FUN_00755470 00755470:FUN_00755470 00755470:FUN_00755470 00755470:FUN_00755470 00755470:FUN_00755470 006d5400:Entity_NPC::trigger_kill_item_effects 006d5400:Entity_NPC::trigger_kill_item_effects 006d5400:Entity_NPC::trigger_kill_item_effects 006d5400:Entity_NPC::trigger_kill_item_effects 0074d4a0:FUN_0074d4a0 00705480:Game::DevolveEnemy 0063d570:FUN_0063d570 0063d570:FUN_0063d570 0093d510:FUN_0093d510 009356a0:FUN_009356a0 009356a0:FUN_009356a0 009356a0:FUN_009356a0 009356a0:FUN_009356a0 009356a0:FUN_009356a0 006657a0:Entity_Slot::HandleCollision 006657a0:Entity_Slot::HandleCollision 006657a0:Entity_Slot::HandleCollision 0062c8d0:FUN_0062c8d0 007f4757 007f4891 007f4e0b 007f4f12 007f52cc 007f53cb 007f5455 007f557d 007f5b3a 007f5c71 007f6658 007f6828 007f5a87 007f54c2 007f4fd4 00744940:Level::Init 00734900:ItemPool::GetPill 00734900:ItemPool::GetPill 00734900:ItemPool::GetPill 00504a40:NpcAI::ENTITY_DUSTY_DEATHS_HEAD 00504a40:NpcAI::ENTITY_DUSTY_DEATHS_HEAD 0065cb60:Entity_Projectile::Render 0065cb60:Entity_Projectile::Render 0065cb60:Entity_Projectile::Render 00634b10:FUN_00634b10 00634b10:FUN_00634b10 00634b10:FUN_00634b10 00634b10:FUN_00634b10 00634b10:FUN_00634b10 00634b10:FUN_00634b10 00634b10:FUN_00634b10 00634b10:FUN_00634b10 00634b10:FUN_00634b10 0051cb30:NpcAI::ENTITY_HANGER 0049cbf0:WeightedOutcomePicker::PickOutcome 007a4ba0:FUN_007a4ba0 007a4ba0:FUN_007a4ba0 007a4ba0:FUN_007a4ba0 007a4ba0:FUN_007a4ba0 007a4ba0:FUN_007a4ba0 007a4ba0:FUN_007a4ba0 007a4ba0:FUN_007a4ba0 007a4ba0:FUN_007a4ba0 007a4ba0:FUN_007a4ba0 00704c50:Game::RerollLevelPickups 00734cc0:FUN_00734cc0 009dcc70:ItemPool::CreateGlitchedCollectible 009dcc70:ItemPool::CreateGlitchedCollectible 009dcc70:ItemPool::CreateGlitchedCollectible 009dcc70:ItemPool::CreateGlitchedCollectible 009dcc70:ItemPool::CreateGlitchedCollectible 009dcc70:ItemPool::CreateGlitchedCollectible 009dcc70:ItemPool::CreateGlitchedCollectible 009dcc70:ItemPool::CreateGlitchedCollectible 009dcc70:ItemPool::CreateGlitchedCollectible 009dcc70:ItemPool::CreateGlitchedCollectible 009dcc70:ItemPool::CreateGlitchedCollectible 009dcc70:ItemPool::CreateGlitchedCollectible 009dcc70:ItemPool::CreateGlitchedCollectible 009dcc70:ItemPool::CreateGlitchedCollectible 009dcc70:ItemPool::CreateGlitchedCollectible 009dcc70:ItemPool::CreateGlitchedCollectible 009dcc70:ItemPool::CreateGlitchedCollectible 009dcc70:ItemPool::CreateGlitchedCollectible 009dcc70:ItemPool::CreateGlitchedCollectible 009dcc70:ItemPool::CreateGlitchedCollectible 009dcc70:ItemPool::CreateGlitchedCollectible 009dcc70:ItemPool::CreateGlitchedCollectible 009dcc70:ItemPool::CreateGlitchedCollectible 009dcc70:ItemPool::CreateGlitchedCollectible 009dcc70:ItemPool::CreateGlitchedCollectible 009dcc70:ItemPool::CreateGlitchedCollectible 009dcc70:ItemPool::CreateGlitchedCollectible 009dcc70:ItemPool::CreateGlitchedCollectible 009dcc70:ItemPool::CreateGlitchedCollectible 00624e10:Entity_Familiar::Render 0074cea0:FUN_0074cea0 00644e80:FUN_00644e80 00644e80:FUN_00644e80 00734f30:FUN_00734f30 00734f30:FUN_00734f30 00734f30:FUN_00734f30 00734f30:FUN_00734f30 0074406b:FUN_0074406b 005cc070:RNG::Shuffle 005240a0:NpcAI::ENTITY_PARA_BITE 00584140:NpcAI::ENTITY_SCOURGE 00584140:NpcAI::ENTITY_SCOURGE 0074413a:FUN_0074413a 007ec100:Room::TransformEntry 0063c1c0:FUN_0063c1c0 0063c1c0:FUN_0063c1c0 007c4180:Entity_Player::UsePill 007c4180:Entity_Player::UsePill 00734180:ItemPool::GetCardEx 00734180:ItemPool::GetCardEx 00734180:ItemPool::GetCardEx 00734180:ItemPool::GetCardEx 00734180:ItemPool::GetCardEx 00734180:ItemPool::GetCardEx 00744209:FUN_00744209 007dc2d0:_Entity_Player::SpawnTrinketRandomPickup 007dc2d0:_Entity_Player::SpawnTrinketRandomPickup 005442a0:NpcAI::ENTITY_TARBOY 005442a0:NpcAI::ENTITY_TARBOY 00744348:FUN_00744348 00744348:FUN_00744348 00744348:FUN_00744348 00824350:FUN_00824350 00824350:FUN_00824350 00824350:FUN_00824350 00824350:FUN_00824350 00824350:FUN_00824350 00824350:FUN_00824350 00744466:FUN_00744466 00664560:Entity_Slot::TakeDamage 00664560:Entity_Slot::TakeDamage 00664560:Entity_Slot::TakeDamage 00664560:Entity_Slot::TakeDamage 00664560:Entity_Slot::TakeDamage 00744500:FUN_00744500 00984550:GridEntity_PressurePlate::Reward 00984550:GridEntity_PressurePlate::Reward 00984550:GridEntity_PressurePlate::Reward 007bc740:Entity_Player::InitPostLevelInitStats 007bc740:Entity_Player::InitPostLevelInitStats 007bc740:Entity_Player::InitPostLevelInitStats 007bc740:Entity_Player::InitPostLevelInitStats 007bc740:Entity_Player::InitPostLevelInitStats 007bc740:Entity_Player::InitPostLevelInitStats 007bc740:Entity_Player::InitPostLevelInitStats 007bc740:Entity_Player::InitPostLevelInitStats 0082c7d0:RoomConfig::GetRandomRoom 0082c7d0:RoomConfig::GetRandomRoom 0082c7d0:RoomConfig::GetRandomRoom 007ac7e0:Entity_Player::DischargeActiveItem 00934770:FUN_00934770 006f5cc1 006f5e66 006f710a 00756e24 00756f7e 0075db63 007f4354 008170c1 009deee9 009def3f 006378c0:FUN_006378c0 00610540:Entity_Familiar::Kill 00610540:Entity_Familiar::Kill 006e69b0:Entity_Pickup::Render 00580eae 00580f12 0058072b 005807a1 0043fd44 0043fcc5 0063f0b9 0063f132 00716019 00716085 0071612b 00745477 00740e10:Level::generate_dungeon 00740e10:Level::generate_dungeon 00740e10:Level::generate_dungeon 00740e10:Level::generate_dungeon 00740e10:Level::generate_dungeon 00742ef0:FUN_00742ef0 00743550:FUN_00743550 00743550:FUN_00743550 0075fe32 0075fef5 00760556 007601fa 0076024c 007607c8 0075ffbd 00760680 00760a18 00760ae2 00760c76 007f3227 007f339d 007f4142 007f4185 007f420a 007f428c 007f3684 007f42da 007f396c 007f39e4 007f3db6 007f360e 0093b760:FUN_0093b760 009e0e34 00b6bf68 RNG: Invalid ShiftIdx\n 007d9d00:Entity_Player::CalculateBagOfCraftingOutput 007e8f90:RNG::game_constructor 00b6bf80 Floor Water Surface 007ea630:FUN_007ea630 00b6bf94 Shockwave Surface 007ea630:FUN_007ea630 @@ -6275,7 +6275,7 @@ z 00b6c0c8 gfx/grid/grid_pit_mask.png 007ea630:FUN_007ea630 00b6c0e4 Textured Pit Surface 007ea630:FUN_007ea630 00b6c0fc Spawn Entity with Type(%d), Variant(%d), Pos(%.2f,%.2f)\n 00815f76 007ed310:Room::SpawnEntry -00b6c138 SpawnGridEntity: Grid index invalid\n 007ebca0:Room::SpawnGridEntity 007ebd50:Room::SpawnGridEntityDesc 0071b1c0:GridEntity_Rock::TrySpawnLadder 006ab440:FUN_006ab440 0042a8b0:FUN_0042a8b0 0058a010:Entity_NPC::Render 0046a0f0:NpcAI::ENTITY_LARRYJR 0047a360:NpcAI::ENTITY_CHUB 006e2570:FUN_006e2570 007009a0:Game::BombTearflagEffects 007009a0:Game::BombTearflagEffects 00718ac0:FUN_00718ac0 004b0fe0:FUN_004b0fe0 007f8190:Room::TrySpawnSecretShop 00460780:NpcAI::ENTITY_MEGA_FATTY 005af800:NpcAI::ENTITY_WORMWOOD_main 00827bf0:FUN_00827bf0 006ff2a0:Game::BombDamage 006ff2a0:Game::BombDamage 007fe220:FUN_007fe220 00576450:FUN_00576450 007ee7e0:FUN_007ee7e0 007ee7e0:FUN_007ee7e0 004855b0:NpcAI::ENTITY_DINGLE 008257a0:FUN_008257a0 008257a0:FUN_008257a0 007f48dd 00984550:GridEntity_PressurePlate::Reward 00984550:GridEntity_PressurePlate::Reward 007f43c3 007f45f0 00580502 +00b6c138 SpawnGridEntity: Grid index invalid\n 007ebca0:Room::SpawnGridEntity 007ebd50:Room::SpawnGridEntityDesc 0071b1c0:GridEntity_Rock::TrySpawnLadder 006ab440:FUN_006ab440 0042a8b0:FUN_0042a8b0 0058a010:Entity_NPC::Render 0046a0f0:NpcAI::ENTITY_LARRYJR 0047a360:NpcAI::ENTITY_CHUB 006e2570:Entity_Pickup::update_price_sprite 007009a0:Game::BombTearflagEffects 007009a0:Game::BombTearflagEffects 00718ac0:FUN_00718ac0 004b0fe0:FUN_004b0fe0 007f8190:Room::TrySpawnSecretShop 00460780:NpcAI::ENTITY_MEGA_FATTY 005af800:NpcAI::ENTITY_WORMWOOD_main 00827bf0:FUN_00827bf0 006ff2a0:Game::BombDamage 006ff2a0:Game::BombDamage 007fe220:FUN_007fe220 00576450:FUN_00576450 007ee7e0:FUN_007ee7e0 007ee7e0:FUN_007ee7e0 004855b0:NpcAI::ENTITY_DINGLE 008257a0:FUN_008257a0 008257a0:FUN_008257a0 007f48dd 00984550:GridEntity_PressurePlate::Reward 00984550:GridEntity_PressurePlate::Reward 007f43c3 007f45f0 00580502 00b6c160 invalid GridIndex while spawning door (slot %d) 007eea90:Room::MakeDoor 00b6c190 make_wall index out of bounds\n 007ee7e0:FUN_007ee7e0 00b6c1b0 gfx/ash_mask.png 007ea630:FUN_007ea630 @@ -6340,7 +6340,7 @@ z 00b6c794 %s %s %d %s (group %d) 0080f200:Room::Render 00b6c7ac USecret 0080f200:Room::Render 00b6c7b4 Spawn shop pickup (restock), Pos(%.2f,%.2f)\n 008158a0:Room::ShopRestockPartial -00b6c7e4 [warn] Room::GetShopItemPrice: no config for collectible %d.\n 008151e0:FUN_008151e0 008151e0:FUN_008151e0 +00b6c7e4 [warn] Room::GetShopItemPrice: no config for collectible %d.\n 008151e0:Room::GetShopItemPrice 008151e0:Room::GetShopItemPrice 00b6c824 TeleEntrance 0080f200:Room::Render 00b6c834 Planetarium 0080f200:Room::Render 00b6c840 SecretExit 0080f200:Room::Render @@ -6357,7 +6357,7 @@ z 00b6c978 Offset 00866960:FUN_00866960 00b6c980 CurrentDir 00821950:FUN_00821950 00b6c9d4 default 009f1380:FUN_009f1380 00686da0:Console::FillOmnicomplete 00686da0:Console::FillOmnicomplete 00686da0:Console::FillOmnicomplete 0082d100:RoomConfig::GetStageIdByName 0082d100:RoomConfig::GetStageIdByName 00b1fd54 -00b6c9dc miniboss 0082c310:FUN_0082c310 00b1fd68 +00b6c9dc miniboss 0082c310:Game::LoadMinibossesXml 00b1fd68 00b6c9e8 error 00b1fd5c 00b6c9f0 delete %d rooms.\n 00828c00:RoomConfigMode::Clear 00828fe0:RoomConfig_Stage::unload 00b6ca04 isaacs 00b1fd98 @@ -6368,7 +6368,7 @@ z 00b6ca3c itemdungeon 00b1fd90 00b6ca48 sacrifice 00b1fd84 00b6ca5c secretexit 00b1fdbc -00b6ca68 Curses 0082c600:FUN_0082c600 0082c600:FUN_0082c600 +00b6ca68 Curses 0082c600:Level::GetCurseNameByIdx 0082c600:Level::GetCurseNameByIdx 00b6ca70 ultrasecret 00b1fdc4 00b6ca7c greedexit 00b1fdac 00b6ca88 blackmarket 00b1fda8 @@ -6400,9 +6400,9 @@ z 00b6cd24 curses 0082bf00:RoomConfig::LoadCursesXml 0098e170:FUN_0098e170 00b6cd2c backdrop 0082b2f0:RoomConfig::LoadStagesXml 00990a40:FUN_00990a40 0098fa60:FUN_0098fa60 0082b2f0:RoomConfig::LoadStagesXml 0098fa60:FUN_0098fa60 0098fa60:FUN_0098fa60 0098fa60:FUN_0098fa60 00990a40:FUN_00990a40 00b6cd38 [warn] StageID %d Room type %d, variant %d not found!\n 00751cda 0082c720:RoomConfig::GetRoomByStageTypeAndVariant -00b6cd70 minibosses 0082c310:FUN_0082c310 +00b6cd70 minibosses 0082c310:Game::LoadMinibossesXml 00b6cda8 gfx/ui/boss/versusscreen.anm2 0082f1c0:RoomTransition::StartBossIntro -00b6cdc8 [Frame %d] Starting room transition (type %d) \n 0082ee40:FUN_0082ee40 +00b6cdc8 [Frame %d] Starting room transition (type %d) \n 0082ee40:log_room_transition 00b6cdf8 gfx/ui/boss/versusscreen_dogma.anm2 0082f1c0:RoomTransition::StartBossIntro 0082f1c0:RoomTransition::StartBossIntro 00b6ce1c DeathTeleport 0082f07d 00b6ce2c New Room Surface 0082ed00:FUN_0082ed00 @@ -6473,35 +6473,35 @@ z 00b6d774 gfx/grid/grid_teleporter2_gehenna.anm2 00c5c474 00b6d79c gfx/backdrop/hell/background.anm2 00b6d8de z?font/TeamMeatEx/TeamMeatEx12.fnt -00b6d904 IconShop 0098b5e0:FUN_0098b5e0 008d6b30:FUN_008d6b30 008d6b30:FUN_008d6b30 008d6b30:FUN_008d6b30 0083d8c0:FUN_0083d8c0 0083d8c0:FUN_0083d8c0 0083d8c0:FUN_0083d8c0 0083d8c0:FUN_0083d8c0 0083d8c0:FUN_0083d8c0 0083d8c0:FUN_0083d8c0 0083d8c0:FUN_0083d8c0 0083d8c0:FUN_0083d8c0 008d6b30:FUN_008d6b30 008d6b30:FUN_008d6b30 0098b5e0:FUN_0098b5e0 -00b6d910 IconBoss 0098b5e0:FUN_0098b5e0 008d6b30:FUN_008d6b30 008d6b30:FUN_008d6b30 008d6b30:FUN_008d6b30 0083d8c0:FUN_0083d8c0 0083d8c0:FUN_0083d8c0 0083d8c0:FUN_0083d8c0 0083d8c0:FUN_0083d8c0 0083d8c0:FUN_0083d8c0 0083d8c0:FUN_0083d8c0 0083d8c0:FUN_0083d8c0 0083d8c0:FUN_0083d8c0 008d6b30:FUN_008d6b30 008d6b30:FUN_008d6b30 0098b5e0:FUN_0098b5e0 +00b6d904 IconShop 0098b5e0:Minimap::refresh_room_icons 008d6b30:FUN_008d6b30 008d6b30:FUN_008d6b30 008d6b30:FUN_008d6b30 0083d8c0:FUN_0083d8c0 0083d8c0:FUN_0083d8c0 0083d8c0:FUN_0083d8c0 0083d8c0:FUN_0083d8c0 0083d8c0:FUN_0083d8c0 0083d8c0:FUN_0083d8c0 0083d8c0:FUN_0083d8c0 0083d8c0:FUN_0083d8c0 008d6b30:FUN_008d6b30 008d6b30:FUN_008d6b30 0098b5e0:Minimap::refresh_room_icons +00b6d910 IconBoss 0098b5e0:Minimap::refresh_room_icons 008d6b30:FUN_008d6b30 008d6b30:FUN_008d6b30 008d6b30:FUN_008d6b30 0083d8c0:FUN_0083d8c0 0083d8c0:FUN_0083d8c0 0083d8c0:FUN_0083d8c0 0083d8c0:FUN_0083d8c0 0083d8c0:FUN_0083d8c0 0083d8c0:FUN_0083d8c0 0083d8c0:FUN_0083d8c0 0083d8c0:FUN_0083d8c0 008d6b30:FUN_008d6b30 008d6b30:FUN_008d6b30 0098b5e0:Minimap::refresh_room_icons 00b6d91c ##GAME###ITEM_INFO_UNIDENTIFIED 0083c8d0:FUN_0083c8d0 -00b6d93c IconTreasureRoom 0098b5e0:FUN_0098b5e0 008d6b30:FUN_008d6b30 008d6b30:FUN_008d6b30 008d6b30:FUN_008d6b30 0083d8c0:FUN_0083d8c0 0083d8c0:FUN_0083d8c0 0083d8c0:FUN_0083d8c0 008d6b30:FUN_008d6b30 008d6b30:FUN_008d6b30 0098b5e0:FUN_0098b5e0 0098b5e0:FUN_0098b5e0 +00b6d93c IconTreasureRoom 0098b5e0:Minimap::refresh_room_icons 008d6b30:FUN_008d6b30 008d6b30:FUN_008d6b30 008d6b30:FUN_008d6b30 0083d8c0:FUN_0083d8c0 0083d8c0:FUN_0083d8c0 0083d8c0:FUN_0083d8c0 008d6b30:FUN_008d6b30 008d6b30:FUN_008d6b30 0098b5e0:Minimap::refresh_room_icons 0098b5e0:Minimap::refresh_room_icons 00b6d950 gfx/ui/minimap_icons.anm2 0098d560:FUN_0098d560 0083c5f0:FUN_0083c5f0 008d2ca0:FUN_008d2ca0 00b6d96c Spins down into 0 00a5c968 00b9bcf0 js != NULL 00aa8270:FUN_00aa8270 00a26130:FUN_00a26130 00aa8c84 @@ -10364,15 +10364,15 @@ z 00b9bfd8 (value & GLFW_HAT_UP) == 0 || (value & GLFW_HAT_DOWN) == 0 00a26130:FUN_00a26130 00b9c050 Invalid cursor mode 0x%08X 00a26440:FUN_00a26440 00b9c06c string != NULL 00a26620:FUN_00a26620 -00b9c08c StringTable::InvalidLanguage 00a26af0:FUN_00a26af0 00a26d30:FUN_00a26d30 +00b9c08c StringTable::InvalidLanguage 00a26af0:StringTable::get_string 00a26d30:FUN_00a26d30 00b9c0ac StringTable::InvalidKeyIndex 00a26d30:FUN_00a26d30 -00b9c0cc StringTable::UntranslatedString 00a26af0:FUN_00a26af0 00a26d30:FUN_00a26d30 -00b9c0ec StringTable::InvalidKey 00a26af0:FUN_00a26af0 00a26d30:FUN_00a26d30 +00b9c0cc StringTable::UntranslatedString 00a26af0:StringTable::get_string 00a26d30:FUN_00a26d30 +00b9c0ec StringTable::InvalidKey 00a26af0:StringTable::get_string 00a26d30:FUN_00a26d30 00b9c104 languages 00a27038:FUN_00a27038 00b9c110 stringtable 00a27038:FUN_00a27038 00b9c11c category 00a27038:FUN_00a27038 00a27038:FUN_00a27038 00a27038:FUN_00a27038 00a27038:FUN_00a27038 00a27038:FUN_00a27038 00b9c128 language 00a27038:FUN_00a27038 -00b9c134 StringTable::InvalidCategory 00a26af0:FUN_00a26af0 00a26d30:FUN_00a26d30 +00b9c134 StringTable::InvalidCategory 00a26af0:StringTable::get_string 00a26d30:FUN_00a26d30 00b9c180 Invalid lobby user index 008d19a0:FUN_008d19a0 00a284d0:FUN_00a284d0 00b9c1c0 Attempting to broadcast a message when there is no multiplayer service\n 00a29a40:FUN_00a29a40 00b9c208 Unknown or unsupported service provider type specified\n 0090bbf0:FUN_0090bbf0 00a29370:FUN_00a29370 @@ -10937,8 +10937,8 @@ z 00ba1074 GL_KHR_context_flush_control 00a6b570:FUN_00a6b570 00ba1098 Cannot set swap interval without a current OpenGL or OpenGL ES context 00a1a470:FUN_00a1a470 00ba10e0 extension != NULL 00a6bc50:FUN_00a6bc50 -00ba1108 C:\nicalis\builderbob\projects\KAGE\Source\Platforms\PC\Shared\Source\External\gl\GLFW_3.4\src\context.c 00a6bc50:FUN_00a6bc50 00a19180:FUN_00a19180 -00ba11e0 Cannot swap buffers of a window that has no OpenGL or OpenGL ES context 00a19180:FUN_00a19180 +00ba1108 C:\nicalis\builderbob\projects\KAGE\Source\Platforms\PC\Shared\Source\External\gl\GLFW_3.4\src\context.c 00a6bc50:FUN_00a6bc50 00a19180:_glfw_context_reset +00ba11e0 Cannot swap buffers of a window that has no OpenGL or OpenGL ES context 00a19180:_glfw_context_reset 00ba1228 monitor != NULL 00acbc10:FUN_00acbc10 00a6beb0:FUN_00a6beb0 00a5b6a0:FUN_00a5b6a0 00a5b720:FUN_00a5b720 00a1a2e0:FUN_00a1a2e0 00a1a2e0:FUN_00a1a2e0 00a196b0:FUN_00a196b0 00925ce0:FUN_00925ce0 00ba1248 action == GLFW_CONNECTED || action == GLFW_DISCONNECTED 00a6beb0:FUN_00a6beb0 00ba12b8 C:\nicalis\builderbob\projects\KAGE\Source\Platforms\PC\Shared\Source\External\gl\GLFW_3.4\src\monitor.c 00acbc10:FUN_00acbc10 00a6beb0:FUN_00a6beb0 00a6beb0:FUN_00a6beb0 00a6beb0:FUN_00a6beb0 00a5b6a0:FUN_00a5b6a0 00a5b720:FUN_00a5b720 00a1a2e0:FUN_00a1a2e0 00a1a2e0:FUN_00a1a2e0 00a196b0:FUN_00a196b0 00925ce0:FUN_00925ce0