TH1/Unity/Assets/Scripts/TH1_Logic/Skill/AllSkill/PatchouliEarthSkill.cs
2025-10-25 02:37:16 +08:00

40 lines
855 B
C#

/*
* @Author: 白哉
* @Description:
* @Date: 2025年10月12日 星期六 10:10:12
* @Modify:
*/
using System;
using MemoryPack;
using RuntimeData;
namespace Logic.Skill
{
public partial class PatchouliEarthSkill : SkillBase
{
public PatchouliEarthSkill()
{
IsLevelSkill = true;
IsPermanent = true;
TurnsLimit = 0;
Score = 2;
_levelLimit = 1;
}
public override SkillType GetSkillType()
{
return SkillType.PATCHOULIEARTH;
}
public override void AddLevel(MapData map, UnitData origin, UnitData self, int add)
{
if (self.GetSkill(SkillType.PHILOSTONE, out _)) _levelLimit = 2;
else _levelLimit = 1;
base.AddLevel(map, origin, self, add);
}
}
}