hwj35
5 天以前 a5dfefad61af0eecec503b2a43be7eb3963f8d7c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
š)l`c@sˆddlZddlZddlZddlZddlZddlZddlZddlZd„Zd„Z    d„Z
d„Z dS(iÿÿÿÿNcCs3tj||ƒstStj|||ƒs/tStS(N(t AttackCommontCheckPlayerCanAttackTagtFalsetCheckPlayerAttackDisttTrue(t    curPlayertcurTagSummonNPCtskillttick((sƒE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\AttackLogic\Player_Attack_SummonNPC.pyt GetCanAttack-s
cCsçtjtj|ƒ}|dkr1tjtjfS|jƒtj    tj
gkr“|j tj ƒ}|j ƒ|krƒtjtjfStjtjfStj||ƒrµtjtjfStj||ƒs×tjtjfStj||ƒS(N(t    NPCCommontGetSummonNPCOwnert IPY_GameWorldt    gotPlayertNonetChConfigtType_Relation_EnemytDef_PASysMessage_NonetGetTypetntPriWoodPilePVEtntPriWoodPilePVPt GetDictByKeyt Def_NPC_Dict_PriWoodPilePlayerIDt GetPlayerIDtType_Relation_Friendt    GameWorldt    IsSameObjRtCheckPlayerAttackMode_PlayertDef_PASysMessage_AttackModetGetPlayersRelation(RRRRt curTagPlayertsummonPlayerID((sƒE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\AttackLogic\Player_Attack_SummonNPC.pytGetTagRelation?s c CsØtj|ƒ}tj||||||ƒ}|j}    tj|ƒ}
|
j||    |ƒtj||||    ƒtj    t
j |ƒ} | dkr¨tj ||    | dƒntj|||    ƒtj|||j|    ƒ|S(NsPlayer v Summon(tGameObjtGetHPRt    GetHurtHPtHurtHPR
t
NPCControltAddObjDetelToAngryList_ByAttacktNPCAddObjInHurtListR R R Rt OnPVPDamagetSummonAddAngryByOwnertAddHurttHurtType( Rt curTagSummonRt
skillValuet skillPercentt skillHurtListRtcurTagSummonBeHPthurtTypethurtHPt summonControlR((sƒE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\AttackLogic\Player_Attack_SummonNPC.pytDoAttackes     cCsÐtjtj|ƒ}|dkr_tj|ƒdkrItj||ƒntj    |||ƒntj|ƒdkr¶tj
|||ƒt j |||ƒtj |ƒ}|jƒntj||||ƒtS(Ni(R
R R R RR!R"RtSetPlayerBattleStatetOnPlayerHitPlayertOnPlayerAttackNPCDietFBLogictDoFB_Player_KillNPCR%t    SetKilledtChNPCt OnNPCAttackedR(RR,RRRtcurTagNormalNPCControl((sƒE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\AttackLogic\Player_Attack_SummonNPC.pyt AttackResult…s  ( R
RRR RR8R!R;R    R R4R>(((sƒE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\AttackLogic\Player_Attack_SummonNPC.pyt<module>s                &