本文整理汇总了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
示例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]
示例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
示例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
示例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
示例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)
示例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
示例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
示例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
示例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
示例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
示例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
示例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
示例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
示例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