intficpy/thing_base.py
def playerAddsItem(
        self, item, preposition, event="turn", success_msg=None, **kwargs
    ):
        """
        The result of a player trying to add an item to this item's contents.
        For base Things, first checks if we are the floor, and if so, moves the item to
        the outer Room, otherwise tries to find an appropriate child item to add to.

        Returns True on success, else False.

        :param item: the item to attempt to add
        :type item: Thing
        :param preposition: the contains preposition the player wants to add the item with
            (in/on/etc.)
        :type preposition: str
        """
        outer_loc = self.game.me.getOutermostLocation()
        if self is outer_loc.floor:
            if success_msg:
                self.game.addTextToEvent(event, success_msg)
            item.moveTo(outer_loc)
            return True

        return self.implicitAddItemToChild(item, preposition)

        The result of a player trying to add an item to this item's contents.
        For base Things, first checks if we are the floor, and if so, moves the item to
        the outer Room, otherwise tries to find an appropriate child item to add to.

        Returns True on success, else False.

        :param item: the item to attempt to add
        :type item: Thing
        :param preposition: the contains preposition the player wants to add the item with
            (in/on/etc.)
        :type preposition: str
        
The result of a player trying to add an item to this item's contents.
For base Things, first checks if we are the floor, and if so, moves the item to
the outer Room, otherwise tries to find an appropriate child item to add to.

Returns True on success, else False.
The result of a player trying to add an item to this item ' s contents . For base Things first checks if we are the floor and if so moves the item to the outer Room otherwise tries to find an appropriate child item to add to . Returns True on success else False .
def playerAddsItem(
        self, item, preposition, event="turn", success_msg=None, **kwargs
    ):
        outer_loc = self.game.me.getOutermostLocation()
        if self is outer_loc.floor:
            if success_msg:
                self.game.addTextToEvent(event, success_msg)
            item.moveTo(outer_loc)
            return True
        return self.implicitAddItemToChild(item, preposition)
def playerAddsItem ( self , item , preposition , event = "turn" , success_msg = None , ** kwargs ) : outer_loc = self . game . me . getOutermostLocation ( ) if self is outer_loc . floor : if success_msg : self . game . addTextToEvent ( event , success_msg ) item . moveTo ( outer_loc ) return True return self . implicitAddItemToChild ( item , preposition )
The result of a player trying to add an item to this item's contents.
The result of a player trying to add an item to this item ' s contents .
"""
        The result of a player trying to add an item to this item's contents.
        For base Things, first checks if we are the floor, and if so, moves the item to
        the outer Room, otherwise tries to find an appropriate child item to add to.

        Returns True on success, else False.

        :param item: the item to attempt to add
        :type item: Thing
        :param preposition: the contains preposition the player wants to add the item with
            (in/on/etc.)
        :type preposition: str
        """
self
item
the item to attempt to add
the item to attempt to add
preposition
the contains preposition the player wants to add the item with
(in/on/etc.)
the contains preposition the player wants to add the item with ( in / on / etc . )
event
success_msg