sakura-gozen/js/plugins/iii/IIISaveInfoEx.js
2025-02-19 10:16:07 -06:00

72 lines
2.5 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//=============================================================================
// IIISaveInfoEx.js
// ----------------------------------------------------------------------------
// (C) 2020 III
// This software is released under the MIT License.
// http://opensource.org/licenses/mit-license.php
// ----------------------------------------------------------------------------
/*:ja
* @target MZ
* @plugindesc セーブファイル情報の拡張
* @author III
*/
var Imported = Imported || {};
Imported["IIISaveInfoEx"] = 1.0;
(function () {
"use strict";
//-----------------------------------------------------------------------------
// DataManager(overload)
//
DataManager.makeSavefileInfo = function () {
const info = {};
var timeget = new Date();
info.title = $dataSystem.gameTitle;
info.characters = $gameParty.charactersForSavefile();
info.faces = $gameParty.facesForSavefile();
info.playtime = $gameSystem.playtimeText();
info.timestamp = Date.now();
info.mapName = $gameMap.displayName();
info.actorLevel = $gameParty.leader().level;
info.purpose = $gameVariables.value(15);
info.timeYear = timeget.getFullYear();
info.timeMonth = timeget.getMonth() + 1;
info.timeDate = timeget.getDate();
info.timeHours = timeget.getHours();
info.timeMinutes = timeget.getMinutes();
info.trialvar = $gameSwitches.value(3);
info.ChapClear1 = $gameSwitches.value(35);
info.ChapClear2 = $gameSwitches.value(36);
info.ChapClear3 = $gameSwitches.value(38);
info.ChapClear4 = $gameSwitches.value(37);
info.ChapClear5 = $gameSwitches.value(39);
info.Hlv = $gameVariables.value(25);
info.HparamKuti = $gameVariables.value(56);
info.HparamTiti = $gameVariables.value(57);
info.HparamTitu = $gameVariables.value(58);
info.HparamSiri = $gameVariables.value(59);
/*
info.title = $dataSystem.gameTitle;
info.characters = $gameParty.charactersForSavefile();
info.faces = $gameParty.facesForSavefile();
info.playtime = $gameSystem.playtimeText();
info.timestamp = Date.now();
return info;
var chapterName = "";
//プレイ中のステージ情報
if ($gameVariables.value(15) < 2000) {
chapterName = "Chapter1";
}
else if ($gameVariables.value(15) >= 10000) {
chapterName = "Chapter Select";
}
info.chapterName = chapterName;
*/
return info;
};
})();