Compare commits
2 Commits
3fc9ada793
...
dcd0dc163e
Author | SHA1 | Date | |
---|---|---|---|
dcd0dc163e | |||
4b51daaaab |
@ -136,7 +136,16 @@ public class SkillUp : Fun
|
|||||||
{
|
{
|
||||||
foreach (string SkillId in info.SkillList)
|
foreach (string SkillId in info.SkillList)
|
||||||
{
|
{
|
||||||
if (SkillId == "skill_0")
|
useskill(SkillId);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public virtual void useskill(string str)
|
||||||
|
{
|
||||||
|
|
||||||
|
if (str == "skill_0")
|
||||||
{
|
{
|
||||||
// 创建一个眩晕 Buff(持续1秒,20%概率)
|
// 创建一个眩晕 Buff(持续1秒,20%概率)
|
||||||
Action<Role> decelerationBuff = CreateDecelerationBuff(1f, 0.2f);
|
Action<Role> decelerationBuff = CreateDecelerationBuff(1f, 0.2f);
|
||||||
@ -145,26 +154,20 @@ public class SkillUp : Fun
|
|||||||
role.AddBuff(role.storageBuff, decelerationBuff);
|
role.AddBuff(role.storageBuff, decelerationBuff);
|
||||||
//Debug.LogError("使用技能1-3");
|
//Debug.LogError("使用技能1-3");
|
||||||
}
|
}
|
||||||
if (SkillId == "skill_1")
|
if (str == "skill_1")
|
||||||
{
|
{
|
||||||
NumberOfBullets += 2;
|
NumberOfBullets += 2;
|
||||||
DamageUp += -0.5f;
|
DamageUp += -0.5f;
|
||||||
}
|
}
|
||||||
if (SkillId == "skill_2")
|
if (str == "skill_2")
|
||||||
{
|
{
|
||||||
Action<Role> decelerationBuff = CreateSlowDownBuff(0.2f, 3f);
|
Action<Role> decelerationBuff = CreateSlowDownBuff(0.2f, 3f);
|
||||||
// 将 Buff 添加到玩家的 storageBuff 列表中
|
// 将 Buff 添加到玩家的 storageBuff 列表中
|
||||||
role.AddBuff(role.storageBuff, decelerationBuff);
|
role.AddBuff(role.storageBuff, decelerationBuff);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (SkillId == "skill_3")
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 使用技能
|
/// 使用技能
|
||||||
|
@ -42,4 +42,6 @@ public class SkillLevelData
|
|||||||
public float DamageOfBig = 0f;//对大型敌人加成
|
public float DamageOfBig = 0f;//对大型敌人加成
|
||||||
public float DamageOfMin = 0f;//对小型型敌人加成
|
public float DamageOfMin = 0f;//对小型型敌人加成
|
||||||
public float DamageOfSlow = 0f;//对减速敌人加成
|
public float DamageOfSlow = 0f;//对减速敌人加成
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user