fix: reading type data from wrong source
parent
635e67d6c7
commit
ffbcea507b
|
|
@ -11,7 +11,7 @@ use crate::pokemon::*;
|
||||||
lazy_static! {
|
lazy_static! {
|
||||||
static ref DATA_DIR: PathBuf = "./data".into();
|
static ref DATA_DIR: PathBuf = "./data".into();
|
||||||
pub static ref TYPE_MAP: HashMap<u8, Type> = {
|
pub static ref TYPE_MAP: HashMap<u8, Type> = {
|
||||||
let types = read_pokedex();
|
let types = read_types();
|
||||||
let mut map = HashMap::new();
|
let mut map = HashMap::new();
|
||||||
for type_data in types.members() {
|
for type_data in types.members() {
|
||||||
if let Some(type_data) = Type::from_json(type_data) {
|
if let Some(type_data) = Type::from_json(type_data) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue