TheTrackerCouncil / SMZ3Randomizer

Tracker presents: a casual standalone version of the Super Metroid & A Link to the Past Crossover Randomizer with built-in automatic item tracking and Twitch integration
https://vivelin.net/projects/smz3
MIT License
26 stars 9 forks source link

Detect Kraid Quick Kills #519

Open CPColin opened 6 months ago

CPColin commented 6 months ago

Looking at this bank, we should be able to hook into the Kraid code and have Tracker automatically detect whether the kill was Quick or Slow. There's a lot of state flags and variables flying around during the fight, but I'm not sure if their final values hang around long enough for us to retrieve them. Instead, we might be able to set a flag ourselves when Kraid rises up through the floor and clear it when he stands up all the way and detect the Quick Kill that way.

CPColin commented 2 months ago

Now that I think about this some more, we could do this without any ASM by setting a flag in the C# code when it detects the player is in the top half of Kraid's room. On a missed quick kill, there should be plenty of time to catch that.