From e81315f997d75f900727af1c456c32277575fb24 Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期四, 10 七月 2025 17:01:18 +0800 Subject: [PATCH] 129 【战斗】战斗系统-服务端(主线掉落战利品、装备;主线击杀怪物获得经验、升级;主线装备穿戴、分解;) --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/SkillShell.py | 40 +++------------------------------------- 1 files changed, 3 insertions(+), 37 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/SkillShell.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/SkillShell.py index 47ec39f..caa2f54 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/SkillShell.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/SkillShell.py @@ -46,6 +46,7 @@ import FBCommon import IpyGameDataPY import PyGameData +import TurnAttack #--------------------------------------------------------------------- GameWorld.ImportAll("Script\\Skill\\" , "GameSkills") GameWorld.ImportAll("Script\\Skill\\" , "GameBuffs") @@ -634,42 +635,6 @@ return False return True - - -##弓和弩普攻技能 -# @param curPlayer 玩家实例 -# @param skillID 技能ID -# @return 特别的普攻ID -#=============================================================================== -# def GetBowNormalAttackID(curPlayer, skillID): -# #刷新人物攻击距离 -# playerEquip = curPlayer.GetItemManager().GetPack(IPY_GameWorld.rptEquip) -# #获得当前人物使用的武器 -# curUseWeapon = playerEquip.GetAt(ShareDefine.retWeapon) -# curUseWeapon2 = playerEquip.GetAt(ShareDefine.retWeapon2) -# #空手 -# if curUseWeapon.IsEmpty() and curUseWeapon2.IsEmpty(): -# return skillID -# -# if curUseWeapon.GetType() in [ChConfig.Def_ItemType_Crossbow, ChConfig.Def_ItemType_Bow]: -# curEffect = ItemCommon.GetItemEffectByEffectID(curUseWeapon, ChConfig.Def_Effect_WeaponAttack) -# if curEffect == None: -# GameWorld.DebugAnswer(curPlayer, '没有物品效果ID %s'%ChConfig.Def_Effect_WeaponAttack) -# return skillID -# -# return curEffect.GetEffectValue(0) -# -# if curUseWeapon2.GetType() in [ChConfig.Def_ItemType_Crossbow, ChConfig.Def_ItemType_Bow]: -# curEffect = ItemCommon.GetItemEffectByEffectID(curUseWeapon2, ChConfig.Def_Effect_WeaponAttack) -# if curEffect == None: -# GameWorld.DebugAnswer(curPlayer, '没有物品效果ID %s'%ChConfig.Def_Effect_WeaponAttack) -# return skillID -# -# return curEffect.GetEffectValue(0) -# -# return skillID -#=============================================================================== - #=============================================================================== # //B4 02 对象击退 #tagCMNPCBeatBack @@ -3653,7 +3618,8 @@ #调用攻击惩罚逻辑 BaseAttack.DoLogic_AttackResult(attacker, defender, None, tick) - + TurnAttack.OnTurnfightAttackResult(attacker, defender, curSkill) + return #--------------------------------------------------------------------- ##释放普通技能 -- Gitblit v1.8.0