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:
@@ -369,7 +369,7 @@ export const createReservedTurnHandler = async (options: {
|
||||
|
||||
const resolution = resolveGeneralAction(
|
||||
definition,
|
||||
actionContext as GeneralActionResolveContext,
|
||||
actionContext,
|
||||
{
|
||||
now: currentGeneral.turnTime,
|
||||
schedule: context.schedule,
|
||||
|
||||
Reference in New Issue
Block a user