修改pmroutine
This commit is contained in:
@@ -1130,18 +1130,8 @@ namespace SicModules.PMs
|
||||
private bool FsmStartExchangeMO(object[] param)
|
||||
{
|
||||
Result ret;
|
||||
if (SC.GetValue<bool>($"PM.IsExchangeMO{param[0]}Routine"))
|
||||
{
|
||||
string RoutineFileName = SC.GetStringValue($"PM.{Module}.ExchangeMO{param[0]}FileName");
|
||||
|
||||
_pMMacroRoutine.Init(RoutineFileName, RoutineType.ExchangeMORoutine);
|
||||
ret = StartRoutine(_pMMacroRoutine);
|
||||
}
|
||||
else
|
||||
{
|
||||
_changeMoRoutine.Init(param[0].ToString());
|
||||
ret = StartRoutine(_changeMoRoutine);
|
||||
}
|
||||
_changeMoRoutine.Init(param[0].ToString());
|
||||
ret = StartRoutine(_changeMoRoutine);
|
||||
|
||||
if (ret == Result.FAIL || ret == Result.DONE)
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user