Refactor action effects to use direct state mutations and logging

- Removed the use of createGeneralPatchEffect and createLogEffect in various action definitions.
- Replaced effects with direct mutations of the state for general and city entities.
- Updated logging to use context.addLog for better clarity and consistency.
- Ensured that all actions now return an empty effects array after processing.
This commit is contained in:
2026-01-02 10:25:33 +00:00
parent 18247eeff4
commit f137c5be65
17 changed files with 281 additions and 562 deletions
@@ -369,7 +369,7 @@ export const createReservedTurnHandler = async (options: {
const resolution = resolveGeneralAction(
definition,
actionContext as GeneralActionResolveContext,
actionContext,
{
now: currentGeneral.turnTime,
schedule: context.schedule,