51 lines
1.0 KiB
C#

/*
* @Author: 白哉
* @Description:
* @Date: 2025年04月23日 星期三 21:04:18
* @Modify:
*/
using RuntimeData;
using System;
using UnityEngine;
using MemoryPack;
namespace Logic.Skill
{
public partial class SuperHideSkill : SkillBase
{
[SerializeField] private bool _isDamaged = false;
public SuperHideSkill()
{
IsPermanent = true;
TurnsLimit = 0;
Score = 2;
_isDamaged = false;
}
public override SkillType GetSkillType()
{
return SkillType.SUPERHIDE;
}
public override void OnTurnStart(UnitData self, MapData mapData)
{
_isDamaged = false;
}
public override void OnDamaged(MapData mapData, SettlementInfo info)
{
if (info == null) return;
_isDamaged = true;
}
public override bool IsInvisible(UnitData self, MapData mapData)
{
return !_isDamaged;
}
}
}