From d884cbc2a6762ff29b08dc53c2e35532dc8886bd Mon Sep 17 00:00:00 2001 From: Michael Shirt Date: Fri, 7 Oct 2016 16:54:29 -0600 Subject: [PATCH] Removing counter functionality of tiles This was causing footsteps tiles in the barrens to allow the player to interact with objects an extra tile in front of them, which was causing issues (ex: letting players talk to doors through walls) --- scripts/Game_Player.rb | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/scripts/Game_Player.rb b/scripts/Game_Player.rb index 67d1eff..d272a50 100644 --- a/scripts/Game_Player.rb +++ b/scripts/Game_Player.rb @@ -142,27 +142,6 @@ class Game_Player < Game_Character end end end - # If fitting event is not found - if result == false - # If front tile is a counter - if $game_map.counter?(new_x, new_y) - # Calculate 1 tile inside coordinates - new_x += (@direction == 6 ? 1 : @direction == 4 ? -1 : 0) - new_y += (@direction == 2 ? 1 : @direction == 8 ? -1 : 0) - # All event loops - for event in $game_map.events.values - # If event coordinates and triggers are consistent - if event.x == new_x and event.y == new_y and - triggers.include?(event.trigger) - # If starting determinant is front event (other than jumping) - if not event.jumping? and not event.over_trigger? - event.start - result = true - end - end - end - end - end return result end #--------------------------------------------------------------------------