mirror of
https://github.com/oshima-studios/OshimaGameModule.git
synced 2025-04-22 03:49:35 +08:00
44 lines
1.6 KiB
C#
44 lines
1.6 KiB
C#
using Milimoe.FunGame.Core.Entity;
|
|
using Milimoe.FunGame.Core.Library.Constant;
|
|
using Oshima.FunGame.OshimaModules.ItemEffects;
|
|
|
|
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, slot: EquipSlotType.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;
|
|
Effects.Add(new 攻击力加成(this, character, item, 攻击力加成));
|
|
Effects.Add(new 普攻硬直时间减少(this, character, item, 硬直时间减少));
|
|
}
|
|
|
|
public override IEnumerable<Effect> AddInactiveEffectToCharacter()
|
|
{
|
|
return Effects;
|
|
}
|
|
}
|
|
}
|