Esempio n. 1
0
 def __init__(self, connection, cursor):
     DBAdder.__init__(self, connection, cursor)
     self.getIDForType = {
         "APPLY LOCK": self.buildApplyLock,
         "CHANCE": self.buildChance,
         "CHARGE": self.buildCharge,
         "CONFUSE": self.buildConfuse,
         "CRIT MOD": self.buildCritMod,
         "CURE STATUS": self.buildCureStatus,
         "DAMAGE IS EFFECT": self.buildDamageIsEffect,
         "DIVERGE ON FAINT": self.buildDivergeOnFaint,
         "DODGE": self.buildDodge,
         "FLINCH": self.buildFlinch,
         "HEAL DAMAGE RATIO": self.buildHealDamageRatio,
         "HEAL HP RATIO": self.buildHealHPRatio,
         "LEECH": self.buildLeech,
         "MULTI TUNR RANGE": self.buildMultiTurnRange,
         "RND STAT MOD": self.buildRndStatMod,
         "RECOIL": self.buildRecoil,
         "RESET STAT MODS": self.buildResetStatMods,
         "RANDOM SWITCH": self.buildRandomSwitch,
         "PERIODIC HEAL": self.buildPeriodicHeal,
         "SELFDESTRUCT": self.buildSelfdestruct,
         "STAT MOD": self.buildStatMod,
         "STATUS": self.buildStatus,
         "SWAP ABILITY": self.buildSwapAbility,
         "SWAP STATS": self.buildSwapStats,
         "SWAP STAT MODS": self.buildSwapStatMods,
         "SWITCH": self.buildSwitch,
         "TRAP": self.buildTrap,
         "USELESS": self.buildUseless,
     }
Esempio n. 2
0
 def __init__(self, connection, cursor):
     DBAdder.__init__(self, connection, cursor)
     self.getIDForType = {
         'APPLY LOCK': self.buildApplyLock,
         'CHANCE': self.buildChance,
         'CHARGE': self.buildCharge,
         'CONFUSE': self.buildConfuse,
         'CRIT MOD': self.buildCritMod,
         'CURE STATUS': self.buildCureStatus,
         'DAMAGE IS EFFECT': self.buildDamageIsEffect,
         'DIVERGE ON FAINT': self.buildDivergeOnFaint,
         'DODGE': self.buildDodge,
         'FLINCH': self.buildFlinch,
         'HEAL DAMAGE RATIO': self.buildHealDamageRatio,
         'HEAL HP RATIO': self.buildHealHPRatio,
         'LEECH': self.buildLeech,
         'MULTI TUNR RANGE': self.buildMultiTurnRange,
         'RND STAT MOD': self.buildRndStatMod,
         'RECOIL': self.buildRecoil,
         'RESET STAT MODS': self.buildResetStatMods,
         'RANDOM SWITCH': self.buildRandomSwitch,
         'PERIODIC HEAL': self.buildPeriodicHeal,
         'SELFDESTRUCT': self.buildSelfdestruct,
         'STAT MOD': self.buildStatMod,
         'STATUS': self.buildStatus,
         'SWAP ABILITY': self.buildSwapAbility,
         'SWAP STATS': self.buildSwapStats,
         'SWAP STAT MODS': self.buildSwapStatMods,
         'SWITCH': self.buildSwitch,
         'TRAP': self.buildTrap,
         'USELESS': self.buildUseless
     }
Esempio n. 3
0
 def __init__(self, connection, cursor):
     DBAdder.__init__(self, connection, cursor)
     self.getIDForType = {'ALWAYS':self.buildAlways,
                                    'CORE':self.buildCore,
                                    'PIERCE DODGE':self.buildPierceDodge,
                                    'SELF':self.buildSelf,
                                    'STATUS ALWAYS':self.buildAlways,
                                    'STATUS CORE':self.buildCore}
Esempio n. 4
0
 def __init__(self, connection, cursor):
     DBAdder.__init__(self, connection, cursor)
     self.getIDForType = {
         'ALWAYS': self.buildAlways,
         'CORE': self.buildCore,
         'PIERCE DODGE': self.buildPierceDodge,
         'SELF': self.buildSelf,
         'STATUS ALWAYS': self.buildAlways,
         'STATUS CORE': self.buildCore
     }
Esempio n. 5
0
 def __init__(self, connection, cursor):
     DBAdder.__init__(self, connection, cursor)
     self.getIDForType = {'BOOST STATUS':self.buildBoostOnStatus,
                                    'CORE':self.buildCore,
                                    'EFFECT ON DAMAGE':self.buildEffectOnDamage,
                                    'FIXED':self.buildFixed,
                                    'HALF HEALTH':self.buildHalfHealth,
                                    'LEVEL':self.buildLevel,
                                    'NO FAINT':self.buildNoFaint,
                                    'ONE HIT KO':self.buildOneHitKO,
                                    'PIERCE DODGE 2X':self.buildPierceDodgeX2,
                                    'SCALE':self.buildScale,
                                    'STAT RATIO FIXED':self.buildStatRatioFixed,
                                    'STAT RATIO RANGE':self.buildStatRatioRange}
Esempio n. 6
0
 def __init__(self, connection, cursor):
     DBAdder.__init__(self, connection, cursor)
     self.getIDForType = {
         "BOOST STATUS": self.buildBoostOnStatus,
         "CORE": self.buildCore,
         "EFFECT ON DAMAGE": self.buildEffectOnDamage,
         "FIXED": self.buildFixed,
         "HALF HEALTH": self.buildHalfHealth,
         "LEVEL": self.buildLevel,
         "NO FAINT": self.buildNoFaint,
         "ONE HIT KO": self.buildOneHitKO,
         "PIERCE DODGE 2X": self.buildPierceDodgeX2,
         "SCALE": self.buildScale,
         "STAT RATIO FIXED": self.buildStatRatioFixed,
         "STAT RATIO RANGE": self.buildStatRatioRange,
     }
Esempio n. 7
0
 def __init__(self, connection, cursor):
     DBAdder.__init__(self, connection, cursor)
     self.getIDForType = {'CORE': self.buildCore}
Esempio n. 8
0
 def __init__(self, connection, cursor):
     DBAdder.__init__(self, connection, cursor)
     self.getIDForType = {'CORE':self.buildCore}