diff --git a/src/components/dm/AiKindSwitcher.astro b/src/components/dm/AiKindSwitcher.astro new file mode 100644 index 0000000..496797c --- /dev/null +++ b/src/components/dm/AiKindSwitcher.astro @@ -0,0 +1,69 @@ +--- +import AiNpcForm from "./AiNpcForm.astro"; +import AiSpellForm from "./AiSpellForm.astro"; +import { dmTranslations as T } from "@/i18n/dm-translations"; +--- + +
{resetMsg}
++ {T.aiQuotaUpgradeHint} +
++ ${escapeHtml(item.name)} +
++ ${escapeHtml(item.category || "—")} · ${escapeHtml(cost)} +
+Вес ${escapeHtml(String(item.weight ?? "—"))}
+${escapeHtml(item.category || "—")}
+ ${translateButtonHtml(item.key, "equipment", isTranslated)} +${escapeHtml(cost)}
+Стоимость
+${escapeHtml(String(item.weight ?? "—"))}
+Вес
+${escapeHtml(item.desc)}
+ ${escapeHtml(item.name)} +
++ ${escapeHtml(item.type || "—")} · ${escapeHtml(item.rarity || "—")} +
+${escapeHtml(item.type || "—")} · ${escapeHtml(item.rarity || "—")}
+ ${translateButtonHtml(item.key, "magicitem", isTranslated)} + `; + if (item.requires_attunement) { + html += `Требует настройки: ${escapeHtml(item.requires_attunement)}
`; + } + if (item.desc) { + html += `${escapeHtml(item.desc)}
{T.aiSignInCta}
@@ -72,6 +72,10 @@ if (user) {{T.aiSignInCta}