41 lines
911 B
C#

/*
* @Author: 白哉
* @Description:
* @Date: 2025年04月23日 星期三 21:04:18
* @Modify:
*/
using RuntimeData;
using System;
using MemoryPack;
namespace Logic.Skill
{
public partial class CreepSkill : SkillBase
{
public CreepSkill()
{
IsPermanent = true;
TurnsLimit = 0;
Score = 4;
}
public override SkillType GetSkillType()
{
return SkillType.CREEP;
}
public override bool IsIgnoreMoveLoss(UnitData self, MapData mapData, TerrainFeature terrainType)
{
if (terrainType == TerrainFeature.Mountain) return true;
return false;
}
public override bool IsIgnoreMoveLoss(UnitData self, MapData mapData, Vegetation terrainType)
{
if (terrainType == Vegetation.Trees) return true;
return false;
}
}
}