【778】添加参数
parent
60d06427f8
commit
73867272a0
|
|
@ -47,8 +47,9 @@ public class ConditionCombatLeastOccupy : ICondition
|
|||
if (args.Count < 1)
|
||||
throw new ConditionException($"{nameof(ConditionCombatLeastOccupy)}条件(至少占领数量),需要1个参数,当前只有{args.Count}个参数,参数1:数量");
|
||||
|
||||
int count = (int)args[0];
|
||||
if (!LevelManager.Instance.IsInLevel)
|
||||
return new string[1] { string.Empty };
|
||||
return new string[1] { count.ToString() };
|
||||
else
|
||||
{
|
||||
int curCount = 0;
|
||||
|
|
|
|||
Loading…
Reference in New Issue