Compare commits
2 Commits
3fc9ada793
...
dcd0dc163e
Author | SHA1 | Date | |
---|---|---|---|
dcd0dc163e | |||
4b51daaaab |
@ -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>
|
||||
|
@ -42,4 +42,6 @@ public class SkillLevelData
|
||||
public float DamageOfBig = 0f;//对大型敌人加成
|
||||
public float DamageOfMin = 0f;//对小型型敌人加成
|
||||
public float DamageOfSlow = 0f;//对减速敌人加成
|
||||
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user