add encounter_random_part_type and encounter_random_phys functions