

def change_position(self, pos, furniture=None):
    "Change the player's position."
    if self.position[1]:
        self.position[1].item_types['furniture'].player_remove(self)
    if furniture:
        furniture.item_types['furniture'].player_add(self)
    self.position = (pos, furniture)

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