| | |
| | | curSkill = PySkill(ipyData, self._batObj.GetID())
|
| | | self._skillDict[skillID] = curSkill
|
| | | self._skillList.append(curSkill)
|
| | | |
| | | learnSkillExEff = curSkill.GetEffectByID(ChConfig.SkillEff_LearnSkillEx)
|
| | | if learnSkillExEff:
|
| | | skillIDEx = learnSkillExEff.GetEffectValue(0)
|
| | | if skillIDEx:
|
| | | self.LearnSkillByID(skillIDEx)
|
| | | return curSkill
|
| | |
|
| | | def __deleteSkill(self, curSkill):
|
| | |
| | | def GetTFGUID(self): return self.tfGUID # 所属的某场战斗
|
| | | def SetTFGUID(self, tfGUID): self.tfGUID = tfGUID
|
| | | def GetTurnFight(self): return TurnAttack.GetTurnFightMgr().getTurnFight(self.tfGUID)
|
| | | def GetBatLineup(self):
|
| | | def GetTFBatLineup(self):
|
| | | if not self._batLineup:
|
| | | turnFight = self.GetTurnFight()
|
| | | batFaction = turnFight.getBatFaction(self.faction)
|
| | |
| | | def GetPosNum(self): return self.posNum
|
| | | def GetFaction(self): return self.faction
|
| | | def SetFaction(self, faction): self.faction = faction
|
| | | def GetBatObjType(self):
|
| | | ## 战斗对象实例类型
|
| | | if 1 <= self.posNum <= ShareDefine.LineupObjMax:
|
| | | return ChConfig.BatObjType_BatHero
|
| | | if self.posNum == ChConfig.TFPosNum_Mingge:
|
| | | return ChConfig.BatObjType_Mingge
|
| | | if ChConfig.TFPosNum_Lingshou <= self.posNum:
|
| | | return ChConfig.BatObjType_Lingshou
|
| | | return 0
|
| | | def GetFightPower(self): return self.fightPower
|
| | | def SetFightPower(self, fightPower): self.fightPower = fightPower
|
| | | def GetLV(self): return self.lv
|