Skip to content

Commit 0c1a8dc

Browse files
committed
split hector p3 out
1 parent e8fad17 commit 0c1a8dc

13 files changed

+989
-531
lines changed

wtfdig/src/routes/72/m7s/+page.svelte

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@
4747
}
4848
4949
const p3Urls: Record<string, any> = {
50-
'toxic': {name: 'Toxic P3', url: 'https://raidplan.io/plan/DEijc3hhq_CNGaRg'}
50+
'toxic': {name: 'Toxic P3', url: 'https://raidplan.io/plan/DEijc3hhq_CNGaRg'},
51+
'hector': {name: 'Hector P3', url: 'https://www.youtube.com/watch?v=fIYMPk54cJc&t=994s'}
5152
}
5253
5354
$effect(() => {
@@ -127,6 +128,7 @@
127128
phaseStratMech => {
128129
return {
129130
...phaseStratMech,
131+
description: getStratItem(phaseStratMech.description, phaseStrat.tag),
130132
imageUrl: getStratItem(phaseStratMech.imageUrl, phaseStrat.tag),
131133
strats: phaseStratMech.strats && phaseStratMech.strats.filter(strat => (strat.role === role && strat.party === party)).map(
132134
iStrat => {
@@ -153,7 +155,7 @@
153155
function getStratMechs(stratName: string){
154156
const stratMechs: Record<string, any> = {
155157
'toxic': {
156-
p2: 'toxic',
158+
p2: 'locked',
157159
p3: 'toxic',
158160
},
159161
'kindred': {
@@ -174,7 +176,7 @@
174176
function getOptionsString(stratName?: string, role?: Role, party?: number): string {
175177
if (!stratName || !role || !party) return '';
176178
const stratNames: Record<string, string> = {
177-
'toxic': 'Toxic Friends',
179+
'toxic': 'Toxic',
178180
'kindred': 'Kindred'
179181
}
180182
const jpRoleAbbrev: Record<string, string> = {
@@ -224,6 +226,9 @@
224226
if (stratState.p3 === 'toxic') {
225227
stratDiffs.push(`Toxic P3`);
226228
}
229+
if (stratState.p3 === 'hector') {
230+
stratDiffs.push(`Hector P3`);
231+
}
227232
}
228233
if (stratName === 'game8' && roleAbbrev !== jpRoleAbbrev[roleAbbrev]) {
229234
return `${stratNames[stratName]} - ${roleAbbrev}/${jpRoleAbbrev[roleAbbrev]}`;
@@ -285,7 +290,7 @@
285290
<div class="text-xl mb-2">Which P2/Seeds strat are you using?</div>
286291
</div>
287292
<Segment classes="flex-wrap" name="p2" value={stratState.p2} onValueChange={(e) => (setStratState('p2', e.value))}>
288-
<Segment.Item value="toxic">Toxic Friends</Segment.Item>
293+
<Segment.Item value="toxic">Toxic</Segment.Item>
289294
<Segment.Item value="bili">Bilibili</Segment.Item>
290295
<Segment.Item value="alpha">Alpha 1.0</Segment.Item>
291296
<Segment.Item value="alpha2">Alpha 2.0</Segment.Item>
@@ -301,7 +306,8 @@
301306
</div>
302307
<div>
303308
<Segment classes="flex-wrap shrink" name="p3" value={stratState.p3} onValueChange={(e) => (setStratState('p3', e.value))}>
304-
<Segment.Item value="toxic">Toxic Friends</Segment.Item>
309+
<Segment.Item value="toxic">Toxic</Segment.Item>
310+
<Segment.Item value="hector">Hector</Segment.Item>
305311
</Segment>
306312
</div>
307313
</div>
@@ -354,7 +360,7 @@
354360
</a>
355361
</div>
356362
{/if}
357-
{#if (stratState.p3 && p2Urls[stratState.p3])}
363+
{#if (stratState.p3 && p3Urls[stratState.p3])}
358364
<div>
359365
<a class="inline-flex items-center text-lg text-blue-600 dark:text-blue-500 hover:underline gap-1" target="_blank" rel="noopener noreferrer" href={p3Urls[stratState.p3].url}>{p3Urls[stratState.p3].name}
360366
<ExternalLink />

0 commit comments

Comments
 (0)