babylon.engine.actions.aid

AID verb resolver (verb-dispatch engine).

Direct community service provision (ActionType.PROVIDE_SERVICE). Combines two effects:

  1. A five-factor consciousness delta via the Feature-032 machinery (tendency-split base — revolutionary orgs raise CI, liberal orgs less so).

  2. An optional material transfer: params["transfer_amount"] moves from the acting org’s budget to the target’s wealth (both round-trip model fields). Insufficient budget fails loud (success=False).

See also

babylon.ooda.action_effects.compute_consciousness_delta().

Functions

resolve_aid(action, org_attrs, graph, services)

Resolve a player AID action: consciousness effect + material transfer.

babylon.engine.actions.aid.resolve_aid(action, org_attrs, graph, services)[source]

Resolve a player AID action: consciousness effect + material transfer.

Parameters:
  • action (Action) – The AID action (action_type == ActionType.PROVIDE_SERVICE).

  • org_attrs (dict[str, Any]) – Acting organization’s node attributes.

  • graph (BabylonGraph) – World graph (mutated when a transfer occurs).

  • services (ServicesProtocol) – ServicesProtocol providing defines.

Return type:

ActionResult

Returns:

ActionResult with the consciousness delta and, when a transfer occurs, direct_effects recording the amounts.