chore: initialize OshimaBot repository (rename from Enhancement)
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
using FunGame.Core.Entity;
|
||||
using FunGame.Core.Library.Constant;
|
||||
using OshimaBot.Content.Effects.SkillEffects;
|
||||
|
||||
namespace OshimaBot.Content.Skills
|
||||
{
|
||||
public class 治愈术复 : Skill
|
||||
{
|
||||
public override long Id => (long)MagicID.治愈术复;
|
||||
public override string Name => "治愈术·复";
|
||||
public override string Description => string.Join("", Effects.Select(e => e.Description));
|
||||
public override double MPCost => Level > 0 ? 85 + (90 * (Level - 1)) : 85;
|
||||
public override double CD => Level > 0 ? 42 - (1 * (Level - 1)) : 42;
|
||||
public override double CastTime => Level > 0 ? 3 + (0.25 * (Level - 1)) : 3;
|
||||
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
|
||||
{
|
||||
get
|
||||
{
|
||||
return Level switch
|
||||
{
|
||||
3 => 3,
|
||||
4 => 3,
|
||||
5 => 3,
|
||||
6 => 4,
|
||||
7 => 4,
|
||||
8 => 4,
|
||||
_ => 2
|
||||
};
|
||||
}
|
||||
}
|
||||
public override SkillRangeType SkillRangeType => SkillRangeType.Circle;
|
||||
public override int CanSelectTargetRange => 3;
|
||||
public override double MagicBottleneck => 14 + 14 * (Level - 1);
|
||||
|
||||
public 治愈术复(Character? character = null) : base(SkillType.Magic, character)
|
||||
{
|
||||
IsNonDirectional = true;
|
||||
SelectTargetPredicates.Add(c => c.HP > 0 && c.HP < c.MaxHP);
|
||||
Effects.Add(new 弱驱散特效(this));
|
||||
Effects.Add(new 纯数值回复生命(this, 420, 340));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user