intficpy/thing_base.py
def playerExits(self, event="turn", **kwargs):
        """
        The result of the player leaving this item.
        Returns True if the player is not contained by this item at the time of completion,
        i.e, if the player has successfully left, or was not inside to begin with.

        :param event: the event name to print to
        :type event: str
        """
        if not self.containsItem(self.game.me):
            f"You are not {self.contains_preposition} {self.lowNameArticle(True)}. "
            return True

        while self.containsItem(self.game.me.location):
            if not self.game.me.location.playerExits(event=event):
                return False

        # TODO: implement Room/PhysicalEntity playerAddsItem instead?
        self.game.addTextToEvent(event, self.player_exits_msg.format(self=self))
        self.game.me.moveTo(self.location)
        return True

        The result of the player leaving this item.
        Returns True if the player is not contained by this item at the time of completion,
        i.e, if the player has successfully left, or was not inside to begin with.

        :param event: the event name to print to
        :type event: str
        
The result of the player leaving this item.
Returns True if the player is not contained by this item at the time of completion,
i.e, if the player has successfully left, or was not inside to begin with.
The result of the player leaving this item . Returns True if the player is not contained by this item at the time of completion i . e if the player has successfully left or was not inside to begin with .
def playerExits(self, event="turn", **kwargs):
        if not self.containsItem(self.game.me):
            return True
        while self.containsItem(self.game.me.location):
            if not self.game.me.location.playerExits(event=event):
                return False
        self.game.addTextToEvent(event, self.player_exits_msg.format(self=self))
        self.game.me.moveTo(self.location)
        return True
def playerExits ( self , event = "turn" , ** kwargs ) : if not self . containsItem ( self . game . me ) : f"You are not {self.contains_preposition} {self.lowNameArticle(True)}. " return True while self . containsItem ( self . game . me . location ) : if not self . game . me . location . playerExits ( event = event ) : return False self . game . addTextToEvent ( event , self . player_exits_msg . format ( self = self ) ) self . game . me . moveTo ( self . location ) return True
The result of the player leaving this item.
The result of the player leaving this item .
"""
        The result of the player leaving this item.
        Returns True if the player is not contained by this item at the time of completion,
        i.e, if the player has successfully left, or was not inside to begin with.

        :param event: the event name to print to
        :type event: str
        """ f"You are not {self.contains_preposition} {self.lowNameArticle(True)}. " # TODO: implement Room/PhysicalEntity playerAddsItem instead?
self
event
the event name to print to
the event name to print to