Example #1
0
 static void bpm(int s, int, BS &b) {
     if (tmove(b,s).type == poke(b,s)["ItemArg"]) {
         if (b.gen() >= 4)
             b.chainBp(s, 4);
         else
             b.chainBp(s, 2);
     }
 }
Example #2
0
    static void bpm(int s, int, BS &b) {
        QStringList args = poke(b,s)["ItemArg"].toString().split('_');
        QStringList pokes = args[0].split('/');
        if (!pokes.contains(QString::number(b.pokenum(s).pokenum)))
            return;

        int type = tmove(b,s).type;
        for (int i = 1; i < args.size(); i++) {
            if (type == args[i].toInt())
                b.chainBp(s, 4);
        }
    }
Example #3
0
 static void bpm(int s, int, BS &b) {
     if (tmove(b,s).category == poke(b,s)["ItemArg"]) {
         b.chainBp(s, 2);
     }
 }