#GUNCELLEME_PET_SYSTEM 27.11.2018 if self.check_sigillo(itemVnum): if attrSlot[0][1] != 0: self.AppendSpace(5) petevobl = (int(attrSlot[6][1])) if (str(petevobl)) == "0": self.AppendTextLine(localeInfo.PET_SYSTEM_EVO1, self.NORMAL_COLOR) elif (str(petevobl)) == "1": self.AppendTextLine(localeInfo.PET_SYSTEM_EVO2, self.NORMAL_COLOR) elif (str(petevobl)) == "2": self.AppendTextLine(localeInfo.PET_SYSTEM_EVO3, self.NORMAL_COLOR) elif (str(petevobl)) == "3": self.AppendTextLine(localeInfo.PET_SYSTEM_EVO4, self.NORMAL_COLOR) self.AppendTextLine("Level: "+str(metinSlot[1]), self.NORMAL_COLOR) self.AppendTextLine("HP: +"+pointop(str(attrSlot[0][1]))+"%", self.SPECIAL_POSITIVE_COLOR) self.AppendTextLine("Savunma: +"+pointop(str(attrSlot[1][1]))+"%", self.SPECIAL_POSITIVE_COLOR) self.AppendTextLine("Atak: +"+pointop(str(attrSlot[2][1]))+"%", self.SPECIAL_POSITIVE_COLOR) self.AppendSpace(5) if itemVnum != 55002: days = (int(attrSlot[3][1])/60)/24 hours = (int(attrSlot[3][1]) - (days*60*24)) / 60 mins = int(attrSlot[3][1]) - (days*60*24) - (hours*60) self.AppendTextLine("Kalan Süre: %d Gün %d Saat %d Dakika" % (days, hours, mins), self.SPECIAL_POSITIVE_COLOR) elif itemVnum == 55002: if attrSlot[0][1] != 0: self.AppendSpace(5) petevobl = (int(attrSlot[6][1])) if (str(petevobl)) == "0": self.AppendTextLine(localeInfo.PET_SYSTEM_EVO1, self.NORMAL_COLOR) elif (str(petevobl)) == "1": self.AppendTextLine(localeInfo.PET_SYSTEM_EVO2, self.NORMAL_COLOR) elif (str(petevobl)) == "2": self.AppendTextLine(localeInfo.PET_SYSTEM_EVO3, self.NORMAL_COLOR) elif (str(petevobl)) == "3": self.AppendTextLine(localeInfo.PET_SYSTEM_EVO4, self.NORMAL_COLOR) self.AppendTextLine("Level: " + str(metinSlot[1]), self.NORMAL_COLOR) self.AppendTextLine("HP: +"+pointop(str(attrSlot[0][1]))+"%", self.SPECIAL_POSITIVE_COLOR) self.AppendTextLine("Savunma: +"+pointop(str(attrSlot[1][1]))+"%", self.SPECIAL_POSITIVE_COLOR) self.AppendTextLine("Atak: +"+pointop(str(attrSlot[2][1]))+"%", self.SPECIAL_POSITIVE_COLOR) self.AppendSpace(5) PET_FILE_NAME = "%s/pet_skill.txt" % app.GetLocalePath() petSkillInfo = pack_open(PET_FILE_NAME, "r").readlines() petSkillCount = 0 if metinSlot[2] != 0: for skillNumber in range(1, len(petSkillInfo) + 1): if ((metinSlot[2]) & (1 << skillNumber)): petSkillTable = petSkillInfo[skillNumber-1][:-1].split("\t") self.AppendTextLine(petSkillTable[1], self.SPECIAL_POSITIVE_COLOR) petSkillCount += 1 if petSkillCount == 0: self.AppendTextLine("Beceri Öğrenmemiş.", self.SPECIAL_POSITIVE_COLOR) ####PET GUNCELLEME