class Game_Player < Game_Character
def map_passable?(x, y, d)
case @vehicle_type
when :boat
$game_map.boat_passable?(x, y,d)
when :ship
$game_map.ship_passable?(x, y)
when :airship
true
else
super
end
end
end
class Game_Map
def boat_passable?(x, y, d)
check_passage(x, y, (1 << (d / 2 - 1)) & 0x0f)
end
end
class Game_Player < Game_Character
def map_passable?(x, y, d)
case @vehicle_type
when :boat
$game_map.boat_passable?(x, y,d)
when :ship
$game_map.ship_passable?(x, y)
when :airship
true
else
super
end
end
end
class Game_Map
def boat_passable?(x, y, d)
check_passage(x, y, (1 << (d / 2 - 1)) & 0x0f)
end
end