From 9e7c22f2b6c102ff4bf81be492282b984b97362f Mon Sep 17 00:00:00 2001 From: CatWindow Date: Thu, 20 Aug 2026 16:43:34 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B2=D0=B0=D0=B2=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/Data_FastTravel.rb | 18 +++++++++--------- scripts/FastTravel.rb | 3 ++- scripts/Game_Player.rb | 19 +++++++++++-------- scripts/Input.rb | 31 ------------------------------- 4 files changed, 22 insertions(+), 49 deletions(-) diff --git a/scripts/Data_FastTravel.rb b/scripts/Data_FastTravel.rb index aa91e99..182ae75 100644 --- a/scripts/Data_FastTravel.rb +++ b/scripts/Data_FastTravel.rb @@ -70,15 +70,15 @@ class FastTravel :quarry => tr("lookout point"), }, { - :entrance => ZoneLocations.new(-81, 22, -4, 3, :docks, :outpost, nil, nil), - :outpost => ZoneLocations.new(-52, 42, 6, -3, nil, :cliffs, nil, :entrance), - :cliffs => ZoneLocations.new(4, -3, 21, 38, :factory, :quarry, nil, :outpost), - :mineshaft => ZoneLocations.new(88, -3, 5, 0, nil, nil, nil, :quarry), - :factory => ZoneLocations.new(15, -42, 13, 2, nil, nil, :cliffs, :dorms), - :dorms => ZoneLocations.new(-46, -49, 20, 4, nil, :factory, nil, :swamp), - :swamp => ZoneLocations.new(-98, -45, 10, 7, nil, :dorms, :docks, nil), - :docks => ZoneLocations.new(-82, -9, -4, -2, :swamp, nil, :entrance, nil), - :quarry => ZoneLocations.new(52, -4, 17, -3, nil, :mineshaft, nil, :cliffs), + :entrance => ZoneLocations.new(-81, 22, -4, 3, :docks, :outpost, nil, nil), + :outpost => ZoneLocations.new(-52, 42, 6, -3, nil, :cliffs, nil, :entrance), + :cliffs => ZoneLocations.new( 4, -3, 21, 38, :factory, :quarry, nil, :outpost), + :mineshaft => ZoneLocations.new( 88, -3, 5, 0, nil, nil, nil, :quarry), + :factory => ZoneLocations.new( 15, -42, 13, 2, nil, nil, :cliffs, :dorms), + :dorms => ZoneLocations.new(-46, -49, 20, 4, nil, :factory, nil, :swamp), + :swamp => ZoneLocations.new(-98, -45, 10, 7, nil, :dorms, :docks, nil), + :docks => ZoneLocations.new(-82, -9, -4, -2, :swamp, nil, :entrance, nil), + :quarry => ZoneLocations.new( 52, -4, 17, -3, nil, :mineshaft, nil, :cliffs), }), } end diff --git a/scripts/FastTravel.rb b/scripts/FastTravel.rb index 761882c..937919a 100644 --- a/scripts/FastTravel.rb +++ b/scripts/FastTravel.rb @@ -165,11 +165,11 @@ class FastTravel end #Not WME - @fade_in = true @data = $game_fasttravel.unlocked_maps.keys.sort zone = ZONES[$game_fasttravel.zone] # Set cursor to current map + @selected_location = @data[0] @data.each_with_index do |map, i| if $game_fasttravel.unlocked_maps[map].id == $game_map.map_id @index = i @@ -177,6 +177,7 @@ class FastTravel break end end + @fade_in = true # Create title @title.bitmap.clear diff --git a/scripts/Game_Player.rb b/scripts/Game_Player.rb index 0a8a74a..9950e73 100644 --- a/scripts/Game_Player.rb +++ b/scripts/Game_Player.rb @@ -164,6 +164,9 @@ class Game_Player < Game_Character # * Frame Update #-------------------------------------------------------------------------- def update + if (Settings[:debug] && Input::key_press?(Input::key_from_name("F6"))) + unlock + end old_center_x = @center_x old_center_y = @center_y @center_x = ((Graphics.width / 2) - 16) * 4 # Center screen x-coordinate * 4 @@ -190,21 +193,21 @@ class Game_Player < Game_Character # Move player in the direction the directional button is being pressed case Input.dir4 when 2 - if $game_switches[112] == false + if $game_switches[112] == false move_down - else - turn_down - end + else + turn_down + end when 4 move_left when 6 move_right when 8 - if $game_switches[112] == false + if $game_switches[112] == false move_up - else - turn_up - end + else + turn_up + end end end else diff --git a/scripts/Input.rb b/scripts/Input.rb index cf14b13..5183933 100644 --- a/scripts/Input.rb +++ b/scripts/Input.rb @@ -8,35 +8,4 @@ module Input return normalized < Settings[:gamepad_deadzone] / 10.0 ? 0.0 : normalized end end - - GAMEPAD_BUTTONS_NAMES = { - "a" => "A", # ▲□Ο - "b" => "B", - "x" => "X", - "y" => "Y", - "lefttringger" => "LT", - "righttringger" => "RT", - "leftshoulder" => "LS", - "rightshoulder" => "RS", - "dpdown" => "D-Pad Down", - "dpleft" => "D-Pad Left", - "dpright" => "D-Pad Right", - "dpup" => "D-Pad Up", - "back" => "Back", - "guide" => "Guide", - "start" => "Start", - "leftstick" => "Left Stick", - "rightstick" => "Right Stick", - "leftpaddle1" => "Left Paddle 1", - "rightpaddle1" => "Right Paddle 1", - "leftpaddle2" => "Left Paddle 2", - "rightpaddle2" => "Right Paddle 2", - "touchpad" => "Touchpad", - "misc1" => "Misc 1", - "misc2" => "Misc 2", - "misc3" => "Misc 3", - "misc4" => "Misc 4", - "misc5" => "Misc 5", - "misc6" => "Misc 6", - } end \ No newline at end of file