添加新的技能测试

This commit is contained in:
milimoe 2024-09-09 01:42:58 +08:00
parent 195f9497d4
commit 4ed2c0127a
Signed by: milimoe
GPG Key ID: 05D280912DA6C69E
7 changed files with 81 additions and 16 deletions

View File

@ -8,10 +8,10 @@ namespace Milimoe.FunGame.Testing.Effects
{
public override long Id => 1;
public override string Name => "冰霜攻击";
public override string Description => $"对目标敌人造成 120%(+180%/Lv) + 250%智力 [ {Damage} ] 点元素魔法伤害。";
public override string Description => $"对目标敌人造成 {Calculation.Round4Digits(1.2 * (1 + 1.8 * (Skill.Level - 1))) * 100}%智力 [ {Damage} ] 点{CharacterSet.GetMagicName(MagicType)}。";
public override bool TargetSelf => false;
public override int TargetCount => 1;
public override MagicType MagicType => MagicType.Element;
public override MagicType MagicType => MagicType.None;
private double Damage
{
@ -20,7 +20,7 @@ namespace Milimoe.FunGame.Testing.Effects
double d = 0;
if (Skill.Character != null)
{
d = Calculation.Round2Digits(1.2 * (1 + 1.8 * (Skill.Level - 1)) * Skill.Character.ATK + (Skill.Character.INT * 2.5));
d = Calculation.Round2Digits(1.2 * (1 + 1.8 * (Skill.Level - 1)) * Skill.Character.INT);
}
return d;
}

View File

@ -0,0 +1,30 @@
using Milimoe.FunGame.Core.Api.Utility;
using Milimoe.FunGame.Core.Entity;
namespace Milimoe.FunGame.Testing.Effects
{
public class (Skill skill) : Effect(skill)
{
public override long Id => 1;
public override string Name => "大岛特性";
public override string Description => $"META马专属被动力量+5力量成长+0.5在受到伤害时获得的能量提升50%,每回合开始还能获得额外的 [ {EP} ] 能量值。";
public override bool TargetSelf => true;
public static double EP => 10;
public override bool AlterEPAfterGetDamage(Character character, double baseEP, out double newEP)
{
newEP = Calculation.Round2Digits(baseEP * 1.5);
if (Skill.Character != null) Console.WriteLine("[ " + Skill.Character + " ] 发动了META马专属被动本次获得了 " + newEP + " 能量!");
return true;
}
public override void OnTurnStart(Character character)
{
if (character.EP < 200)
{
character.EP += EP;
Console.WriteLine("[ " + character + " ] 发动了META马专属被动本次获得了 " + EP + " 能量!");
}
}
}
}

View File

@ -8,7 +8,7 @@ namespace Milimoe.FunGame.Testing.Effects
{
public override long Id => 1;
public override string Name => "天赐之力";
public override string Description => $"{Duration} 时间内,获得 25% 闪避率,普通攻击硬直时间额外减少 20%,基于 120%+60%/Lv核心属性 [ {伤害加成} ] 强化普通攻击的伤害。";
public override string Description => $"{Duration} 时间内,获得 25% 闪避率(不可叠加),普通攻击硬直时间额外减少 20%,基于 {Calculation.Round4Digits((1.2 + (1 + 0.6 * (Skill.Level - 1))) * 100)}% 核心属性 [ {伤害加成} ] 强化普通攻击的伤害。";
public override bool TargetSelf => false;
public override int TargetCount => 1;
public override bool Durative => true;
@ -56,10 +56,10 @@ namespace Milimoe.FunGame.Testing.Effects
public override void OnSkillCasted(ActionQueue queue, Character actor, List<Character> enemys, List<Character> teammates, Dictionary<string, object> others)
{
if (!actor.Effects.ContainsKey(Name))
RemainDuration = Duration;
if (!actor.Effects.Contains(this))
{
actor.Effects.Add(Name, this);
RemainDuration = Duration;
actor.Effects.Add(this);
OnEffectGained(actor);
}
}

View File

@ -85,11 +85,24 @@ if (list.Count > 3)
// 升级和赋能
for (int index = 0; index < characters.Count; index++)
{
characters[index].Level = 60;
characters[index].Skills.Add("冰霜攻击", new (characters[index]));
characters[index].Skills["冰霜攻击"].Level += 8;
characters[index].Skills.Add("天赐之力", new (characters[index]));
characters[index].Skills["天赐之力"].Level += 6;
Character c = characters[index];
c.Level = 60;
c.NormalAttack.Level += 7;
Skill = new (c);
.Level += 8;
c.Skills.Add();
if (c.ToString() == character1.ToString())
{
Skill = new (c);
.Level++;
c.Skills.Add();
}
Skill = new (c);
.Level += 6;
c.Skills.Add();
}
// 显示角色信息

View File

@ -7,7 +7,7 @@ namespace Milimoe.FunGame.Testing.Skills
{
public override long Id => 1;
public override string Name => "冰霜攻击";
public override string Description => Effects.Count > 0 ? Effects.Values.First().Description : "";
public override string Description => Effects.Count > 0 ? Effects.First().Description : "";
public override double MPCost => BaseMPCost + (50 * (Level - 1));
public override double CD => 20;
public override double CastTime => 6;
@ -16,7 +16,7 @@ namespace Milimoe.FunGame.Testing.Skills
public (Character character) : base(true, true, character)
{
Effects.Add("e1", new (this));
Effects.Add(new (this));
}
}
}

View File

@ -0,0 +1,22 @@
using Milimoe.FunGame.Core.Entity;
using Milimoe.FunGame.Testing.Effects;
namespace Milimoe.FunGame.Testing.Skills
{
public class : Skill
{
public override long Id => 1;
public override string Name => "大岛特性";
public override string Description => Effects.Count > 0 ? Effects.First().Description : "";
public (Character character) : base(false, false, character)
{
Effects.Add(new (this));
}
public override IEnumerable<Effect> AddInactiveEffectToCharacter()
{
return Effects;
}
}
}

View File

@ -7,14 +7,14 @@ namespace Milimoe.FunGame.Testing.Skills
{
public override long Id => 1;
public override string Name => "天赐之力";
public override string Description => Effects.Count > 0 ? Effects.Values.First().Description : "";
public override string Description => Effects.Count > 0 ? Effects.First().Description : "";
public override double EPCost => 100;
public override double CD => 60;
public override double HardnessTime => 15;
public (Character character) : base(true, character)
{
Effects.Add("e1", new (this));
Effects.Add(new (this));
}
}
}