Arena.component
This package holds more than this page lists. See all of its files in its world.
README.md
game.arena.Arena
Root component of the arena slice. The scene entrypoint attaches it to Mounts/mount_arena at play start. It raises the amphitheatre around (0,0,-200) with game.arena.build and publishes R.services.arena = { startBout(id), travel(zone), currentBout(), state(), foes() }. It runs the bout director: teleports to ArenaStart, opens the pen and tunnel gates, sends foes in with game.arena.foes (boss bout: R.call('boss','spawn')), detects win or loss, pays gold, fame and XP, marks career.boutsWon, raises bout.start and bout.end, and on a loss takes 25% of the gold and returns the player to town.