Use server-only tooltip metadata and trim property help output

This commit is contained in:
Jage9
2026-02-21 20:58:16 -05:00
parent e0c5245d79
commit 7a1bf08eb5
3 changed files with 3 additions and 65 deletions

View File

@@ -771,11 +771,6 @@ function describeItemPropertyHelp(item: WorldItem, key: string): string {
if (metadata?.range) {
const stepText = metadata.range.step !== undefined ? ` step ${metadata.range.step}` : '';
parts.push(`Range: ${metadata.range.min} to ${metadata.range.max}${stepText}.`);
} else {
const options = getItemPropertyOptionValues(key);
if (options && options.length > 0) {
parts.push(`Options: ${options.join(', ')}.`);
}
}
parts.push(EDITABLE_ITEM_PROPERTY_KEYS.has(key) ? 'Editable.' : 'Read only.');