Press G to toggle Gigantamax!

This commit is contained in:
Rodrigo 2021-03-01 14:04:09 -06:00
parent 518c2d3ead
commit 3442d3cee5
8 changed files with 32 additions and 21 deletions

View File

@ -109,6 +109,7 @@
{"id":{"name":"notes","path":"notes/notes/notes.yy",},"order":1,},
{"id":{"name":"compatibility_report_280220_200614614","path":"notes/compatibility_report_280220_200614614/compatibility_report_280220_200614614.yy",},"order":3,},
{"id":{"name":"CSV_Manager","path":"extensions/CSV_Manager/CSV_Manager.yy",},"order":1,},
{"id":{"name":"show_gigantamax_toggle","path":"scripts/show_gigantamax_toggle/show_gigantamax_toggle.yy",},"order":73,},
],
"Options": [
{"name":"iOS","path":"options/ios/options_ios.yy",},

View File

@ -3,7 +3,7 @@ function check_skip(argument0) {
var form = global.dexdata[argument0, dex.form];
var bank = global.dexdata[argument0, dex.bankable];
if (bank == "FALSE")
if (bank=="FALSE" || (form=="GIGANTAMAX" && !global.show_gigantamax))
return false;
switch(form)

View File

@ -37,7 +37,4 @@ function initials_set() {
global.progress = 0;
global.progress_max = 0;
}

View File

@ -4,9 +4,10 @@ function savedata_load() {
if (file_exists("save.ini"))
{
ini_open("save.ini")
global.current_box = ini_read_real("Navigation", "Current Box", 1);
global.show_dex = ini_read_real("Display", "Galar Dex", shw.national);
global.show_shiny = ini_read_real("Display", "Shiny Mode", false);
global.current_box = ini_read_real("Navigation", "Current Box", 1);
global.show_dex = ini_read_real("Display", "Galar Dex", shw.national);
global.show_shiny = ini_read_real("Display", "Shiny Mode", false);
global.show_gigantamax = ini_read_real("Display", "Gigantamax", false);
var section = savedata_section_get(global.show_shiny);
global.countdata[0] =0
@ -14,12 +15,6 @@ function savedata_load() {
{
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]]);*/
}
@ -33,9 +28,10 @@ function savedata_load() {
ini_write_real("Info", "Number", version_get());
ini_close();
global.current_box = 1;
global.show_dex = 0;
global.show_shiny = false;
global.current_box = 1;
global.show_dex = 0;
global.show_shiny = false;
global.show_gigantamax = false;
for (var i=0; i<=global.dex_len; i++)
global.savedata[i] = 0;

View File

@ -2,9 +2,10 @@
function shortcut_check() {
// Letters
if (keyboard_check_pressed(ord("G"))) show_dex_toggle();
if (keyboard_check_pressed(ord("D"))) show_dex_toggle();
else if (keyboard_check_pressed(ord("I"))) make_screenshot();
else if (keyboard_check_pressed(ord("S"))) show_shiny_toggle();
else if (keyboard_check_pressed(ord("G"))) show_gigantamax_toggle();
else if (keyboard_check_pressed(ord("C"))) counter_set();
// Plus and Minus
@ -21,6 +22,4 @@ function shortcut_check() {
for (var i=ord("0"); i<=ord("9"); i++)
if (keyboard_check_pressed(i))
box_gen_jump(i - ord("0"));
}

View File

@ -7,6 +7,4 @@ function show_dex_toggle() {
savedata_write("Display", "Galar Dex", global.show_dex);
room_restart();
}

View File

@ -0,0 +1,8 @@
function show_gigantamax_toggle() {
window_set_cursor(cr_hourglass);
global.show_gigantamax = !global.show_gigantamax;
savedata_write("Display", "Gigantamax", global.show_gigantamax);
room_restart();
}

View File

@ -0,0 +1,12 @@
{
"isDnD": false,
"isCompatibility": false,
"parent": {
"name": "Scripts",
"path": "folders/Scripts.yy",
},
"resourceVersion": "1.0",
"name": "show_gigantamax_toggle",
"tags": [],
"resourceType": "GMScript",
}