| | |
| | | return |
| | | return GameWorld.FindNPCByID(tagID) |
| | | |
| | | def GetEnemyCureDefPer(gameObj): |
| | | ## 获取敌对方弱化治疗值 |
| | | tagObj = GetEnemyObj(gameObj) |
| | | if not tagObj: |
| | | return 0 |
| | | cureDefPer = GameObj.GetCureDefPer(tagObj) |
| | | #其他的... |
| | | return cureDefPer |
| | | |
| | | def GetRebornTypeInfo(gameObj): |
| | | ''' 获取可复活的方式信息 |
| | | @return: None-代表不可复活 |
| | |
| | | gameObj.SetDict(ChConfig.Def_Obj_Dict_TurnRebornCount, 0) |
| | | gameObj.SetDict(ChConfig.Def_Obj_Dict_TurnTotalHurt, 0) |
| | | gameObj.SetDict(ChConfig.Def_Obj_Dict_TurnTotalHurtEx, 0) |
| | | gameObj.SetDict(ChConfig.Def_Obj_Dict_TurnSkillSuccessPetState, 0) |
| | | gameObj.SetDict(ChConfig.Def_Obj_Dict_TurnAttackOverPetState, 0) |
| | | SetTimeline(gameObj, 1, 0) |
| | | faction = GameObj.GetFaction(gameObj) |
| | | GameObj.SetHPFull(gameObj, True) |
| | |
| | | return |
| | | |
| | | def __logGameObjAttr(gameObj): |
| | | GameWorld.DebugLog(" HP=%s/%s,atk=%s~%s,Def=%s,atkSpeed=%s,XP=%s/%s" |
| | | GameWorld.DebugLog(" HP=%s/%s,atk=%s~%s,Def=%s,atkSpeed=%s" |
| | | % (GameObj.GetHP(gameObj), GameObj.GetMaxHP(gameObj), gameObj.GetMinAtk(), gameObj.GetMaxAtk(), |
| | | gameObj.GetDef(), GameObj.GetAtkSpeed(gameObj), GameObj.GetXP(gameObj), GameObj.GetMaxXP(gameObj))) |
| | | gameObj.GetDef(), GameObj.GetAtkSpeed(gameObj))) |
| | | if not gameObj.GetDictByKey(ChConfig.Def_Obj_Dict_TurnFightMainRolePlace): |
| | | return |
| | | GameWorld.DebugLog(" 闪(%s,%s),暴(%s,%s),晕(%s,%s),连(%s,%s),反(%s,%s),吸(%s,%s)" |
| | | % (GameObj.GetMissRate(gameObj), GameObj.GetMissDefRate(gameObj), |
| | | GameObj.GetSuperHitRate(gameObj), GameObj.GetSuperHitRateReduce(gameObj), |
| | |
| | | GameObj.GetAtkBackRate(gameObj), GameObj.GetAtkBackDefRate(gameObj), |
| | | GameObj.GetSuckHPPer(gameObj), GameObj.GetSuckHPDefPer(gameObj), |
| | | )) |
| | | GameWorld.DebugLog(" XP=%s/%s,强疗=%s,弱疗=%s,强灵=%s,弱灵=%s" |
| | | % (GameObj.GetXP(gameObj), GameObj.GetMaxXP(gameObj), GameObj.GetCurePer(gameObj), GameObj.GetCureDefPer(gameObj), |
| | | GameObj.GetPetStrengthenPer(gameObj), GameObj.GetPetWeakenPer(gameObj))) |
| | | return |
| | | |
| | | def TurnFightObjPerTurnStart(gameObj, tagObj, turnNum, tick): |