Files
ppse/HW1/game_data.py
T
2026-08-24 13:49:19 +02:00

120 lines
2.8 KiB
Python

##########################
#known moves
##########################
tackle = {
'name': 'tackle',
'type': 'normal',
'category': 'physical',
'power': 35,
'accuracy': 0.95,
'PP': 35
}
razor_leaf = {
'name': 'razor leaf',
'type': 'grass',
'category': 'physical',
'power': 55,
'accuracy': 0.95,
'PP': 25
}
ember = {
'name': 'ember',
'type': 'fire',
'category': 'special',
'power': 40,
'accuracy': 1.0,
'PP': 25
}
water_gun = {
'name': 'water gun',
'type': 'water',
'category': 'special',
'power': 40,
'accuracy': 1.0,
'PP': 25
}
peck = {
"name": "peck",
"type": "flying",
"category": "physical",
"power": 35,
"accuracy": 1.0,
"PP": 35
}
twineedle = {
"name": "twineedle",
"type": "bug",
"category": "physical",
"power": 25,
"accuracy": 1.0,
"PP": 20
}
available_moves = {'tackle': tackle, 'razor leaf': razor_leaf, 'ember': ember, 'water gun': water_gun, 'peck': peck, 'twineedle': twineedle}
###########################
#starter pokemon
###########################
bulbasaur = {
'national_pokedex_number': 1,
'name': "bulbasaur",
'types': ["grass", "poison"],
'baseStats': {"hp": 45, "attack": 49, "defense": 49, "speed": 45, "special": 65},
'moves': ["tackle", "razor leaf"]
}
charmender = {
'national_pokedex_number': 4,
'name': "charmander",
'types': ["fire"],
'baseStats': {"hp": 39, "attack": 52, "defense": 43, "speed": 65, "special": 50},
'moves': ["tackle", "ember"]
}
squirtle = {
'national_pokedex_number': 7,
'name': "squirtle",
'types': ["water"],
'baseStats': {"hp": 44, "attack": 48, "defense": 65, "speed": 43, "special": 50},
'moves': ["tackle", "water gun"]
}
available_starters = {'bulbasaur': bulbasaur, 'charmander': charmender, 'squirtle': squirtle}
available_starter_names = list(available_starters.keys())
############################
############################
#wild pokemons
############################
caterpie = {
"national_pokedex_number": 10,
"name": "caterpie",
"types": ["bug"],
"baseStats": {"hp": 45, "attack": 30, "defense": 35, "speed": 45, "special": 20},
"moves" : ["twineedle"]
}
pidgey = {
"national_pokedex_number": 16,
"name": "pidgey",
"types": ["normal", "flying"],
"baseStats": {"hp": 40, "attack": 45, "defense": 40, "speed": 56, "special": 35},
"moves" : ["tackle", "peck"]
}
rattata = {
"national_pokedex_number": 19,
"name": "rattata",
"types": ["normal"],
"baseStats": {"hp": 30, "attack": 56, "defense": 35, "speed": 72, "special": 25},
"moves" : ["tackle"]
}
available_wild_pokemons = {'caterpie':caterpie, 'pidgey':pidgey, 'rattata':rattata}
available_wild_pokemon_names = list(available_wild_pokemons.keys())