intficpy/thing_base.py
def playerTakes(self, event="turn", **kwargs):
        """
        The result of the player taking this item.

        :param event: the event name to print to
        :type event: str
        """
        if self.game.me.containsItem(self) and not self.game.me.topLevelContainsItem(
            self
        ):
            self.game.addTextToEvent(
                event,
                f"You remove {self.lowNameArticle(True)} from "
                f"{self.location.lowNameArticle(True)}. ",
            )
        else:
            self.game.addTextToEvent(event, f"You take {self.lowNameArticle(True)}. ")
        self.moveTo(self.game.me)

        for c in self.children:
            c.playerTakesParentObject(event=event)
        return True

        The result of the player taking this item.

        :param event: the event name to print to
        :type event: str
        
The result of the player taking this item.
The result of the player taking this item .
def playerTakes(self, event="turn", **kwargs):
        if self.game.me.containsItem(self) and not self.game.me.topLevelContainsItem(
            self
        ):
            self.game.addTextToEvent(
                event,
                f"You remove {self.lowNameArticle(True)} from "
                f"{self.location.lowNameArticle(True)}. ",
            )
        else:
            self.game.addTextToEvent(event, f"You take {self.lowNameArticle(True)}. ")
        self.moveTo(self.game.me)
        for c in self.children:
            c.playerTakesParentObject(event=event)
        return True
def playerTakes ( self , event = "turn" , ** kwargs ) : if self . game . me . containsItem ( self ) and not self . game . me . topLevelContainsItem ( self ) : self . game . addTextToEvent ( event , f"You remove {self.lowNameArticle(True)} from " f"{self.location.lowNameArticle(True)}. " , ) else : self . game . addTextToEvent ( event , f"You take {self.lowNameArticle(True)}. " ) self . moveTo ( self . game . me ) for c in self . children : c . playerTakesParentObject ( event = event ) return True
The result of the player taking this item.
The result of the player taking this item .
"""
        The result of the player taking this item.

        :param event: the event name to print to
        :type event: str
        """
self
event
the event name to print to
the event name to print to