Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)

src/r/a/ransack-python-HEAD/SCRIPTS/itemScr.py   ransack-python(Download)
             const.KEY: 'A dungeon key',
             const.SPELLBOOK: 'A spellbook',
             const.PARCHMENT: 'A magic parchment',
             const.FRUIT1: 'A small apple',
             const.CHEESE: 'A wedge of cheese',

src/r/a/ransack-python-HEAD/level_editor.py   ransack-python(Download)
                        elif itemNum == const.GOLD:
                            chestItems.append( (itemNum-const.FRUIT1, int(self.getInput('Enter amount of gold: ')) ) )
                        elif itemNum == const.SPELLBOOK or itemNum == const.PARCHMENT:
                            chestItems.append( (itemNum-const.FRUIT1, int(self.getInput('Enter spell number: ') ) ) )
                        elif itemNum in [112,113,114]:

src/r/a/ransack-python-HEAD/HERO/hero.py   ransack-python(Download)
        elif item.getType() in [31,32,33]:
            return self.gainArmor(item.getType(), item.getLevel())
        elif item.getType() == const.SPELLBOOK or item.getType() == const.PARCHMENT:
            pass
        elif item.getType() in range(86, 100): 

src/r/a/ransack-python-HEAD/MAP/mapgen.py   ransack-python(Download)
            else: chestItems.append( (randrange(31,34), self.level/4, randrange(0, 3) ) )
            '''
            chestItems.append( (const.PARCHMENT-const.FRUIT1, choice(mapScr.parchByLevel[self.level]) ) )
            if self.rollDie(0, 2):
                chestItems.append( (13, choice( range(15, 50)+range(15,30) ) ))

src/r/a/ransack-python-HEAD/MAP/mazegen.py   ransack-python(Download)
                pass
            else:
                chestItems.append( (const.PARCHMENT-const.FRUIT1, choice(mapScr.parchByLevel[self.level]) ) )
                if self.rollDie(0, 2):
                    chestItems.append( (13, choice( range(15, 50)+range(15,30) ) ))