route_1 = Room('route 1', {}, []) oak = Room('oak\'s office', {}, []) oak.doors({'north': route_1}) route_1.doors({'south': oak, 'north': v_city}) v_city.doors({'south': route_1}) starters = [] all_pokes = [] bulb = Pokemon('bulbasaur', route_1, {'absorb': 5}, 'gary\'s grass starter') squirt = Pokemon('squirtle', route_1, {'bubble': 5}, 'gary\'s water starter') charm = Pokemon('charmander', route_1, {'ember': 5}, 'gary\'s fire starter') bulbasaur = Pokemon('bulbasaur', oak, {'absorb': 20}, 'The grass starter') squirtle = Pokemon('squirtle', oak, {'bubble': 20}, 'The water starter') charmander = Pokemon('charmander', oak, {'ember': 20}, 'The fire starter') oak.add_pokemon(bulbasaur) oak.add_pokemon(squirtle) oak.add_pokemon(charmander) starters.append(bulb) starters.append(squirt) starters.append(charm) player = Trainer('ash') rb1 = Trainer('gary') rb1.weapon = random.choice(starters) rb1.location = route_1 trainer_list = [] a = list(globals().values())
butterfree = Pokemon('butterfree', v_forest6, {'charm': 1}, 'zak\'s butterfly pokemon') bulbasaur = Pokemon('bulbasaur', oak, {'absorb': 20}, 'The grass starter') squirtle = Pokemon('squirtle', oak, {'bubble': 20}, 'The water starter') charmander = Pokemon('charmander', oak, {'ember': 20}, 'The fire starter') mew = Pokemon('mew', broom, {'psychic': 60, 'megapunch': 50}, 'mysterious pokemon') pidgey = Pokemon('pidgey', route_1, {'gust': 20, 'tackle': 15}, 'tiny bird pokemon') rattata = Pokemon('rattata', route_1, {'tackle': 20}, 'mouse pokemon') caterpie = Pokemon('caterpie', v_forest2, {'tackle': 20}, 'worm pokemon') weedle = Pokemon('weedle', v_forest2, {'poisonsting': 20}, 'hairy bug pokemon') metapod = Pokemon('metapod', v_forest3, {'harden': 5}, 'cocoon pokemon') kakuna = Pokemon('kakuna', v_forest5, {'harden': 5}, 'cocoon pokemon') scyther = Pokemon('scyther', v_forest6, {'slash': 35, 'cut': 20}, 'mantis pokemon') pikachu = Pokemon('pikachu', v_forest6, {'volttackle': 30, 'tackle': 20}, 'mouse pokemon') oak.add_pokemon(bulbasaur) oak.add_pokemon(squirtle) oak.add_pokemon(charmander) broom.add_pokemon(mew) starters.append(bulb) starters.append(squirt) starters.append(charm) route_1.add_pokemon(pidgey) route_1.add_pokemon(rattata) v_forest2.add_pokemon(caterpie) v_forest2.add_pokemon(weedle) v_forest3.add_pokemon(metapod) v_forest5.add_pokemon(kakuna) v_forest6.add_pokemon(scyther) v_forest6.add_pokemon(pikachu)