当前位置: 首页>>代码示例>>Python>>正文


Python CraftItemAction.__init__方法代码示例

本文整理汇总了Python中system.makemenus.CraftItemAction.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python CraftItemAction.__init__方法的具体用法?Python CraftItemAction.__init__怎么用?Python CraftItemAction.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在system.makemenus.CraftItemAction的用法示例。


在下文中一共展示了CraftItemAction.__init__方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: __init__

# 需要导入模块: from system.makemenus import CraftItemAction [as 别名]
# 或者: from system.makemenus.CraftItemAction import __init__ [as 别名]
 def __init__(self, parent, title, itemid, definition):
     CraftItemAction.__init__(self, parent, title, itemid, definition)
     self.needheat = False
     self.needoven = False
     self.water = False
     self.useallres = False
     self.flour = False
     self.flouramount = 0
     self.markable = 1  # All cooking items are markable, exceptions handled through <nomark /> tag
开发者ID:BackupTheBerlios,项目名称:wolfpack-svn,代码行数:11,代码来源:cooking.py

示例2: __init__

# 需要导入模块: from system.makemenus import CraftItemAction [as 别名]
# 或者: from system.makemenus.CraftItemAction import __init__ [as 别名]
	def __init__(self, parent):
		CraftItemAction.__init__(self, parent, tr('Runebook'), 0x22c5, '22c5')
		self.markable = True
		self.runes = 8
		
		# Add the other requirements
		self.materials.append([['1f60'], 1, tr('Gate Travel Scrolls')])
		self.materials.append([['1f4c'], 1, tr('Recall Scrolls')])
		self.skills[INSCRIPTION] = [450, 1250, 250]
开发者ID:BackupTheBerlios,项目名称:wolfpack-svn,代码行数:11,代码来源:inscription.py

示例3: __init__

# 需要导入模块: from system.makemenus import CraftItemAction [as 别名]
# 或者: from system.makemenus.CraftItemAction import __init__ [as 别名]
	def __init__(self, parent, title, itemid, definition):
		CraftItemAction.__init__(self, parent, title, itemid, definition)
		self.markable = 1 # All carpentry items are not markable
		self.stackable = 0
开发者ID:BackupTheBerlios,项目名称:wolfpack-svn,代码行数:6,代码来源:carpentry.py

示例4: __init__

# 需要导入模块: from system.makemenus import CraftItemAction [as 别名]
# 或者: from system.makemenus.CraftItemAction import __init__ [as 别名]
	def __init__(self, parent, title, itemid, definition):
		CraftItemAction.__init__(self, parent, title, itemid, definition)
		self.markable = 0 # All alchemy items are not markable
		self.bottled = True # Whatever we produce comes in bottles
		self.successmessage = 500279 # Custom Success Message
		self.failmessage = 500287 # Custom Fail Message
开发者ID:BackupTheBerlios,项目名称:wolfpack-svn,代码行数:8,代码来源:alchemy.py

示例5: __init__

# 需要导入模块: from system.makemenus import CraftItemAction [as 别名]
# 或者: from system.makemenus.CraftItemAction import __init__ [as 别名]
	def __init__(self, parent, title, itemid, definition):
		CraftItemAction.__init__(self, parent, title, itemid, definition)
		self.markable = 0 # All glassblowing items are not markable
开发者ID:BackupTheBerlios,项目名称:wolfpack-svn,代码行数:5,代码来源:glassblowing.py

示例6: __init__

# 需要导入模块: from system.makemenus import CraftItemAction [as 别名]
# 或者: from system.makemenus.CraftItemAction import __init__ [as 别名]
	def __init__(self, parent, title, itemid, definition):
		CraftItemAction.__init__(self, parent, title, itemid, definition)
开发者ID:BackupTheBerlios,项目名称:wolfpack-svn,代码行数:4,代码来源:cartography.py

示例7: __init__

# 需要导入模块: from system.makemenus import CraftItemAction [as 别名]
# 或者: from system.makemenus.CraftItemAction import __init__ [as 别名]
	def __init__(self, parent, title, itemid, definition):
		CraftItemAction.__init__(self, parent, title, itemid, definition)
		self.markable = False # Scrolls aren't markable
		self.requiretool = True # But Scrolls require a valid tool
		self.mana = 0
		self.spellid = 0
