mirror of
https://github.com/oshima-studios/OshimaGameModule.git
synced 2025-04-22 03:49:35 +08:00
49 lines
1.7 KiB
C#
49 lines
1.7 KiB
C#
using Milimoe.FunGame.Core.Entity;
|
|
using Milimoe.FunGame.Core.Library.Constant;
|
|
using Oshima.FunGame.OshimaModules.Effects.OpenEffects;
|
|
|
|
namespace Oshima.FunGame.OshimaModules.Items
|
|
{
|
|
[Obsolete("测试物品请勿使用")]
|
|
public class 独奏弓 : Item
|
|
{
|
|
public override long Id => 11999;
|
|
public override string Name => "独奏弓";
|
|
public override string Description => Skills.Passives.Count > 0 ? Skills.Passives.First().Description : "";
|
|
|
|
public 独奏弓(Character? character = null) : base(ItemType.Weapon)
|
|
{
|
|
WeaponType = WeaponType.Bow;
|
|
Skills.Passives.Add(new 独奏弓技能(character, this));
|
|
}
|
|
}
|
|
|
|
public class 独奏弓技能 : Skill
|
|
{
|
|
public override long Id => 5999;
|
|
public override string Name => "独奏弓";
|
|
public override string Description => $"增加角色 {攻击力加成:0.##} 点攻击力,减少普通攻击 {硬直时间减少:0.##} 硬直时间。";
|
|
|
|
private readonly double 攻击力加成 = 80;
|
|
private readonly double 硬直时间减少 = 2;
|
|
|
|
public 独奏弓技能(Character? character, Item item) : base(SkillType.Passive, character)
|
|
{
|
|
Level = 1;
|
|
Item = item;
|
|
Dictionary<string, object> values = new()
|
|
{
|
|
{ "exatk", 攻击力加成 },
|
|
{ "hatr", 硬直时间减少 }
|
|
};
|
|
Effects.Add(new ExATK(this, values, character));
|
|
Effects.Add(new NormalAttackHardTimeReduce(this, values, character));
|
|
}
|
|
|
|
public override IEnumerable<Effect> AddInactiveEffectToCharacter()
|
|
{
|
|
return Effects;
|
|
}
|
|
}
|
|
}
|