コード例 #1
0
ファイル: xfiles.py プロジェクト: yukkeorg/PachiCounter
 def on(self, cbittype, bitgroup, cd):
     if cbittype == USBIO_BIT.COUNT:
         cd.count += 1
         cd.totalcount += 1
         if bit_is_enable(bitgroup, USBIO_BIT.CHANCE):
             cd.chancegames += 1
             # 直撃のEXTRA-RUSHは、最初の5回転のみではUFO-ZONEと見分けが
             # つかないため、UFO-ZONE状態中に5回転以上回ったら、直撃の
             # XTRA-RUSHだったと判定する。
             if self.state == STATE.UFOZONE and cd.count > 5:
                 self.state = STATE.EXTRARUSH
                 cd.xr += 1
         else:
             cd.normalgames += 1
     if cbittype == USBIO_BIT.BONUS:
         cd.bonus += 1
         if bit_is_enable(bitgroup, USBIO_BIT.CHANCE):
             cd.chain += 1
             if self.state == STATE.NORMAL:
                 self.state = STATE.UFOZONE
             elif self.state == STATE.UFOZONE:
                 self.state = STATE.XTRARUSH
                 cd.xr += 1
     if cbittype == USBIO_BIT.CHANCE:
         cd.chance += 1
     if cbittype == USBIO_BIT.SBONUS:
         cd.sbonus += 1
コード例 #2
0
ファイル: stealth.py プロジェクト: yukkeorg/PachiCounter
 def on(self, cbtype, iostatus, cd):
     if cbtype == USBIO_BIT.COUNT:
         cd['count'] += 1
         if not bit_is_enable(iostatus, USBIO_BIT.CHANCE):
             cd['totalcount'] += 1
     elif cbtype == USBIO_BIT.BONUS:
         cd['bonus'] += 1
         cd['isbonus'] = 1
         if bit_is_enable(iostatus, USBIO_BIT.CHANCE):       # チャンス中
             cd['chain'] += 1
     elif cbtype == USBIO_BIT.CHANCE:
         cd['chance'] += 1
     elif cbtype == USBIO_BIT.SBONUS:
         cd['sbonus'] += 1
コード例 #3
0
ファイル: vb.py プロジェクト: yukkeorg/PachiCounter
 def on(self, cbittype, bitgroup, cd):
     if cbittype == USBIO_BIT.COUNT:
         cd["count"] += 1
         cd["totalcount"] += 1
         if bit_is_enable(bitgroup, USBIO_BIT.CHANCE):
             cd["chancegames"] += 1
         else:
             cd["normalgames"] += 1
     elif cbittype == USBIO_BIT.BONUS:
         cd["bonus"] += 1
         if bit_is_enable(bitgroup, USBIO_BIT.CHANCE):
             cd["chain"] += 1
             self.bonus_history.insert(0, (cd["chain"], cd["count"]))
     elif cbittype == USBIO_BIT.CHANCE:
         cd["chance"] += 1
コード例 #4
0
ファイル: stealth.py プロジェクト: yukkeorg/PachiCounter
 def off(self, cbtype, iostatus, cd):
     if cbtype == USBIO_BIT.BONUS:
         cd['isbonus'] = 0
         cd['count'] = 0
         if bit_is_enable(iostatus, USBIO_BIT.CHANCE):       # チャンス中
             cd['chancetime'] = 1
     elif cbtype == USBIO_BIT.CHANCE:
         cd['count'] = 0
         cd['chain'] = 0
         cd['chancetime'] = 0
コード例 #5
0
ファイル: uforush.py プロジェクト: yukkeorg/PachiCounter
    def off(self, cbtype, iostatus, cd):
        ischance = bit_is_enable(iostatus, USBIO_BIT.CHANCE)
        if cbtype == USBIO_BIT.BONUS:
            cd.isbonus = 0
            cd.count = 0
            if ischance:
                cd.chancetime = 1

            self.gcdelta.check()
            d = self.bonustime.getDelta()
            bi = self.detectBonus(d)
            cd.spb = d
            cd.pbr = bi.nround
            cd.voutput += bi.gainpts

        elif cbtype == USBIO_BIT.CHANCE:
            cd.chain = 0
            cd.chancetime = 0
            cd.totalcount += cd.count
コード例 #6
0
ファイル: uforush.py プロジェクト: yukkeorg/PachiCounter
    def on(self, cbtype, iostatus, cd):
        ischance = bit_is_enable(iostatus, USBIO_BIT.CHANCE)

        if cbtype == USBIO_BIT.COUNT:
            cd.count += 1
            if not ischance:
                cd.totalcount += 1

            d = self.gcdelta.getDelta()
            lps = (self.NORMAL_LPS if not ischance else self.CHANCE_LPS)
            cd.spg = d
            cd.voutput += (min(self.MaxSPC, d) * lps)

        elif cbtype == USBIO_BIT.BONUS:
            self.bonustime.check()
            cd.bonus += 1
            cd.isbonus = 1
            if ischance:
                cd.chain += 1

        elif cbtype == USBIO_BIT.CHANCE:
            cd.chance += 1