mirror of
https://github.com/PoshoDev/DexTool.git
synced 2026-08-22 18:44:10 -05:00
Separate Shiny save data!
This commit is contained in:
@@ -21318,6 +21318,14 @@
|
||||
"resourceType": "GMIncludedFile"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Key": "d586db78-0f49-acc1-1594-f50f2a038c70",
|
||||
"Value": {
|
||||
"id": "3434b8d4-df9e-64b2-8769-255fa1e598fb",
|
||||
"resourcePath": "scripts\\savedata_section_get\\savedata_section_get.yy",
|
||||
"resourceType": "GMScript"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Key": "d591607b-ec57-4689-b01c-c5556e491a6d",
|
||||
"Value": {
|
||||
@@ -25484,7 +25492,8 @@
|
||||
"27426a5b-252b-ce49-0d97-9a0b620973f4",
|
||||
"01109f28-4eca-fc23-b0d9-649acb9c158c",
|
||||
"0c8bde50-6fda-efe6-8809-de6b265ccbcc",
|
||||
"cf1f53d0-1b66-da1a-c70e-53a1d7177805"
|
||||
"cf1f53d0-1b66-da1a-c70e-53a1d7177805",
|
||||
"d586db78-0f49-acc1-1594-f50f2a038c70"
|
||||
],
|
||||
"tutorial": ""
|
||||
}
|
||||
@@ -14,7 +14,9 @@ global.savedata[idno] = own;
|
||||
if (file_exists("save.ini"))
|
||||
{
|
||||
ini_open("save.ini");
|
||||
ini_write_real("Pokemon", string(idno), own)
|
||||
var section = savedata_section_get(global.show_shiny);
|
||||
|
||||
ini_write_real(section, string(idno), own)
|
||||
//ini_write_real("Progress","count",global.count)
|
||||
show_debug_message("Saved "+pokemon+" as "+string(own)+".");
|
||||
ini_close();
|
||||
|
||||
@@ -6,9 +6,11 @@ if (file_exists("save.ini"))
|
||||
global.current_box = ini_read_real("Navigation", "Current Box", 1);
|
||||
global.show_galar = ini_read_real("Display", "Galar Dex", false);
|
||||
global.show_shiny = ini_read_real("Display", "Shiny Mode", false);
|
||||
|
||||
|
||||
var section = savedata_section_get(global.show_shiny);
|
||||
|
||||
for (var i=0; i<=global.dex_len; i++)
|
||||
global.savedata[i] = ini_read_real("Pokemon", string(i), 0);
|
||||
global.savedata[i] = ini_read_real(section, string(i), 0);
|
||||
|
||||
ini_close();
|
||||
show_debug_message("LOADED SAVE FILE.");
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
///savedata_section_get(shiny?)
|
||||
|
||||
if (!argument0)
|
||||
return "Pokemon";
|
||||
else
|
||||
return "Shiny";
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"id": "d586db78-0f49-acc1-1594-f50f2a038c70",
|
||||
"modelName": "GMScript",
|
||||
"mvc": "1.0",
|
||||
"name": "savedata_section_get",
|
||||
"IsCompatibility": false,
|
||||
"IsDnD": false
|
||||
}
|
||||
@@ -41,7 +41,8 @@
|
||||
"27426a5b-252b-ce49-0d97-9a0b620973f4",
|
||||
"01109f28-4eca-fc23-b0d9-649acb9c158c",
|
||||
"0c8bde50-6fda-efe6-8809-de6b265ccbcc",
|
||||
"cf1f53d0-1b66-da1a-c70e-53a1d7177805"
|
||||
"cf1f53d0-1b66-da1a-c70e-53a1d7177805",
|
||||
"d586db78-0f49-acc1-1594-f50f2a038c70"
|
||||
],
|
||||
"filterType": "GMScript",
|
||||
"folderName": "scripts",
|
||||
|
||||
Reference in New Issue
Block a user