22 lines
895 B
TypeScript
22 lines
895 B
TypeScript
import type { FunctionDocumentationEntry } from '../types';
|
|
|
|
/**
|
|
* forge_dismantle
|
|
*
|
|
* 在锻造面板中拆解物品回收材料的 function。
|
|
*/
|
|
export const FORGE_DISMANTLE_FUNCTION: FunctionDocumentationEntry = {
|
|
id: 'forge_dismantle',
|
|
domain: 'panel',
|
|
title: '拆解物品',
|
|
source: 'src/data/functionCatalog/panel/forgeDismantle.ts',
|
|
summary: '执行拆解并返还材料收益的锻造 function。',
|
|
detailedDescription:
|
|
'它允许玩家把现有物品重新拆回材料,由本地锻造规则决定返还内容,避免拆解产出与物品设计脱节。',
|
|
trigger: '玩家在非战斗状态下于锻造面板选择可拆解物品时触发。',
|
|
execution:
|
|
'先执行 executeDismantleItem,再通过 commitGeneratedState 记录拆解结果。',
|
|
result: '原物品被移除,背包增加拆解产物,并留下拆解说明文本。',
|
|
active: true,
|
|
};
|