Skip to content

Commit be160bd

Browse files
authored
Merge pull request #1801 from ThingEngineering/main
Deploy
2 parents 4258646 + 1e738e1 commit be160bd

7 files changed

Lines changed: 32 additions & 1 deletion

File tree

apps/frontend/data/professions/mining.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ export const dragonflightMining: TaskProfession = {
212212
questId: 72164,
213213
},
214214
{
215-
itemId: 198841, // Large Sample of Curious Hide
215+
itemId: 201301, // Iridescent Ore
216216
questId: 72165,
217217
},
218218
],

apps/frontend/data/tasks/11-midnight/12-0.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ import { DbResetType } from '@/shared/stores/db/enums';
55
import { dynamicDataStore } from '@/user-home/stores/dynamicData';
66
import type { Character } from '@/types';
77
import type { Chore, Task } from '@/types/tasks';
8+
import { twoWeekDecorator } from './utils';
9+
import { customResetPeriod } from '../custom-reset-period';
810

911
const specialAssignmentUnlocks = [
1012
94865, // Special Assignment: What Remains of a Temple Broken
@@ -92,6 +94,8 @@ export const midChores12_0: Task = {
9294
name: 'Hope/Unity',
9395
icon: aliasedIcons.planet,
9496
questReset: DbResetType.Weekly,
97+
customExpiryFunc: (char, scannedAt) => customResetPeriod(char, scannedAt, 1079, 2),
98+
decorationFunc: twoWeekDecorator,
9599
subChoresAnyOrder: true,
96100
subChores: [
97101
{

apps/frontend/data/tasks/11-midnight/12-1.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import { nthActiveQuest } from '@/utils/tasks/nth-active-quest';
44
import type { Task } from '@/types/tasks';
55

66
import { specialAssignmentFunc } from './12-0';
7+
import { customResetPeriod } from '../custom-reset-period';
8+
import { twoWeekDecorator } from './utils';
79

810
const specialAssignmentUnlocks = [
911
96492, // Special Assignment: Demand and Supply
@@ -35,6 +37,8 @@ export const midChores12_1: Task = {
3537
minimumLevel: 90,
3638
questReset: DbResetType.Weekly,
3739
questIds: [98172],
40+
customExpiryFunc: (char, scannedAt) => customResetPeriod(char, scannedAt, 1078, 2),
41+
decorationFunc: twoWeekDecorator,
3842
},
3943
{
4044
key: 'curseSurge',
@@ -52,6 +56,14 @@ export const midChores12_1: Task = {
5256
questReset: DbResetType.Weekly,
5357
questIds: [95520],
5458
},
59+
{
60+
key: 'ancientFoe',
61+
name: 'Ancient Foe',
62+
icon: iconLibrary.gameDeathSkull,
63+
minimumLevel: 90,
64+
questReset: DbResetType.Weekly,
65+
questIds: [97768],
66+
},
5567
{
5668
key: 'vaultDailies',
5769
name: 'Vault Dailies',
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { timeState } from '@/shared/state/time.svelte';
2+
import type { DateTime } from 'luxon';
3+
4+
export const twoWeekDecorator = (expires: DateTime) => {
5+
const daysRemaining = expires.diff(timeState.slowTime).toMillis() / 1000 / 86400;
6+
if (daysRemaining < 7) {
7+
return 'decorator-warn';
8+
} else {
9+
return 'decorator-success';
10+
}
11+
};

apps/frontend/data/tasks/pvp/weekly.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ export const pvpWeekly: Task = {
5050
{
5151
key: 'pvpSparks',
5252
name: '[PvP] Sparks of War',
53+
icon: ':stars::swords:',
5354
questIds: [
5455
93423, // Sparks of War: Eversong
5556
93424, // Sparks of War: Zul'Aman

apps/frontend/shared/icons/library.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ export { default as gameSmallFire } from '~icons/game-icons/small-fire';
8585
export { default as gameSpellBook } from '~icons/game-icons/spell-book';
8686
export { default as gameSpiderFace } from '~icons/game-icons/spider-face';
8787
export { default as gameSpikedDragonHead } from '~icons/game-icons/spiked-dragon-head';
88+
export { default as gameStarsStack } from '~icons/game-icons/stars-stack';
8889
export { default as gameStaryu } from '~icons/game-icons/staryu';
8990
export { default as gameStopwatch } from '~icons/game-icons/stopwatch';
9091
export { default as gameStrongbox } from '~icons/game-icons/strongbox';

apps/frontend/shared/icons/ui.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ export const aliasedIcons = {
4545
planet: iconLibrary.mdiPlanet,
4646
rose: iconLibrary.notoRose,
4747
snowflake: iconLibrary.notoSnowflake,
48+
stars: iconLibrary.gameStarsStack,
49+
swords: iconLibrary.gameCrossedSwords,
4850
sun: iconLibrary.notoSunWithFace,
4951
water: iconLibrary.notoWaterWave,
5052
};

0 commit comments

Comments
 (0)