babylon.engine.actions.mobilize
MOBILIZE verb resolver (verb-dispatch engine).
Public demonstration / strike (ActionType.PROTEST). Ports the spec-047
mobilize dynamics (solidarity-amplified turnout, heat generation, George-Floyd
backfire) onto the uniform resolver signature, returning an
ActionResult and writing ONLY round-trip-safe
graph fields:
heaton a Territory / Organization target (a model field of both);ideology.agitationon a SocialClass target via copy-modify-writeback of the nestedideologydict (top-levelagitationdoes NOT round-trip).
Backfire emits EXCESSIVE_FORCE (the
George-Floyd spark); the standard path emits ORGANIZATIONAL_ACTION. There
is no MobilizeDefines, so the coefficients are module constants.
Functions
|
Resolve a player MOBILIZE action: turnout, heat, and backfire. |
- babylon.engine.actions.mobilize.resolve_mobilize(action, org_attrs, graph, services)[source]
Resolve a player MOBILIZE action: turnout, heat, and backfire.
- Parameters:
action (
Action) – The MOBILIZE action (action_type == ActionType.PROTEST).org_attrs (
dict[str,Any]) – Acting organization’s node attributes (unused).graph (
BabylonGraph) – World graph (mutated on the target node).services (
ServicesProtocol) – ServicesProtocol (unused; no MobilizeDefines exist yet).
- Return type:
ActionResult- Returns:
ActionResult;success=Falsewhen the target node is absent.