avrae / d20

A fast, powerful, and extensible dice engine for D&D, d20 systems, and any other system that needs dice!
MIT License
121 stars 27 forks source link

Add Fate die support #11

Open xudonax opened 1 year ago

xudonax commented 1 year ago

Summary

This is kinda rough, but should work fine. A physical Fate die is a d6 containing two - signs, two + signs, and two blank sides. This is emulated using -1 for the - sign, +1 for the + sign, and a 0 for the blank side. The result is that we can still add them up (so 10dF work), subtract them, keep highest etcetera.

Also added a FateLiteral class that's optional, it's just there to make the result (when looking at result. Expr) a bit nicer.

Resolves #8

Checklist

PR Type

xudonax commented 1 year ago

I couldn't find where the readthedocs site is generated from, but I did update the README, I hope that's enough to tick the "I have updated the documentation to reflect the changes"