dnd code
How likely a spell is to land on one cast against every monster in MM, MPMM, MTF and Tome of Beasts — ten spells, one per save type — plus spell attacks compared with saves, and per-target damage for the common cantrips.
.venv/bin/python -m pytest test_spell_saves.py -q # the model, and the bugs it fixed
.venv/bin/jupyter notebook compute_spell_damage_and_saves.ipynb
.venv/bin/python writeup/build.py # rebuild writeup/will_it_land.html
spell_saves.py is the model. Every figure is exact rather than simulated.