# 物品备注中 <载具可用性 飞艇|小船|大船|船|非小船|非大船|非飞艇|非船|无>
class Scene_Item < Scene_ItemBase
alias ltgs_use_item use_item
def use_item
if item != nil
n = item.note
a = n.sub(/.*<载具可用性\s*(.+?)>/m,'\1')
if a == '飞艇' && ( ! $game_player.in_airship? )
return false
elsif a == '小船' && ( ! $game_player.in_boat? )
return false
elsif a == '大船' && ( ! $game_player.in_ship? )
return false
elsif a == '船' && ( $game_player.in_airship? )
return false
elsif a == '非小船' && ( $game_player.in_boat? )
return false
elsif a == '非大船' && ( $game_player.in_ship? )
return false
elsif a == '非飞艇' && ( $game_player.in_airship? )
return false
elsif a == '非船' && ( $game_player.in_ship? || $game_player.in_boat?)
return false
elsif a == '无' && ( ! $game_player.normal_walk? )
return false
end
end
ltgs_use_item
end
end