intficpy/parser.py
def roomRangeCheck(self, thing):
        """
        Check if the Thing is in the current room
        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()
        if not out_loc.resolveDarkness(self.game):
            return False
        if thing.ix in self.game.me.contains:
            if thing in self.game.me.contains[thing.ix]:
                return False
        if thing.ix in self.game.me.sub_contains:
            if thing in self.game.me.sub_contains[thing.ix]:
                return False
        if thing.ix in out_loc.contains:
            if thing in out_loc.contains[thing.ix]:
                return True
        if thing.ix in out_loc.sub_contains:
            if thing in out_loc.sub_contains[thing.ix]:
                return True
        return False

        Check if the Thing is in the current room
        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 in the current room
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 in the current room Takes arguments self . game . me pointing to the Player and thing a Thing Returns True if within range False otherwise
def roomRangeCheck(self, thing):
        out_loc = self.game.me.getOutermostLocation()
        if not out_loc.resolveDarkness(self.game):
            return False
        if thing.ix in self.game.me.contains:
            if thing in self.game.me.contains[thing.ix]:
                return False
        if thing.ix in self.game.me.sub_contains:
            if thing in self.game.me.sub_contains[thing.ix]:
                return False
        if thing.ix in out_loc.contains:
            if thing in out_loc.contains[thing.ix]:
                return True
        if thing.ix in out_loc.sub_contains:
            if thing in out_loc.sub_contains[thing.ix]:
                return True
        return False
def roomRangeCheck ( self , thing ) : out_loc = self . game . me . getOutermostLocation ( ) if not out_loc . resolveDarkness ( self . game ) : return False if thing . ix in self . game . me . contains : if thing in self . game . me . contains [ thing . ix ] : return False if thing . ix in self . game . me . sub_contains : if thing in self . game . me . sub_contains [ thing . ix ] : return False if thing . ix in out_loc . contains : if thing in out_loc . contains [ thing . ix ] : return True if thing . ix in out_loc . sub_contains : if thing in out_loc . sub_contains [ thing . ix ] : return True return False
Check if the Thing is in the current room
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 in the current room 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 in the current room
        Takes arguments self.game.me, pointing to the Player, and thing, a Thing
        Returns True if within range, False otherwise
        """
self
thing