47 lines
1.1 KiB
C#
47 lines
1.1 KiB
C#
/*
|
|
* @Author: 白哉
|
|
* @Description:
|
|
* @Date: 2025年10月12日 星期六 10:10:12
|
|
* @Modify:
|
|
*/
|
|
|
|
|
|
using System;
|
|
using MemoryPack;
|
|
using RuntimeData;
|
|
|
|
|
|
namespace Logic.Skill
|
|
{
|
|
public partial class FlandreBuffSkill : SkillBase
|
|
{
|
|
private static int _staticLevel = 0;
|
|
|
|
public FlandreBuffSkill()
|
|
{
|
|
IsPermanent = false;
|
|
TurnsLimit = 0;
|
|
Score = 2;
|
|
_levelLimit = 6;
|
|
}
|
|
|
|
public override SkillType GetSkillType()
|
|
{
|
|
return SkillType.FLANDREBUFF;
|
|
}
|
|
|
|
public override void AddLevel(MapData map, UnitData origin, int add)
|
|
{
|
|
_staticLevel += add;
|
|
if (_staticLevel > _levelLimit) _staticLevel = _levelLimit;
|
|
if (!map.GetPlayerDataByUnitId(origin.Id, out _)) return;
|
|
origin.HeroTask(map)?.OnAddSkillLevels(map, GetSkillType(), (uint)add);
|
|
}
|
|
|
|
public override float GetAttackAdditionParam(MapData mapData, UnitData self, UnitData target = null)
|
|
{
|
|
return 0.5f * _staticLevel;
|
|
}
|
|
}
|
|
}
|