CONTENT CONTRACT · VERSION 1
Effect
An explicit state change checked before an atomic handler commit.
Signature
{ faction: ContentId, kind: "set_faction", target: ActorRef } | { count: PositiveCount, holder: ActorRef, item: ItemId, kind: "store_item", structure: ActorRef } | { count: PositiveCount, holder: ActorRef, item: ItemId, kind: "consume_item" } | { count: PositiveCount, holder: ActorRef, item: ItemId, kind: "grant_item" } | { amount: PositiveHitPoints, beam: (FxId)?, caster: (ActorRef)?, kind: "heal", look: (FxId)?, radius_mm: (PositiveDistance)?, target: ActorRef } | { kind: "set_quest_stage", player: (PlayerRef)?, quest: QuestId, stage: QuestStage } | { kind: "reset_quest", player: (PlayerRef)?, quest: QuestId } | { kind: "complete_objective", objective: Name, player: (PlayerRef)?, quest: QuestId } | { add: (SignedInt)?, kind: "set_objective_progress", objective: Name, player: (PlayerRef)?, quest: QuestId, value: (Count)? } | { kind: "set_variable", value: StateValue, variable: VariableId } | { amount: PositiveCount, kind: "restore_need", need: Need, target: ActorRef } | { enabled: boolean, kind: "set_light", light: LightId, target: ActorRef } | { kind: "teleport", position: Position, target: ActorRef } | { kind: "notify", near: (NoticeArea)?, player: (PlayerRef)?, text: TextKey } | { amount: PositiveHitPoints, damage_type: DamageTypeId, kind: "damage", target: ActorRef } | { duration_ticks: SpanTicks, kind: "apply_status", status: StatusId, target: ActorRef } | { kind: "remove_status", status: StatusId, target: ActorRef } | { item: ItemId, kind: "equip", target: ActorRef } | { kind: "unequip", slot: EquipmentSlot, target: ActorRef } | { count: PositiveCount, item: ItemId, kind: "drop_item", position: Position } | { actor: ActorRef, count: PositiveCount, kind: "craft", recipe: RecipeId } | { actor: ActorRef, count: number, kind: "queue_craft", recipe: RecipeId, station: ActorRef } | { kind: "finish_craft", order: number, station: ActorRef } | { definition: SpawnDefinitionId, group: (Name)?, kind: "spawn", position: Position, spawn_key: Name, squad: (SpawnSquad)? } | { kind: "despawn", target: ActorRef } | { follow: (ActorRef)?, kind: "move_to", movement: MovementId, position: Position, request_key: Name, target: ActorRef, within_mm: (PositiveDistance)? } | { duration_ticks: SpanTicks, kind: "set_weather", map: MapRef, weather: WeatherId } | { day: Count, kind: "set_time", minute: DayMinute } | { dialogue: DialogueId, kind: "start_dialogue", npc: ActorRef, player: PlayerRef } | { kind: "open_inventory", target: ActorRef } | { cutscene: CutsceneId, kind: "play_cutscene", player: (PlayerRef)? } | { clip: Name, duration_ticks: (MomentTicks)?, kind: "play_animation", target: ActorRef } | { cue: AudioCueId, kind: "play_audio", position: Position } | { kind: "play_look", look: FxId, target: ActorRef } | { duration_ticks: MomentTicks, kin: {AnimalId}, kind: "startle", radius_mm: StartleRadius, target: ActorRef } | { actor: ActorRef, kind: "build", position: Position, recipe: RecipeId, yaw_mdeg: Millidegrees } | { actor: ActorRef, kind: "repair", recipe: RecipeId, target: ActorRef } | { kind: "set_block", material: BlockMaterial, position: BlockPos } | { kind: "remove_block", position: BlockPos } | { at_mm: {Millimeters}, inside: (Name)?, kind: "place_structure", map: MapId, structure: StructureId, work: Name, yaw_mdeg: Millidegrees } | { kind: "remove_structure", target: StructureRef, work: Name } | { from_cell: {Millimeters}, kind: "shape_terrain", map: MapId, material: (BlockMaterial)?, op: TerrainOp, to_cell: {Millimeters}, work: Name } | { kind: "end_work", work: Name } | { delay_ticks: SpanTicks, kind: "set_timer", timer: TimerId } | { kind: "cancel_timer", timer: TimerId } | { kind: "unlock_recipe", player: (PlayerRef)?, recipe: RecipeId } | { kind: "set_routine", routine: RoutineId, target: ActorRef } | { kind: "set_home", structure: (ActorRef)?, target: ActorRef } | { inside: (ActorRef)?, kind: "move_structure", position: Position, structure: ActorRef } | { kind: "claim_structure", owner: (StructureOwner)?, structure: ActorRef } | { behavior: BehaviorId, kind: "assign_behavior", target: ActorRef } | { amount: PositiveCount, kind: "grant_xp", player: PlayerRef, track: (ProgressTrackId)? } | { kind: "learn_skill", player: PlayerRef, skill: SkillId } | { caster: ActorRef, damage: PositiveHitPoints, kind: "launch_projectile", projectile: ProjectileId } | { caster: ActorRef, damage: HitPoints, damage_type: DamageTypeId, hit_look: (FxId)?, inner_mm: Distance, kind: "area_effect", look: (FxId)?, radius_mm: PositiveDistance, shape: AreaShape, status: (StatusId)? }