mirror of
https://github.com/oshima-studios/OshimaGameModule.git
synced 2025-04-23 20:39:36 +08:00
28 lines
1.2 KiB
C#
28 lines
1.2 KiB
C#
using Milimoe.FunGame.Core.Entity;
|
|
using Milimoe.FunGame.Core.Library.Constant;
|
|
using Oshima.FunGame.OshimaModules.Effects.SkillEffects;
|
|
|
|
namespace Oshima.FunGame.OshimaModules.Skills
|
|
{
|
|
public class 治愈术 : Skill
|
|
{
|
|
public override long Id => (long)MagicID.治愈术;
|
|
public override string Name => "治愈术";
|
|
public override string Description => Effects.Count > 0 ? Effects.First().Description : "";
|
|
public override double MPCost => Level > 0 ? 80 + (105 * (Level - 1)) : 80;
|
|
public override double CD => Level > 0 ? 90 - (1 * (Level - 1)) : 90;
|
|
public override double CastTime => Level > 0 ? 5 + (1.5 * (Level - 1)) : 5;
|
|
public override double HardnessTime { get; set; } = 7;
|
|
public override bool CanSelectSelf => true;
|
|
public override bool CanSelectEnemy => false;
|
|
public override bool CanSelectTeammate => true;
|
|
public override int CanSelectTargetCount => 1;
|
|
|
|
public 治愈术(Character? character = null) : base(SkillType.Magic, character)
|
|
{
|
|
SelectTargetPredicates.Add(c => c.HP > 0 && c.HP < c.MaxHP);
|
|
Effects.Add(new 百分比回复生命值(this, 0.3, 0.02));
|
|
}
|
|
}
|
|
}
|