Added decent spacing to all scripts thanks to Rubocop

This commit is contained in:
Maruno17
2021-12-18 15:25:40 +00:00
parent f7b76ae62e
commit d17fc40a47
207 changed files with 18577 additions and 18587 deletions

View File

@@ -70,11 +70,11 @@ class PokemonGlobalMetadata
@creditsPlayed = false
# Pokédex
numRegions = pbLoadRegionalDexes.length
@pokedexDex = (numRegions==0) ? -1 : 0
@pokedexDex = (numRegions == 0) ? -1 : 0
@pokedexIndex = []
@pokedexMode = 0
for i in 0...numRegions+1 # National Dex isn't a region, but is included
@pokedexIndex[i] = 0
for i in 0...numRegions + 1 # National Dex isn't a region, but is included
@pokedexIndex[i] = 0
end
# Day Care
@day_care = DayCare.new
@@ -142,27 +142,27 @@ class PokemonMapMetadata
end
def addErasedEvent(eventID)
key = [$game_map.map_id,eventID]
key = [$game_map.map_id, eventID]
@erasedEvents[key] = true
end
def addMovedEvent(eventID)
key = [$game_map.map_id,eventID]
key = [$game_map.map_id, eventID]
event = $game_map.events[eventID] if eventID.is_a?(Integer)
@movedEvents[key] = [event.x,event.y,event.direction,event.through] if event
@movedEvents[key] = [event.x, event.y, event.direction, event.through] if event
end
def updateMap
for i in @erasedEvents
if i[0][0]==$game_map.map_id && i[1]
if i[0][0] == $game_map.map_id && i[1]
event = $game_map.events[i[0][1]]
event.erase if event
end
end
for i in @movedEvents
if i[0][0]==$game_map.map_id && i[1]
if i[0][0] == $game_map.map_id && i[1]
next if !$game_map.events[i[0][1]]
$game_map.events[i[0][1]].moveto(i[1][0],i[1][1])
$game_map.events[i[0][1]].moveto(i[1][0], i[1][1])
case i[1][2]
when 2 then $game_map.events[i[0][1]].turn_down
when 4 then $game_map.events[i[0][1]].turn_left
@@ -170,7 +170,7 @@ class PokemonMapMetadata
when 8 then $game_map.events[i[0][1]].turn_up
end
end
if i[1][3]!=nil
if i[1][3] != nil
$game_map.events[i[0][1]].through = i[1][3]
end
end