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,61 @@
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 => Effects.Count > 0 ? string.Join("\r\n", Effects.Select(e => e.Description)) : "";
public override string DispelDescription => Effects.Count > 0 ? Effects.First().DispelDescription : "";
public override string ExemptionDescription => Effects.Count > 0 ? Effects.First().ExemptionDescription : "";
public override double MPCost
{
get
{
return Level switch
{
8 => 魔法消耗基础 + 7 * 魔法消耗等级成长,
7 => 魔法消耗基础 + 5 * 魔法消耗等级成长,
6 => 魔法消耗基础 + 5 * 魔法消耗等级成长,
5 => 魔法消耗基础 + 4 * 魔法消耗等级成长,
4 => 魔法消耗基础 + 3 * 魔法消耗等级成长,
3 => 魔法消耗基础 + 2 * 魔法消耗等级成长,
_ => 魔法消耗基础
};
}
}
public override double CD => Level > 0 ? 55 - (2 * (Level - 1)) : 55;
public override double CastTime => Level > 0 ? 5 + (0.5 * (Level - 1)) : 5;
public override double HardnessTime { get; set; } = 5;
public override int CanSelectTargetCount
{
get
{
return Level switch
{
8 => 6,
7 => 5,
6 => 4,
5 => 4,
4 => 3,
3 => 2,
_ => 1
};
}
}
private double 魔法消耗基础 { get; set; } = 85;
private double 魔法消耗等级成长 { get; set; } = 80;
public override SkillRangeType SkillRangeType => SkillRangeType.Circle;
public override int CanSelectTargetRange => 3;
public override double MagicBottleneck => 13 + 14 * (Level - 1);
public 反魔法领域(Character? character = null) : base(SkillType.Magic, character)
{
IsNonDirectional = true;
Effects.Add(new 造成封技(this, true, 15, 0, 1));
}
}
}