From 75ae5449916198f633baa2bce83a89043a322d21 Mon Sep 17 00:00:00 2001 From: Sainan <63328889+Sainan@users.noreply.github.com> Date: Wed, 2 Jul 2025 06:43:37 +0200 Subject: [PATCH 1/2] feat: relic rng cheats --- src/helpers/relicHelper.ts | 9 ++++++++- src/services/configService.ts | 3 +++ static/webui/index.html | 12 ++++++++++++ static/webui/translations/en.js | 3 +++ 4 files changed, 26 insertions(+), 1 deletion(-) diff --git a/src/helpers/relicHelper.ts b/src/helpers/relicHelper.ts index 03b0e9c9..6889514e 100644 --- a/src/helpers/relicHelper.ts +++ b/src/helpers/relicHelper.ts @@ -14,7 +14,14 @@ export const crackRelic = async ( inventoryChanges: IInventoryChanges = {} ): Promise => { const relic = ExportRelics[participant.VoidProjection]; - const weights = refinementToWeights[relic.quality]; + let weights = refinementToWeights[relic.quality]; + if (relic.quality == "VPQ_SILVER" && config.exceptionalRelicsAlwaysGiveBronzeReward) { + weights = { COMMON: 1, UNCOMMON: 0, RARE: 0, LEGENDARY: 0 }; + } else if (relic.quality == "VPQ_GOLD" && config.flawlessRelicsAlwaysGiveSilverReward) { + weights = { COMMON: 0, UNCOMMON: 1, RARE: 0, LEGENDARY: 0 }; + } else if (relic.quality == "VPQ_PLATINUM" && config.radiantRelicsAlwaysGiveGoldReward) { + weights = { COMMON: 0, UNCOMMON: 0, RARE: 1, LEGENDARY: 0 }; + } logger.debug(`opening a relic of quality ${relic.quality}; rarity weights are`, weights); const reward = getRandomWeightedReward( ExportRewards[relic.rewardManifest][0] as { type: string; itemCount: number; rarity: TRarity }[], // rarity is nullable in PE+ typings, but always present for relics diff --git a/src/services/configService.ts b/src/services/configService.ts index aa649dd5..6b20c91d 100644 --- a/src/services/configService.ts +++ b/src/services/configService.ts @@ -64,6 +64,9 @@ export interface IConfig { noDojoResearchTime?: boolean; fastClanAscension?: boolean; missionsCanGiveAllRelics?: boolean; + exceptionalRelicsAlwaysGiveBronzeReward?: boolean; + flawlessRelicsAlwaysGiveSilverReward?: boolean; + radiantRelicsAlwaysGiveGoldReward?: boolean; unlockAllSimarisResearchEntries?: boolean; disableDailyTribute?: boolean; spoofMasteryRank?: number; diff --git a/static/webui/index.html b/static/webui/index.html index 80493572..66309c9d 100644 --- a/static/webui/index.html +++ b/static/webui/index.html @@ -778,6 +778,18 @@ +
+ + +
+
+ + +
+
+ + +
diff --git a/static/webui/translations/en.js b/static/webui/translations/en.js index 65594d49..225277ae 100644 --- a/static/webui/translations/en.js +++ b/static/webui/translations/en.js @@ -181,6 +181,9 @@ dict = { cheats_noDojoResearchTime: `No Dojo Research Time`, cheats_fastClanAscension: `Fast Clan Ascension`, cheats_missionsCanGiveAllRelics: `Missions Can Give All Relics`, + cheats_exceptionalRelicsAlwaysGiveBronzeReward: `Exceptional Relics Always Give Bronze Reward`, + cheats_flawlessRelicsAlwaysGiveSilverReward: `Flawless Relics Always Give Silver Reward`, + cheats_radiantRelicsAlwaysGiveGoldReward: `Radiant Relics Always Give Gold Reward`, cheats_unlockAllSimarisResearchEntries: `Unlock All Simaris Research Entries`, cheats_disableDailyTribute: `Disable Daily Tribute`, cheats_spoofMasteryRank: `Spoofed Mastery Rank (-1 to disable)`, -- 2.47.2 From 99e3b012ecda3e21ba9b4549f17c88b012f9dc39 Mon Sep 17 00:00:00 2001 From: Sainan <63328889+Sainan@users.noreply.github.com> Date: Wed, 2 Jul 2025 06:44:08 +0200 Subject: [PATCH 2/2] update-translations --- static/webui/translations/de.js | 3 +++ static/webui/translations/es.js | 3 +++ static/webui/translations/fr.js | 3 +++ static/webui/translations/ru.js | 3 +++ static/webui/translations/zh.js | 3 +++ 5 files changed, 15 insertions(+) diff --git a/static/webui/translations/de.js b/static/webui/translations/de.js index 73d78a66..002f7540 100644 --- a/static/webui/translations/de.js +++ b/static/webui/translations/de.js @@ -182,6 +182,9 @@ dict = { cheats_noDojoResearchTime: `Keine Dojo-Forschungszeit`, cheats_fastClanAscension: `Schneller Clan-Aufstieg`, cheats_missionsCanGiveAllRelics: `[UNTRANSLATED] Missions Can Give All Relics`, + cheats_exceptionalRelicsAlwaysGiveBronzeReward: `[UNTRANSLATED] Exceptional Relics Always Give Bronze Reward`, + cheats_flawlessRelicsAlwaysGiveSilverReward: `[UNTRANSLATED] Flawless Relics Always Give Silver Reward`, + cheats_radiantRelicsAlwaysGiveGoldReward: `[UNTRANSLATED] Radiant Relics Always Give Gold Reward`, cheats_unlockAllSimarisResearchEntries: `[UNTRANSLATED] Unlock All Simaris Research Entries`, cheats_disableDailyTribute: `[UNTRANSLATED] Disable Daily Tribute`, cheats_spoofMasteryRank: `Gefälschter Meisterschaftsrang (-1 zum deaktivieren)`, diff --git a/static/webui/translations/es.js b/static/webui/translations/es.js index 7b480e61..7f515af7 100644 --- a/static/webui/translations/es.js +++ b/static/webui/translations/es.js @@ -182,6 +182,9 @@ dict = { cheats_noDojoResearchTime: `Sin tiempo de investigación del dojo`, cheats_fastClanAscension: `Ascenso rápido del clan`, cheats_missionsCanGiveAllRelics: `Las misiones pueden otorgar todas las reliquias`, + cheats_exceptionalRelicsAlwaysGiveBronzeReward: `[UNTRANSLATED] Exceptional Relics Always Give Bronze Reward`, + cheats_flawlessRelicsAlwaysGiveSilverReward: `[UNTRANSLATED] Flawless Relics Always Give Silver Reward`, + cheats_radiantRelicsAlwaysGiveGoldReward: `[UNTRANSLATED] Radiant Relics Always Give Gold Reward`, cheats_unlockAllSimarisResearchEntries: `Desbloquear todas las entradas de investigación de Simaris`, cheats_disableDailyTribute: `Desactivar tributo diario`, cheats_spoofMasteryRank: `Rango de maestría simulado (-1 para desactivar)`, diff --git a/static/webui/translations/fr.js b/static/webui/translations/fr.js index ef70cd6e..71279c73 100644 --- a/static/webui/translations/fr.js +++ b/static/webui/translations/fr.js @@ -182,6 +182,9 @@ dict = { cheats_noDojoResearchTime: `Aucun temps de recherche (Dojo)`, cheats_fastClanAscension: `Ascension de clan rapide`, cheats_missionsCanGiveAllRelics: `Les missions donnent toutes les reliques`, + cheats_exceptionalRelicsAlwaysGiveBronzeReward: `[UNTRANSLATED] Exceptional Relics Always Give Bronze Reward`, + cheats_flawlessRelicsAlwaysGiveSilverReward: `[UNTRANSLATED] Flawless Relics Always Give Silver Reward`, + cheats_radiantRelicsAlwaysGiveGoldReward: `[UNTRANSLATED] Radiant Relics Always Give Gold Reward`, cheats_unlockAllSimarisResearchEntries: `Débloquer toute les recherches chez Simaris`, cheats_disableDailyTribute: `[UNTRANSLATED] Disable Daily Tribute`, cheats_spoofMasteryRank: `Rang de maîtrise personnalisé (-1 pour désactiver)`, diff --git a/static/webui/translations/ru.js b/static/webui/translations/ru.js index 7f594867..36dc69d3 100644 --- a/static/webui/translations/ru.js +++ b/static/webui/translations/ru.js @@ -182,6 +182,9 @@ dict = { cheats_noDojoResearchTime: `Мгновенные Исследование Додзё`, cheats_fastClanAscension: `Мгновенное Вознесение Клана`, cheats_missionsCanGiveAllRelics: `[UNTRANSLATED] Missions Can Give All Relics`, + cheats_exceptionalRelicsAlwaysGiveBronzeReward: `[UNTRANSLATED] Exceptional Relics Always Give Bronze Reward`, + cheats_flawlessRelicsAlwaysGiveSilverReward: `[UNTRANSLATED] Flawless Relics Always Give Silver Reward`, + cheats_radiantRelicsAlwaysGiveGoldReward: `[UNTRANSLATED] Radiant Relics Always Give Gold Reward`, cheats_unlockAllSimarisResearchEntries: `[UNTRANSLATED] Unlock All Simaris Research Entries`, cheats_disableDailyTribute: `[UNTRANSLATED] Disable Daily Tribute`, cheats_spoofMasteryRank: `Подделанный ранг мастерства (-1 для отключения)`, diff --git a/static/webui/translations/zh.js b/static/webui/translations/zh.js index f5c9e759..d1cb95bb 100644 --- a/static/webui/translations/zh.js +++ b/static/webui/translations/zh.js @@ -182,6 +182,9 @@ dict = { cheats_noDojoResearchTime: `无视道场研究时间`, cheats_fastClanAscension: `快速升级氏族`, cheats_missionsCanGiveAllRelics: `任务可获取所有遗物`, + cheats_exceptionalRelicsAlwaysGiveBronzeReward: `[UNTRANSLATED] Exceptional Relics Always Give Bronze Reward`, + cheats_flawlessRelicsAlwaysGiveSilverReward: `[UNTRANSLATED] Flawless Relics Always Give Silver Reward`, + cheats_radiantRelicsAlwaysGiveGoldReward: `[UNTRANSLATED] Radiant Relics Always Give Gold Reward`, cheats_unlockAllSimarisResearchEntries: `解锁所有Simaris研究条目`, cheats_disableDailyTribute: `禁用每日登录奖励`, cheats_spoofMasteryRank: `伪造精通段位(-1为禁用)`, -- 2.47.2