v0.0.3-alpha

This commit is contained in:
Rodrigo Gómez Maitret
2020-03-04 00:23:32 -06:00
parent d41796d450
commit de6989f838
90 changed files with 159 additions and 24 deletions

View File

@@ -21,7 +21,7 @@ for (global.box_count=1; global.current<global.dex_len; global.box_count++)
global.box_header[global.box_count] = self;
number = global.box_count;
image_index = get_gen(global.dexdata[global.current, dex.dexno])-1;
show_debug_message("Spawned Box "+string(global.box_count)+" with PKMN #"+string(global.dexdata[global.current, dex.dexno])+" from Gen "+string(get_gen(global.dexdata[global.current, dex.dexno])))
//show_debug_message("Spawned Box "+string(global.box_count)+" with PKMN #"+string(global.dexdata[global.current, dex.dexno])+" from Gen "+string(get_gen(global.dexdata[global.current, dex.dexno])))
image_speed = 0;
if (check_genfirst(global.dexdata[global.current, dex.pokemon], false))

View File

@@ -13,6 +13,7 @@ switch(argument0)
case but.plus:
global.counter++;
global.countdata[global.selecting.idno] = global.counter;
savedata_write(savedata_section_get(global.show_shiny)+" Count", global.selecting.idno, global.counter);
change_add();
break;
@@ -21,6 +22,7 @@ switch(argument0)
if (global.counter > 0)
global.counter--;
global.countdata[global.selecting.idno] = global.counter;
savedata_write(savedata_section_get(global.show_shiny)+" Count", global.selecting.idno, global.counter);
change_add();
break;

View File

@@ -7,8 +7,11 @@ spr_plus = 0.75;
color = get_color3(own, true);
global.selected[dex.own] = own;
if (global.selected[dex.idno] == idno)
global.selected[dex.own] = own;
global.savedata[idno] = own;
//global.countdata[idno] = own;
// Auto-Saves
if (savedata_write(savedata_section_get(global.show_shiny), string(idno), own))

View File

@@ -16,4 +16,10 @@ enum dex
own
}
global.dexdata = csv_load("pokedata");
global.dexdata = csv_load("pokedata");
// NIDORAN temp fix
global.dexdata[56,2] = "NIDORAN";
global.dexdata[56,3] = "FEMALE";
global.dexdata[59,2] = "NIDORAN";
global.dexdata[59,3] = "MALE";

View File

@@ -3,6 +3,7 @@
switch(argument0)
{
case "NIDORAN": //temp
case "HIPPOPOTAS":
case "HIPPOWDON":
case "UNFEZANT":

View File

@@ -12,15 +12,15 @@ show_debug_message("Loading count data...");
var count_total = 0;
ini_open("save.ini")
//ini_open("save.ini")
for (var i=1; i<global.dex_len; i++)
{
global.countdata[i] = ini_read_real(look, string(i), 0);
// global.countdata[i] = ini_read_real(look, string(i), 0);
if (global.savedata[global.dexdata[i, dex.idno]] || global.countdata[i])
if (global.savedata[global.dexdata[i, dex.idno]] || global.countdata[global.dexdata[i, dex.idno]])
count_total++;
}
ini_close();
//ini_close();
// Sanity Check
@@ -89,7 +89,7 @@ for (var i=0; i<slots_per_col; i++)
for (var j=0; j<slots_per_row; j++)
if (current<global.dex_len)
{
while(!check_skip(current) || (current<global.dex_len-1 && !(global.savedata[global.dexdata[current, dex.idno]] || global.countdata[current])))
while(!check_skip(current) || (current<global.dex_len-1 && !(global.savedata[global.dexdata[current, dex.idno]] || global.countdata[global.dexdata[current, dex.idno]])))
current++;
if (global.dexdata[current, dex.pokemon] != "ETERNATUS") // This is a line of code from a man who has given up.
@@ -124,8 +124,8 @@ for (var i=0; i<slots_per_col; i++)
draw_set_valign(fa_middle);
draw_set_halign(fa_center);
if (global.countdata[current] != 0)
var txt = string(global.countdata[current]);
if (global.countdata[global.dexdata[current, dex.idno]] != 0)
var txt = string(global.countdata[global.dexdata[current, dex.idno]]);
else
var txt = "-";

View File

@@ -8,9 +8,20 @@ if (file_exists("save.ini"))
global.show_shiny = ini_read_real("Display", "Shiny Mode", false);
var section = savedata_section_get(global.show_shiny);
global.countdata[0] =0
for (var i=1; i<=global.dex_len; i++)
{
global.savedata[i] = ini_read_real(section, string(i), 0);
global.countdata[i] = ini_read_real(section+" Count", string(i), 0);
/*
if (global.savedata[global.dexdata[i, dex.idno]] || global.countdata[global.dexdata[i, dex.idno]])
show_debug_message( "found: "+global.dexdata[i, dex.pokemon]+
"\tid: "+string(i)+
"\town: "+string(global.savedata[global.dexdata[i, dex.idno]])+
"\tcount: "+global.countdata[global.dexdata[i, dex.idno]]);*/
}
for (var i=0; i<=global.dex_len; i++)
global.savedata[i] = ini_read_real(section, string(i), 0);
ini_close();
show_debug_message("LOADED SAVE FILE.");