58 lines
1.6 KiB
C#
58 lines
1.6 KiB
C#
/*
|
|
* @Author: 白哉
|
|
* @Description:
|
|
* @Date: 2025年11月15日 星期五
|
|
* @Modify:
|
|
*/
|
|
|
|
|
|
using RuntimeData;
|
|
|
|
|
|
namespace Logic.Skill
|
|
{
|
|
public partial class SanaeNineContinueSkill : SkillBase
|
|
{
|
|
public SanaeNineContinueSkill()
|
|
{
|
|
IsPermanent = false;
|
|
TurnsLimit = 3;
|
|
Score = 2;
|
|
}
|
|
|
|
public override SkillType GetSkillType()
|
|
{
|
|
return SkillType.SANAENINECONTINUE;
|
|
}
|
|
|
|
/*public override void OnTurnStart(IdentifierBase identifier, MapData mapData)
|
|
{
|
|
var self = identifier as UnitData;
|
|
if (self == null) return;
|
|
self.ReduceActionPoint(ActionPointType.Move);
|
|
self.ReduceActionPoint(ActionPointType.Attack);
|
|
self.ReduceActionPoint(ActionPointType.Capture);
|
|
}
|
|
|
|
public override float GetDefenseMultiplicationParam(MapData mapData, UnitData self, UnitData target = null)
|
|
{
|
|
return 1.5f;
|
|
}
|
|
|
|
public override void OnFinished(IdentifierBase identifier, MapData mapData)
|
|
{
|
|
var self = identifier as UnitData;
|
|
if (self == null) return;
|
|
if (self == null || !self.IsAlive()) return;
|
|
var grid = self.Grid(mapData);
|
|
if (grid == null) return;
|
|
_sharedAroundBuf ??= new List<GridData>();
|
|
_sharedAroundBuf.Clear();
|
|
mapData.GridMap.GetAroundGridData(3, 3, grid, _sharedAroundBuf);
|
|
foreach (var around in _sharedAroundBuf)
|
|
{
|
|
around.AddSkill(SkillType.GRIDSANAENINECONTINUEDAMAGE, mapData, self.Id);
|
|
}
|
|
}*/
|
|
}
|
|
} |