summaryrefslogtreecommitdiff
path: root/creature.py
diff options
context:
space:
mode:
authorSupremist <sergkarv@gmail.com>2025-10-29 22:58:37 +0200
committerSupremist <sergkarv@gmail.com>2025-10-29 22:58:37 +0200
commit9fa4cfbe2f948f4067ca1572bbc5dbfab678e7da (patch)
tree590bb32b5a11dd2f3b5f9a0999d5e809ad1f3749 /creature.py
parent0ada03ebf6a879e0a77475d525141d1090bcd634 (diff)
downloadpf2e_calc-9fa4cfbe2f948f4067ca1572bbc5dbfab678e7da.tar.xz
pf2e_calc-9fa4cfbe2f948f4067ca1572bbc5dbfab678e7da.zip
Add Attack action
Diffstat (limited to 'creature.py')
-rw-r--r--creature.py6
1 files changed, 5 insertions, 1 deletions
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()