#==============================================================================
#  ExMap_AutoWeather
#------------------------------------------------------------------------------
# ޥåפȤѩʤɤOǤ褦ˤ륹ץزĤǤ
#==============================================================================

# ޥåO
# ޥå IDηN (0:ʤ 1: 2: 3:ѩ)1  9
# rg (0  600 ե` 1/6) (0:ʤ 1:) 혤
# {ФҪʤK٤ޤ
# ) ޥå 10  1 gƏ 5 ꡢȤʤ => [10, 1, 5, 60, 0]
EXMAP_ATWTR_MAPS = [
  [0, 0, 5, 0, 0],
  [0, 0, 5, 0, 0],
]

#------------------------------------------------------------------------------

class Game_Map
  alias _exmawtr_setup setup
  #--------------------------------------------------------------------------
  #  åȥå (׷Ӷx)
  #     map_id : ޥå ID
  #--------------------------------------------------------------------------
  def setup(map_id)
    _exmawtr_setup(map_id)
    setup_weather
  end
  #--------------------------------------------------------------------------
  #  Υåȥå
  #--------------------------------------------------------------------------
  def setup_weather
    @screen.weather(0, 0, 0)
    for data in EXMAP_ATWTR_MAPS
      if data[0] == map_id
        @screen.weather(data[1], data[2], data[3])
        @wait_count = data[3] if data[4] == 1
      end
    end
  end
end
