db/fields: Room alive enemy and boss counters (0x12c0, 0x12c8)

This commit is contained in:
shweet committed 2026-10-25 17:51:22 -04:00
1 parent 14a4468476
commit 0eb78686a1
1 file changed
+29
+29
View File
@@ -1250,3 +1250,32 @@ Entity_Tear 0x81c float _orbitRadius ? Entity_Tear::Update 006670f0: 0 means not
Entity_Knife 0x420 BitSet128 _usedTearFlags Entity_Knife::apply_hit_effects 0096ae70 tests _tearFlags & ~(+0x420) & group and ORs the group (c34850, c34bc0) into 0x420..0x42c after triggering its one-shot effect; UpdateHomingPath 00967180 (from Shoot/Update) clears it; ctor 00960a70 zeroes it Entity_Knife 0x420 BitSet128 _usedTearFlags Entity_Knife::apply_hit_effects 0096ae70 tests _tearFlags & ~(+0x420) & group and ORs the group (c34850, c34bc0) into 0x420..0x42c after triggering its one-shot effect; UpdateHomingPath 00967180 (from Shoot/Update) clears it; ctor 00960a70 zeroes it
Entity_Knife 0x467 bool _isPrimaryClub Weapon_Bone::Fire 009fa450 sets knife+0x467 = (slot == 0) on the clubs it creates; Entity_Knife::UpdateSwingHits 009688d0 at swing end calls Entity_Player::ClearDeadEyeCharge only for it (unless _isDeadEyeHit); Init 00960c10 zeroes it Entity_Knife 0x467 bool _isPrimaryClub Weapon_Bone::Fire 009fa450 sets knife+0x467 = (slot == 0) on the clubs it creates; Entity_Knife::UpdateSwingHits 009688d0 at swing end calls Entity_Player::ClearDeadEyeCharge only for it (unless _isDeadEyeHit); Init 00960c10 zeroes it
Entity_Knife 0x4e4 bool _isDeadEyeHit Entity_Knife::UpdateSwingHits 009688d0 with Dead Eye (373) calls AddDeadEyeCharge only while +0x4e4==0, then sets it; at swing end on the primary club clears Dead Eye charge if 0 and resets it; SetAttackAnimation 009680d0 / SpinAttack 00968430 / Init 00960c10 clear it Entity_Knife 0x4e4 bool _isDeadEyeHit Entity_Knife::UpdateSwingHits 009688d0 with Dead Eye (373) calls AddDeadEyeCharge only while +0x4e4==0, then sets it; at swing end on the primary club clears Dead Eye charge if 0 and resets it; SetAttackAnimation 009680d0 / SpinAttack 00968430 / Init 00960c10 clear it
NPCAI_Pathfinder 0x14 int _direction PathFinder::Reset 007e3260 sets -1; SimulatePlayerMovement 007e8010 derives it from the movement input as a Direction (0 left, 1 up, 2 right, 3 down, -1 none)
NPCAI_Pathfinder 0x28 int _moveCountdown PathFinder::Reset 007e3260 zeroes it; update_chase_movement 007e6b90 counts it down by elapsed ticks and picks a new random angle at <1 (reload 45..164, 10 while feared/confused); SimulatePlayerMovement 007e8010 reloads 60 under entity flag 0x8000000, else decrements to 0 and scales drift by it/60
PathFinder 0x4 Vector _movementTarget same struct as NPCAI_Pathfinder: PathFinder::MoveRandomly 007e6300 picks a random destination into +4/+8 when zero, steers toward it, zeroes it on arrival; Reset 007e3260 zeroes it
Menu_Character 0x34 float _greedDecoAlpha Menu_Character::Render 0094a500 eases it +0.05 toward 1 while Difficulty is 2/3 (greed), -0.05 toward 0 otherwise, and writes it as _GreedDecoOverlaySprite tint alpha
Menu_Character 0x9fc Vector _eastereggPagePosition Menu_Character::Render 0094a500 sets it to menu offset + _PositionX/Y + (404,238) and renders _EastereggPageSprite there (plus its "ButtonIcon" null)
Menu_Character 0xc38 vector_Vector _portraitPositions Reset 00948fc0 resizes this std::vector (begin c38/end c3c/cap c40, 8-byte elems) to _numCharacters filled with (240,135); UpdateRotations 0094d500 writes each wheel position; render_portraits 0094bee0 reads them
Menu_Character 0xc44 vector_float _portraitScales Reset 00948fc0 resizes this std::vector<float> (c44/c48/c4c) to _numCharacters filled with 1.0; UpdateRotations 0094d500 writes 1/depth per character; render_portraits 0094bee0 copies it next to the position
Menu_Character 0xd64 std_string _seedText Reset 00948fc0 clears this std::string (size +0xd74, cap +0xd78); Render 0094a500 draws it in groups of 4 on _SeedPageSprite when non-empty; handle_input 0094c580 edits it
Menu_Character 0xd7c int _seedUnlockPageState Menu_Character::Update 00949c20 state machine for _SeedUnlockPageSprite: 1 Appear -> 2 shown -> 3 disappear -> 0; Render 0094a500 draws the page while !=0; Reset zeroes it
Menu_Character 0xd80 int _seedUnlockPageTimer Menu_Character::Update 00949c20 counts frames in state 2 and switches _seedUnlockPageState to 3 after 60, zeroing it; Reset 00948fc0 zeroes it
PersistentGameData 0x1 bool _isReadOnly ? TryUnlock 00929a20, IncreaseEventCounter 00929b40, AddToCollection 0092a2d0, AddChallenge 0092a7b0, AddBestiaryKill 0092acb0, TryAddBestiaryEncounter 0092aea0 and Manager+0x15 users (Room::SpawnClearAward 007fb250) all skip writing while it is set; Clear 009262b0 zeroes it
PersistentGameData 0x2 bool _isSteamAchievementsEnabled ? Clear 009262b0 sets 1; TryUnlock 00929a20 only calls UnlockSteamAchievement and Manager::queue_achievement_popup when set; UnlockSteamAchievement 00929790 also checks it
PauseScreen 0x4 int _menuType ? ctor 009b5320 sets 0, Show 009b7680 sets 1; Update 009b5d20 picks the ANM2 at +0x140 (minisprite) when ==1 else +0x2c (mainsprite) for every selection test
Weapon 0x8 EntityPtr _technology2Laser Weapon::Fire 009f3540 fires a laser into +0x8 when the owner has Technology 2 (0x98) and Removes it (vslot 0x28) when not shooting; Weapon::ClearReferences 009f3320 (and Weapon_Brimstone/Bone/Knife/Laser/UrnOfSouls ClearReferences) Remove it and erase the multiset ref
Weapon_Brimstone 0x48 EntityPtr _mainLaser Weapon_Brimstone::GetMainEntity 009f3160 returns +0x48, GetFocusEntity 00a02870 returns it under modifier bit 4; ClearReferences 00a02790 Removes it; Fire 009ff360 stores/tests the brimstone laser there (+0x458, +0x3bc)
GridEntity_Rock 0x184 vector_Vector _rubbleOffsets BeginBatches 00719f80 pushes random (8-r16, 8-r16) Vectors into this std::vector (begin 184/end 188/cap 18c); Render 00719ad0 draws _rubbleAnim once per entry
GridEntity_Door 0x154 int _updateCount ? GridEntity_Door::Update 0070c5c0 increments it every update; BeginBatches 00711590 zeroes it
GridEntity_Door 0x168 ANM2 _sparkleSprite LoadSprite 0070d3f0 loads gfx/door_sparkle.anm2 into +0x168; Update 0070c5c0 plays "Sparkle" on it (Rewind of its AnimationState +0x198); Render 0070d1e0 renders it; Free 0070bb20 resets it
GridEntity_Door 0x392 bool _isUnlockedByPlayer TryUnlock 00710480 sets it after the player pays a key/coin; Update 0070c5c0 keeps a challenge door (target type 11) open only while it is set; Open 00710dd0 tests it; BeginBatches 00711590 clears it
HUD 0x0 uint8_t _playerHUD[0x36e0] PlayerHUD[8], stride 0x6dc; ctor 006f2060 eh_vector_constructor(this, 0x6dc, 8, PlayerHUD ctor 006efc70); InvalidateCraftingItem 009a2c70 walks the 8 entries (stride 0x6dc, owner player at +0)
HUD 0x36e0 Font _font HUD::LoadGraphics 009a1a30 Font::Load(font/MPlus_12b.fnt) into +0x36e0 (ctor 006f2060 Font ctor after the PlayerHUD array)
HUD 0x372c Font _fontKR HUD::LoadGraphics 009a1a30 Font::Load(font/KR_Font14.fnt) into +0x372c
HUD 0x5494 int _bossHPBarDamageFlash EntityList::Update 004186c0 sets Game+0x22e98 (HUD +0x5494) = 8 when the boss bar fill drops; HUD::Update 009a2990 decrements while >=0; boss bar render 009a7c90 blinks white/red on odd frames; reset 009a19a0 = -1
HUD 0x5498 int _bossHPBarHealFlash EntityList::Update 004186c0 sets Game+0x22e9c (HUD +0x5498) = 8 when the boss bar fill rises (and clears the damage flash); HUD::Update 009a2990 decrements while >=0; boss bar render 009a7c90 tints on odd frames; reset 009a19a0 = -1
HUD 0x54d4 bool _isRefreshTick ? HUD::Update 009a2990: when set, decrements _hudRefreshCountdown, clears it, zeroes _hudRefreshType at <1; reset 009a19a0 clears it (no writer of 1 found in the dump)
PlayerHUD 0xa short _lastHeartFlash PlayerHUD::Update 00842230 sets (9-f)*255/9 while the player has exactly one heart (frame%45<10, not with Holy Mantle 313 effect), else 0; RenderHearts 00843df0 uses it /255 as heart color offset
PlayerHUD 0x6ad bool _isCraftingItemDirty HUD::InvalidateCraftingItem 009a2c70 sets PlayerHUD[i]+0x6ad=1 for the player (or all); Entity_Player::bag_of_crafting_collect 007d5170 sets it on pickup
Room 0x12c0 int32_t _aliveEnemyCount Entity_Player::spawn_dark_esau 007b0070 decrements it for a spawned NPC whose vtable slot 18 (CanShutDoors) is true; AIs read Room+0x12c0 + 0x12c4 as the door-holding enemy count (Gate 0045fc00, Cage 004878a0)
Room 0x12c8 int32_t _aliveBossCount spawn_dark_esau 007b0070 decrements it when slot 19 (IsBoss) is also true; Cage/Sisters Vis subtract 0x12c8 + 0x12cc from the enemy count (non-boss enemies)
Can't render this file because it contains an unexpected character in line 236 and column 126.