Monster stat blocks now include XP alongside challenge rating.

This commit is contained in:
Mark Wolfman
2021-08-08 22:01:02 -05:00
parent 7b5aac9247
commit 8fab8911cd
6 changed files with 60 additions and 4 deletions
+5
View File
@@ -362,3 +362,8 @@ class MonsterSpellcastingTests(TestCase):
msg="Monster spell is not a class")
self.assertTrue(issubclass(MyMonster.spells[0], spells.Spell))
class ChallengeRatingTests(TestCase):
def test_challenge_rating_to_xp(self):
self.assertEqual(monsters.challenge_rating_to_xp(1 / 8), "25")
self.assertEqual(monsters.challenge_rating_to_xp(30), "155,000")