Skip to content

Instantly share code, notes, and snippets.

@alyx
Last active August 29, 2015 13:56
Show Gist options
  • Select an option

  • Save alyx/9048710 to your computer and use it in GitHub Desktop.

Select an option

Save alyx/9048710 to your computer and use it in GitHub Desktop.
#include <pokemon.h>
int main(int argc, char **argv)
{
FILE *f;
PkmnState s;
int i;
// Replicate Gen 1
s->IgnoreAbilities(true);
for (i = 1; i < 151; i++)
s->AllowPokemonByID(i);
}
#include <pokemon.h>
void parse_file(PkmnState s, FILE *f)
{
...
if (value[0] == "MOVE") {
s->move(value[0], value[1], value[5]);
// move(name, hitpoints, etc);
}
}
int main(int argc, char **argv)
{
FILE *f;
PkmnState s;
f = open(argv[1], "r");
parse_file(s, f);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment