module INPUT_FORBID
  
  SWI = 1
  #1号开关开启时 无法向下和向左移动
  
end


class Game_Character
  
  alias :cld99_move_down :move_down
  #--------------------------------------------------------------------------
  # ● 向下移动
  #     turn_enabled : 本场地位置更改许可标志
  #--------------------------------------------------------------------------
  def move_down(turn_enabled = true)
    cld99_move_down(turn_enabled) if !$game_switches[INPUT_FORBID::SWI]
  end
  
  alias :cld99_move_left :move_left
  #--------------------------------------------------------------------------
  # ● 向左移动
  #     turn_enabled : 本场地位置更改许可标志
  #--------------------------------------------------------------------------
  def move_left(turn_enabled = true)
    cld99_move_left(turn_enabled) if !$game_switches[INPUT_FORBID::SWI]
  end
  
end