Gerdofal / foundryvtt-cyberpunkred

GNU General Public License v3.0
20 stars 18 forks source link

Implement critical fail rolls #77

Closed njfox closed 3 years ago

njfox commented 3 years ago

This implements critical failures in a similar manner to critical success rolls. I had to extend the built-in Die class because of some limitations on overriding the "d" term, so you now roll a dp die instead of a d10. You can handle "imploding" dice by adding an ix modifier to the roll (e.g., dpixo1 would implode on a roll of 1). The default roll in settings.js has been updated to handle both imploding and exploding dice (crit success and crit fails):

default: "dpixo1xo10",

The chat messages properly show and color the rerolled dice (with crit fails being red) to make it easy to follow the formula in chat:

cprdie

Gerdofal commented 3 years ago

Thanks!