22 lines
505 B
C#
22 lines
505 B
C#
using System.Collections.Generic;
|
|
using Framework;
|
|
using Framework.Condition;
|
|
using Gameplay.Net;
|
|
|
|
|
|
/// <summary>
|
|
/// 指挥官技能是否解锁
|
|
/// </summary>
|
|
public class ConditionPlayerSkillUpgradeLevel : ICondition
|
|
{
|
|
public EventManager.EventName SignalName => EventManager.EventName.CultivatePlayerSkillUpgrade;
|
|
|
|
public bool Check(List<float> args)
|
|
{
|
|
int lv = (int)args[0];
|
|
|
|
int sumlevel = Actor.Instance.PlayerSkill.GetSumLevel();
|
|
|
|
return sumlevel >= lv;
|
|
}
|
|
} |