Пользовательские дополнения
На главную
craft.GetDiceCraftRecipeResults( recipeId )
Возвращает список всех возможных для рецепта результатов изготовления предметов.
-- библиотека
craft
-- объявление:
function GetDiceCraftRecipeResults( recipeId )
-- параметры
recipeId: RecipeId - идентификатор рецепта
-- возвращаемые значения
table или nil - nil если ошибка (например рецепт не относится к DiceCraft); иначе таблица с полями:
defaultItemId: ObjectId - идентификатор предмета, который будет результатом, если не выпадут одинаковые значения для всех слотов
results: table - список (индексированный от 0) возможных значений, каждое значение - таблица с полями:
diceValue: number (int) - значение, которое должно выпасть для всех слотов, чтобы результат был именно этот
itemId: ObjectId - идентификатор предмета, который будет результатом крафтинга (в количестве resultQuantity)
resultQuantity: number (int) - количество предметов
bonusQuantity: number (int) - сколько дополнительных предметов будет дано за наличие непотраченных роллов
-- пример использования
local results = craft.GetDiceCraftRecipeResults( recipeId )
Search: "CategoryLuaApi" "CategoryCraft"
CategoryCraft
EnumDiceCraftCmdType
EventDiceCraftCanceled
EventDiceCraftCmdFailed
EventDiceCraftFinished
EventDiceCraftNotEnoughComponents
EventDiceCraftPrepared
EventDiceCraftRecipesChanged
EventDiceCraftScoreChanged
EventDiceCraftSlotChanged
EventDiceCraftStatusChanged
FunctionAvatarGetRecipeInfo
FunctionCraftDiceCraftEmptySlot
FunctionCraftDiceCraftGetCurrentDices
FunctionCraftDiceCraftGetCurrentRecipe
FunctionCraftDiceCraftGetDiceValues
FunctionCraftDiceCraftGetInspirationLevels
FunctionCraftDiceCraftGetInspiredRecipes
FunctionCraftDiceCraftGetLockedSlots
FunctionCraftDiceCraftGetPlacedItems
FunctionCraftDiceCraftGetRecipeInspiration
FunctionCraftDiceCraftGetRecipes
FunctionCraftDiceCraftIsJoker
FunctionCraftDiceCraftPutItem
FunctionCraftDiceCraftRecipeIsSameItem
FunctionCraftDiceCraftState
FunctionCraftDiceCraftUseInspiration
FunctionCraftGetDiceCraftRecipeResults
FunctionCraftGetItemSlotsCount
FunctionCraftIncreaseQualification
CategoryLuaApi
CategoryFunction
CategoryCraft
На главную