def initCharacterPetInfo(self): '''初始化角色宠物信息''' if self._hasInit: return petlist = dbCharacterPet.getCharacterAllPet(self._owner.baseInfo.id) for petid in petlist: petId = petid[0] pet = Pet(petId = petId) self._pets[petId] = pet self._hasInit = 1
def initCharacterPetInfo(self): '''初始化角色宠物信息''' if self._hasInit: return petlist = dbCharacterPet.getCharacterAllPet(self._owner.baseInfo.id) for petid in petlist: petId = petid[0] pet = Pet(petId=petId) self._pets[petId] = pet self._hasInit = 1
def initCharacterPetInfo(self): '''初始化角色宠物信息''' if self._hasInit: return petlist = dbCharacterPet.getCharacterAllPet(self._owner.baseInfo.id) collectstr = dbCharacterPet.getCharacterCollect(self._owner.baseInfo.id) for petid in petlist: petId = petid[0] pet = Pet(petId = petId) self._pets[petId] = pet if collectstr is None: dbCharacterPet.insertCharacterCollect(self._owner.baseInfo.id) else: self._activepets = eval("[%s]"%collectstr) self._hasInit = 1
def initCharacterPetInfo(self): '''初始化角色宠物信息''' if self._hasInit: return petlist = dbCharacterPet.getCharacterAllPet(self._owner.baseInfo.id) collectstr = dbCharacterPet.getCharacterCollect( self._owner.baseInfo.id) for petid in petlist: petId = petid[0] pet = Pet(petId=petId) self._pets[petId] = pet if collectstr is None: dbCharacterPet.insertCharacterCollect(self._owner.baseInfo.id) else: self._activepets = eval("[%s]" % collectstr) self._hasInit = 1