def farm(self, nruns=1):
    self.runs = 0
    self.refills = 0
    self.refilltype = 'gapple'
    self.supportce = 'teatime'
    self.supportservant = 'skadi'
    self.saveframe = False
    while True:
        res = self.wave1()
        if (res < 0):
            return (- 1)
        res = self.wave2()
        if (res < 0):
            return (- 1)
        res = self.wave3()
        if (res < 0):
            return (- 1)
        res = self.finishbattle()
        if (res < 0):
            return (- 1)
        self.runs += 1
        if (self.runs >= nruns):
            res = self.norepeatquest()
            break
        res = self.repeatquestrefill()
        if (res < 0):
            return (- 1)
        res = self.selectsupport()
        if (res < 0):
            return (- 1)
    return self.runs
def farm(self, nruns=1):
    self.runs = 0
    self.refills = 0
    self.refilltype = 'gapple'
    self.supportce = 'teatime'
    self.supportservant = 'skadi'
    self.saveframe = False
    while True:
        res = self.wave1()
        if (res < 0):
            return (- 1)
        res = self.wave2()
        if (res < 0):
            return (- 1)
        res = self.wave3()
        if (res < 0):
            return (- 1)
        res = self.finishbattle()
        if (res < 0):
            return (- 1)
        self.runs += 1
        if (self.runs >= nruns):
            res = self.norepeatquest()
            break
        res = self.repeatquestrefill()
        if (res < 0):
            return (- 1)
        res = self.selectsupport()
        if (res < 0):
            return (- 1)
    return self.runs