From badd008edcc16f22be502fbd189da2441438b5a2 Mon Sep 17 00:00:00 2001 From: wulongxiao <2545507770@qq.com> Date: Wed, 25 Dec 2024 23:33:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=80=E8=83=BD=E5=AE=9E=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Role/Role.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Role/Role.cs b/Role/Role.cs index 3432de5..782f5a6 100644 --- a/Role/Role.cs +++ b/Role/Role.cs @@ -507,27 +507,33 @@ public class Role : Fun //Debug.Log("暴击发生!伤害增加:" + num); } + hurt *= (1 + mySkillUp.DamageUp); + Debug.LogError("伤害加成:"+ mySkillUp.DamageUp); if (Target.hasfalg(CharacterFlags.big)) // 如果是大型敌人 { hurt*=(1+mySkillUp.DamageOfBig); + Debug.LogError("大型敌人加成"); } - if (Target.hasfalg(CharacterFlags.min)) // 如果是大型敌人 + if (Target.hasfalg(CharacterFlags.min)) // 如果是小型敌人 { hurt *= (1 + mySkillUp.DamageOfMin); + Debug.LogError("小型敌人加成"); } if (Target.hasfalg(CharacterFlags.fly)) // 如果是飞行敌人 { hurt *= (1 + mySkillUp.DamageOfSky); + Debug.LogError("飞行敌人加成"); } if (Target.hasfalg(CharacterFlags.land)) // 如果是地面敌人 { hurt *= (1 + mySkillUp.DamageOfland); + Debug.LogError("地面敌人加成"); } - + return hurt; }