Skip to content

Commit

Permalink
Added limit count and npc svt follower id to support servants
Browse files Browse the repository at this point in the history
  • Loading branch information
squaresmile committed Sep 19, 2024
1 parent aac6306 commit 02a5029
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
18 changes: 10 additions & 8 deletions packages/db/src/Component/QuestEnemy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -320,14 +320,16 @@ export const QuestEnemySubData = ({
return (
<Table bordered responsive className="quest-svt-data-table">
<tbody>
{renderSpanningRow({
title: t("Class"),
content: <SvtClassDescriptor svtClass={enemy.svt.className} />,
})}
{renderSpanningRow({
title: t("Attribute"),
content: <SvtAttrDescriptor attribute={enemy.svt.attribute} />,
})}
{renderDoubleRow([
{
title: t("Class"),
content: <SvtClassDescriptor svtClass={enemy.svt.className} />,
},
{
title: t("Attribute"),
content: <SvtAttrDescriptor attribute={enemy.svt.attribute} />,
},
])}
{renderSpanningRow({
title: t("Traits"),
content: <>{traitDescriptions}</>,
Expand Down
8 changes: 6 additions & 2 deletions packages/db/src/Component/SupportServant.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -224,17 +224,21 @@ const SupportServantTable = ({
supportServant: SupportServant.SupportServant;
stages: Quest.Stage[];
}) => {
const { t } = useTranslation();
return (
<>
<h4>
{supportServant.id}.{" "}
{supportServant.id} [{supportServant.npcSvtFollowerId}]{" "}
<EntityDescriptor
region={region}
entity={supportServant.svt}
overwriteName={supportServant.name === "NONE" ? supportServant.svt.name : supportServant.name}
iconHeight={40}
/>{" "}
<span className="quest-svt-lv">Lv. {supportServant.lv}</span>
<span className="quest-svt-lv">
{t("Lv")} {supportServant.lv} {t("Limit Count")}{" "}
{supportServant.detail?.limit.dispLimitCount ?? supportServant.limit.limitCount}
</span>
</h4>
<Row className="quest-svt-tables">
<Col xs={{ span: 12 }} lg={{ span: 6 }}>
Expand Down

0 comments on commit 02a5029

Please sign in to comment.