<aside> 🦆
Blue Cataquacks are also known as Paihanas, Piahanas, or Pihanas. Red Cataquacks are also known as Chuhanas. Source
</aside>
Chuhana Mechanics
Now that the Chuhana segment in the 120 Shine TAS is complete, I’ve compiled a memo of its properties for future reference.
Information provided by goldfire.
Chuhana uses RNG in the following three functions:
willFall
: Assigns a target to each mirror's polygonal vertex.setGoal
: When Mario gets within 100 units of the target, the Chuhana changes its facing direction.isCollidMove
: When two Chuhanas are in contact, the one with the lower ID will reassign its target and perform other adjustments.willFall
willFall
is a critical function that controls Chuhana movement. Until this function is triggered, a Chuhana will continue walking toward its current target.
For willFall
to activate, two conditions must be met:
OnPanelTime
must be 21 or higher.OnPanelTime
increases by 1 every quarter frame (QF), but only while the Chuhana is walking. When it exceeds 21, it loops within the positive range. When willFall
is triggered, OnPanelTime
is set to -100. When setGoal
is triggered, it’s set to 400.