def processnode(self, node, menu):
		global CLOTH
		if node.name == 'cloth':
			amount = hex2dec(node.getattribute('amount', '1'))
			if amount > 0:
				self.cloth = amount
		else:
			CraftItemAction.processnode(self, node, menu)
Beispiel #2
0
 def processnode(self, node, menu):
     global CLOTH
     if node.name == 'cloth':
         amount = hex2dec(node.getattribute('amount', '1'))
         if amount > 0:
             self.cloth = amount
     else:
         CraftItemAction.processnode(self, node, menu)
	def processnode(self, node, menu):
		if node.name == 'needoven':
			self.needoven = True
		elif node.name == 'needheat':
			self.needheat = True
		elif node.name == 'water':
			self.water = True
		else:
			CraftItemAction.processnode(self, node, menu)
Beispiel #4
0
    def processnode(self, node, menu):
        if node.name == 'needoven':
            self.needoven = True
        elif node.name == 'needheat':
            self.needheat = True
        elif node.name == 'water':
            self.water = True
        elif node.name == 'nomark':
            self.markable = 0
        elif node.name == 'useallres':
            self.useallres = True
        elif node.name == 'flour':
            amount = 1
            if node.hasattribute('amount'):
                amount = hex2dec(node.getattribute('amount', '1'))
            self.flour = True
            self.flouramount = amount

        else:
            CraftItemAction.processnode(self, node, menu)
    def processnode(self, node, menu):
        if node.name == "needoven":
            self.needoven = True
        elif node.name == "needheat":
            self.needheat = True
        elif node.name == "water":
            self.water = True
        elif node.name == "nomark":
            self.markable = 0
        elif node.name == "useallres":
            self.useallres = True
        elif node.name == "flour":
            amount = 1
            if node.hasattribute("amount"):
                amount = hex2dec(node.getattribute("amount", "1"))
            self.flour = True
            self.flouramount = amount

        else:
            CraftItemAction.processnode(self, node, menu)