From 5fff8ce248fffae4f2bae9b097e88bd5203caa11 Mon Sep 17 00:00:00 2001 From: zhangaotian <8474238@qq.com> Date: Fri, 1 Nov 2024 18:33:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=B3=E5=8D=A1=E7=BC=96=E8=BE=91=E5=99=A8-?= =?UTF-8?q?=E8=AF=84=E5=88=86=E5=85=B3=E5=8D=A1=E5=8A=A0=E8=BD=BDbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Code/Scripts/Framework/Condition/Util/ConditionUtil.cs | 3 +++ ProjectNLD/Assets/Code/Scripts/Gameplay/Level/LevelData.cs | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/ProjectNLD/Assets/Code/Scripts/Framework/Condition/Util/ConditionUtil.cs b/ProjectNLD/Assets/Code/Scripts/Framework/Condition/Util/ConditionUtil.cs index c128e56536c..64e31973a8d 100644 --- a/ProjectNLD/Assets/Code/Scripts/Framework/Condition/Util/ConditionUtil.cs +++ b/ProjectNLD/Assets/Code/Scripts/Framework/Condition/Util/ConditionUtil.cs @@ -31,6 +31,9 @@ public static class ConditionUtil { ConditionType.CombatProtectUnit, "护送对象" }, { ConditionType.CombatProtectUnitDead, "护送对象阵亡" }, { ConditionType.CombatLeastOccupy, "至少占领区域数量" }, + { ConditionType.PlayerSkillUpgradeLevel, "(指挥官技能升级)强化等级大于等于"}, + { ConditionType.LevelOver, "关卡结束"} + }; /// diff --git a/ProjectNLD/Assets/Code/Scripts/Gameplay/Level/LevelData.cs b/ProjectNLD/Assets/Code/Scripts/Gameplay/Level/LevelData.cs index b4b985b2acb..a3052278d1d 100644 --- a/ProjectNLD/Assets/Code/Scripts/Gameplay/Level/LevelData.cs +++ b/ProjectNLD/Assets/Code/Scripts/Gameplay/Level/LevelData.cs @@ -191,6 +191,11 @@ namespace Gameplay.Level { starCondition.SetFilterTypes(ConditionUtil.LevelStarConditionFilter); } + + foreach (var scoreCondition in scoreTarget) + { + scoreCondition.SetFilterTypes(ConditionUtil.LevelScoreConditionFilter, scoreLevel); + } } } } \ No newline at end of file