EverambleGAME API / 1

CONTENT CONTRACT · VERSION 1

unlock_recipe

Make a recipe available to a player; an unlocked recipe stays unchanged.

Signature

{ kind: "unlock_recipe", player: PlayerRef, recipe: RecipeId }

Fields

NameTypeMeaning
kind"unlock_recipe"Discriminant
playerPlayerRefPlayer that learns the recipe.
Length: 1…256; Pattern: ^[\s\S]+$
recipeRecipeIdRecipe unlocked.
Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: recipe

Validated example

{
  "kind": "unlock_recipe",
  "player": "p1",
  "recipe": "reference:wall_build"
}