steamsheep-ts-game-engine 3.0.0 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1353,7 +1353,7 @@ var FlowSystem = class {
1353
1353
  action.afterEffects(currentState, originalState, actions);
1354
1354
  }
1355
1355
  const finalState = store;
1356
- const resultText = typeof action.resultText === "function" ? action.resultText(finalState) : action.resultText;
1356
+ const resultText = typeof action.resultText === "function" ? action.resultText(finalState, state) : action.resultText;
1357
1357
  store.addLog(resultText, "result");
1358
1358
  gameEvents.emit(EngineEvents.ACTION_EXECUTED, { actionId: action.id });
1359
1359
  return true;