From 9fa4cfbe2f948f4067ca1572bbc5dbfab678e7da Mon Sep 17 00:00:00 2001 From: Supremist Date: Wed, 29 Oct 2025 22:58:37 +0200 Subject: Add Attack action --- creature.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'creature.py') diff --git a/creature.py b/creature.py index aa830f6..8ec883d 100644 --- a/creature.py +++ b/creature.py @@ -88,10 +88,14 @@ class CreaturePlan(LevelingPlan, dict): self.stat_range_value = stat_range_value def build(self, level: int): - res = dict() + res = Creature() for stat, difficulty in self.items(): res[stat] = stats.get(stat, level, difficulty, self.stat_range_value) return res +class Creature(dict): + def ac(self): + return self["ac"] + # if __name__ == '__main__': # main() -- cgit v1.2.3