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,56 @@
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 => 魔法消耗基础 + 5 * 魔法消耗等级成长,
7 => 魔法消耗基础 + 4 * 魔法消耗等级成长,
6 => 魔法消耗基础 + 4 * 魔法消耗等级成长,
5 => 魔法消耗基础 + 3 * 魔法消耗等级成长,
4 => 魔法消耗基础 + 3 * 魔法消耗等级成长,
3 => 魔法消耗基础 + 2 * 魔法消耗等级成长,
_ => 魔法消耗基础
};
}
}
public override double CD => Level > 0 ? 55 - (3 * (Level - 1)) : 55;
public override double CastTime => Level > 0 ? 10 - (0.5 * (Level - 1)) : 10;
public override double HardnessTime { get; set; } = 6;
public override int CanSelectTargetCount
{
get
{
return Level switch
{
8 => 3,
7 => 2,
6 => 2,
5 => 2,
_ => 1
};
}
}
public override double MagicBottleneck => 12 + 13 * (Level - 1);
private double 魔法消耗基础 { get; set; } = 65;
private double 魔法消耗等级成长 { get; set; } = 65;
public 沉默十字(Character? character = null) : base(SkillType.Magic, character)
{
Effects.Add(new 造成封技(this, false, 0, 2));
}
}
}