intficpy/serializer.py
def add_thing_by_ix(self, destination, ix):
        """
        Adds a Thing to a location (Room/Thing) by index. Makes a copy if a Thing of
        the specified index has already been placed.
        destination is a PhysicalEntity subclass instance
        """
        if ix in self.placed_things:
            item = self.game.ifp_objects[ix].copyThing()
        else:
            self.placed_things.append(ix)
            item = self.game.ifp_objects[ix]
        for word in item.synonyms:
            if not word in self.game.nouns:
                self.game.nouns[word] = [item]
            elif not item in self.game.nouns[word]:
                self.game.nouns[word].append(item)
        destination.addThing(item)
        return item

        Adds a Thing to a location (Room/Thing) by index. Makes a copy if a Thing of
        the specified index has already been placed.
        destination is a PhysicalEntity subclass instance
        
Adds a Thing to a location (Room/Thing) by index. Makes a copy if a Thing of
the specified index has already been placed.
destination is a PhysicalEntity subclass instance
Adds a Thing to a location ( Room / Thing ) by index . Makes a copy if a Thing of the specified index has already been placed . destination is a PhysicalEntity subclass instance
def add_thing_by_ix(self, destination, ix):
        if ix in self.placed_things:
            item = self.game.ifp_objects[ix].copyThing()
        else:
            self.placed_things.append(ix)
            item = self.game.ifp_objects[ix]
        for word in item.synonyms:
            if not word in self.game.nouns:
                self.game.nouns[word] = [item]
            elif not item in self.game.nouns[word]:
                self.game.nouns[word].append(item)
        destination.addThing(item)
        return item
def add_thing_by_ix ( self , destination , ix ) : if ix in self . placed_things : item = self . game . ifp_objects [ ix ] . copyThing ( ) else : self . placed_things . append ( ix ) item = self . game . ifp_objects [ ix ] for word in item . synonyms : if not word in self . game . nouns : self . game . nouns [ word ] = [ item ] elif not item in self . game . nouns [ word ] : self . game . nouns [ word ] . append ( item ) destination . addThing ( item ) return item
Adds a Thing to a location (Room/Thing) by index.
Adds a Thing to a location ( Room / Thing ) by index .
"""
        Adds a Thing to a location (Room/Thing) by index. Makes a copy if a Thing of
        the specified index has already been placed.
        destination is a PhysicalEntity subclass instance
        """
self
destination
ix