def __init__(self, recipe, energy, power): self.inputs = Items.MultiSlot([ Items.FilterSlot(Items.get_item(k), v) for k, v in recipe[0].items() ]) self.output = Items.FilterSlot(recipe[1][0]) self.recipe = recipe self.energy = energy self.power = power / 60 self.tar_inputs = Counter(self.recipe[0])
def __init__(self, energy, power, team): self.inputs = Items.MultiSlot([ Items.FilterSlot(Items.resources["SP%s" % n]) for n in range(1, 7) ]) self.energy = energy self.power = power / 60 self.team = team