# Path: data/pokedex.py



import math
from data.pokedex import Pokedex
def getBaseSpecies(species):
    if species in Pokedex: return species
    species = species.split('-')[0]
    return species

def relativeWeightBasedBasePower(attacker, defender):
	aWeight = attacker['weightkg']
	dWeight = defender['weightkg']
	if aWeight > dWeight * 5: return 120
	if aWeight > dWeight * 4: return 100
	if aWeight > dWeight * 3: return 80
	if aWeight > dWeight * 2: return 60
	return 40

def absoluteWeightBasedBasePower(_, defender):
    weight = defender['weightkg']
    if weight >= 2000: return 120
    if weight >= 1000: return 100
    if weight >= 500: return 80
    if weight >= 250: return 60
    if weight >= 100: return 40
    return 20

def noItemBoost(cur, attacker, _):
    if not attacker.item:
        return cur * 2
    return cur

def requiresOpponentItem(cur, _, defender):
    if not defender.item:

# Path: data/pokedex.py



# Path: plugins/battling/battleCallbacks.py
import math
from data.pokedex import Pokedex

def getBaseSpecies(species):
    if species in Pokedex: return species
    species = species.split('-')[0]
    return species

def relativeWeightBasedBasePower(attacker, defender):
	aWeight = attacker['weightkg']
	dWeight = defender['weightkg']
	if aWeight > dWeight * 5: return 120
	if aWeight > dWeight * 4: return 100
	if aWeight > dWeight * 3: return 80
	if aWeight > dWeight * 2: return 60
	return 40

def absoluteWeightBasedBasePower(_, defender):
    weight = defender['weightkg']
    if weight >= 2000: return 120
    if weight >= 1000: return 100
    if weight >= 500: return 80
    if weight >= 250: return 60
    if weight >= 100: return 40
    return 20

def noItemBoost(cur, attacker, _):
    if not attacker.item:
        return cur * 2
    return cur

def requiresOpponentItem(cur, _, defender):
    if not defender.item:

        return 0