

def item_add(self, item):
    "Add an item to the character's inventory."
    if (not self.is_npc()):
        self.owner = self
        item.save()
    self.inventory.append(item)

dataset/ETHPy150Open shinymud/ShinyMUD/src/shinymud/models/character.py Character.item_add/VarMisuse@26/47 `item`->`self`