//=============================================================================
// SkipTitle.js
//=============================================================================
/*:
* @target MZ
* @plugindesc Skip Title (Include Return to Title).
* @author taroxd & Modified
*
* @param Test Only
* @desc Whether to skip title only in playtest. true/false
* @type boolean
* @default true
*
* @help This plugin does not provide plugin commands.
*/
;(() => {
const parameters = PluginManager.parameters('SkipTitle')
const testOnly = parameters['Test Only'] !== 'false'
const enable = !testOnly || Utils.isOptionValid("test")
if (enable) {
// 1. 游戏启动时跳过标题 (原作者逻辑)
Scene_Boot.prototype.startNormalGame = function() {
this.checkPlayerLocation()
DataManager.setupNewGame()
SceneManager.goto(Scene_Map)
}
// 2. 新增:当从菜单返回或游戏结束进入标题画面时,也强制跳过
Scene_Title.prototype.start = function() {
// 不调用原来的标题画面逻辑,直接重置游戏并进入地图
Scene_Base.prototype.start.call(this)
DataManager.setupNewGame()
SceneManager.goto(Scene_Map)
}
}
})()