fix flake8 warnings

This commit is contained in:
Robert Kubosz
2020-05-12 17:33:27 +02:00
parent 805c716d25
commit bcc42c4edb
2 changed files with 5 additions and 6 deletions
+2 -2
View File
@@ -176,8 +176,8 @@ class InfuseItem(Feature):
def name(self):
known_infusions = self._infusions[self.owner.Artificer.level][0]
infused_items = self._infusions[self.owner.Artificer.level][1]
return self._name + " ({:d} Infusions Known, {:d} Infused Items)".format(
known_infusions, infused_items)
name_ext = " ({:d} Infusions Known, {:d} Infused Items)"
return self._name + name_ext.format(known_infusions, infused_items)
class ArtificerSpecialist(Feature):
+3 -4
View File
@@ -1,11 +1,9 @@
class Infusion():
name = "Unknown infusion"
item = "Item to be infused"
prerequisite = ""
classes = ('Artificer',)
def __str__(self):
indicator = ('$', self.special_material)
if indicator:
@@ -91,7 +89,7 @@ class HomunculusServant(Infusion):
take a bonus action on your turn to command it to take the action in its
stat block or the Dash, Disengage, Help, Hide, or Search action.
The homunculus regains 2d6 hit points if the mending spell is cast on it.
The homunculus regains 2d6 hit points if the *mending* spell is cast on it.
If it dies, it vanishes, leaving its heart in its space.
"""
@@ -130,7 +128,8 @@ class RepeatingShot(Infusion):
"""
name = "Repeating Shot"
item = "A simple or martial weapon with the ammunition property (requires attunement)"
item = """A simple or martial weapon with the ammunition property (requires
attunement)"""
class ReplicateMagicItem(Infusion):