Lots of rubocop

This commit is contained in:
Maruno17
2023-01-28 15:21:12 +00:00
parent 2d056052ce
commit 13aab8d911
159 changed files with 1679 additions and 1931 deletions

View File

@@ -185,7 +185,7 @@ class PokemonRegionMap_Scene
@map.point.each do |point|
next if point[0] != x || point[1] != y
return "" if point[7] && (@wallmap || point[7] <= 0 || !$game_switches[point[7]])
name = pbGetMessageFromHash(MessageTypes::RegionLocations, point[2])
name = pbGetMessageFromHash(MessageTypes::REGION_LOCATION_NAMES, point[2])
return (@editor) ? point[2] : name
end
return ""
@@ -214,7 +214,7 @@ class PokemonRegionMap_Scene
next if point[0] != x || point[1] != y
return "" if point[7] && (@wallmap || point[7] <= 0 || !$game_switches[point[7]])
return "" if !point[3]
mapdesc = pbGetMessageFromHash(MessageTypes::RegionDescriptions, point[3])
mapdesc = pbGetMessageFromHash(MessageTypes::REGION_LOCATION_DESCRIPTIONS, point[3])
return (@editor) ? point[3] : mapdesc
end
return ""
@@ -341,10 +341,10 @@ end
#
#===============================================================================
def pbShowMap(region = -1, wallmap = true)
pbFadeOutIn {
pbFadeOutIn do
scene = PokemonRegionMap_Scene.new(region, wallmap)
screen = PokemonRegionMapScreen.new(scene)
ret = screen.pbStartScreen
$game_temp.fly_destination = ret if ret && !wallmap
}
end
end