babylon.engine.actions.aid
AID verb resolver (verb-dispatch engine).
Direct community service provision (ActionType.PROVIDE_SERVICE). Combines
two effects:
A five-factor consciousness delta via the Feature-032 machinery (tendency-split base — revolutionary orgs raise CI, liberal orgs less so).
An optional material transfer:
params["transfer_amount"]moves from the acting org’sbudgetto the target’swealth(both round-trip model fields). Insufficient budget fails loud (success=False).
See also
babylon.ooda.action_effects.compute_consciousness_delta().
Functions
|
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:
ActionResultwith the consciousness delta and, when a transfer occurs,direct_effectsrecording the amounts.