mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Added decent spacing to all scripts thanks to Rubocop
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user