

def has_item(self, build_item):
    'Check if the player has a GameItem in their inventory that descended\n        from the given build_item prototype.\n        '
    found = False
    for i in self.inventory:
        if ((i.build_id == build_item.id) and (i.build_area == build_item.area.name)):
            found = True
            break
    return found

dataset/ETHPy150Open shinymud/ShinyMUD/src/shinymud/models/character.py Character.has_item/original