intficpy/parser.py
def nearRangeCheck(self, thing):
        """
        Check if the Thing is near (room or contains)
        Takes arguments self.game.me, pointing to the Player, and thing, a Thing
        Returns True if within range, False otherwise
        """
        out_loc = self.game.me.getOutermostLocation()
        too_dark = not out_loc.resolveDarkness(self.game)
        found = False
        if thing.ix in out_loc.contains:
            if thing not in out_loc.contains[thing.ix]:
                pass
            elif too_dark:
                pass
            else:
                found = True
        if thing.ix in out_loc.sub_contains:
            if thing not in out_loc.sub_contains[thing.ix]:
                pass
            elif too_dark:
                pass
            else:
                found = True
        if thing.ix in self.game.me.contains:
            if thing not in self.game.me.contains[thing.ix]:
                pass
            else:
                found = True
        if thing.ix in self.game.me.sub_contains:
            if thing not in self.game.me.sub_contains[thing.ix]:
                pass
            else:
                found = True
        return found

        Check if the Thing is near (room or contains)
        Takes arguments self.game.me, pointing to the Player, and thing, a Thing
        Returns True if within range, False otherwise
        
Check if the Thing is near (room or contains)
Takes arguments self.game.me, pointing to the Player, and thing, a Thing
Returns True if within range, False otherwise
Check if the Thing is near ( room or contains ) Takes arguments self . game . me pointing to the Player and thing a Thing Returns True if within range False otherwise
def nearRangeCheck(self, thing):
        out_loc = self.game.me.getOutermostLocation()
        too_dark = not out_loc.resolveDarkness(self.game)
        found = False
        if thing.ix in out_loc.contains:
            if thing not in out_loc.contains[thing.ix]:
                pass
            elif too_dark:
                pass
            else:
                found = True
        if thing.ix in out_loc.sub_contains:
            if thing not in out_loc.sub_contains[thing.ix]:
                pass
            elif too_dark:
                pass
            else:
                found = True
        if thing.ix in self.game.me.contains:
            if thing not in self.game.me.contains[thing.ix]:
                pass
            else:
                found = True
        if thing.ix in self.game.me.sub_contains:
            if thing not in self.game.me.sub_contains[thing.ix]:
                pass
            else:
                found = True
        return found
def nearRangeCheck ( self , thing ) : out_loc = self . game . me . getOutermostLocation ( ) too_dark = not out_loc . resolveDarkness ( self . game ) found = False if thing . ix in out_loc . contains : if thing not in out_loc . contains [ thing . ix ] : pass elif too_dark : pass else : found = True if thing . ix in out_loc . sub_contains : if thing not in out_loc . sub_contains [ thing . ix ] : pass elif too_dark : pass else : found = True if thing . ix in self . game . me . contains : if thing not in self . game . me . contains [ thing . ix ] : pass else : found = True if thing . ix in self . game . me . sub_contains : if thing not in self . game . me . sub_contains [ thing . ix ] : pass else : found = True return found
Check if the Thing is near (room or contains)
Takes arguments self.game.me, pointing to the Player, and thing, a Thing
Returns True if within range, False otherwise
Check if the Thing is near ( room or contains ) Takes arguments self . game . me pointing to the Player and thing a Thing Returns True if within range False otherwise
"""
        Check if the Thing is near (room or contains)
        Takes arguments self.game.me, pointing to the Player, and thing, a Thing
        Returns True if within range, False otherwise
        """
self
thing