String besitzt eine include?-Methode. Waffe wird wohl einfach auf $data_weapons[@weapon_id].name verweisen oder so.
Foren-Regeln