Ejemplo n.º 1
0
 def __init__(self, name, rarity, weight):
     Item.__init__(self,
                   name,
                   '?',
                   'white',
                   itemType = "tome",
                   weight = weight,
                   rarity = rarity)
Ejemplo n.º 2
0
 def __init__(self, arcaneName, englishName):
     Item.__init__(self,
                   self.generateNoun( arcaneName ),
                   '\\',
                   'magenta',
                   itemType = "rune",
                   weight = 1,
                   rarity = EnglishNames[ englishName ]
                   )
     self.arcaneName = arcaneName
     self.englishName = englishName
     self.identified = False
Ejemplo n.º 3
0
 def __init__(self, name, weight, rarity):
     Item.__init__(self, name, '&', 'red', itemType = "talisman", weight = weight, rarity = rarity )
     self.inventoryHooks.append( self )
Ejemplo n.º 4
0
 def __init__(self, name, damage, minMana, maxMana, weight, rarity):
     Item.__init__(self, name, '|', 'yellow', itemType = "weapon", weight = weight, rarity = rarity)
     self.minMana, self.maxMana = minMana, maxMana
     self.magical = True
     self.damage = damage
Ejemplo n.º 5
0
 def __init__(self, name, weight, rarity):
     Item.__init__(self, name, '[', 'blue', itemType = "spellbook", weight = weight, rarity = rarity )