From 09b5e173c98147026c54640f24390f27459220b6 Mon Sep 17 00:00:00 2001 From: Mathew Velasquez Date: Mon, 23 Nov 2015 01:37:54 -0500 Subject: [PATCH] Adjustments for red area --- scripts/Data_Footsteps.rb | 16 +++++++++++++--- scripts/Data_SpecialEventData.rb | 4 ++++ scripts/Game_Map.rb | 14 ++++++++++---- scripts/Window_Message.rb | 2 +- 4 files changed, 28 insertions(+), 8 deletions(-) diff --git a/scripts/Data_Footsteps.rb b/scripts/Data_Footsteps.rb index 877918a..c6edf4b 100644 --- a/scripts/Data_Footsteps.rb +++ b/scripts/Data_Footsteps.rb @@ -16,9 +16,11 @@ FOOTSTEP_SFX = [ ['step_grass', 'step_tile'], # Red - [], + ['step_metal', + 'step_metal_light'], # Red Interior - [], + ['step_tile', + 'step_wood'], # Tower [], # Tower Start @@ -26,5 +28,13 @@ FOOTSTEP_SFX = [ # Blank [], # Blue Factory Interior - ['step_metal'], + ['step_metal_light'], + # Red Ground + [], + # Red Factory + [], + # Red Factory Interior + [], + # Red observation deck + ['step_metal_light'], ] diff --git a/scripts/Data_SpecialEventData.rb b/scripts/Data_SpecialEventData.rb index 9862739..01b5033 100644 --- a/scripts/Data_SpecialEventData.rb +++ b/scripts/Data_SpecialEventData.rb @@ -34,6 +34,10 @@ class SpecialEventData :machine => SpecialEventData.new( [], [[-1, 0], [0, 0], [1, 0]] + ), + :glitch => SpecialEventData.new( + [], + [[0, 0], [0, -1]] ) } end diff --git a/scripts/Game_Map.rb b/scripts/Game_Map.rb index fe0cb92..5fdb16c 100644 --- a/scripts/Game_Map.rb +++ b/scripts/Game_Map.rb @@ -276,15 +276,21 @@ class Game_Map end end # Loop searches in order from top of layer + blank = 0 for i in [2, 1, 0] # Get tile ID tile_id = data[x, y, i] # Tile ID acquistion failure - if tile_id == nil - # impassable - return false + return false if tile_id == nil + + # Only handle blank if all three layers are blank + if tile_id < 48 && i > 0 + blank += 1 + next if blank < 3 + end + # If obstacle bit is set - elsif @passages[tile_id] & bit != 0 + if @passages[tile_id] & bit != 0 # impassable return false # If obstacle bit is set in all directions diff --git a/scripts/Window_Message.rb b/scripts/Window_Message.rb index 00a6a70..b14b4a3 100644 --- a/scripts/Window_Message.rb +++ b/scripts/Window_Message.rb @@ -332,7 +332,7 @@ class Window_Message < Window_Selectable @text_pause -= 1 else if @blip >= BLIP_TIME - Audio.se_play('Audio/SE/text.wav', 70) unless @text.empty? + Audio.se_play('Audio/SE/text.wav') unless @text.empty? @blip = 0 else @blip += 1