38 lines
781 B
C#
38 lines
781 B
C#
/*
|
|
* @Author: 白哉
|
|
* @Description: 可隐匿技能
|
|
* @Date: 2026年03月06日
|
|
* @Modify:
|
|
*/
|
|
|
|
using RuntimeData;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using MemoryPack;
|
|
using UnityEngine;
|
|
|
|
namespace Logic.Skill
|
|
{
|
|
public partial class CanHideSkill : SkillBase
|
|
{
|
|
public CanHideSkill()
|
|
{
|
|
IsPermanent = true;
|
|
TurnsLimit = 0;
|
|
Score = 4;
|
|
}
|
|
|
|
public override SkillType GetSkillType()
|
|
{
|
|
return SkillType.CanHide;
|
|
}
|
|
|
|
public override void OnMove(UnitData self, GridData grid, MapData mapData, MoveType moveType, List<Vector2Int> path = null)
|
|
{
|
|
self.AddOrOverrideSkill(SkillType.CanHide, mapData, self.Id);
|
|
}
|
|
}
|
|
}
|
|
|