class Spriteset_Map

  #--------------------------------------------------------------------------
  # ● 天候の作成
  #--------------------------------------------------------------------------
  alias tako343dikcreate_weather create_weather
  def create_weather
    tako343dikcreate_weather
    @mpeffEx = Spriteset_MapEffectEx.new(@viewport2)
  
  end

  #--------------------------------------------------------------------------
  # ● 天候の解放
  #--------------------------------------------------------------------------
  alias tako343dikdispose_weather dispose_weather
  def dispose_weather
    tako343dikdispose_weather
    @mpeffEx.dispose
  end


  #--------------------------------------------------------------------------
  # ● フレーム更新
  #--------------------------------------------------------------------------
alias tako434dddupdate update
  def update
    update_mpeffEx
    tako434dddupdate
  end

  #--------------------------------------------------------------------------
  # ● 天候の更新
  #--------------------------------------------------------------------------
  def update_mpeffEx

    @mpeffEx.type = $game_map.screen.mpeffEx_type
    @mpeffEx.power = $game_map.screen.mpeffEx_power
    @mpeffEx.ox = $game_map.display_x * 32
    @mpeffEx.oy = $game_map.display_y * 32
    @mpeffEx.map_width = $game_map.width * 32
    @mpeffEx.map_height = $game_map.height * 32  
    @mpeffEx.update
  end

end
