mirror of
https://github.com/Threnklyn/dungeon-sheets.git
synced 2026-06-05 20:38:26 +02:00
added ALL spells; can add magic weapons/armor/shields using +X in name
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user