Epub now contains character sheets information.

This commit is contained in:
Mark Wolfman
2021-07-11 09:13:55 -05:00
parent 50754f7d5d
commit 8be06d2ffe
17 changed files with 430 additions and 104 deletions
+24 -1
View File
@@ -70,7 +70,7 @@ class Entity(ABC):
gp = 0
pp = 0
equipment = ""
weapons = list()
_weapons = list()
magic_items = list()
armor = None
shield = None
@@ -87,3 +87,26 @@ class Entity(ABC):
def __init__(self):
pass
@property
def weapons(self):
return self._weapons.copy()
@property
def passive_wisdom(self):
return self.perception.modifier + 10
@property
def abilities(self):
return [self.strength, self.dexterity, self.constitution,
self.intelligence, self.wisdom, self.charisma]
@property
def skills(self):
return [self.acrobatics, self.animal_handling, self.arcana,
self.athletics, self.deception, self.history,
self.insight, self.intimidation, self.investigation,
self.medicine, self.nature, self.perception,
self.performance, self.persuasion, self.religion,
self.sleight_of_hand, self.stealth, self.survival,]