Esempio n. 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)
Esempio n. 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)
Esempio n. 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)
Esempio n. 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)
Esempio n. 5
0
	def loadFromDict(self, dictDatas):
		"""
		virtual method.
		从字典中创建这个对象
		"""
		ItemBase.loadFromDict(self, dictDatas)