summaryrefslogtreecommitdiff
path: root/items.py
diff options
context:
space:
mode:
authorSupremist <sergkarv@gmail.com>2025-10-28 22:40:53 +0200
committerSupremist <sergkarv@gmail.com>2025-10-28 22:40:53 +0200
commit09c4ea324a1f3288e4f85d0d9f12220dc4b187fc (patch)
treed067354bf61e7a2a90346c3fe82f403efd3606b2 /items.py
parent0cc1078b97891cab00f724e6b2a1a8287b293d3d (diff)
downloadpf2e_calc-09c4ea324a1f3288e4f85d0d9f12220dc4b187fc.tar.xz
pf2e_calc-09c4ea324a1f3288e4f85d0d9f12220dc4b187fc.zip
Add simple items classes
Diffstat (limited to 'items.py')
-rw-r--r--items.py26
1 files changed, 26 insertions, 0 deletions
diff --git a/items.py b/items.py
new file mode 100644
index 0000000..a26316c
--- /dev/null
+++ b/items.py
@@ -0,0 +1,26 @@
+from dataclasses import dataclass
+
+@dataclass
+class Armor:
+ name: str
+ category: str
+ ac: int
+ potency: int = 0
+ resilient: int = 0
+ dex_cap: int = 99 # uncapped
+ check_penalty: int = 0
+ speed_penalty: int = 0
+ strength_req: int = 0
+
+@dataclass
+class Weapon:
+ name: str
+ category: str
+ main_die: int
+ potency: int = 0
+ striking: int = 0
+ backstabber: bool = False
+ fatal: int = 0
+ deadly: int = 0
+ agile: bool = False
+ twin: bool = False