FunGame-Core/Entity/Skill/OpenSkill.cs
milimoe 3db586cab2
诸多更新和问题修复 (#97)
* 添加 OpenFactory,可以动态扩展技能和物品

* 修改 Effect 的反序列化解析;增加对闪避/暴击判定的先前事件编程接口

* 补充魔法伤害的判定

* 装备系统优化;角色的复制问题修复

* 添加物品品质;更新装备饰品替换机制;添加第一滴血、团队模式

* 添加技能选取

* 添加团队死斗模式
2024-11-04 09:30:26 +08:00

35 lines
1013 B
C#

using Milimoe.FunGame.Core.Library.Constant;
namespace Milimoe.FunGame.Core.Entity
{
/// <summary>
/// 用于动态扩展技能,<see cref="Description"/> 返回所有特效的描述
/// </summary>
public class OpenSkill : Skill
{
public override long Id { get; set; }
public override string Name { get; set; }
public override string Description => string.Join("\r\n", Effects);
public OpenSkill(long id, string name, Dictionary<string, object> args, Character? character = null) : base(SkillType.Passive, character)
{
Id = id;
Name = name;
foreach (string str in args.Keys)
{
Values[str] = args[str];
switch (str)
{
default:
break;
}
}
}
public override IEnumerable<Effect> AddInactiveEffectToCharacter()
{
return Effects;
}
}
}