Log inGet started
World

The Undercroft: A Co-op Roguelite Dungeon Crawler

Branchmain
Branchesmain
Commite8883d9c1a

README.md

game.boss

The Hollow Abbot, the Undercroft's final boss in the Ossuary Nave (the boss floor's last arpgKit room), built on bossFightKit (Boss.defineBoss, id hollowAbbot) with dungeonKit (Trapwright) arena hazards. A towering skeletal abbot in black and crimson robes with a gold stole, a bronze bell for a mitre, embers in his ribs and a burning censer on a chain. He rises out of the ossuary floor when the first pilgrim enters the room; phase 1 is a censer brawl (Censer Swing, Censer Smash, Funeral Dirge) with Ember Volleys; at half health the bell cracks (armour break: gold shards and embers), he tolls for his monks (arpgKit grunts, swarmlings and a caster join) and phase 2 is faster (Censer Flail, Rain of Embers, Cracked Toll, Procession of Ash, Grave Fall) while the nave wakes: a shockwave ring with four pillars for cover, falling debris and burning floor panels, at their harshest below 25%. Every attack has a ground telegraph that fills before it lands. Horror boss bar; health scales with party size (+70% for a second pilgrim) and floor difficulty.

Host-authoritative: the host spawns and runs the Abbot and the hazards' state; every peer draws them. arpgKit heroes hit him like any monster (SecondWind team boss), and his attacks hurt heroes through SecondWind (downed heroes take no damage).

API (local Boss = require("game.boss"))

  • Boss.setup(): once per peer at game start (registers the boss, listens to bossFightKit).
  • Boss.startFight(floor): on EVERY peer when the boss floor starts (after the host's Bridge.buildFloor). Waits for the level, places the arena hazards on every peer, and on the host raises the Abbot when a pilgrim walks into the last room.
  • Boss.on(name, fn) -> { disconnect }: spawned, phase { phase = 2 }, frenzy, defeated { floor } (every peer, once per fight: the floor is won).
  • Boss.stop(): on every peer when leaving the floor (the host removes the Abbot and his monks, every peer the hazards).
  • Boss.status(): the fight on this peer, for tests and debugging.