mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2026-01-22 22:36:03 +00:00
Lots of rubocop
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user