Olmec's lair

Olmec is a boss of *Spebunky 2*, found after completing either Deep mines or the Ice caves and reaching Olmec's Lair, 4-1.

## Behavior

Olmec has 5 different phases, entering a new phase after reaching the next floor in his lair.

Olmec functions exactly like a wall/platform, and one can cling to his top ends like a ledge, or to the rest of his body with the Climbing Gloves. Olmec is indestructible and cannot be damaged by the Mattock or explosions from objects like Bombs.

### Phase 1

* If the player approaches, jumps towards their direction.
* If Olmec manages to get above them, he stops in the air for a moment before falling straight down, crushing anything and destroying a row of tiles on the floor below him.
	+ When Olmec jumps up, but does not get above the player he was specifically targeting, he does not destroy tiles he lands on.
* If the target is on top of him, he will leap towards whichever end of his head they are closest to.
* Every 5 Minutes, Olmec will stomp even if there is no player there.

### Phase 2

* After landing on the second floor, Olmec hops into the air, revealing two purple floaters beneath him, which he uses to hover across the air in a similar fashion to the Hoverpack's.
	+ Olmec initially floats towards the direction of the player until a tile impedes him, where he switches directions.
	+ Olmec has a 1/315025 chance each frame(60fps) to switch directions.
* If a spelunker is below his eye level, Olmec's face opens horizontally across the eyes before launching three bombs at varying speeds from both ends of his face.
* Olmec's floaters have 1 HP and shatter if attacked. Destroying both causes Olmec to fall to the floor, destroying a row of tiles below him. He then leaps back up into the air with new floaters, resuming his bomb attack.

### Phase 3

* Phase 3 is identical to the Olmec Fight from Spebunky 1. but he spawns also Burrowers, Crystal crawlers

### Phase 4

* Olmec acts like phase 3. but instead of shoring enemies, he releases UFOs

### Phase 5 (final)

Olmec regains his floaters. they now have 3 hp. olmec floats faster. he shoots enemies. he can shoot ufo lasers from a cannon a the bottom middle. he spawns anubite warriors and Olmec's Guards

Olmec's Guards:

Description: Olmec's Guards are loyal defenders crafted from the same ancient materials as Olmec himself. These formidable constructs come to life during Olmec's final phase, adding a new layer of challenge to the boss battle.

Health: Olmec's Guards are sturdy and can withstand a fair amount of damage. They have 5 HP each.

Attacks:

1. Stone Smash (1 damage): Olmec's Guard lifts its massive stone fists and brings them down on the player. This attack is telegraphed with a brief moment where the Guard lifts its fists high.
2. Ground Slam ( ∞ damage(instakill)): The Guard leaps into the air, then crashes down onto the ground. The impact sends out a shockwave that can knock the player off their feet.
3. Boulder Toss ( ∞ damage): The Guard tears a chunk of stone from the ground and hurls it at the player. The boulder can be avoided by moving out of its trajectory or can be destroyed by dealing 10 damage to it.

Behavior: Olmec's Guards are slow-moving, but their attacks cover a large area and can cause significant damage. They aim to corner the player, coordinating their attacks to limit the player's movement options. They are a significant threat and should be dealt with swiftly to prevent being overwhelmed.

Upon being defeated, Olmec's Guards crumble into a pile of rubble, leaving behind the sturdy stone they were composed of, which can be collected as a high-value treasure, contributing $5000 to the player's treasure score.

He breakes only one row of block when he falls.

### Defeating Olmec

Onbeat phase 1: may waveras

Onbeat phase 2: may temple

onbeat phase 3: may quill tunnels

onbeat phase 4: may gain 15000$, waveras, anubis, quill tunnels, get a pistol

If the spelunker manages to lure Olmec into the lake of lava at the very bottom of the area, He will be considered defeated, and his head can be used as a platform to enter one of the many backlayer doors just above the lava as he sinks downward.

These backlayer doors are perfectly spaced out so that the spelunker does not need to align Olmec with a door; even if he is perfectly spaced between two backlayer doors, both may be entered.

After entering the backlayer, the Spelunker may ascend to the top and obtain the Ankh found there.

## Trivia

* A short cutscene plays when entering Olmec's Lair:
	+ Three Cavemen are shown worshipping to a stone statue of Olmec. Chunks of stone begin flying off the statue, revealing that the stone statue is actually the real Olmec, spooking the cavemen. Olmec then jumps up and crushes the last third caveman who was too slow to run away before the battle begins.