intficpy/thing_base.py
def playerAboutToMoveTo(self, item, event="turn", **kwargs):
        """
        The preparations we make when the player tries to move this item to another item.
        Returns True to allow the moveTo, else False.

        :param item: the item the player is trying to add this Thing into
        :type item: Thing
        :rtype: bool
        """
        if self.parent_obj:
            self.game.addTextToEvent(
                event,
                f"{self.capNameArticle(True)} is attached to "
                f"{self.parent_obj.lowNameArticle(True)}.",
            )
            return False
        return True

        The preparations we make when the player tries to move this item to another item.
        Returns True to allow the moveTo, else False.

        :param item: the item the player is trying to add this Thing into
        :type item: Thing
        :rtype: bool
        
The preparations we make when the player tries to move this item to another item.
Returns True to allow the moveTo, else False.
The preparations we make when the player tries to move this item to another item . Returns True to allow the moveTo else False .
def playerAboutToMoveTo(self, item, event="turn", **kwargs):
        if self.parent_obj:
            self.game.addTextToEvent(
                event,
                f"{self.capNameArticle(True)} is attached to "
                f"{self.parent_obj.lowNameArticle(True)}.",
            )
            return False
        return True
def playerAboutToMoveTo ( self , item , event = "turn" , ** kwargs ) : if self . parent_obj : self . game . addTextToEvent ( event , f"{self.capNameArticle(True)} is attached to " f"{self.parent_obj.lowNameArticle(True)}." , ) return False return True
The preparations we make when the player tries to move this item to another item.
The preparations we make when the player tries to move this item to another item .
"""
        The preparations we make when the player tries to move this item to another item.
        Returns True to allow the moveTo, else False.

        :param item: the item the player is trying to add this Thing into
        :type item: Thing
        :rtype: bool
        """
None
bool
self
item
the item the player is trying to add this Thing into
the item the player is trying to add this Thing into
event