From aa2c71a206edcf46e47fa597af800258a5c97356 Mon Sep 17 00:00:00 2001
From: Sainan <63328889+Sainan@users.noreply.github.com>
Date: Mon, 23 Jun 2025 20:10:53 +0200
Subject: [PATCH] Add noDailyDealPurchaseLimit cheat
---
config.json.example | 1 +
src/services/configService.ts | 1 +
src/services/purchaseService.ts | 6 ++++--
static/webui/index.html | 4 ++++
static/webui/translations/de.js | 1 +
static/webui/translations/en.js | 1 +
static/webui/translations/es.js | 1 +
static/webui/translations/fr.js | 1 +
static/webui/translations/ru.js | 1 +
static/webui/translations/zh.js | 1 +
10 files changed, 16 insertions(+), 2 deletions(-)
diff --git a/config.json.example b/config.json.example
index de385b0f..72192079 100644
--- a/config.json.example
+++ b/config.json.example
@@ -39,6 +39,7 @@
"noArgonCrystalDecay": false,
"noMasteryRankUpCooldown": false,
"noVendorPurchaseLimits": false,
+ "noDailyDealPurchaseLimit": false,
"noDeathMarks": false,
"noKimCooldowns": false,
"fullyStockedVendors": false,
diff --git a/src/services/configService.ts b/src/services/configService.ts
index 8415ba15..f2111e4d 100644
--- a/src/services/configService.ts
+++ b/src/services/configService.ts
@@ -46,6 +46,7 @@ export interface IConfig {
noArgonCrystalDecay?: boolean;
noMasteryRankUpCooldown?: boolean;
noVendorPurchaseLimits?: boolean;
+ noDailyDealPurchaseLimit?: boolean;
noDeathMarks?: boolean;
noKimCooldowns?: boolean;
fullyStockedVendors?: boolean;
diff --git a/src/services/purchaseService.ts b/src/services/purchaseService.ts
index 2d8c238d..a49456a3 100644
--- a/src/services/purchaseService.ts
+++ b/src/services/purchaseService.ts
@@ -347,8 +347,10 @@ export const handleDailyDealPurchase = async (
updateCurrency(inventory, dailyDeal.SalePrice, true, purchaseResponse.InventoryChanges);
}
- inventory.UsedDailyDeals.push(purchaseParams.StoreItem);
- purchaseResponse.DailyDealUsed = purchaseParams.StoreItem;
+ if (!config.noDailyDealPurchaseLimit) {
+ inventory.UsedDailyDeals.push(purchaseParams.StoreItem);
+ purchaseResponse.DailyDealUsed = purchaseParams.StoreItem;
+ }
};
export const handleBundleAcqusition = async (
diff --git a/static/webui/index.html b/static/webui/index.html
index e7fba33c..a92ab0c0 100644
--- a/static/webui/index.html
+++ b/static/webui/index.html
@@ -692,6 +692,10 @@
+
+
+
+
diff --git a/static/webui/translations/de.js b/static/webui/translations/de.js
index b37c1972..6061d9e9 100644
--- a/static/webui/translations/de.js
+++ b/static/webui/translations/de.js
@@ -156,6 +156,7 @@ dict = {
cheats_noArgonCrystalDecay: `Argon-Kristalle verschwinden niemals`,
cheats_noMasteryRankUpCooldown: `Keine Wartezeit beim Meisterschaftsrangaufstieg`,
cheats_noVendorPurchaseLimits: `Keine Kaufbeschränkungen bei Händlern`,
+ cheats_noDailyDealPurchaseLimit: `[UNTRANSLATED] No Daily Deal Purchase Limit`,
cheats_noDeathMarks: `Keine Todesmarkierungen`,
cheats_noKimCooldowns: `Keine Wartezeit bei KIM`,
cheats_fullyStockedVendors: `[UNTRANSLATED] Fully Stocked Vendors`,
diff --git a/static/webui/translations/en.js b/static/webui/translations/en.js
index 5da381f4..4fd22cdd 100644
--- a/static/webui/translations/en.js
+++ b/static/webui/translations/en.js
@@ -155,6 +155,7 @@ dict = {
cheats_noArgonCrystalDecay: `No Argon Crystal Decay`,
cheats_noMasteryRankUpCooldown: `No Mastery Rank Up Cooldown`,
cheats_noVendorPurchaseLimits: `No Vendor Purchase Limits`,
+ cheats_noDailyDealPurchaseLimit: `No Daily Deal Purchase Limit`,
cheats_noDeathMarks: `No Death Marks`,
cheats_noKimCooldowns: `No KIM Cooldowns`,
cheats_fullyStockedVendors: `Fully Stocked Vendors`,
diff --git a/static/webui/translations/es.js b/static/webui/translations/es.js
index 1a85f6de..0489c870 100644
--- a/static/webui/translations/es.js
+++ b/static/webui/translations/es.js
@@ -156,6 +156,7 @@ dict = {
cheats_noArgonCrystalDecay: `Sin descomposición de cristal de Argón`,
cheats_noMasteryRankUpCooldown: `Sin tiempo de espera para rango de maestría`,
cheats_noVendorPurchaseLimits: `Sin límite de compras de vendedores`,
+ cheats_noDailyDealPurchaseLimit: `[UNTRANSLATED] No Daily Deal Purchase Limit`,
cheats_noDeathMarks: `Sin marcas de muerte`,
cheats_noKimCooldowns: `Sin tiempo de espera para conversaciones KIM`,
cheats_fullyStockedVendors: `[UNTRANSLATED] Fully Stocked Vendors`,
diff --git a/static/webui/translations/fr.js b/static/webui/translations/fr.js
index fffbdab0..fc0d6381 100644
--- a/static/webui/translations/fr.js
+++ b/static/webui/translations/fr.js
@@ -156,6 +156,7 @@ dict = {
cheats_noArgonCrystalDecay: `Aucune désintégration des Cristaux d'Argon`,
cheats_noMasteryRankUpCooldown: `Aucune attente pour la montée de rang de maîtrise`,
cheats_noVendorPurchaseLimits: `Aucune limite d'achat chez les PNJ`,
+ cheats_noDailyDealPurchaseLimit: `[UNTRANSLATED] No Daily Deal Purchase Limit`,
cheats_noDeathMarks: `Aucune marque d'assassin`,
cheats_noKimCooldowns: `Aucun cooldown sur le KIM`,
cheats_fullyStockedVendors: `[UNTRANSLATED] Fully Stocked Vendors`,
diff --git a/static/webui/translations/ru.js b/static/webui/translations/ru.js
index d2b3ebb6..be1f388f 100644
--- a/static/webui/translations/ru.js
+++ b/static/webui/translations/ru.js
@@ -156,6 +156,7 @@ dict = {
cheats_noArgonCrystalDecay: `Без распада аргоновых кристаллов`,
cheats_noMasteryRankUpCooldown: `Повышение ранга мастерства без кулдауна`,
cheats_noVendorPurchaseLimits: `Отсутствие лимитов на покупки у вендоров`,
+ cheats_noDailyDealPurchaseLimit: `[UNTRANSLATED] No Daily Deal Purchase Limit`,
cheats_noDeathMarks: `Без меток сметри`,
cheats_noKimCooldowns: `Чаты KIM без кулдауна`,
cheats_fullyStockedVendors: `[UNTRANSLATED] Fully Stocked Vendors`,
diff --git a/static/webui/translations/zh.js b/static/webui/translations/zh.js
index b2c64c54..2ea66441 100644
--- a/static/webui/translations/zh.js
+++ b/static/webui/translations/zh.js
@@ -156,6 +156,7 @@ dict = {
cheats_noArgonCrystalDecay: `氩结晶无衰变`,
cheats_noMasteryRankUpCooldown: `段位考核无冷却时间`,
cheats_noVendorPurchaseLimits: `商城或商人无购买限制`,
+ cheats_noDailyDealPurchaseLimit: `[UNTRANSLATED] No Daily Deal Purchase Limit`,
cheats_noDeathMarks: `无死亡标记(不会被 Stalker/Grustrag 三霸/Zanuka 猎人等标记)`,
cheats_noKimCooldowns: `无 KIM 冷却时间`,
cheats_fullyStockedVendors: `[UNTRANSLATED] Fully Stocked Vendors`,