Adjustments for red area
This commit is contained in:
parent
191afb3524
commit
09b5e173c9
|
@ -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'],
|
||||
]
|
||||
|
|
|
@ -34,6 +34,10 @@ class SpecialEventData
|
|||
:machine => SpecialEventData.new(
|
||||
[],
|
||||
[[-1, 0], [0, 0], [1, 0]]
|
||||
),
|
||||
:glitch => SpecialEventData.new(
|
||||
[],
|
||||
[[0, 0], [0, -1]]
|
||||
)
|
||||
}
|
||||
end
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue