45 lines
972 B
C#
45 lines
972 B
C#
/*
|
|
* @Author: 白哉
|
|
* @Description:
|
|
* @Date: 2025年11月15日 星期五
|
|
* @Modify:
|
|
*/
|
|
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using MemoryPack;
|
|
using RuntimeData;
|
|
|
|
|
|
namespace Logic.Skill
|
|
{
|
|
public partial class KanakoWindProSkill : SkillBase
|
|
{
|
|
public KanakoWindProSkill()
|
|
{
|
|
IsPermanent = true;
|
|
TurnsLimit = 0;
|
|
Score = 2;
|
|
}
|
|
|
|
public override SkillType GetSkillType()
|
|
{
|
|
return SkillType.KANAKOWINDPRO;
|
|
}
|
|
|
|
public override int GetExtraMoveRange(MapData map,UnitData self)
|
|
{
|
|
var aroundBuf = RentAroundBuf();
|
|
map.GridMap.GetAroundGridData(1, 1, self.Grid(map), aroundBuf);
|
|
int ret = 0;
|
|
foreach(var grid in aroundBuf)
|
|
if (grid.Resource == ResourceType.MoriyaMilitary)
|
|
ret++;
|
|
ReturnAroundBuf();
|
|
return ret;
|
|
}
|
|
}
|
|
}
|
|
|