示例#1
0
文件: magic.py 项目: svk/harmless7drl
 def __init__(self, name, rarity, weight):
     Item.__init__(self,
                   name,
                   '?',
                   'white',
                   itemType = "tome",
                   weight = weight,
                   rarity = rarity)
示例#2
0
文件: magic.py 项目: svk/harmless7drl
 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
示例#3
0
文件: magic.py 项目: svk/harmless7drl
 def __init__(self, name, weight, rarity):
     Item.__init__(self, name, '&', 'red', itemType = "talisman", weight = weight, rarity = rarity )
     self.inventoryHooks.append( self )
示例#4
0
文件: magic.py 项目: svk/harmless7drl
 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
示例#5
0
文件: magic.py 项目: svk/harmless7drl
 def __init__(self, name, weight, rarity):
     Item.__init__(self, name, '[', 'blue', itemType = "spellbook", weight = weight, rarity = rarity )