More Rubocop changes

This commit is contained in:
Maruno17
2022-02-13 00:57:54 +00:00
parent cca5989746
commit f68e699cc9
108 changed files with 708 additions and 808 deletions

View File

@@ -154,10 +154,7 @@ class PokemonMapMetadata
def updateMap
@erasedEvents.each do |i|
if i[0][0] == $game_map.map_id && i[1]
event = $game_map.events[i[0][1]]
event&.erase
end
$game_map.events[i[0][1]]&.erase if i[0][0] == $game_map.map_id && i[1]
end
@movedEvents.each do |i|
if i[0][0] == $game_map.map_id && i[1]
@@ -170,9 +167,7 @@ class PokemonMapMetadata
when 8 then $game_map.events[i[0][1]].turn_up
end
end
if i[1][3] != nil
$game_map.events[i[0][1]].through = i[1][3]
end
$game_map.events[i[0][1]].through = i[1][3] if i[1][3]
end
end
end