예제 #1
0
    def loadFromDict(self, dictDatas):
        """
		virtual method.
		从字典中创建这个对象
		"""
        ItemBase.loadFromDict(self, dictDatas)

        self.defence = dictDatas.get('defence', 0)
        self.attack_Max = dictDatas.get("attack_Max", 0)
        self.attack_Min = dictDatas.get("attack_Min", 0)
예제 #2
0
    def loadFromDict(self, dictDatas):
        """
		virtual method.
		从字典中创建这个对象
		"""
        ItemBase.loadFromDict(self, dictDatas)

        self.defence = dictDatas.get("defence", 0)
        self.attack_Max = dictDatas.get("attack_Max", 0)
        self.attack_Min = dictDatas.get("attack_Min", 0)
예제 #3
0
	def loadFromDict(self, dictDatas):
		"""
		virtual method.
		从字典中创建这个对象
		"""
		ItemBase.loadFromDict(self, dictDatas)
		
		# 加血
		self.hp = dictDatas.get('hp', 0)
		
		# 加魔法
		self.mp = dictDatas.get("mp", 0)
		
		# cd
		self.limitCD = dictDatas.get("limitCD", 1)
예제 #4
0
    def loadFromDict(self, dictDatas):
        """
		virtual method.
		从字典中创建这个对象
		"""
        ItemBase.loadFromDict(self, dictDatas)

        # 加血
        self.hp = dictDatas.get('hpAdd', 0)

        # 加魔法
        self.mp = dictDatas.get("mpAdd", 0)

        # 加金币
        self.gold = dictDatas.get("goldAdd", 0)

        # 加钻石
        self.gem = dictDatas.get("gemAdd", 0)

        # cd
        self.limitCD = dictDatas.get("limitCD", 1)
예제 #5
0
	def __init__(self):
		ItemBase.__init__(self)
예제 #6
0
	def loadFromDict(self, dictDatas):
		"""
		virtual method.
		从字典中创建这个对象
		"""
		ItemBase.loadFromDict(self, dictDatas)
예제 #7
0
 def __init__(self):
     ItemBase.__init__(self)