Compare commits

...

2 Commits

Author SHA1 Message Date
GL
dcd0dc163e Merge branch 'main' of http://shu.sheziwanglo.cn:3000/shurongsen/Cute_demon_attacks 2025-01-08 18:02:41 +08:00
GL
4b51daaaab 技能 2025-01-08 18:02:22 +08:00
2 changed files with 30 additions and 25 deletions

View File

@ -136,36 +136,39 @@ public class SkillUp : Fun
{
foreach (string SkillId in info.SkillList)
{
if (SkillId == "skill_0")
{
// 创建一个眩晕 Buff持续1秒20%概率)
Action<Role> decelerationBuff = CreateDecelerationBuff(1f, 0.2f);
// 将 Buff 添加到玩家的 storageBuff 列表中
role.AddBuff(role.storageBuff, decelerationBuff);
//Debug.LogError("使用技能1-3");
}
if (SkillId == "skill_1")
{
NumberOfBullets += 2;
DamageUp += -0.5f;
}
if (SkillId == "skill_2")
{
Action<Role> decelerationBuff = CreateSlowDownBuff(0.2f, 3f);
// 将 Buff 添加到玩家的 storageBuff 列表中
role.AddBuff(role.storageBuff, decelerationBuff);
}
if (SkillId == "skill_3")
{
}
useskill(SkillId);
}
}
}
public virtual void useskill(string str)
{
if (str == "skill_0")
{
// 创建一个眩晕 Buff持续1秒20%概率)
Action<Role> decelerationBuff = CreateDecelerationBuff(1f, 0.2f);
// 将 Buff 添加到玩家的 storageBuff 列表中
role.AddBuff(role.storageBuff, decelerationBuff);
//Debug.LogError("使用技能1-3");
}
if (str == "skill_1")
{
NumberOfBullets += 2;
DamageUp += -0.5f;
}
if (str == "skill_2")
{
Action<Role> decelerationBuff = CreateSlowDownBuff(0.2f, 3f);
// 将 Buff 添加到玩家的 storageBuff 列表中
role.AddBuff(role.storageBuff, decelerationBuff);
}
}
/// <summary>
/// 使用技能
/// </summary>

View File

@ -42,4 +42,6 @@ public class SkillLevelData
public float DamageOfBig = 0f;//对大型敌人加成
public float DamageOfMin = 0f;//对小型型敌人加成
public float DamageOfSlow = 0f;//对减速敌人加成
}