Beispiel #1
0
 def __init__(self, ctype, colour=None, max_output=None):
     self.slot = Items.Slot()
     if colour:
         self.colour = colour
     self.slot.backcol = self.colour
     self.ctype = ctype
     self.max_output = None if max_output is None else max_output / 60
Beispiel #2
0
 def respawn(self):
     self.inv = Items.MultiSlot([Items.Slot() for _ in range(7)])
     self.spawn.respawn(self)
     self.hp=1
Beispiel #3
0
 def __init__(self,coords,j):
     super().__init__(coords)
     self.col=j.col
     self.j=j
     self.inv=Items.MultiSlot([Items.Slot() for _ in range(7)])
     self.pick=Tools.Pickaxe()
Beispiel #4
0
 def __init__(self, recipe, power):
     self.input = Items.Slot()
     self.output = Items.Slot()
     self.recipe = recipe
     self.power = power / 60