开发者ID:BackupTheBerlios,项目名称:wolfpack-svn,代码行数:8,代码来源:inscription.py

示例8: __init__

# 需要导入模块: from system.makemenus import CraftItemAction [as 别名]
# 或者: from system.makemenus.CraftItemAction import __init__ [as 别名]
	def __init__(self, parent, title, itemid, definition):
		CraftItemAction.__init__(self, parent, title, itemid, definition)
		self.markable = 1 # All tailoring items are markable
		self.cloth = 0 # How many cloth this part is using (Special processing because of color)
		self.requiretool = True
开发者ID:BackupTheBerlios,项目名称:wolfpack-svn,代码行数:7,代码来源:tailoring.py

示例9: __init__

# 需要导入模块: from system.makemenus import CraftItemAction [as 别名]
# 或者: from system.makemenus.CraftItemAction import __init__ [as 别名]
	def __init__(self, parent, title, itemid, definition):
		CraftItemAction.__init__(self, parent, title, itemid, definition)
		self.markable = 1 # All blacksmith items are markable
开发者ID:BackupTheBerlios,项目名称:wolfpack-svn,代码行数:5,代码来源:blacksmithing.py

示例10: __init__

# 需要导入模块: from system.makemenus import CraftItemAction [as 别名]
# 或者: from system.makemenus.CraftItemAction import __init__ [as 别名]
	def __init__(self, parent, title, itemid, definition):
		CraftItemAction.__init__(self, parent, title, itemid, definition)
		self.markable = 0 # All masonry items are not markable
开发者ID:BackupTheBerlios,项目名称:wolfpack-svn,代码行数:5,代码来源:masonry.py

示例11: __init__

# 需要导入模块: from system.makemenus import CraftItemAction [as 别名]
# 或者: from system.makemenus.CraftItemAction import __init__ [as 别名]
	def __init__(self, parent, title, itemid, definition):
		CraftItemAction.__init__(self, parent, title, itemid, definition)
		self.markable = 1 # All tailoring items are markable
开发者ID:BackupTheBerlios,项目名称:wolfpack-svn,代码行数:5,代码来源:tailoring.py

示例12: __init__

# 需要导入模块: from system.makemenus import CraftItemAction [as 别名]
# 或者: from system.makemenus.CraftItemAction import __init__ [as 别名]
	def __init__(self, parent, title, itemid, definition):
		CraftItemAction.__init__(self, parent, title, itemid, definition)
		self.markable = 1
		self.retaincolor = 0
开发者ID:BackupTheBerlios,项目名称:wolfpack-svn,代码行数:6,代码来源:tinkering.py

示例13: __init__

# 需要导入模块: from system.makemenus import CraftItemAction [as 别名]
# 或者: from system.makemenus.CraftItemAction import __init__ [as 别名]
 def __init__(self, parent, title, itemid, definition):
   CraftItemAction.__init__(self, parent, title, itemid, definition)
   self.markable = 1
   self.stackable = 0
开发者ID:BackupTheBerlios,项目名称:wolfpack-svn,代码行数:6,代码来源:bowcraft.py

示例14: __init__

# 需要导入模块: from system.makemenus import CraftItemAction [as 别名]
# 或者: from system.makemenus.CraftItemAction import __init__ [as 别名]
	def __init__(self, parent, title, itemid, definition):
		CraftItemAction.__init__(self, parent, title, itemid, definition)
		self.requiretool = True # Require a tool
		self.needheat = False
		self.needoven = False
		self.water = False
开发者ID:BackupTheBerlios,项目名称:wolfpack-svn,代码行数:8,代码来源:cooking.py

示例15: __init__

# 需要导入模块: from system.makemenus import CraftItemAction [as 别名]
# 或者: from system.makemenus.CraftItemAction import __init__ [as 别名]
	def __init__(self, parent, title, itemid, definition):
		CraftItemAction.__init__(self, parent, title, itemid, definition)
		self.markable = 1 # All alchemy items are not markable
开发者ID:BackupTheBerlios,项目名称:wolfpack-svn,代码行数:5,代码来源:alchemy.py


注:本文中的system.makemenus.CraftItemAction.__init__方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。