mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-08 13:44:59 +00:00
More Rubocop changes
This commit is contained in:
@@ -167,7 +167,7 @@ class Game_Follower < Game_Event
|
||||
passed_tile_checks = false
|
||||
bit = (1 << ((direction / 2) - 1)) & 0x0f
|
||||
# Check all events for ones using tiles as graphics, and see if they're passable
|
||||
this_map.events.values.each do |event|
|
||||
this_map.events.each_value do |event|
|
||||
next if event.tile_id < 0 || event.through || !event.at_coordinate?(x, y)
|
||||
tile_data = GameData::TerrainTag.try_get(this_map.terrain_tags[event.tile_id])
|
||||
next if tile_data.ignore_passability
|
||||
@@ -195,7 +195,7 @@ class Game_Follower < Game_Event
|
||||
end
|
||||
end
|
||||
# Check all events on the map to see if any are in the way
|
||||
this_map.events.values.each do |event|
|
||||
this_map.events.each_value do |event|
|
||||
next if !event.at_coordinate?(x, y)
|
||||
return false if !event.through && event.character_name != ""
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user