mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2026-07-22 07:37:00 +00:00
Update 6.8
This commit is contained in:
@@ -1,13 +1,12 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
|
||||
CITIES_MAP_IDS = {
|
||||
:LITTLEROOT => 9,
|
||||
:OLDALE => 8,
|
||||
:PETALBURG =>7,
|
||||
:PETALBURG => 7,
|
||||
:RUSTBORO => 47,
|
||||
:DEWFORD => 51,
|
||||
:SLATEPORT => 0,
|
||||
:SLATEPORT => 6,
|
||||
:MAUVILLE => 0,
|
||||
:VERDANTURF => 0,
|
||||
:FALLARBOR => 0,
|
||||
@@ -22,7 +21,6 @@ CITIES_MAP_IDS = {
|
||||
|
||||
}
|
||||
|
||||
|
||||
# Necessary dor setting the various events within the pokemart map, uses the numbers as wondertrade
|
||||
def get_city_numerical_id_hoenn(city_sym)
|
||||
current_city_numerical = {
|
||||
@@ -48,7 +46,7 @@ end
|
||||
|
||||
if Settings::GAME_ID == :IF_HOENN
|
||||
POKEMART_MAP_ID = 24
|
||||
POKEMART_DOOR_POS = [12, 12]
|
||||
POKEMART_DOOR_POS = [9, 10]
|
||||
end
|
||||
|
||||
# city -> Symbol
|
||||
@@ -67,71 +65,7 @@ end
|
||||
# end
|
||||
|
||||
|
||||
HOENN_POKEMART_ENTRANCES = {
|
||||
:LITTLEROOT => [1, 0, 0],
|
||||
:OLDALE => [1, 0, 0],
|
||||
:VERMILLION => [1, 0, 0],
|
||||
:PETALBURG => [7, 32, 19],
|
||||
:RUSTBORO => [1, 0, 0],
|
||||
:DEWFORD => [1, 0, 0],
|
||||
:SLATEPORT => [1, 0, 0],
|
||||
:MAUVILLE => [1, 0, 0],
|
||||
:VERDANTURF => [1, 0, 0],
|
||||
:FALLARBOR => [1, 0, 0],
|
||||
:LAVARIDGE => [1, 0, 0],
|
||||
:FORTREE => [1, 0, 0],
|
||||
:LILYCOVE => [1, 0, 0],
|
||||
:MOSSDEEP => [1, 0, 0],
|
||||
:SOOTOPOLIS => [1, 0, 0],
|
||||
:PACIFIDLOG => [1, 0, 0],
|
||||
:EVERGRANDE => [1, 0, 0],
|
||||
}
|
||||
def exit_pokemart_hoenn()
|
||||
|
||||
current_city = pbGet(VAR_CURRENT_MART)
|
||||
current_city = :PETALBURG if !current_city.is_a?(Symbol)
|
||||
|
||||
entrance_map = HOENN_POKEMART_ENTRANCES[current_city][0]
|
||||
entrance_x = HOENN_POKEMART_ENTRANCES[current_city][1]
|
||||
entrance_y = HOENN_POKEMART_ENTRANCES[current_city][2]
|
||||
|
||||
pbSet(VAR_CURRENT_CITY_NUMERICAL_ID, 0)
|
||||
pbSet(VAR_CURRENT_MART, 0)
|
||||
pbFadeOutIn {
|
||||
$game_temp.player_new_map_id = entrance_map
|
||||
$game_temp.player_new_x = entrance_x
|
||||
$game_temp.player_new_y = entrance_y
|
||||
$scene.transfer_player(true)
|
||||
$game_map.autoplay
|
||||
$game_map.refresh
|
||||
}
|
||||
end
|
||||
|
||||
def get_mart_exclusive_items_hoenn(city)
|
||||
items_list = []
|
||||
return items_list
|
||||
end
|
||||
|
||||
def exit_pokemon_center()
|
||||
if $PokemonGlobal.pokecenterMapId && $PokemonGlobal.pokecenterMapId>=0
|
||||
pbCancelVehicles
|
||||
pbRemoveDependencies
|
||||
$game_temp.player_new_map_id = $PokemonGlobal.pokecenterMapId
|
||||
$game_temp.player_new_x = $PokemonGlobal.pokecenterX
|
||||
$game_temp.player_new_y = $PokemonGlobal.pokecenterY
|
||||
$scene.transfer_player if $scene.is_a?(Scene_Map)
|
||||
$game_map.refresh
|
||||
else#Home
|
||||
$game_temp.player_new_map_id = 9
|
||||
$game_temp.player_new_x = 16
|
||||
$game_temp.player_new_y = 23
|
||||
$scene.transfer_player if $scene.is_a?(Scene_Map)
|
||||
$game_map.refresh
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
def inCity?(city)
|
||||
city_map_id = CITIES_MAP_IDS[city]
|
||||
return $PokemonGlobal.pokecenterMapId ==city_map_id
|
||||
def inCity?(city_symbol)
|
||||
return pbGet(VAR_CURRENT_CITY) == city_symbol
|
||||
end
|
||||
Reference in New Issue
Block a user