Exemple #1
0
 def __init__(self, name, rarity, weight):
     Item.__init__(self,
                   name,
                   '?',
                   'white',
                   itemType = "tome",
                   weight = weight,
                   rarity = rarity)
Exemple #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
Exemple #3
0
 def __init__(self, name, weight, rarity):
     Item.__init__(self, name, '&', 'red', itemType = "talisman", weight = weight, rarity = rarity )
     self.inventoryHooks.append( self )
Exemple #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
Exemple #5
0
 def __init__(self, name, weight, rarity):
     Item.__init__(self, name, '[', 'blue', itemType = "spellbook", weight = weight, rarity = rarity )