mirror of
https://github.com/Threnklyn/dungeon-sheets.git
synced 2026-06-02 02:48:27 +02:00
fix flake8 warnings
This commit is contained in:
@@ -176,8 +176,8 @@ class InfuseItem(Feature):
|
|||||||
def name(self):
|
def name(self):
|
||||||
known_infusions = self._infusions[self.owner.Artificer.level][0]
|
known_infusions = self._infusions[self.owner.Artificer.level][0]
|
||||||
infused_items = self._infusions[self.owner.Artificer.level][1]
|
infused_items = self._infusions[self.owner.Artificer.level][1]
|
||||||
return self._name + " ({:d} Infusions Known, {:d} Infused Items)".format(
|
name_ext = " ({:d} Infusions Known, {:d} Infused Items)"
|
||||||
known_infusions, infused_items)
|
return self._name + name_ext.format(known_infusions, infused_items)
|
||||||
|
|
||||||
|
|
||||||
class ArtificerSpecialist(Feature):
|
class ArtificerSpecialist(Feature):
|
||||||
|
|||||||
@@ -1,11 +1,9 @@
|
|||||||
|
|
||||||
class Infusion():
|
class Infusion():
|
||||||
name = "Unknown infusion"
|
name = "Unknown infusion"
|
||||||
item = "Item to be infused"
|
item = "Item to be infused"
|
||||||
prerequisite = ""
|
prerequisite = ""
|
||||||
classes = ('Artificer',)
|
classes = ('Artificer',)
|
||||||
|
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
indicator = ('$', self.special_material)
|
indicator = ('$', self.special_material)
|
||||||
if indicator:
|
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
|
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.
|
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.
|
If it dies, it vanishes, leaving its heart in its space.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
@@ -130,7 +128,8 @@ class RepeatingShot(Infusion):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
name = "Repeating Shot"
|
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):
|
class ReplicateMagicItem(Infusion):
|
||||||
|
|||||||
Reference in New Issue
Block a user