added ALL spells; can add magic weapons/armor/shields using +X in name

This commit is contained in:
Ben Cook
2019-03-21 16:32:18 -04:00
parent 9e7b3485b5
commit 9f608288cf
42 changed files with 14390 additions and 7098 deletions
+11
View File
@@ -14,6 +14,17 @@ class Weapon():
def __init__(self, wielder=None):
self.wielder = wielder
@classmethod
def improved_version(cls, bonus):
bonus = int(bonus)
class NewWeapon(cls):
name = f'+{bonus} ' + cls.name
damage_bonus = bonus
attack_bonus = bonus
return NewWeapon
def apply_features(self):
if (not self.features_applied) and (self.wielder is not None):
self.features_applied = True