chore: initialize OshimaBot repository (rename from Enhancement)

This commit is contained in:
2026-11-09 19:38:28 +08:00
commit f9052358a9
414 changed files with 36653 additions and 0 deletions
@@ -0,0 +1,31 @@
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 string DispelDescription => Effects.FirstOrDefault(e => e is 弱驱散特效)?.DispelDescription ?? "";
public override double MPCost => Level > 0 ? 110 + (95 * (Level - 1)) : 110;
public override double CD => Level > 0 ? 65 - (2 * (Level - 1)) : 65;
public override double CastTime => 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 bool SelectAllTeammates => true;
public override bool AllowSelectDead => true;
public override double MagicBottleneck => 15 + 16 * (Level - 1);
public 圣灵术(Character? character = null) : base(SkillType.Magic, character)
{
SelectTargetPredicates.Add(c => c.HP >= 0 && c.HP < c.MaxHP);
Effects.Add(new 强驱散特效(this));
Effects.Add(new 纯数值回复生命(this, 380, 270, true));
}
}
}