Trekiros / battleSim

A simple encounter simulator for TTRPG battles, to help game master plan fun games.
battlesim-zeta.vercel.app
51 stars 21 forks source link

Add critical damage to dice expressions #18

Closed pero5ar closed 4 months ago

pero5ar commented 5 months ago

I've added the option to double damage dice in dice.ts, replace the unused canCrit argument with that and used it in the attack damage calculation.

vercel[bot] commented 5 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
battlesim ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 30, 2024 7:36pm
Trekiros commented 4 months ago

Ah, thank you for this, I couldn't figure out a way to handle crits that was nearly as clean as what you did here 👍