class Game_Player #-------------------------------------------------------------------------- # ● 判定地图能否通行 # d : 方向(2,4,6,8) #-------------------------------------------------------------------------- alias :cld99_map_passable? :map_passable? def map_passable?(x, y, d) walk_passable = super passable = cld99_map_passable?(x, y, d) passable || ( @vehicle_type == :ship ? walk_passable : 0) end end
class Game_Player
#--------------------------------------------------------------------------
# ● 判定地图能否通行
# d : 方向(2,4,6,8)
#--------------------------------------------------------------------------
alias :cld99_map_passable? :map_passable?
def map_passable?(x, y, d)
walk_passable = super
passable = cld99_map_passable?(x, y, d)
passable || ( @vehicle_type == :ship ? walk_passable : 0)
end
end
|