Added ability-specific saving throw bonuses to magic items.

This commit is contained in:
Mark Wolfman
2021-08-08 17:26:28 -05:00
parent 700541a35d
commit 7b5aac9247
6 changed files with 109 additions and 21 deletions
+2 -5
View File
@@ -73,8 +73,8 @@ multiclass_spellslots_by_level = {
class Character(Creature):
"""A generic player character."""
# Character-specific
name = "Unknown Hero"
player_name = ""
xp = 0
# Extra hit points info, for characters only
@@ -713,10 +713,7 @@ class Character(Creature):
@property
def magic_items_text(self):
s = ", ".join(
[
f.name + ("**" if f.needs_implementation else "")
for f in sorted(self.magic_items, key=(lambda x: x.name))
]
[f.name for f in sorted(self.magic_items, key=(lambda x: x.name))]
)
if s:
s += ", "