Crafting Step
Introduction
The Crafting Step initiates crafting challenges with different branches based on the results.
Interface
interface CraftingStep {
kind: 'crafting';
condition?: string;
recipe: string;
basicCraftSkill: number;
perfectCraftSkill: number;
sublimeCraftSkill?: number;
sublime?: EventStep[];
perfect: EventStep[];
basic: EventStep[];
failed: EventStep[];
useCurrentBackground?: boolean;
buffs?: CraftingBuff[];
forceSublimeCrafting?: boolean;
}
Properties
kind- Always'crafting'recipe- Recipe identifier to craftbasicCraftSkill- Craft skill given on basic resultperfectCraftSkill- Craft skill given on perfect resultsublimeCraftSkill- Craft skill given on sublime result (optional)sublime- Steps for sublime outcome (optional)perfect- Steps for perfect outcomebasic- Steps for basic successfailed- Steps for failed craftinguseCurrentBackground- Keep current screen background (optional)buffs- Applied crafting buffs (optional)forceSublimeCrafting- Force sublime crafting mode (optional)condition- Conditional execution (optional)
Examples
{
kind: 'crafting',
recipe: healingPillIRecipe,
basicCraftSkill: 0,
perfectCraftSkill: 1,
perfect: [{ kind: 'text', text: 'Perfect pill created!' }],
basic: [{ kind: 'text', text: 'Basic pill created.' }],
failed: [{ kind: 'text', text: 'Crafting failed.' }]
}