Add remembrance sigils page

This commit is contained in:
Sakura Knoll
2022-04-06 05:11:34 +09:00 Unverified
parent 27f9d532eb
commit 075f572a3b
45 changed files with 277 additions and 11 deletions
@@ -0,0 +1,4 @@
# Abandoned
Grants 1 extra level when choosing a Deliverance signet.
Killing enemies reduces Ultimate CD by 20%. CD: 10s.
@@ -0,0 +1,3 @@
# Burden
Portals carrying Signets of Deliverance appear more often.
@@ -0,0 +1,3 @@
# Crystal Rose
Portals carrying Signets of ■■ appear more often.
@@ -0,0 +1,3 @@
# False Hope
Valkyrie receives 50% less Total DMG when debuffed.
@@ -0,0 +1,3 @@
# Forbidden Seed
Portals carrying Signets of Infinity appear more often.
@@ -0,0 +1,3 @@
# Forget-Me-Not
Portals carrying Signets of Setsuna appear more often.
@@ -0,0 +1,3 @@
# Gold Goblet
Portals carrying Signets of Gold appear more often.
@@ -0,0 +1,4 @@
# Good Old Days
Grants 1 extra level when choosing a Signet of Gold.
Consuming 50 SP of more in one go drops an SP Pack which grants 10 SP.
@@ -0,0 +1,4 @@
# Heavy as a Million Lives
Grants 1 extra level when choosing a Signet of Bodhi.
Combo count will not be reset; the first hit that lands grants an additional 50 combo count.
@@ -0,0 +1,3 @@
# Home Lost
Grants 3 portal resets but locks Remembrance Sigil and Support Valkyrie.
@@ -0,0 +1,3 @@
# Light as a Bodhi Leaf
Portals carrying Signets of Bodhi appear more often.
@@ -0,0 +1,3 @@
# Mad King's Mask
Portals carrying Signets of Decimation appear more often.
@@ -0,0 +1,3 @@
# Memory
Portals carrying Signets of Vicissitude appear more often.
@@ -0,0 +1,4 @@
# Resolve
Grants 1 extra level when choosing a Vicissitude signet.
When signet Vivid Vicissitude is active, Soldier's Resolve starts with 1 more stack and grants temporary invincibility when blocking DMG.
@@ -0,0 +1,3 @@
# Ruined Legacy
Grants 30 bonus initial SP but consumes 10% current HP after battle.
@@ -0,0 +1,4 @@
# Shattered Shackles
Grants 1 extra level when choosing a Signet of Decimation.
At below 33% HP, Valkyrie is immune to most debuffs; at below 20% HP, Valkyrie will not be interrupted when hit.
@@ -0,0 +1,4 @@
# Stained Sakura
Grants 1 extra level when choosing a Signet of Setsuna.
When signet Setsuna Blade: Sakura Screen is active, every time Sakura Screen is triggered, its DMG conversion ratio increases by 10%.
@@ -0,0 +1,4 @@
# The First Scale
Grants 1 extra level when choosing a Signet of Infinity.
When the Signets of Infinite [X] are active, Valkyrie will enter a 8-sec Mind Sync when a battle starts.
@@ -0,0 +1,3 @@
# The MOTH Insignia
Reduces Total DMG taken by 25% and restores 15% HP after the battle.
@@ -0,0 +1,3 @@
# Tin Flask
Flame-Chaser support skills are triggered more often.
@@ -0,0 +1,4 @@
# 포기한 것
[구원]의 각인 선택 시, 초기 레벨이 1레벨 증가한다.
적 처치 시, 필살기 재사용 대기시간이 20% 감소한다. 해당 효과는 10초마다 1회 발동할 수 있다.
@@ -0,0 +1,3 @@
# 짊어진 것
[구원]의 각인에 대응하는 워프 포인트의 출현 확률이 증가한다.
@@ -0,0 +1,3 @@
# 수정 장미
[■■]의 각인에 대응하는 워프 포인트의 출현 확률이 증가한다.
@@ -0,0 +1,3 @@
# 허황된 희망
자신이 이상 상태일 경우, 받는 모든 대미지가 50% 감소한다.
@@ -0,0 +1,3 @@
# 금기의 씨앗
[무한]의 각인에 대응하는 워프 포인트의 출현 확률이 증가한다.
@@ -0,0 +1,3 @@
# 물망초
[찰나]의 각인에 대응하는 워프 포인트의 출현 확률이 증가한다.
@@ -0,0 +1,3 @@
# 황금 술잔
[황금]의 각인에 대응하는 워프 포인트의 출현 확률이 증가한다.
@@ -0,0 +1,4 @@
# 흘러가는 세월
[황금]의 각인 선택 시, 초기 레벨이 1레벨 증가한다.
한 번에 SP를 50pt 이상 소모 시, SP 팩을 1개 드랍한다. 해당 방식으로 드랍한 SP 팩은 SP를 10pt만 회복한다.
@@ -0,0 +1,4 @@
# 천만 목숨과 같은 무거움
[천혜]의 각인 선택 시, 초기 레벨이 1레벨 증가한다.
콤보가 끊기지 않고, 적 첫 적중 시 콤보수가 추가로 50콤보 증가한다.
@@ -0,0 +1,3 @@
# 돌아갈 수 없는 고향
워프 포인트 리셋 가능 횟수가 3회 증가하지만, 회상의 증명과 전투 보조 발키리를 변경할 수 없다.
@@ -0,0 +1,3 @@
# 꺠달음과 같은 가벼움
[천혜]의 각인에 대응하는 워프 포인트의 출현 확률이 증가한다.
@@ -0,0 +1,3 @@
# 폭왕의 가면
[오멸]의 각인에 대응하는 워프 포인트의 출현 확률이 증가한다.
@@ -0,0 +1,3 @@
# 기념
[부생]의 각인에 대응하는 워프 포인트의 출현 확률이 증가한다.
@@ -0,0 +1,4 @@
# 결의
[부생]의 각인 선택 시, 초기 레벨이 1레벨 증가한다.
각인 [백태무상] 보유 시, [전사의 결의] 초기 스택이 1스택 증가하고, 대미지를 상쇄했을 때 짧은 무적 효과를 제공한다.
@@ -0,0 +1,3 @@
# 잃어버린 시대
초기 SP가 30pt 증가한다. 전투 종료 후 현재 HP가 10% 감소한다.
@@ -0,0 +1,4 @@
# 부서진 족쇄
[오멸]의 각인 선택 시, 초기 레벨이 1레벨 증가한다.
HP가 33% 미만일 경우 대부분의 디버프에 면역되고, 20% 미만일 경우 피격 시 경직되지 않는다.
@@ -0,0 +1,4 @@
# 아카조메 사쿠라
[찰나]의 각인 선택 시, 초기 레벨이 1레벨 증가한다.
각인 찰나일도 [벚꽃의 장막] 보유 시, [벚꽃 결계]를 발동할 때마다 전투 종료까지 [벚꽃 결계]의 대미지 전환 비율이 10% 증가한다.
@@ -0,0 +1,4 @@
# 시작의 비늘
[무한]의 각인 선택 시, 초기 레벨이 1레벨 증가한다.
[무한의 [x]] 보유 시 전투가 시작되면 [사고 동화] 상태에 진입한다. 지속 시간: 8초
@@ -0,0 +1,3 @@
# 불을 쫓는 메달
받는 모든 대미지가 25% 감소하며, 전투 종료 후 HP를 15% 회복한다.
@@ -0,0 +1,3 @@
# 백철 술주전자
영웅 지원 스킬의 발동 확률이 증가한다.
+7 -1
View File
@@ -41,7 +41,7 @@ export const supportBattlesuitIds = [
'br',
]
export const rememberanceSigilIds = [
export const remembranceSigilIds = [
'the-moth-insignia',
'home-lost',
'false-hope',
@@ -158,3 +158,9 @@ export interface SupportBattlesuit {
description: string
cooldown: number
}
export interface RemembranceSigil {
id: string
name: string
description: string
}
+19 -9
View File
@@ -10,15 +10,15 @@ import { getI18NProps } from '../../../server/i18n'
import { useTranslation } from '../../../lib/i18n'
import Head from '../../../components/atoms/Head'
import Honkai3rdLayout from '../../../components/layouts/Honkai3rdLayout'
import {
erVersions,
rememberanceSigilIds,
} from '../../../lib/honkai3rd/elysianRealm'
import { erVersions } from '../../../lib/honkai3rd/elysianRealm'
import SquareImageBox from '../../../components/atoms/SquareImageBox'
import { assetsBucketBaseUrl } from '../../../lib/consts'
import PageLink from '../../../components/atoms/PageLink'
import SignetGroupNavigator from '../../../components/organisms/SignetGroupNavigator'
import { getSupportBattlesuits } from '../../../server/data/honkai3rd/elysianRealm'
import {
getRemembranceSigils as getRemembranceSigils,
getSupportBattlesuits,
} from '../../../server/data/honkai3rd/elysianRealm'
type BattlesuitListItemData = Pick<
BattlesuitData,
@@ -28,11 +28,13 @@ type BattlesuitListItemData = Pick<
interface BattlesuitListPageProps {
battlesuitMap: { [id: string]: BattlesuitListItemData }
supportBattlesuits: { id: string; name: string }[]
remembranceSigils: { id: string; name: string }[]
}
const ElysianRealmIndexPage = ({
battlesuitMap,
supportBattlesuits,
remembranceSigils,
}: BattlesuitListPageProps) => {
const { t } = useTranslation()
@@ -118,15 +120,15 @@ const ElysianRealmIndexPage = ({
<Heading as='h2'>{t('elysian-realm.remembrance-sigil')}</Heading>
<Flex sx={{ flexWrap: 'wrap' }}>
{rememberanceSigilIds.map((sigilId) => {
{remembranceSigils.map(({ id, name }) => {
return (
<Card key={sigilId} sx={{ p: 1, m: 1 }}>
<Card key={id} sx={{ p: 1, m: 1 }} title={name}>
<PageLink
href={`/honkai3rd/elysian-realm/remembrance-sigils#${sigilId}`}
href={`/honkai3rd/elysian-realm/remembrance-sigils#${id}`}
>
<SquareImageBox
size={70}
src={`${assetsBucketBaseUrl}/honkai3rd/elysian-realm/remembrance-sigils/${sigilId}.png`}
src={`${assetsBucketBaseUrl}/honkai3rd/elysian-realm/remembrance-sigils/${id}.png`}
/>
</PageLink>
</Card>
@@ -155,10 +157,18 @@ export async function getStaticProps({ locale }: NextPageContext) {
}
}
)
const remembranceSigils = getRemembranceSigils(locale).map(({ id, name }) => {
return {
id,
name,
}
})
return {
props: {
battlesuitMap: getBattlesuitMapByIds(erBattlesuitIds),
supportBattlesuits,
remembranceSigils,
...(await getI18NProps(locale)),
},
}
@@ -0,0 +1,93 @@
/** @jsxImportSource theme-ui */
import { Box, Heading, Flex, Card, Paragraph } from '@theme-ui/components'
import Breadcrumb from '../../../components/organisms/Breadcrumb'
import { NextPageContext } from 'next'
import { getI18NProps } from '../../../server/i18n'
import { useTranslation } from '../../../lib/i18n'
import Head from '../../../components/atoms/Head'
import Honkai3rdLayout from '../../../components/layouts/Honkai3rdLayout'
import { RemembranceSigil } from '../../../lib/honkai3rd/elysianRealm'
import SquareImageBox from '../../../components/atoms/SquareImageBox'
import { assetsBucketBaseUrl } from '../../../lib/consts'
import { getRemembranceSigils } from '../../../server/data/honkai3rd/elysianRealm'
interface BattlesuitListPageProps {
remembranceSigils: RemembranceSigil[]
}
const ElysianRealmIndexPage = ({
remembranceSigils,
}: BattlesuitListPageProps) => {
const { t } = useTranslation()
return (
<Honkai3rdLayout>
<Head
title={`${t('elysian-realm.remembrance-sigil')} (${t(
'common.elysian-realm'
)}) - ${t('common.honkai-3rd')} - ${t('common.abyss-lab')}`}
description={`${t('common.elysian-realm')} ${t(
'elysian-realm.supports'
)}`}
/>
<Box p={3}>
<Breadcrumb
items={[
{ href: '/honkai3rd', label: t('common.honkai-3rd') },
{
href: '/honkai3rd/elysian-realm',
label: t('common.elysian-realm'),
},
{
href: '/honkai3rd/elysian-realm/remembrance-sigils',
label: t('elysian-realm.remembrance-sigil'),
},
]}
/>
<Heading as='h1' mb={3}>
{t('elysian-realm.remembrance-sigil')}
</Heading>
<Box sx={{ mb: 3 }}>
{remembranceSigils.map(({ id, name, description }) => {
return (
<Card key={id} sx={{ p: 2, mb: 2 }} id={id}>
<Flex>
<SquareImageBox
size={50}
alt={name}
src={`${assetsBucketBaseUrl}/honkai3rd/elysian-realm/remembrance-sigils/${id}.png`}
mr={2}
/>
<Box>
<Heading as='h3' mb={2}>
{name}
</Heading>
<Paragraph>{description}</Paragraph>
</Box>
</Flex>
</Card>
)
})}
</Box>
</Box>
</Honkai3rdLayout>
)
}
export default ElysianRealmIndexPage
export async function getStaticProps({ locale }: NextPageContext) {
const remembranceSigils = getRemembranceSigils(locale)
return {
props: {
remembranceSigils,
...(await getI18NProps(locale)),
},
}
}
@@ -54,7 +54,9 @@ const ElysianRealmIndexPage = ({
]}
/>
<Heading as='h1'>{t('elysian-realm.supports')}</Heading>
<Heading as='h1' mb={3}>
{t('elysian-realm.supports')}
</Heading>
<Box sx={{ mb: 3 }}>
{supportBattlesuits.map(
+21
View File
@@ -1,6 +1,8 @@
import { readFileSync, readJsonFileSync } from '../fs'
import {
PopulatedSignetGroup,
RemembranceSigil,
remembranceSigilIds,
SignetData,
signetGroups,
SignetSet,
@@ -147,6 +149,25 @@ export function getSupportBattlesuits(locale?: string) {
}
})
}
export function getRemembranceSigils(locale?: string) {
return remembranceSigilIds.map<RemembranceSigil>((sigilId) => {
const rawDataPathname =
locale === 'ko-KR'
? `honkai3rd/ko-KR/elysianRealm/remembranceSigils/${sigilId}.md`
: `honkai3rd/elysianRealm/remembranceSigils/${sigilId}.md`
const [name, ...descriptionLines] = readFileSync(rawDataPathname)
.toString()
.trim()
.slice(2)
.split('\n\n')
return {
id: sigilId,
name: name.trim(),
description: descriptionLines.join('\n').trim(),
}
})
}
function parseNormalSignetsRawData(setId: string, data: string) {
const signetSections = data.replace(/\\\*/g, '*').slice(2).split('\n# ')