修改pmroutine

This commit is contained in:
SIC1016\caipeilun
2026-08-21 09:24:18 +08:00
parent 8653fc01b0
commit 84c34147d3
15 changed files with 280 additions and 85 deletions
+2 -12
View File
@@ -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;