diff --git a/dungeonsheets/encounter.py b/dungeonsheets/encounter.py index 27dcc65..8984171 100644 --- a/dungeonsheets/encounter.py +++ b/dungeonsheets/encounter.py @@ -1,5 +1,7 @@ from collections import namedtuple +from dungeonsheets.content import Content + XPThreshold = namedtuple("XPThreshold", ("easy", "medium", "hard", "deadly")) @@ -40,3 +42,7 @@ def xp_thresholds(party): deadly=sum(th.deadly for th in thresholds), ) return final_thresholds + + +class Encounter(Content): + pass diff --git a/dungeonsheets/mechanics.py b/dungeonsheets/mechanics.py index 0d574cf..3407c28 100644 --- a/dungeonsheets/mechanics.py +++ b/dungeonsheets/mechanics.py @@ -2,6 +2,7 @@ game mechanics.""" from dungeonsheets.content import Content, Creature +from dungeonsheets.encounter import Encounter from dungeonsheets.spells import Spell from dungeonsheets.features import Feature from dungeonsheets.infusions import Infusion diff --git a/tests/test_encounter.py b/tests/test_encounter.py index 0674beb..24b34ea 100644 --- a/tests/test_encounter.py +++ b/tests/test_encounter.py @@ -15,3 +15,8 @@ class TestStats(TestCase): party = [self.new_character(9), self.new_character(8), self.new_character(6)] xp_th = encounter.xp_thresholds(party) self.assertEqual(xp_th, (1300, 2600, 3900, 5900)) + + +class TestEncounter(TestCase): + def test_encounter_init(self): + enc = encounter.Encounter()