46 lines
1.2 KiB
C#
46 lines
1.2 KiB
C#
/*
|
|
* @Author: 白哉
|
|
* @Description:
|
|
* @Date: 2025年04月23日 星期三 21:04:18
|
|
* @Modify:
|
|
*/
|
|
|
|
|
|
using System;
|
|
using RuntimeData;
|
|
using MemoryPack;
|
|
|
|
|
|
namespace Logic.Skill
|
|
{
|
|
public partial class MoonPrincessSkill : SkillBase
|
|
{
|
|
public MoonPrincessSkill()
|
|
{
|
|
IsPermanent = true;
|
|
TurnsLimit = 0;
|
|
Score = 2;
|
|
}
|
|
|
|
public override SkillType GetSkillType()
|
|
{
|
|
return SkillType.MOONPRINCESS;
|
|
}
|
|
/*
|
|
public override void OnTurnStart(IdentifierBase identifier, MapData mapData)
|
|
{
|
|
var self = identifier as UnitData;
|
|
if (self == null) return;
|
|
if (!mapData.GetGridDataByUnitId(self.Id, out var targetGrid)) return;
|
|
_sharedAroundBuf ??= new List<GridData>();
|
|
_sharedAroundBuf.Clear();
|
|
mapData.GridMap.GetAroundGridData(1, 1, targetGrid, _sharedAroundBuf);
|
|
|
|
foreach (var grid in _sharedAroundBuf)
|
|
{
|
|
if (!mapData.GetUnitDataByGid(grid.Id, out var unit)) continue;
|
|
unit.AddSkill(SkillType.MOONPRINCESS, mapData);
|
|
}
|
|
}*/
|
|
}
|
|
} |