From 7f04dc69c1486fe23b01caae8d0b00f617b4f458 Mon Sep 17 00:00:00 2001
From: Sainan <63328889+Sainan@users.noreply.github.com>
Date: Sat, 28 Jun 2025 06:26:02 +0200
Subject: [PATCH] Revert "Add noDarvoDealPurchaseLimit 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, 2 insertions(+), 16 deletions(-)
diff --git a/config.json.example b/config.json.example
index 8d8dcc96..85d2dcd7 100644
--- a/config.json.example
+++ b/config.json.example
@@ -39,7 +39,6 @@
"noArgonCrystalDecay": false,
"noMasteryRankUpCooldown": false,
"noVendorPurchaseLimits": false,
- "noDarvoDealPurchaseLimit": false,
"noDeathMarks": false,
"noKimCooldowns": false,
"fullyStockedVendors": false,
diff --git a/src/services/configService.ts b/src/services/configService.ts
index 7e5db77f..7e30a94b 100644
--- a/src/services/configService.ts
+++ b/src/services/configService.ts
@@ -46,7 +46,6 @@ export interface IConfig {
noArgonCrystalDecay?: boolean;
noMasteryRankUpCooldown?: boolean;
noVendorPurchaseLimits?: boolean;
- noDarvoDealPurchaseLimit?: boolean;
noDeathMarks?: boolean;
noKimCooldowns?: boolean;
fullyStockedVendors?: boolean;
diff --git a/src/services/purchaseService.ts b/src/services/purchaseService.ts
index 8d05ebc1..81ffb342 100644
--- a/src/services/purchaseService.ts
+++ b/src/services/purchaseService.ts
@@ -349,10 +349,8 @@ export const handleDailyDealPurchase = async (
updateCurrency(inventory, dailyDeal.SalePrice, true, purchaseResponse.InventoryChanges);
}
- if (!config.noDarvoDealPurchaseLimit) {
- inventory.UsedDailyDeals.push(purchaseParams.StoreItem);
- purchaseResponse.DailyDealUsed = purchaseParams.StoreItem;
- }
+ 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 d68ffe9d..86e4d861 100644
--- a/static/webui/index.html
+++ b/static/webui/index.html
@@ -692,10 +692,6 @@
-
-
-
-
diff --git a/static/webui/translations/de.js b/static/webui/translations/de.js
index a03903d9..44f57f5b 100644
--- a/static/webui/translations/de.js
+++ b/static/webui/translations/de.js
@@ -156,7 +156,6 @@ dict = {
cheats_noArgonCrystalDecay: `Argon-Kristalle verschwinden niemals`,
cheats_noMasteryRankUpCooldown: `Keine Wartezeit beim Meisterschaftsrangaufstieg`,
cheats_noVendorPurchaseLimits: `Keine Kaufbeschränkungen bei Händlern`,
- cheats_noDarvoDealPurchaseLimit: `[UNTRANSLATED] No Darvo 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 3ac206e1..faf15aa1 100644
--- a/static/webui/translations/en.js
+++ b/static/webui/translations/en.js
@@ -155,7 +155,6 @@ dict = {
cheats_noArgonCrystalDecay: `No Argon Crystal Decay`,
cheats_noMasteryRankUpCooldown: `No Mastery Rank Up Cooldown`,
cheats_noVendorPurchaseLimits: `No Vendor Purchase Limits`,
- cheats_noDarvoDealPurchaseLimit: `No Darvo 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 bbb6d440..ca9a62f6 100644
--- a/static/webui/translations/es.js
+++ b/static/webui/translations/es.js
@@ -156,7 +156,6 @@ 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_noDarvoDealPurchaseLimit: `[UNTRANSLATED] No Darvo Deal Purchase Limit`,
cheats_noDeathMarks: `Sin marcas de muerte`,
cheats_noKimCooldowns: `Sin tiempo de espera para conversaciones KIM`,
cheats_fullyStockedVendors: `Vendedores con stock completo`,
diff --git a/static/webui/translations/fr.js b/static/webui/translations/fr.js
index 1fbc056d..32524abb 100644
--- a/static/webui/translations/fr.js
+++ b/static/webui/translations/fr.js
@@ -156,7 +156,6 @@ 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_noDarvoDealPurchaseLimit: `[UNTRANSLATED] No Darvo Deal Purchase Limit`,
cheats_noDeathMarks: `Aucune marque d'assassin`,
cheats_noKimCooldowns: `Aucun cooldown sur le KIM`,
cheats_fullyStockedVendors: `Les vendeurs ont un stock à 100%`,
diff --git a/static/webui/translations/ru.js b/static/webui/translations/ru.js
index cae7818f..dd6833fc 100644
--- a/static/webui/translations/ru.js
+++ b/static/webui/translations/ru.js
@@ -156,7 +156,6 @@ dict = {
cheats_noArgonCrystalDecay: `Без распада аргоновых кристаллов`,
cheats_noMasteryRankUpCooldown: `Повышение ранга мастерства без кулдауна`,
cheats_noVendorPurchaseLimits: `Отсутствие лимитов на покупки у вендоров`,
- cheats_noDarvoDealPurchaseLimit: `[UNTRANSLATED] No Darvo 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 e644acd1..34b240e9 100644
--- a/static/webui/translations/zh.js
+++ b/static/webui/translations/zh.js
@@ -156,7 +156,6 @@ dict = {
cheats_noArgonCrystalDecay: `氩结晶无衰变`,
cheats_noMasteryRankUpCooldown: `段位考核无冷却时间`,
cheats_noVendorPurchaseLimits: `商城或商人无购买限制`,
- cheats_noDarvoDealPurchaseLimit: `[UNTRANSLATED] No Darvo Deal Purchase Limit`,
cheats_noDeathMarks: `无死亡标记(不会被 Stalker/Grustrag 三霸/Zanuka 猎人等标记)`,
cheats_noKimCooldowns: `即时通无冷却时间`,
cheats_fullyStockedVendors: `商人贩卖所有商品`,