Skip to content

Repository files navigation

Legion Roller

legionroller.com — a dice simulator and probability calculator for Star Wars: Legion by Atomic Mass Games.

Configure attack and defense pools, keywords, and modifiers, then see simulated odds for hits, crits, blocks, surges, and wounds. Results are simulation-based (10,000 runs) and represent typical expectations rather than exact probabilities. Share setups via URL fragments. Roll one off dice pools to see results.

This site is not affiliated with, endorsed by, or connected with Atomic Mass Games or The Walt Disney Company.

Support

If Legion Roller helps your list-building or table math, consider supporting the project on Ko-fi. After covering hosting costs for the year (domain name), I will donate to local food banks.

Acknowledgments

Dice symbols in Quick roll use the Legion font by Owen-A (MIT). Thank you for making Legion-friendly typography available to the community.

Development

Client-side only — React, TypeScript, and Vite. No backend, database, or Docker required.

Prerequisites: Node.js 20+

Install

npm install

Run locally

npm run dev

Opens the dev server at http://localhost:5173 with hot module replacement.

Build

npm run build

Type-checks with TypeScript, then produces a production bundle in dist/. Preview the build locally with:

npm run preview

Test

npm run test

Runs the Vitest unit test suite once. For watch mode during development:

npm run test:watch

Lint and format

npm run lint
npm run format:check

Use npm run format to apply Prettier formatting.

About

Probability Calculator and Dice Simulator for Star Wars Legion Dice, Keywords and Tokens

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages