Skip to content
KCKingdoms Connected Scripting APIScripting guides and API
Data shapeServer APIGenerated

CraftCompletionProposal

Defined in: server/api.d.ts:3134

What a finished batch or workpiece is about to grant, computed by the server. Frozen: a handler can refuse it, not change it.

amount: number

Defined in: server/api.d.ts:3173

How many.


grade: number

Defined in: server/api.d.ts:3163

The product’s native rank; for smithing, its item quality tier.


kind: "alchemy" | "smithing"

Defined in: server/api.d.ts:3138

Which craft.


lockpicks: number | undefined

Defined in: server/api.d.ts:3188

Smithing only: lockpicks granted alongside, drawn by the server from the player’s perks.


outcome: "failed" | "success"

Defined in: server/api.d.ts:3153

failed brews the game’s failed potion. A smithing proposal is always success: a failed workpiece grants nothing to review.


product: string

Defined in: server/api.d.ts:3168

Item class GUID of what would be granted, or empty when nothing is: a zero alchemy yield, or a smithing quest product its quest creates.


quality: number

Defined in: server/api.d.ts:3178

Brewing quality, 0 to 1, after perks and the table-entry bonus; for smithing, the workpiece quality the player’s game reported.


recipe: string

Defined in: server/api.d.ts:3158

The recipe the brew matched, or empty when it matched none; the smithing recipe worked.


session: string

Defined in: server/api.d.ts:3143

The session id.


station: string

Defined in: server/api.d.ts:3148

Station id.


xp: number

Defined in: server/api.d.ts:3183

Base alchemy or craftsmanship XP; the player’s own multipliers apply on top.