From 6a50eac370b4ba4157e431385e3ad09bd5f06f29 Mon Sep 17 00:00:00 2001 From: ZakatTeamI2P Date: Sun, 26 Apr 2026 14:12:11 +0400 Subject: [PATCH] i fuckin hate youself --- scripts/Scene_Map.rb | 2 +- scripts/Scene_Title.rb | 15 ++++++--------- scripts/Window_MainMenu.rb | 23 ++++++++++++++++++++++- scripts/Window_Settings.rb | 6 ++++++ 4 files changed, 35 insertions(+), 11 deletions(-) diff --git a/scripts/Scene_Map.rb b/scripts/Scene_Map.rb index 089cf98..6083390 100644 --- a/scripts/Scene_Map.rb +++ b/scripts/Scene_Map.rb @@ -123,7 +123,7 @@ class Scene_Map EdText.info(tr("You cannot perform this action during cutscenes.")) return else - if Window_Settings.OneShotMode = true + if Window_Settings.OneShotMode == true File.new("badend.lock", "w") $game_temp.common_event_id = 35 else diff --git a/scripts/Scene_Title.rb b/scripts/Scene_Title.rb index f1b951e..7973b5e 100644 --- a/scripts/Scene_Title.rb +++ b/scripts/Scene_Title.rb @@ -46,23 +46,20 @@ class Scene_Title if File.exists?("Graphics/Titles/#{translation_name}.png") @sprite.bitmap = RPG::Cache.title(translation_name) else - if Window_Settings.OneShotMode = true - if File.exist?("badend.lock") - @sprite.bitmap = RPG::Cache.title("badend") - else - @sprite.bitmap = RPG::Cache.title($data_system.title_name) - end - end + if File.exist?("badend.lock") + @sprite.bitmap = RPG::Cache.title("badend") + else + @sprite.bitmap = RPG::Cache.title($data_system.title_name) + end end # check for debug file to add debug items - if Window_Settings.DebugIsEnabled = true + if Window_Settings.DebugIsEnabled # debug save $game_party.gain_item(54, 1) # plight skip $game_party.gain_item(82, 1) #George reroler $game_party.gain_item(81, 1) - #George reroler end @sprite.zoom_x = 2.0 diff --git a/scripts/Window_MainMenu.rb b/scripts/Window_MainMenu.rb index 9baf79b..51cf0af 100644 --- a/scripts/Window_MainMenu.rb +++ b/scripts/Window_MainMenu.rb @@ -8,6 +8,11 @@ class Window_MainMenu < Window_Selectable @commands << 'Travel' @commands << 'Notes' @commands << 'Settings' + + if Window_Settings.DebugIsEnabled == true + @commands << 'TPtLOC' + end + @item_max = @commands.size @column_max = @item_max @@ -138,10 +143,26 @@ class Window_MainMenu < Window_Selectable when 1 $game_temp.common_event_id = 15 @fade_out = true - else + when 2 $game_system.se_play($data_system.decision_se) $game_temp.window_settings_calling = true @fade_out = true + when 3 + if File.exist?("imstupidcheater.txt") + id = Integer(File.read("imstupidcheater.txt").strip.to_i) +# id = 177 + x = Integer(File.read("imstupidcheater.x").strip.to_i) + y = Integer(File.read("imstupidcheater.y").strip.to_i) + $game_temp.player_transferring = true + $game_temp.player_new_map_id = id + $game_temp.player_new_x = x + $game_temp.player_new_y = y + $game_temp.player_new_direction = 0 + Graphics.freeze + $game_temp.transition_processing = true + $game_temp.transition_name = "" + @fade_out = true + end end return end diff --git a/scripts/Window_Settings.rb b/scripts/Window_Settings.rb index 8fa7ad3..599b77f 100644 --- a/scripts/Window_Settings.rb +++ b/scripts/Window_Settings.rb @@ -9,6 +9,12 @@ class Window_Settings class << self attr_accessor :DebugIsEnabled attr_accessor :OneShotMode + def OneShotMode? + !!@OneShotMode + end + def DebugIsEnabled? + !!@DebugIsEnabled + end end @DebugIsEnabled = false #You have only ONE shot!