| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274 |
- #include <furi_hal_light.h>
- #include <math.h>
- #include <pokemon_icons.h>
- #include "scenes/pokemon_menu.h"
- #include "views/trade.h"
- #include "views/select_pokemon.h"
- #include "pokemon_app.h"
- #include "pokemon_char_encode.h"
- #include <expansion/expansion.h>
- const PokemonTable pokemon_table[] = {
- /* Values for base_*, moves, etc., pulled directly from a copy of Pokemon Blue */
- {"Bulbasaur",
- &I_bulbasaur,
- 0x99,
- 0x2D,
- 0x31,
- 0x31,
- 0x2D,
- 0x41,
- {0x16, 0x03},
- {0x21, 0x2D, 0x00, 0x00},
- GROWTH_MEDIUM_SLOW},
- {"Ivysaur",
- &I_ivysaur,
- 0x09,
- 0x3C,
- 0x3E,
- 0x3F,
- 0x3C,
- 0x50,
- {0x16, 0x03},
- {0x21, 0x2D, 0x49, 0x00},
- GROWTH_MEDIUM_SLOW},
- {"Venusaur",
- &I_venusaur,
- 0x9A,
- 0x50,
- 0x52,
- 0x53,
- 0x50,
- 0x64,
- {0x16, 0x03},
- {0x21, 0x2D, 0x49, 0x16},
- GROWTH_MEDIUM_SLOW},
- {"Charmander",
- &I_charmander,
- 0xB0,
- 0x27,
- 0x34,
- 0x2B,
- 0x41,
- 0x32,
- {0x14, 0x14},
- {0x0A, 0x2D, 0x00, 0x00},
- GROWTH_MEDIUM_SLOW},
- {"Charmeleon",
- &I_charmeleon,
- 0xB2,
- 0x3A,
- 0x40,
- 0x3A,
- 0x50,
- 0x41,
- {0x14, 0x14},
- {0x0A, 0x2D, 0x34, 0x00},
- GROWTH_MEDIUM_SLOW},
- {"Charizard",
- &I_charizard,
- 0xB4,
- 0x4E,
- 0x54,
- 0x4E,
- 0x64,
- 0x55,
- {0x14, 0x02},
- {0x0A, 0x2D, 0x34, 0x2B},
- GROWTH_MEDIUM_SLOW},
- {"Squirtle",
- &I_squirtle,
- 0xB1,
- 0x2C,
- 0x30,
- 0x41,
- 0x2B,
- 0x32,
- {0x15, 0x15},
- {0x21, 0x27, 0x00, 0x00},
- GROWTH_MEDIUM_SLOW},
- {"Wartortle",
- &I_wartortle,
- 0xB3,
- 0x3B,
- 0x3F,
- 0x50,
- 0x3A,
- 0x41,
- {0x15, 0x15},
- {0x21, 0x27, 0x91, 0x00},
- GROWTH_MEDIUM_SLOW},
- {"Blastoise",
- &I_blastoise,
- 0x1C,
- 0x4F,
- 0x53,
- 0x64,
- 0x4E,
- 0x55,
- {0x15, 0x15},
- {0x21, 0x27, 0x91, 0x37},
- GROWTH_MEDIUM_SLOW},
- {"Caterpie",
- &I_caterpie,
- 0x7B,
- 0x2D,
- 0x1E,
- 0x23,
- 0x2D,
- 0x14,
- {0x07, 0x07},
- {0x21, 0x51, 0x00, 0x00},
- GROWTH_MEDIUM_FAST},
- {"Metapod",
- &I_metapod,
- 0x7C,
- 0x32,
- 0x14,
- 0x37,
- 0x1E,
- 0x19,
- {0x07, 0x07},
- {0x6A, 0x00, 0x00, 0x00},
- GROWTH_MEDIUM_FAST},
- {"Butterfree",
- &I_butterfree,
- 0x7D,
- 0x3C,
- 0x2D,
- 0x32,
- 0x46,
- 0x50,
- {0x07, 0x02},
- {0x5D, 0x00, 0x00, 0x00},
- GROWTH_MEDIUM_FAST},
- {"Weedle",
- &I_weedle,
- 0x70,
- 0x28,
- 0x23,
- 0x1E,
- 0x32,
- 0x14,
- {0x07, 0x03},
- {0x28, 0x51, 0x00, 0x00},
- GROWTH_MEDIUM_FAST},
- {"Kakuna",
- &I_kakuna,
- 0x71,
- 0x2D,
- 0x19,
- 0x32,
- 0x23,
- 0x19,
- {0x07, 0x03},
- {0x6A, 0x00, 0x00, 0x00},
- GROWTH_MEDIUM_FAST},
- {"Beedrill",
- &I_beedrill,
- 0x72,
- 0x41,
- 0x50,
- 0x28,
- 0x4B,
- 0x2D,
- {0x07, 0x03},
- {0x1F, 0x00, 0x00, 0x00},
- GROWTH_MEDIUM_FAST},
- {"Pidgey",
- &I_pidgey,
- 0x24,
- 0x28,
- 0x2D,
- 0x28,
- 0x38,
- 0x23,
- {0x00, 0x02},
- {0x10, 0x00, 0x00, 0x00},
- GROWTH_MEDIUM_SLOW},
- {"Pidgeotto",
- &I_pidgeotto,
- 0x96,
- 0x3F,
- 0x3C,
- 0x37,
- 0x47,
- 0x32,
- {0x00, 0x02},
- {0x10, 0x1C, 0x00, 0x00},
- GROWTH_MEDIUM_SLOW},
- {"Pidgeot",
- &I_pidgeot,
- 0x97,
- 0x53,
- 0x50,
- 0x4B,
- 0x5B,
- 0x46,
- {0x00, 0x02},
- {0x10, 0x1C, 0x62, 0x00},
- GROWTH_MEDIUM_SLOW},
- {"Rattata",
- &I_rattata,
- 0xA5,
- 0x1E,
- 0x38,
- 0x23,
- 0x48,
- 0x19,
- {0x00, 0x00},
- {0x21, 0x27, 0x00, 0x00},
- GROWTH_MEDIUM_FAST},
- {"Raticate",
- &I_raticate,
- 0xA6,
- 0x37,
- 0x51,
- 0x3C,
- 0x61,
- 0x32,
- {0x00, 0x00},
- {0x21, 0x27, 0x62, 0x00},
- GROWTH_MEDIUM_FAST},
- {"Spearow",
- &I_spearow,
- 0x05,
- 0x28,
- 0x3C,
- 0x1E,
- 0x46,
- 0x1F,
- {0x00, 0x02},
- {0x40, 0x2D, 0x00, 0x00},
- GROWTH_MEDIUM_FAST},
- {"Fearow",
- &I_fearow,
- 0x23,
- 0x41,
- 0x5A,
- 0x41,
- 0x64,
- 0x3D,
- {0x00, 0x02},
- {0x40, 0x2D, 0x2B, 0x00},
- GROWTH_MEDIUM_FAST},
- {"Ekans",
- &I_ekans,
- 0x6C,
- 0x23,
- 0x3C,
- 0x2C,
- 0x37,
- 0x28,
- {0x03, 0x03},
- {0x23, 0x2B, 0x00, 0x00},
- GROWTH_MEDIUM_FAST},
- {"Arbok",
- &I_arbok,
- 0x2D,
- 0x3C,
- 0x55,
- 0x45,
- 0x50,
- 0x41,
- {0x03, 0x03},
- {0x23, 0x2B, 0x28, 0x00},
- GROWTH_MEDIUM_FAST},
- {"Pikachu",
- &I_pikachu,
- 0x54,
- 0x23,
- 0x37,
- 0x1E,
- 0x5A,
- 0x32,
- {0x17, 0x17},
- {0x54, 0x2D, 0x00, 0x00},
- GROWTH_MEDIUM_FAST},
- {"Raichu",
- &I_raichu,
- 0x55,
- 0x3C,
- 0x5A,
- 0x37,
- 0x64,
- 0x5A,
- {0x17, 0x17},
- {0x54, 0x2D, 0x56, 0x00},
- GROWTH_MEDIUM_FAST},
- {"Sandshrew",
- &I_sandshrew,
- 0x60,
- 0x32,
- 0x4B,
- 0x55,
- 0x28,
- 0x1E,
- {0x04, 0x04},
- {0x0A, 0x00, 0x00, 0x00},
- GROWTH_MEDIUM_FAST},
- {"Sandslash",
- &I_sandslash,
- 0x61,
- 0x4B,
- 0x64,
- 0x6E,
- 0x41,
- 0x37,
- {0x04, 0x04},
- {0x0A, 0x1C, 0x00, 0x00},
- GROWTH_MEDIUM_FAST},
- {"Nidoran\200",
- &I_nidoranf,
- 0x0F,
- 0x37,
- 0x2F,
- 0x34,
- 0x29,
- 0x28,
- {0x03, 0x03},
- {0x2D, 0x21, 0x00, 0x00},
- GROWTH_MEDIUM_SLOW},
- {"Nidorina",
- &I_nidorina,
- 0xA8,
- 0x46,
- 0x3E,
- 0x43,
- 0x38,
- 0x37,
- {0x03, 0x03},
- {0x2D, 0x21, 0x0A, 0x00},
- GROWTH_MEDIUM_SLOW},
- {"Nidoqueen",
- &I_nidoqueen,
- 0x10,
- 0x5A,
- 0x52,
- 0x57,
- 0x4C,
- 0x4B,
- {0x03, 0x04},
- {0x21, 0x0A, 0x27, 0x22},
- GROWTH_MEDIUM_SLOW},
- {"Nidoran\201",
- &I_nidoranm,
- 0x03,
- 0x2E,
- 0x39,
- 0x28,
- 0x32,
- 0x28,
- {0x03, 0x03},
- {0x2B, 0x21, 0x00, 0x00},
- GROWTH_MEDIUM_SLOW},
- {"Nidorino",
- &I_nidorino,
- 0xA7,
- 0x3D,
- 0x48,
- 0x39,
- 0x41,
- 0x37,
- {0x03, 0x03},
- {0x2B, 0x21, 0x1E, 0x00},
- GROWTH_MEDIUM_SLOW},
- {"Nidoking",
- &I_nidoking,
- 0x07,
- 0x51,
- 0x5C,
- 0x4D,
- 0x55,
- 0x4B,
- {0x03, 0x04},
- {0x21, 0x1E, 0x28, 0x25},
- GROWTH_MEDIUM_SLOW},
- {"Clefairy",
- &I_clefairy,
- 0x04,
- 0x46,
- 0x2D,
- 0x30,
- 0x23,
- 0x3C,
- {0x00, 0x00},
- {0x01, 0x2D, 0x00, 0x00},
- GROWTH_FAST},
- {"Clefable",
- &I_clefable,
- 0x8E,
- 0x5F,
- 0x46,
- 0x49,
- 0x3C,
- 0x55,
- {0x00, 0x00},
- {0x2F, 0x03, 0x6B, 0x76},
- GROWTH_FAST},
- {"Vulpix",
- &I_vulpix,
- 0x52,
- 0x26,
- 0x29,
- 0x28,
- 0x41,
- 0x41,
- {0x14, 0x14},
- {0x34, 0x27, 0x00, 0x00},
- GROWTH_MEDIUM_FAST},
- {"Ninetales",
- &I_ninetales,
- 0x53,
- 0x49,
- 0x4C,
- 0x4B,
- 0x64,
- 0x64,
- {0x14, 0x14},
- {0x34, 0x27, 0x62, 0x2E},
- GROWTH_MEDIUM_FAST},
- {"Jigglypuff",
- &I_jigglypuff,
- 0x64,
- 0x73,
- 0x2D,
- 0x14,
- 0x14,
- 0x19,
- {0x00, 0x00},
- {0x2F, 0x00, 0x00, 0x00},
- GROWTH_FAST},
- {"Wigglytuff",
- &I_wigglytuff,
- 0x65,
- 0x8C,
- 0x46,
- 0x2D,
- 0x2D,
- 0x32,
- {0x00, 0x00},
- {0x2F, 0x32, 0x6F, 0x03},
- GROWTH_FAST},
- {"Zubat",
- &I_zubat,
- 0x6B,
- 0x28,
- 0x2D,
- 0x23,
- 0x37,
- 0x28,
- {0x03, 0x02},
- {0x8D, 0x00, 0x00, 0x00},
- GROWTH_MEDIUM_FAST},
- {"Golbat",
- &I_golbat,
- 0x82,
- 0x4B,
- 0x50,
- 0x46,
- 0x5A,
- 0x4B,
- {0x03, 0x02},
- {0x8D, 0x67, 0x2C, 0x00},
- GROWTH_MEDIUM_FAST},
- {"Oddish",
- &I_oddish,
- 0xB9,
- 0x2D,
- 0x32,
- 0x37,
- 0x1E,
- 0x4B,
- {0x16, 0x03},
- {0x47, 0x00, 0x00, 0x00},
- GROWTH_MEDIUM_SLOW},
- {"Gloom",
- &I_gloom,
- 0xBA,
- 0x3C,
- 0x41,
- 0x46,
- 0x28,
- 0x55,
- {0x16, 0x03},
- {0x47, 0x4D, 0x4E, 0x00},
- GROWTH_MEDIUM_SLOW},
- {"Vileplume",
- &I_vileplume,
- 0xBB,
- 0x4B,
- 0x50,
- 0x55,
- 0x32,
- 0x64,
- {0x16, 0x03},
- {0x4E, 0x4F, 0x33, 0x50},
- GROWTH_MEDIUM_SLOW},
- {"Paras",
- &I_paras,
- 0x6D,
- 0x23,
- 0x46,
- 0x37,
- 0x19,
- 0x37,
- {0x07, 0x16},
- {0x0A, 0x00, 0x00, 0x00},
- GROWTH_MEDIUM_FAST},
- {"Parasect",
- &I_parasect,
- 0x2E,
- 0x3C,
- 0x5F,
- 0x50,
- 0x1E,
- 0x50,
- {0x07, 0x16},
- {0x0A, 0x4E, 0x8D, 0x00},
- GROWTH_MEDIUM_FAST},
- {"Venonat",
- &I_venonat,
- 0x41,
- 0x3C,
- 0x37,
- 0x32,
- 0x2D,
- 0x28,
- {0x07, 0x03},
- {0x21, 0x32, 0x00, 0x00},
- GROWTH_MEDIUM_FAST},
- {"Venomoth",
- &I_venomoth,
- 0x77,
- 0x46,
- 0x41,
- 0x3C,
- 0x5A,
- 0x5A,
- {0x07, 0x03},
- {0x21, 0x32, 0x4D, 0x8D},
- GROWTH_MEDIUM_FAST},
- {"Diglett",
- &I_diglett,
- 0x3B,
- 0x0A,
- 0x37,
- 0x19,
- 0x5F,
- 0x2D,
- {0x04, 0x04},
- {0x0A, 0x00, 0x00, 0x00},
- GROWTH_MEDIUM_FAST},
- {"Dugtrio",
- &I_dugtrio,
- 0x76,
- 0x23,
- 0x50,
- 0x32,
- 0x78,
- 0x46,
- {0x04, 0x04},
- {0x0A, 0x2D, 0x5B, 0x00},
- GROWTH_MEDIUM_FAST},
- {"Meowth",
- &I_meowth,
- 0x4D,
- 0x28,
- 0x2D,
- 0x23,
- 0x5A,
- 0x28,
- {0x00, 0x00},
- {0x0A, 0x2D, 0x00, 0x00},
- GROWTH_MEDIUM_FAST},
- {"Persian",
- &I_persian,
- 0x90,
- 0x41,
- 0x46,
- 0x3C,
- 0x73,
- 0x41,
- {0x00, 0x00},
- {0x0A, 0x2D, 0x2C, 0x67},
- GROWTH_MEDIUM_FAST},
- {"Psyduck",
- &I_psyduck,
- 0x2F,
- 0x32,
- 0x34,
- 0x30,
- 0x37,
- 0x32,
- {0x15, 0x15},
- {0x0A, 0x00, 0x00, 0x00},
- GROWTH_MEDIUM_FAST},
- {"Golduck",
- &I_golduck,
- 0x80,
- 0x50,
- 0x52,
- 0x4E,
- 0x55,
- 0x50,
- {0x15, 0x15},
- {0x0A, 0x27, 0x32, 0x00},
- GROWTH_MEDIUM_FAST},
- {"Mankey",
- &I_mankey,
- 0x39,
- 0x28,
- 0x50,
- 0x23,
- 0x46,
- 0x23,
- {0x01, 0x01},
- {0x0A, 0x2B, 0x00, 0x00},
- GROWTH_MEDIUM_FAST},
- {"Primeape",
- &I_primeape,
- 0x75,
- 0x41,
- 0x69,
- 0x3C,
- 0x5F,
- 0x3C,
- {0x01, 0x01},
- {0x0A, 0x2B, 0x02, 0x9A},
- GROWTH_MEDIUM_FAST},
- {"Growlithe",
- &I_growlithe,
- 0x21,
- 0x37,
- 0x46,
- 0x2D,
- 0x3C,
- 0x32,
- {0x14, 0x14},
- {0x2C, 0x2E, 0x00, 0x00},
- GROWTH_SLOW},
- {"Arcanine",
- &I_arcanine,
- 0x14,
- 0x5A,
- 0x6E,
- 0x50,
- 0x5F,
- 0x50,
- {0x14, 0x14},
- {0x2E, 0x34, 0x2B, 0x24},
- GROWTH_SLOW},
- {"Poliwag",
- &I_poliwag,
- 0x47,
- 0x28,
- 0x32,
- 0x28,
- 0x5A,
- 0x28,
- {0x15, 0x15},
- {0x91, 0x00, 0x00, 0x00},
- GROWTH_MEDIUM_SLOW},
- {"Poliwhirl",
- &I_poliwhirl,
- 0x6E,
- 0x41,
- 0x41,
- 0x41,
- 0x5A,
- 0x32,
- {0x15, 0x15},
- {0x91, 0x5F, 0x37, 0x00},
- GROWTH_MEDIUM_SLOW},
- {"Poliwrath",
- &I_poliwrath,
- 0x6F,
- 0x5A,
- 0x55,
- 0x5F,
- 0x46,
- 0x46,
- {0x15, 0x01},
- {0x5F, 0x37, 0x03, 0x22},
- GROWTH_MEDIUM_SLOW},
- {"Abra",
- &I_abra,
- 0x94,
- 0x19,
- 0x14,
- 0x0F,
- 0x5A,
- 0x69,
- {0x18, 0x18},
- {0x64, 0x00, 0x00, 0x00},
- GROWTH_MEDIUM_SLOW},
- {"Kadabra",
- &I_kadabra,
- 0x26,
- 0x28,
- 0x23,
- 0x1E,
- 0x69,
- 0x78,
- {0x18, 0x18},
- {0x64, 0x5D, 0x32, 0x00},
- GROWTH_MEDIUM_SLOW},
- {"Alakazam",
- &I_alakazam,
- 0x95,
- 0x37,
- 0x32,
- 0x2D,
- 0x78,
- 0x87,
- {0x18, 0x18},
- {0x64, 0x5D, 0x32, 0x00},
- GROWTH_MEDIUM_SLOW},
- {"Machop",
- &I_machop,
- 0x6A,
- 0x46,
- 0x50,
- 0x32,
- 0x23,
- 0x23,
- {0x01, 0x01},
- {0x02, 0x00, 0x00, 0x00},
- GROWTH_MEDIUM_SLOW},
- {"Machoke",
- &I_machoke,
- 0x29,
- 0x50,
- 0x64,
- 0x46,
- 0x2D,
- 0x32,
- {0x01, 0x01},
- {0x02, 0x43, 0x2B, 0x00},
- GROWTH_MEDIUM_SLOW},
- {"Machamp",
- &I_machamp,
- 0x7E,
- 0x5A,
- 0x82,
- 0x50,
- 0x37,
- 0x41,
- {0x01, 0x01},
- {0x02, 0x43, 0x2B, 0x00},
- GROWTH_MEDIUM_SLOW},
- {"Bellsprout",
- &I_bellsprout,
- 0xBC,
- 0x32,
- 0x4B,
- 0x23,
- 0x28,
- 0x46,
- {0x16, 0x03},
- {0x16, 0x4A, 0x00, 0x00},
- GROWTH_MEDIUM_SLOW},
- {"Weepinbell",
- &I_weepinbell,
- 0xBD,
- 0x41,
- 0x5A,
- 0x32,
- 0x37,
- 0x55,
- {0x16, 0x03},
- {0x16, 0x4A, 0x23, 0x00},
- GROWTH_MEDIUM_SLOW},
- {"Victreebel",
- &I_victreebel,
- 0xBE,
- 0x50,
- 0x69,
- 0x41,
- 0x46,
- 0x64,
- {0x16, 0x03},
- {0x4F, 0x4E, 0x33, 0x4B},
- GROWTH_MEDIUM_SLOW},
- {"Tentacool",
- &I_tentacool,
- 0x18,
- 0x28,
- 0x28,
- 0x23,
- 0x46,
- 0x64,
- {0x15, 0x03},
- {0x33, 0x00, 0x00, 0x00},
- GROWTH_SLOW},
- {"Tentacruel",
- &I_tentacruel,
- 0x9B,
- 0x50,
- 0x46,
- 0x41,
- 0x64,
- 0x78,
- {0x15, 0x03},
- {0x33, 0x30, 0x23, 0x00},
- GROWTH_SLOW},
- {"Geodude",
- &I_geodude,
- 0xA9,
- 0x28,
- 0x50,
- 0x64,
- 0x14,
- 0x1E,
- {0x05, 0x04},
- {0x21, 0x00, 0x00, 0x00},
- GROWTH_MEDIUM_SLOW},
- {"Graveler",
- &I_graveler,
- 0x27,
- 0x37,
- 0x5F,
- 0x73,
- 0x23,
- 0x2D,
- {0x05, 0x04},
- {0x21, 0x6F, 0x00, 0x00},
- GROWTH_MEDIUM_SLOW},
- {"Golem",
- &I_golem,
- 0x31,
- 0x50,
- 0x6E,
- 0x82,
- 0x2D,
- 0x37,
- {0x05, 0x04},
- {0x21, 0x6F, 0x00, 0x00},
- GROWTH_MEDIUM_SLOW},
- {"Ponyta",
- &I_ponyta,
- 0xA3,
- 0x32,
- 0x55,
- 0x37,
- 0x5A,
- 0x41,
- {0x14, 0x14},
- {0x34, 0x00, 0x00, 0x00},
- GROWTH_MEDIUM_FAST},
- {"Rapidash",
- &I_rapidash,
- 0xA4,
- 0x41,
- 0x64,
- 0x46,
- 0x69,
- 0x50,
- {0x14, 0x14},
- {0x34, 0x27, 0x17, 0x2D},
- GROWTH_MEDIUM_FAST},
- {"Slowpoke",
- &I_slowpoke,
- 0x25,
- 0x5A,
- 0x41,
- 0x41,
- 0x0F,
- 0x28,
- {0x15, 0x18},
- {0x5D, 0x00, 0x00, 0x00},
- GROWTH_MEDIUM_FAST},
- {"Slowbro",
- &I_slowbro,
- 0x08,
- 0x5F,
- 0x4B,
- 0x6E,
- 0x1E,
- 0x50,
- {0x15, 0x18},
- {0x5D, 0x32, 0x1D, 0x00},
- GROWTH_MEDIUM_FAST},
- {"Magnemite",
- &I_magnemite,
- 0xAD,
- 0x19,
- 0x23,
- 0x46,
- 0x2D,
- 0x5F,
- {0x17, 0x17},
- {0x21, 0x00, 0x00, 0x00},
- GROWTH_MEDIUM_FAST},
- {"Magneton",
- &I_magneton,
- 0x36,
- 0x32,
- 0x3C,
- 0x5F,
- 0x46,
- 0x78,
- {0x17, 0x17},
- {0x21, 0x31, 0x54, 0x00},
- GROWTH_MEDIUM_FAST},
- {"Farfetch'd",
- &I_farfetchd,
- 0x40,
- 0x34,
- 0x41,
- 0x37,
- 0x3C,
- 0x3A,
- {0x00, 0x02},
- {0x40, 0x1C, 0x00, 0x00},
- GROWTH_MEDIUM_FAST},
- {"Doduo",
- &I_doduo,
- 0x46,
- 0x23,
- 0x55,
- 0x2D,
- 0x4B,
- 0x23,
- {0x00, 0x02},
- {0x40, 0x00, 0x00, 0x00},
- GROWTH_MEDIUM_FAST},
- {"Dodrio",
- &I_dodrio,
- 0x74,
- 0x3C,
- 0x6E,
- 0x46,
- 0x64,
- 0x3C,
- {0x00, 0x02},
- {0x40, 0x2D, 0x1F, 0x00},
- GROWTH_MEDIUM_FAST},
- {"Seel",
- &I_seel,
- 0x3A,
- 0x41,
- 0x2D,
- 0x37,
- 0x2D,
- 0x46,
- {0x15, 0x15},
- {0x1D, 0x00, 0x00, 0x00},
- GROWTH_MEDIUM_FAST},
- {"Dewgong",
- &I_dewgong,
- 0x78,
- 0x5A,
- 0x46,
- 0x50,
- 0x46,
- 0x5F,
- {0x15, 0x19},
- {0x1D, 0x2D, 0x3E, 0x00},
- GROWTH_MEDIUM_FAST},
- {"Grimer",
- &I_grimer,
- 0x0D,
- 0x50,
- 0x50,
- 0x32,
- 0x19,
- 0x28,
- {0x03, 0x03},
- {0x01, 0x32, 0x00, 0x00},
- GROWTH_MEDIUM_FAST},
- {"Muk",
- &I_muk,
- 0x88,
- 0x69,
- 0x69,
- 0x4B,
- 0x32,
- 0x41,
- {0x03, 0x03},
- {0x01, 0x32, 0x8B, 0x00},
- GROWTH_MEDIUM_FAST},
- {"Shellder",
- &I_shellder,
- 0x17,
- 0x1E,
- 0x41,
- 0x64,
- 0x28,
- 0x2D,
- {0x15, 0x15},
- {0x21, 0x6E, 0x00, 0x00},
- GROWTH_SLOW},
- {"Cloyster",
- &I_cloyster,
- 0x8B,
- 0x32,
- 0x5F,
- 0xB4,
- 0x46,
- 0x55,
- {0x15, 0x19},
- {0x6E, 0x30, 0x80, 0x3E},
- GROWTH_SLOW},
- {"Gastly",
- &I_gastly,
- 0x19,
- 0x1E,
- 0x23,
- 0x1E,
- 0x50,
- 0x64,
- {0x08, 0x03},
- {0x7A, 0x6D, 0x65, 0x00},
- GROWTH_MEDIUM_SLOW},
- {"Haunter",
- &I_haunter,
- 0x93,
- 0x2D,
- 0x32,
- 0x2D,
- 0x5F,
- 0x73,
- {0x08, 0x03},
- {0x7A, 0x6D, 0x65, 0x00},
- GROWTH_MEDIUM_SLOW},
- {"Gengar",
- &I_gengar,
- 0x0E,
- 0x3C,
- 0x41,
- 0x3C,
- 0x6E,
- 0x82,
- {0x08, 0x03},
- {0x7A, 0x6D, 0x65, 0x00},
- GROWTH_MEDIUM_SLOW},
- {"Onix",
- &I_onix,
- 0x22,
- 0x23,
- 0x2D,
- 0xA0,
- 0x46,
- 0x1E,
- {0x05, 0x04},
- {0x21, 0x67, 0x00, 0x00},
- GROWTH_MEDIUM_FAST},
- {"Drowzee",
- &I_drowzee,
- 0x30,
- 0x3C,
- 0x30,
- 0x2D,
- 0x2A,
- 0x5A,
- {0x18, 0x18},
- {0x01, 0x5F, 0x00, 0x00},
- GROWTH_MEDIUM_FAST},
- {"Hypno",
- &I_hypno,
- 0x81,
- 0x55,
- 0x49,
- 0x46,
- 0x43,
- 0x73,
- {0x18, 0x18},
- {0x01, 0x5F, 0x32, 0x5D},
- GROWTH_MEDIUM_FAST},
- {"Krabby",
- &I_krabby,
- 0x4E,
- 0x1E,
- 0x69,
- 0x5A,
- 0x32,
- 0x19,
- {0x15, 0x15},
- {0x91, 0x2B, 0x00, 0x00},
- GROWTH_MEDIUM_FAST},
- {"Kingler",
- &I_kingler,
- 0x8A,
- 0x37,
- 0x82,
- 0x73,
- 0x4B,
- 0x32,
- {0x15, 0x15},
- {0x91, 0x2B, 0x0B, 0x00},
- GROWTH_MEDIUM_FAST},
- {"Voltorb",
- &I_voltorb,
- 0x06,
- 0x28,
- 0x1E,
- 0x32,
- 0x64,
- 0x37,
- {0x17, 0x17},
- {0x21, 0x67, 0x00, 0x00},
- GROWTH_MEDIUM_FAST},
- {"Electrode",
- &I_electrode,
- 0x8D,
- 0x3C,
- 0x32,
- 0x46,
- 0x8C,
- 0x50,
- {0x17, 0x17},
- {0x21, 0x67, 0x31, 0x00},
- GROWTH_MEDIUM_FAST},
- {"Exeggcute",
- &I_exeggcute,
- 0x0C,
- 0x3C,
- 0x28,
- 0x50,
- 0x28,
- 0x3C,
- {0x16, 0x18},
- {0x8C, 0x5F, 0x00, 0x00},
- GROWTH_SLOW},
- {"Exeggutor",
- &I_exeggutor,
- 0x0A,
- 0x5F,
- 0x5F,
- 0x55,
- 0x37,
- 0x7D,
- {0x16, 0x18},
- {0x8C, 0x5F, 0x00, 0x00},
- GROWTH_SLOW},
- {"Cubone",
- &I_cubone,
- 0x11,
- 0x32,
- 0x32,
- 0x5F,
- 0x23,
- 0x28,
- {0x04, 0x04},
- {0x7D, 0x2D, 0x00, 0x00},
- GROWTH_MEDIUM_FAST},
- {"Marowak",
- &I_marowak,
- 0x91,
- 0x3C,
- 0x50,
- 0x6E,
- 0x2D,
- 0x32,
- {0x04, 0x04},
- {0x7D, 0x2D, 0x2B, 0x74},
- GROWTH_MEDIUM_FAST},
- {"Hitmonlee",
- &I_hitmonlee,
- 0x2B,
- 0x32,
- 0x78,
- 0x35,
- 0x57,
- 0x23,
- {0x01, 0x01},
- {0x18, 0x60, 0x00, 0x00},
- GROWTH_MEDIUM_FAST},
- {"Hitmonchan",
- &I_hitmonchan,
- 0x2C,
- 0x32,
- 0x69,
- 0x4F,
- 0x4C,
- 0x23,
- {0x01, 0x01},
- {0x04, 0x61, 0x00, 0x00},
- GROWTH_MEDIUM_FAST},
- {"Lickitung",
- &I_lickitung,
- 0x0B,
- 0x5A,
- 0x37,
- 0x4B,
- 0x1E,
- 0x3C,
- {0x00, 0x00},
- {0x23, 0x30, 0x00, 0x00},
- GROWTH_MEDIUM_FAST},
- {"Koffing",
- &I_koffing,
- 0x37,
- 0x28,
- 0x41,
- 0x5F,
- 0x23,
- 0x3C,
- {0x03, 0x03},
- {0x21, 0x7B, 0x00, 0x00},
- GROWTH_MEDIUM_FAST},
- {"Weezing",
- &I_weezing,
- 0x8F,
- 0x41,
- 0x5A,
- 0x78,
- 0x3C,
- 0x55,
- {0x03, 0x03},
- {0x21, 0x7B, 0x7C, 0x00},
- GROWTH_MEDIUM_FAST},
- {"Rhyhorn",
- &I_rhyhorn,
- 0x12,
- 0x50,
- 0x55,
- 0x5F,
- 0x19,
- 0x1E,
- {0x04, 0x05},
- {0x1E, 0x00, 0x00, 0x00},
- GROWTH_SLOW},
- {"Rhydon",
- &I_rhydon,
- 0x01,
- 0x69,
- 0x82,
- 0x78,
- 0x28,
- 0x2D,
- {0x04, 0x05},
- {0x1E, 0x17, 0x27, 0x1F},
- GROWTH_SLOW},
- {"Chansey",
- &I_chansey,
- 0x28,
- 0xFA,
- 0x05,
- 0x05,
- 0x32,
- 0x69,
- {0x00, 0x00},
- {0x01, 0x03, 0x00, 0x00},
- GROWTH_FAST},
- {"Tangela",
- &I_tangela,
- 0x1E,
- 0x41,
- 0x37,
- 0x73,
- 0x3C,
- 0x64,
- {0x16, 0x16},
- {0x84, 0x14, 0x00, 0x00},
- GROWTH_MEDIUM_FAST},
- {"Kangaskhan",
- &I_kangaskhan,
- 0x02,
- 0x69,
- 0x5F,
- 0x50,
- 0x5A,
- 0x28,
- {0x00, 0x00},
- {0x04, 0x63, 0x00, 0x00},
- GROWTH_MEDIUM_FAST},
- {"Horsea",
- &I_horsea,
- 0x5C,
- 0x1E,
- 0x28,
- 0x46,
- 0x3C,
- 0x46,
- {0x15, 0x15},
- {0x91, 0x00, 0x00, 0x00},
- GROWTH_MEDIUM_FAST},
- {"Seadra",
- &I_seadra,
- 0x5D,
- 0x37,
- 0x41,
- 0x5F,
- 0x55,
- 0x5F,
- {0x15, 0x15},
- {0x91, 0x6C, 0x00, 0x00},
- GROWTH_MEDIUM_FAST},
- {"Goldeen",
- &I_goldeen,
- 0x9D,
- 0x2D,
- 0x43,
- 0x3C,
- 0x3F,
- 0x32,
- {0x15, 0x15},
- {0x40, 0x27, 0x00, 0x00},
- GROWTH_MEDIUM_FAST},
- {"Seaking",
- &I_seaking,
- 0x9E,
- 0x50,
- 0x5C,
- 0x41,
- 0x44,
- 0x50,
- {0x15, 0x15},
- {0x40, 0x27, 0x30, 0x00},
- GROWTH_MEDIUM_FAST},
- {"Staryu",
- &I_staryu,
- 0x1B,
- 0x1E,
- 0x2D,
- 0x37,
- 0x55,
- 0x46,
- {0x15, 0x15},
- {0x21, 0x00, 0x00, 0x00},
- GROWTH_SLOW},
- {"Starmie",
- &I_starmie,
- 0x98,
- 0x3C,
- 0x4B,
- 0x55,
- 0x73,
- 0x64,
- {0x15, 0x18},
- {0x21, 0x37, 0x6A, 0x00},
- GROWTH_SLOW},
- {"Mr.Mime",
- &I_mr_mime,
- 0x2A,
- 0x28,
- 0x2D,
- 0x41,
- 0x5A,
- 0x64,
- {0x18, 0x18},
- {0x5D, 0x70, 0x00, 0x00},
- GROWTH_MEDIUM_FAST},
- {"Scyther",
- &I_scyther,
- 0x1A,
- 0x46,
- 0x6E,
- 0x50,
- 0x69,
- 0x37,
- {0x07, 0x02},
- {0x62, 0x00, 0x00, 0x00},
- GROWTH_MEDIUM_FAST},
- {"Jynx",
- &I_jynx,
- 0x48,
- 0x41,
- 0x32,
- 0x23,
- 0x5F,
- 0x5F,
- {0x19, 0x18},
- {0x01, 0x8E, 0x00, 0x00},
- GROWTH_MEDIUM_FAST},
- {"Electabuzz",
- &I_electabuzz,
- 0x35,
- 0x41,
- 0x53,
- 0x39,
- 0x69,
- 0x55,
- {0x17, 0x17},
- {0x62, 0x2B, 0x00, 0x00},
- GROWTH_MEDIUM_FAST},
- {"Magmar",
- &I_magmar,
- 0x33,
- 0x41,
- 0x5F,
- 0x39,
- 0x5D,
- 0x55,
- {0x14, 0x14},
- {0x34, 0x00, 0x00, 0x00},
- GROWTH_MEDIUM_FAST},
- {"Pinsir",
- &I_pinsir,
- 0x1D,
- 0x41,
- 0x7D,
- 0x64,
- 0x55,
- 0x37,
- {0x07, 0x07},
- {0x0B, 0x00, 0x00, 0x00},
- GROWTH_SLOW},
- {"Tauros",
- &I_tauros,
- 0x3C,
- 0x4B,
- 0x64,
- 0x5F,
- 0x6E,
- 0x46,
- {0x00, 0x00},
- {0x21, 0x00, 0x00, 0x00},
- GROWTH_SLOW},
- {"Magikarp",
- &I_magikarp,
- 0x85,
- 0x14,
- 0x0A,
- 0x37,
- 0x50,
- 0x14,
- {0x15, 0x15},
- {0x96, 0x00, 0x00, 0x00},
- GROWTH_SLOW},
- {"Gyarados",
- &I_gyarados,
- 0x16,
- 0x5F,
- 0x7D,
- 0x4F,
- 0x51,
- 0x64,
- {0x15, 0x02},
- {0x2C, 0x52, 0x2B, 0x38},
- GROWTH_SLOW},
- {"Lapras",
- &I_lapras,
- 0x13,
- 0x82,
- 0x55,
- 0x50,
- 0x3C,
- 0x5F,
- {0x15, 0x19},
- {0x37, 0x2D, 0x00, 0x00},
- GROWTH_SLOW},
- {"Ditto",
- &I_ditto,
- 0x4C,
- 0x30,
- 0x30,
- 0x30,
- 0x30,
- 0x30,
- {0x00, 0x00},
- {0x90, 0x00, 0x00, 0x00},
- GROWTH_MEDIUM_FAST},
- {"Eevee",
- &I_eevee,
- 0x66,
- 0x37,
- 0x37,
- 0x32,
- 0x37,
- 0x41,
- {0x00, 0x00},
- {0x21, 0x1C, 0x00, 0x00},
- GROWTH_MEDIUM_FAST},
- {"Vaporeon",
- &I_vaporeon,
- 0x69,
- 0x82,
- 0x41,
- 0x3C,
- 0x41,
- 0x6E,
- {0x15, 0x15},
- {0x21, 0x1C, 0x62, 0x37},
- GROWTH_MEDIUM_FAST},
- {"Jolteon",
- &I_jolteon,
- 0x68,
- 0x41,
- 0x41,
- 0x3C,
- 0x82,
- 0x6E,
- {0x17, 0x17},
- {0x21, 0x1C, 0x62, 0x54},
- GROWTH_MEDIUM_FAST},
- {"Flareon",
- &I_flareon,
- 0x67,
- 0x41,
- 0x82,
- 0x3C,
- 0x41,
- 0x6E,
- {0x14, 0x14},
- {0x21, 0x1C, 0x62, 0x34},
- GROWTH_MEDIUM_FAST},
- {"Porygon",
- &I_porygon,
- 0xAA,
- 0x41,
- 0x3C,
- 0x46,
- 0x28,
- 0x4B,
- {0x00, 0x00},
- {0x21, 0x9F, 0xA0, 0x00},
- GROWTH_MEDIUM_FAST},
- {"Omanyte",
- &I_omanyte,
- 0x62,
- 0x23,
- 0x28,
- 0x64,
- 0x23,
- 0x5A,
- {0x05, 0x15},
- {0x37, 0x6E, 0x00, 0x00},
- GROWTH_MEDIUM_FAST},
- {"Omastar",
- &I_omastar,
- 0x63,
- 0x46,
- 0x3C,
- 0x7D,
- 0x37,
- 0x73,
- {0x05, 0x15},
- {0x37, 0x6E, 0x1E, 0x00},
- GROWTH_MEDIUM_FAST},
- {"Kabuto",
- &I_kabuto,
- 0x5A,
- 0x1E,
- 0x50,
- 0x5A,
- 0x37,
- 0x2D,
- {0x05, 0x15},
- {0x0A, 0x6A, 0x00, 0x00},
- GROWTH_MEDIUM_FAST},
- {"Kabutops",
- &I_kabutops,
- 0x5B,
- 0x3C,
- 0x73,
- 0x69,
- 0x50,
- 0x46,
- {0x05, 0x15},
- {0x0A, 0x6A, 0x47, 0x00},
- GROWTH_MEDIUM_FAST},
- {"Aerodactyl",
- &I_aerodactyl,
- 0xAB,
- 0x50,
- 0x69,
- 0x41,
- 0x82,
- 0x3C,
- {0x05, 0x02},
- {0x11, 0x61, 0x00, 0x00},
- GROWTH_SLOW},
- {"Snorlax",
- &I_snorlax,
- 0x84,
- 0xA0,
- 0x6E,
- 0x41,
- 0x1E,
- 0x41,
- {0x00, 0x00},
- {0x1D, 0x85, 0x9C, 0x00},
- GROWTH_SLOW},
- {"Articuno",
- &I_articuno,
- 0x4A,
- 0x5A,
- 0x55,
- 0x64,
- 0x55,
- 0x7D,
- {0x19, 0x02},
- {0x40, 0x3A, 0x00, 0x00},
- GROWTH_SLOW},
- {"Zapdos",
- &I_zapdos,
- 0x4B,
- 0x5A,
- 0x5A,
- 0x55,
- 0x64,
- 0x7D,
- {0x17, 0x02},
- {0x54, 0x41, 0x00, 0x00},
- GROWTH_SLOW},
- {"Moltres",
- &I_moltres,
- 0x49,
- 0x5A,
- 0x64,
- 0x5A,
- 0x5A,
- 0x7D,
- {0x14, 0x02},
- {0x40, 0x53, 0x00, 0x00},
- GROWTH_SLOW},
- {"Dratini",
- &I_dratini,
- 0x58,
- 0x29,
- 0x40,
- 0x2D,
- 0x32,
- 0x32,
- {0x1A, 0x1A},
- {0x23, 0x2B, 0x00, 0x00},
- GROWTH_SLOW},
- {"Dragonair",
- &I_dragonair,
- 0x59,
- 0x3D,
- 0x54,
- 0x41,
- 0x46,
- 0x46,
- {0x1A, 0x1A},
- {0x23, 0x2B, 0x56, 0x00},
- GROWTH_SLOW},
- {"Dragonite",
- &I_dragonite,
- 0x42,
- 0x5B,
- 0x86,
- 0x5F,
- 0x50,
- 0x64,
- {0x1A, 0x02},
- {0x23, 0x2B, 0x56, 0x61},
- GROWTH_SLOW},
- {"Mewtwo",
- &I_mewtwo,
- 0x83,
- 0x6A,
- 0x6E,
- 0x5A,
- 0x82,
- 0x9A,
- {0x18, 0x18},
- {0x5D, 0x32, 0x81, 0x5E},
- GROWTH_SLOW},
- {"Mew",
- &I_mew,
- 0x15,
- 0x64,
- 0x64,
- 0x64,
- 0x64,
- 0x64,
- {0x18, 0x18},
- {0x01, 0x00, 0x00, 0x00},
- GROWTH_MEDIUM_SLOW},
- {},
- };
- const NamedList move_list[] = {
- {"No Move", 0x00},
- {"Absorb", 0x47},
- {"Acid Armor", 0x97},
- {"Acid", 0x33},
- {"Agility", 0x61},
- {"Amnesia", 0x85},
- {"Aurora Beam", 0x3E},
- {"Barrage", 0x8C},
- {"Barrier", 0x70},
- {"Bide", 0x75},
- {"Bind", 0x14},
- {"Bite", 0x2C},
- {"Blizzard", 0x3B},
- {"Body Slam", 0x22},
- {"Bone Club", 0x7D},
- {"Boomerang", 0x9B},
- {"Bubblebeam", 0x3D},
- {"Bubble", 0x91},
- {"Clamp", 0x80},
- {"Comet Punch", 0x04},
- {"Confuse Ray", 0x6D},
- {"Confusion", 0x5D},
- {"Constrict", 0x84},
- {"Conversion", 0xA0},
- {"Counter", 0x44},
- {"Crabhammer", 0x98},
- {"Cut", 0x0F},
- {"Defense Curl", 0x6F},
- {"Dig", 0x5B},
- {"Disable", 0x32},
- {"Dizzy Punch", 0x92},
- {"Doubleslap", 0x03},
- {"Double Kick", 0x18},
- {"Double Team", 0x68},
- {"Double-Edge", 0x26},
- {"Dragon Rage", 0x52},
- {"Dream Eater", 0x8A},
- {"Drill Peck", 0x41},
- {"Earthquake", 0x59},
- {"Egg Bomb", 0x79},
- {"Ember", 0x34},
- {"Explosion", 0x99},
- {"Fire Blast", 0x7E},
- {"Fire Punch", 0x07},
- {"Fire Spin", 0x53},
- {"Fissure", 0x5A},
- {"Flamethrower", 0x35},
- {"Flash", 0x94},
- {"Fly", 0x13},
- {"Focus Energy", 0x74},
- {"Fury Attack", 0x1F},
- {"Fury Swipes", 0x9A},
- {"Glare", 0x89},
- {"Growl", 0x2D},
- {"Growth", 0x4A},
- {"Guillotine", 0x0C},
- {"Gust", 0x10},
- {"Harden", 0x6A},
- {"Haze", 0x72},
- {"Headbutt", 0x1D},
- {"Hi Jump Kick", 0x88},
- {"Horn Attack", 0x1E},
- {"Horn Drill", 0x20},
- {"Hydro Pump", 0x38},
- {"Hyper Beam", 0x3F},
- {"Hyper Fang", 0x9E},
- {"Hypnosis", 0x5F},
- {"Ice Beam", 0x3A},
- {"Ice Punch", 0x08},
- {"Jump Kick", 0x1A},
- {"Karate Chop", 0x02},
- {"Kinesis", 0x86},
- {"Leech Life", 0x8D},
- {"Leech Seed", 0x49},
- {"Leer", 0x2B},
- {"Lick", 0x7A},
- {"Light Screen", 0x71},
- {"Lovely Kiss", 0x8E},
- {"Low Kick", 0x43},
- {"Meditate", 0x60},
- {"Mega Drain", 0x48},
- {"Mega Kick", 0x19},
- {"Mega Punch", 0x05},
- {"Metronome", 0x76},
- {"Mimic", 0x66},
- {"Minimize", 0x6B},
- {"Mirror Move", 0x77},
- {"Mist", 0x36},
- {"Night Shade", 0x65},
- {"Pay Day", 0x06},
- {"Peck", 0x40},
- {"Petal Dance", 0x50},
- {"Pin Missile", 0x2A},
- {"Poisonpowder", 0x4D},
- {"Poison Gas", 0x8B},
- {"Poison Sting", 0x28},
- {"Pound", 0x01},
- {"Psybeam", 0x3C},
- {"Psychic", 0x5E},
- {"Psywave", 0x95},
- {"Quick Attack", 0x62},
- {"Rage", 0x63},
- {"Razor Leaf", 0x4B},
- {"Razor Wind", 0x0D},
- {"Recover", 0x69},
- {"Reflect", 0x73},
- {"Rest", 0x9C},
- {"Roar", 0x2E},
- {"Rock Slide", 0x9D},
- {"Rock Throw", 0x58},
- {"Rolling Kick", 0x1B},
- {"Sand Attack", 0x1C},
- {"Scratch", 0x0A},
- {"Screech", 0x67},
- {"Seismic Toss", 0x45},
- {"Selfdestruct", 0x78},
- {"Sharpen", 0x9F},
- {"Sing", 0x2F},
- {"Skull Bash", 0x82},
- {"Sky Attack", 0x8F},
- {"Slam", 0x15},
- {"Slash", 0xA3},
- {"Sleep Powder", 0x4F},
- {"Sludge", 0x7C},
- {"Smog", 0x7B},
- {"Smokescreen", 0x6C},
- {"Softboiled", 0x87},
- {"Solar Beam", 0x4C},
- {"Sonicboom", 0x31},
- {"Spike Cannon", 0x83},
- {"Splash", 0x96},
- {"Spore", 0x93},
- {"Stomp", 0x17},
- {"Strength", 0x46},
- {"String Shot", 0x51},
- {"Struggle", 0xA5},
- {"Stun Spore", 0x4E},
- {"Submission", 0x42},
- {"Substitute", 0xA4},
- {"Supersonic", 0x30},
- {"Super Fang", 0xA2},
- {"Surf", 0x39},
- {"Swift", 0x81},
- {"Swords Dance", 0x0E},
- {"Tackle", 0x21},
- {"Tail Whip", 0x27},
- {"Take Down", 0x24},
- {"Teleport", 0x64},
- {"Thrash", 0x25},
- {"Thunderbolt", 0x55},
- {"Thunderpunch", 0x09},
- {"Thundershock", 0x54},
- {"Thunder Wave", 0x56},
- {"Thunder", 0x57},
- {"Toxic", 0x5C},
- {"Transform", 0x90},
- {"Tri Attack", 0xA1},
- {"Twineedle", 0x29},
- {"Vicegrip", 0x0B},
- {"Vine Whip", 0x16},
- {"Waterfall", 0x7F},
- {"Water Gun", 0x37},
- {"Whirlwind", 0x12},
- {"Wing Attack", 0x11},
- {"Withdraw", 0x6E},
- {"Wrap", 0x23},
- {},
- };
- const NamedList type_list[] = {
- {"Bug", 0x07},
- {"Dragon", 0x1A},
- {"Electric", 0x17},
- {"Fighting", 0x01},
- {"Fire", 0x14},
- {"Flying", 0x02},
- {"Ghost", 0x08},
- {"Grass", 0x16},
- {"Ground", 0x04},
- {"Ice", 0x19},
- {"Normal", 0x00},
- {"Poison", 0x03},
- {"Psychic", 0x18},
- {"Rock", 0x05},
- {"Water", 0x15},
- {},
- };
- int pokemon_table_get_num_from_index(const PokemonTable* table, uint8_t index) {
- int i;
- for(i = 0;; i++) {
- if(table[i].index == index) return i;
- if(table[i].name == NULL) break;
- }
- return 0;
- }
- int pokemon_named_list_get_num_elements(const NamedList* list) {
- int i;
- for(i = 0;; i++) {
- if(list[i].name == NULL) return i;
- }
- }
- int pokemon_named_list_get_list_pos_from_index(const NamedList* list, uint8_t index) {
- int i;
- for(i = 0;; i++) {
- if(list[i].name == NULL) break;
- if(index == list[i].index) return i;
- }
- /* This will return the first entry in case index is not matched.
- * Could be surprising at runtime.
- */
- return 0;
- }
- const char* pokemon_named_list_get_name_from_index(const NamedList* list, uint8_t index) {
- int i;
- for(i = 0;; i++) {
- if(list[i].name == NULL) break;
- if(index == list[i].index) return list[i].name;
- }
- /* This will return the first entry in the case index is not matched,
- * this could be confusing/problematic at runtime.
- */
- return list[0].name;
- }
- /* If dest is not NULL, a copy of the default name is written to it as well */
- void pokemon_trade_block_set_default_name(char* dest, PokemonFap* pokemon_fap, size_t n) {
- int i;
- char buf[11];
- /* Walk through the default name, toupper() each character, encode it, and
- * then write that to the same position in the trade_block.
- */
- for(i = 0; i < 11; i++) {
- pokemon_fap->trade_block->nickname[0].str[i] = pokemon_char_to_encoded(
- toupper(pokemon_fap->pokemon_table[pokemon_fap->curr_pokemon].name[i]));
- buf[i] = toupper(pokemon_fap->pokemon_table[pokemon_fap->curr_pokemon].name[i]);
- }
- FURI_LOG_D(TAG, "[app] Set default nickname");
- if(dest != NULL) {
- strncpy(dest, buf, n);
- }
- }
- #define UINT32_TO_EXP(input, output_array) \
- do { \
- (output_array)[2] = (uint8_t)((input)&0xFF); \
- (output_array)[1] = (uint8_t)(((input) >> 8) & 0xFF); \
- (output_array)[0] = (uint8_t)(((input) >> 16) & 0xFF); \
- } while(0)
- void pokemon_trade_block_recalculate_stats_from_level(PokemonFap* pokemon_fap) {
- struct pokemon_structure* pkmn = &pokemon_fap->trade_block->party[0];
- const PokemonTable* table = &pokemon_fap->pokemon_table[pokemon_fap->curr_pokemon];
- int curr_stats = pokemon_fap->curr_stats;
- uint32_t experience;
- int level = pkmn->level;
- uint16_t stat;
- uint8_t hp_iv = 0xf;
- uint8_t atk_iv = 0xf;
- uint8_t def_iv = 0xf;
- uint8_t spd_iv = 0xf;
- uint8_t special_iv = 0xf;
- /* Calculate exp */
- switch(table->growth) {
- case GROWTH_FAST:
- // https://bulbapedia.bulbagarden.net/wiki/Experience#Fast
- experience = (4 * level * level * level) / 5;
- break;
- case GROWTH_MEDIUM_FAST:
- // https://bulbapedia.bulbagarden.net/wiki/Experience#Medium_Fast
- experience = (level * level * level);
- break;
- case GROWTH_MEDIUM_SLOW:
- // https://bulbapedia.bulbagarden.net/wiki/Experience#Medium_Slow
- experience =
- (((level * level * level) * 6 / 5) - (15 * level * level) + (100 * level) - 140);
- break;
- case GROWTH_SLOW:
- // https://bulbapedia.bulbagarden.net/wiki/Experience#Slow
- experience = (5 * level * level * level) / 4;
- break;
- default:
- furi_crash("incorrect growth val");
- break;
- }
- pkmn->level_again = level;
- UINT32_TO_EXP(experience, pkmn->exp);
- FURI_LOG_D(TAG, "[app] Set pkmn level %d", level);
- FURI_LOG_D(TAG, "[app] Set pkmn exp %d", (int)experience);
- /* Generate STATEXP */
- switch(curr_stats) {
- case 1:
- case 4:
- stat = (0xffff / 100) * level;
- break;
- case 2:
- case 5:
- stat = 0xffff;
- break;
- default:
- stat = 0;
- break;
- }
- FURI_LOG_D(TAG, "[app] EVs set to %d", stat);
- stat = __builtin_bswap16(stat);
- pkmn->hp_ev = stat;
- pkmn->atk_ev = stat;
- pkmn->def_ev = stat;
- pkmn->spd_ev = stat;
- pkmn->special_ev = stat;
- /* Set up IVs */
- if(curr_stats <= 2) {
- atk_iv = rand() % 15;
- def_iv = rand() % 15;
- spd_iv = rand() % 15;
- special_iv = rand() % 15;
- pkmn->iv = ((atk_iv & 0x0f) << 12) | ((def_iv & 0x0f) << 8) | ((spd_iv & 0x0f) << 4) |
- ((special_iv & 0x0f));
- hp_iv = (pkmn->iv & 0xAA) >> 4;
- }
- FURI_LOG_D(
- TAG,
- "[app] atk_iv %d, def_iv %d, spd_iv %d, spc_iv %d, hp_iv %d",
- atk_iv,
- def_iv,
- spd_iv,
- special_iv,
- hp_iv);
- /* Calculate HP */
- // https://bulbapedia.bulbagarden.net/wiki/Stat#Generations_I_and_II
- stat = floor((((2 * (table->base_hp + hp_iv)) + floor(sqrt(pkmn->hp_ev) / 4)) * level) / 100) +
- (level + 10);
- FURI_LOG_D(TAG, "[app] HP set to %d", stat);
- pkmn->hp = __builtin_bswap16(stat);
- pkmn->max_hp = pkmn->hp;
- /* Calculate ATK, DEF, SPD, SP */
- /* TODO: these all use the same calculations, could put the stats in a sub-array and iterate
- * through each element in order rather than having to repeat the code. IVs would also need
- * to be in a similar array.
- **/
- // https://bulbapedia.bulbagarden.net/wiki/Stat#Generations_I_and_II
- stat =
- floor((((2 * (table->base_atk + atk_iv)) + floor(sqrt(pkmn->atk_ev) / 4)) * level) / 100) +
- 5;
- FURI_LOG_D(TAG, "[app] ATK set to %d", stat);
- pkmn->atk = __builtin_bswap16(stat);
- stat =
- floor((((2 * (table->base_def + def_iv)) + floor(sqrt(pkmn->def_ev) / 4)) * level) / 100) +
- 5;
- FURI_LOG_D(TAG, "[app] DEF set to %d", stat);
- pkmn->def = __builtin_bswap16(stat);
- stat =
- floor((((2 * (table->base_spd + spd_iv)) + floor(sqrt(pkmn->spd_ev) / 4)) * level) / 100) +
- 5;
- FURI_LOG_D(TAG, "[app] SPD set to %d", stat);
- pkmn->spd = __builtin_bswap16(stat);
- stat = floor(
- (((2 * (table->base_special + special_iv)) + floor(sqrt(pkmn->special_ev) / 4)) *
- level) /
- 100) +
- 5;
- FURI_LOG_D(TAG, "[app] SPC set to %d", stat);
- pkmn->special = __builtin_bswap16(stat);
- }
- /* Rebuild the current trade block's variables based on curr_pokemon */
- void pokemon_trade_block_recalculate(PokemonFap* pokemon_fap) {
- struct pokemon_structure* pkmn = &pokemon_fap->trade_block->party[0];
- const PokemonTable* table = &pokemon_fap->pokemon_table[pokemon_fap->curr_pokemon];
- int i;
- /* Set current pokemon to the trade structure */
- pkmn->index = table->index;
- pokemon_fap->trade_block->party_members[0] = table->index;
- FURI_LOG_D(TAG, "[app] Set %s in trade block", table->name);
- /* Set current pokemon's moves to the trade structure */
- for(i = 0; i < 4; i++) {
- pkmn->move[i] = table->move[i];
- FURI_LOG_D(
- TAG,
- "[app] Set %s in trade block",
- pokemon_named_list_get_name_from_index(pokemon_fap->move_list, pkmn->move[i]));
- }
- /* Set current pokemon's types to the trade structure */
- for(i = 0; i < 2; i++) {
- pkmn->type[i] = table->type[i];
- FURI_LOG_D(
- TAG,
- "[app] Set %s in trade block",
- pokemon_named_list_get_name_from_index(pokemon_fap->type_list, pkmn->type[i]));
- }
- pokemon_trade_block_recalculate_stats_from_level(pokemon_fap);
- pokemon_trade_block_set_default_name(NULL, pokemon_fap, 0);
- }
- /* Allocates a chunk of memory for the trade data block and sets up some
- * default values.
- */
- static TradeBlock* trade_block_alloc(void) {
- TradeBlock* trade;
- trade = malloc(sizeof(TradeBlock));
- /* Clear struct to be all TERM_ bytes as the various name strings need this */
- memset(trade, TERM_, sizeof(TradeBlock));
- /* The party_members element needs to be 0xff for unused */
- memset(trade->party_members, 0xFF, sizeof(trade->party_members));
- /* Zero the main party data, TERM_ in there can cause weirdness */
- memset(trade->party, 0x00, sizeof(trade->party));
- /* Set our Name, the pokemon's default OT name and ID */
- trade->party_cnt = 1;
- /* Trainer/OT name, not to exceed 7 characters! */
- pokemon_str_to_encoded_array(trade->trainer_name, "Flipper", sizeof(trade->trainer_name));
- pokemon_str_to_encoded_array(trade->ot_name[0].str, "Flipper", sizeof(trade->ot_name[0].str));
- /* OT trainer ID# */
- trade->party[0].ot_id = __builtin_bswap16(42069);
- /* Notes:
- * Move pp isn't explicitly set up, should be fine
- * Catch/held isn't explicitly set up, should be okay for only Gen I support now
- * Status condition isn't explicity let up, would you ever want to?
- */
- /* Set up initial level */
- trade->party[0].level = 2;
- return trade;
- }
- static void trade_block_free(TradeBlock* trade) {
- free(trade);
- }
- /* The MALVEKE board has an esp32 which is set to TX on the flipper's default
- * UART pins. If this pin shows signs of something connected, assume a MALVEKE
- * board is being used.
- */
- static bool detect_malveke(void) {
- bool rc;
- furi_hal_gpio_init(&gpio_usart_rx, GpioModeInput, GpioPullDown, GpioSpeedVeryHigh);
- rc = furi_hal_gpio_read(&gpio_usart_rx);
- furi_hal_gpio_init_simple(&gpio_usart_rx, GpioModeAnalog);
- return rc;
- }
- PokemonFap* pokemon_alloc() {
- PokemonFap* pokemon_fap = (PokemonFap*)malloc(sizeof(PokemonFap));
- // View dispatcher
- pokemon_fap->view_dispatcher = view_dispatcher_alloc();
- view_dispatcher_set_event_callback_context(pokemon_fap->view_dispatcher, pokemon_fap);
- view_dispatcher_attach_to_gui(
- pokemon_fap->view_dispatcher,
- (Gui*)furi_record_open(RECORD_GUI),
- ViewDispatcherTypeFullscreen);
- /* Set up pointers to const data tables for reference elsewhere */
- pokemon_fap->pokemon_table = pokemon_table;
- pokemon_fap->move_list = move_list;
- pokemon_fap->type_list = type_list;
- // Set up defaults
- pokemon_fap->curr_pokemon = 0;
- pokemon_fap->curr_stats = 0;
- pokemon_fap->malveke_detected = detect_malveke();
- memcpy(
- &pokemon_fap->pins,
- &common_pinouts[pokemon_fap->malveke_detected],
- sizeof(struct gblink_pins));
- // Set up trade party struct
- pokemon_fap->trade_block = trade_block_alloc();
- /* Update trade block struct with calculated details from initial values from trade_block_alloc() */
- pokemon_trade_block_recalculate(pokemon_fap);
- /* Set up gui modules used. It would be nice if these could be allocated and
- * freed as needed, however, the scene manager still requires pointers that
- * get set up as a part of the scene. Therefore, individual scene's exit
- * callbacks cannot free the buffer.
- */
- pokemon_fap->text_input = text_input_alloc();
- pokemon_fap->submenu = submenu_alloc();
- pokemon_fap->variable_item_list = variable_item_list_alloc();
- // Set up menu scene
- pokemon_fap->scene_manager = scene_manager_alloc(&pokemon_scene_manager_handlers, pokemon_fap);
- view_dispatcher_add_view(
- pokemon_fap->view_dispatcher, AppViewMainMenu, submenu_get_view(pokemon_fap->submenu));
- scene_manager_next_scene(pokemon_fap->scene_manager, MainMenuScene);
- // Select Pokemon View
- pokemon_fap->select_view = select_pokemon_alloc(pokemon_fap);
- view_dispatcher_add_view(
- pokemon_fap->view_dispatcher, AppViewSelectPokemon, pokemon_fap->select_view);
- // Trade View
- /* Allocates its own view and adds it to the main view_dispatcher */
- pokemon_fap->trade = trade_alloc(
- pokemon_fap->trade_block,
- pokemon_fap->pokemon_table,
- &pokemon_fap->pins,
- pokemon_fap->view_dispatcher,
- AppViewTrade);
- return pokemon_fap;
- }
- void free_app(PokemonFap* pokemon_fap) {
- furi_assert(pokemon_fap);
- // Free views
- view_dispatcher_remove_view(pokemon_fap->view_dispatcher, AppViewSelectPokemon);
- select_pokemon_free(pokemon_fap);
- /* Also removes itself from the view_dispatcher */
- trade_free(pokemon_fap->view_dispatcher, AppViewTrade, pokemon_fap->trade);
- view_dispatcher_remove_view(pokemon_fap->view_dispatcher, AppViewMainMenu);
- view_dispatcher_free(pokemon_fap->view_dispatcher);
- // Free scenes
- scene_manager_free(pokemon_fap->scene_manager);
- // Free gui modules
- submenu_free(pokemon_fap->submenu);
- text_input_free(pokemon_fap->text_input);
- variable_item_list_free(pokemon_fap->variable_item_list);
- // Close records
- furi_record_close(RECORD_GUI);
- // Free trade block
- trade_block_free(pokemon_fap->trade_block);
- // Free rest
- free(pokemon_fap);
- pokemon_fap = NULL;
- }
- int32_t pokemon_app(void* p) {
- UNUSED(p);
- Expansion* expansion = furi_record_open(RECORD_EXPANSION);
- expansion_disable(expansion);
- PokemonFap* pokemon_fap = pokemon_alloc();
- furi_hal_light_set(LightRed, 0x00);
- furi_hal_light_set(LightGreen, 0x00);
- furi_hal_light_set(LightBlue, 0x00);
- //switch view and run dispatcher
- view_dispatcher_run(pokemon_fap->view_dispatcher);
- // Free resources
- free_app(pokemon_fap);
- expansion_enable(expansion);
- furi_record_close(RECORD_EXPANSION);
- return 0;
- }
|