# Parity sweep: the tears cluster Cursed Eye 316, Marked 394, Athame 408, Evil Eye 410, Black Powder 420, Kidney Stone 440, Linger Bean 447, Eye of Greed 450, Jacob's Ladder 494, Backstabber 506, Technology Zero 524, Trisagion 533, Saturnus 595, Neptunus 597, Eye Drops 600, Ocular Rift 606, C Section 678 (enum names, `./find.sh enum`). ## Tear flag constants (BitSet128, .data 0xc34560..0xc34c60) Each 16-byte constant holds one TearFlags bit (read from the exe, named by enums.lua's TEARFLAG(n)). The ones this cluster touches: 0xc34700 TEAR_BACKSTAB (106), 0xc34900 TEAR_JACOBS (55), 0xc345a0 TEAR_LASER (57, Technology Zero), 0xc34970 TEAR_RIFT (76), 0xc34a20 TEAR_MIDAS (53), 0xc34aa0 TEAR_COIN_DROP (40), 0xc34a70 TEAR_GREED_COIN (44), 0xc34600 TEAR_ORBIT_ADVANCED (69, Saturnus), 0xc346f0 TEAR_NO_GRID_DAMAGE (105). Others: 0xc34850 SPLIT, 0xc34860 BOOMERANG, 0xc34870 WIGGLE, 0xc34880 QUADSPLIT, 0xc34890 PULSE, 0xc348a0 SPIRAL, 0xc348b0 FLAT, 0xc348c0 SQUARE, 0xc348d0 CONTINUUM, 0xc348e0 BIG_SPIRAL, 0xc348f0 BONE, 0xc34910 PERSISTENT, 0xc34920 GLOW, 0xc34930 STICKY, 0xc34940 BELIAL, 0xc34950 TURN_HORIZONTAL, 0xc34960 BURSTSPLIT, 0xc34980 ROCK, 0xc34990 GLITTER_BOMB, 0xc349a0 COIN_DROP_DEATH, 0xc349b0 ECOLI, 0xc349c0 BAIT, 0xc349d0 MAGNETIZE, 0xc349e0 ICE, 0xc349f0 PUNCH, 0xc34a00 HORN, 0xc34a10 NEEDLE, 0xc34a30 ACID, 0xc34a40 EGG, 0xc34a50 BOOGER, 0xc34a60 PERMANENT_CONFUSION, 0xc34a80 GODS_FLESH (shrink), 0xc34a90 BLACK_HP_DROP, 0xc34ab0 LIGHT_FROM_HEAVEN, 0xc34ac0 MYSTERIOUS_LIQUID_CREEP, 0xc34ad0 GISH, 0xc34ae0 KNOCKBACK, 0xc34af0 HP_DROP, 0xc34b00 MULLIGAN, 0xc34b20 ATTRACTOR, 0xc34b30 GROW, 0xc34b40 WAIT, 0xc34b50 PIERCING, 0xc34b60 ORBIT, 0xc34b70 OCCULT, 0xc34b80 BOUNCE, 0xc34b90 SAD_BOMB, 0xc34be0 FREEZE, 0xc34bf0 CONFUSION, 0xc34c00 BURN, 0xc34c10 CHARM, 0xc34c20 FEAR, 0xc34c30 SLOW, 0xc34c40 SHRINK, 0xc34c60 SHIELDED; 0xc34610..0xc34840 one each for bits 72..126 in order (BLOOD_BOMB .. FAST_BOMB). The constants before 0xc34560 are masks of several bits. ## Eye Drops (600): done in the port - EvaluateItems 0x763570 (decompile line ~666): the fire rate 30 / (delay + 1) times 1.2, before Cracked Crown's 2.7272727 soft cap. - Weapon_Tears::Fire 0xa0a720: with it, no charge (Chocolate Milk / Cursed Eye modifier bits 0 and 1) and eye mode 0 (not Cursed Eye, not player types 2 and 0x17, not Lead Pencil 0x1bc or 0x2c4, not Technology 2 0x98), the shot loop runs twice, each pass on its own cooldown (the weapon's +0xc, then +0x4c): pass 0 at 0.5833333 of the fire rate (30 / (rate * 0.5833333) - 1 ticks), pass 1 at 0.41666666; each pass sets the tear displacement (Entity_Player +0x1578) to pass * 2 - 1. Shots per pass: while its cooldown is below 0 (at most 8), cooldown += delay + 1. ## Backstabber (506): done in the port - EvaluateItems 0x763570: tear flag TEAR_BACKSTAB (0xc34700) while held. - Entity_Tear::ApplyTearFlagEffects 0x67af60 (asm 0x67b7c5..0x67ba6e): the hit's way (a tear's normalised velocity, a MusicManager::RandomVector when under 0.02; a knife's from its player to the enemy; a laser's angle or, circular, its velocity; else source to enemy) dotted with the enemy's vtable slot 22 GetForwardVector; above 0: the enemy TakeDamage(damage = the call's damage, flags 0, source, countdown 30), AddBleeding(-150: at least 150 ticks), SOUND_MEATY_DEATHS 77 at 0.7, and a blood explosion effect 1000.2 at pos - size * way * 0.5 with velocity way * -4 + RandomVector, offset (0, -15), its rotation (+0x...) random 0..360. - Entity_NPC::GetForwardVector 0x6d48a0: its _forwardVector when set; type 45 (Mom) zero; 0x106 and 0x107 (Mega Maw, The Gate) down; else the velocity's direction, down when |v|^2 <= 0.01 (Entity::GetForwardVector 0x6b63b0 the same without the special types). _forwardVector is set by Entity_NPC::AnimWalkFrame 0x6c1330 (down below the speed threshold, else the axis-aligned unit of the velocity, |vx| <= |vy| vertical), anim_walk_frame_4dir 0x6c1870, NpcHelper::charger_update_move_anim 0x6c15c0, and the AIs of Gyro, Dust, Knight and Maggot. - Entity::AddBleeding 0x6ae420: a negative duration sets the countdown to at least -duration; positive adds, capped 120. ## Eye of Greed (450): set aside (see the question file) - Weapon::TriggerTearEffects 0x9f7930 (asm 0x9f8620..0x9f8aab): after each tear the weapon's +0x38 shot counter is bumped; when it is a multiple of 20 (0x14) an extra tear 2.20 (coin) is spawned: velocity (aim * 10 + the weapon's movement inheritance) * shot speed (x 0.9..1.1 when count > 1), at owner position + _tearsOffset + velocity; height from GetTearHitParams; with coins (+0x1368 > 0) AddCoins(-1), collision damage hit damage * 1.5 + 10, flags MIDAS | COIN_DROP; else hit damage and MIDAS; _fallingSpeed = rand * 0.2 - TearFallingSpeed - 7, _fallingAccel = TearFallingAcceleration * 0.01; then moved back one velocity and SOUND_CASH_REGISTER 274 played. Lead Pencil (0x1bc) shares the counter (% 15). - ApplyTearFlagEffects: MIDAS -> AddMidasFreeze 90; COIN_DROP (or GREED_COIN on 1 in 20) -> a penny 5.20 at the hit position (velocity 2..6 at 160..200 degrees off the hit way), or at FindFreePickupSpawnPosition(40) over a grid cell. ## Ocular Rift (606) - GetTearHitParams 0x7bf6c0 (line ~1513): 1 in max(5, 20 - luck) tears: SOUND 1087 (OCCULAR_RIFT_SHOOT; not for a familiar of variant 0x6e), TEAR_RIFT, colour tint (0, 0, 0, 1) with no offset or colorize. - Entity_Tear::UpdateBoneTear 0x676be0 (really the tear's death effects; called by Update and HandleCollision): a RIFT tear clears the flag and, inside the room by 10, spawns effect 1000.180 at its clamped position: sprite scale = the tear's scale, collision damage = tear damage * 0.5, both timers (+0x... ) 60 (30 in deathmatch), SOUND 1088 at 0.5. The rift's own behaviour is in Entity_Effect::Update 0x5d4380 (asm only). ## Jacob's Ladder (494) - EvaluateItems: TEAR_JACOBS and the laser colour (4.9, 3.8 ...). - UpdateBoneTear 0x676be0: a JACOBS tear dying above the floor (height < -5) calls spawn_chain_lightning 0x707e10(pos, flags, spawner, collision damage * 0.5): effect 1000.167, damage x1.5 with 0x164, +0.5 with 0xcd; arcs 4 (6 with The Battery 0x3f, +2 Jumper Cables 0x208, +2 Charged Baby 0x174, +1 trinket 3), flag 0x400000 with 0x25b or trinket 0x8f. The arcs themselves are Entity_Effect::Update's 1000.167 case (asm only). ## Linger Bean (447) - Entity_Player::update_effects 0x794e50 (line ~4560): while controls are on and _fireBlockCooldown < 1, when the player's +0x18f0 counter % 240 < 2 and > 1: effect 1000.105 (BROWN_CLOUD) at the player (scale x2 with trinket 0x86), SOUND 0x35c. The cloud is Entity_Effect::Update's (asm only). ## Saturnus (595) - update_effects (line ~2463) every 2nd frame: enemy shots and tears near the player are caught into TEAR_ORBIT_ADVANCED (0xc34600) | spectral | NO_GRID_DAMAGE orbits (tears: 15% by their seed, 85..100 from the player, damage x (3 + 0.5 x some count), height max(-20, ..), falling accel -0.09); room_enter 0x7a6c50 spawns its ring. ## Others found (not read further) - Cursed Eye 316: Entity_Player::GetWeaponModifiers 0x779a20 (modifier bit 1), TakeDamage 0x7729d0 (teleport), EvaluateItems, GetTearHitParams (displacement). - Marked 394: Weapon::get_aim_direction 0x9f33e0, Weapon::IsAxisAligned, every weapon's Fire and GetMarkedTargetVariant, Entity_Player::_markedTarget, Entity_Familiar::TryAimAtMarkedTarget 0x6146e0. - Evil Eye 410: Entity_Player::FireTear 0x790af0, Entity_Knife::UpdateSwingHits 0x9688d0; effect 1000.84 (EVIL_EYE). - Black Powder 420: update_effects, GridEntity_Fire::Hurt, Entity::Kill, NpcAI::ENTITY_FIREPLACE, check_bomb_tearflags. - Kidney Stone 440: EvaluateItems, update_effects, spawn_low_health_blood_splat, GetTearHitParams, Weapon_Tears::Fire. - Technology Zero 524, Trisagion 533: EvaluateItems tear flags; TEAR_LASER users Entity_Tear::Update, Interpolate, fire_split_projectiles, Entity_Laser::update_laser. - Neptunus 597: GetWeaponModifiers (modifier bit 8), Weapon_Tears::Fire's isNeptunus charge, update_effects. - C Section 678: EvaluateItems, GetWeaponModifiers, GetLaserOffset, Weapon::update_c_section_charge_anim 0x9f52c0, Weapon::is_c_section_anim_finished 0x9f5510, Weapon::FireBrimstone 0x9f5f40. - Athame 408: no HasCollectible test in the dump; to find (likely through a collectible effect or Maw of the Void's).