diff --git a/config.json.example b/config.json.example index 068cd8b7..d7f0d854 100644 --- a/config.json.example +++ b/config.json.example @@ -39,6 +39,7 @@ "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 1a4784ad..adf015a5 100644 --- a/src/services/configService.ts +++ b/src/services/configService.ts @@ -46,6 +46,7 @@ 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 7c8b7871..4167df9e 100644 --- a/src/services/purchaseService.ts +++ b/src/services/purchaseService.ts @@ -349,8 +349,10 @@ export const handleDailyDealPurchase = async ( updateCurrency(inventory, dailyDeal.SalePrice, true, purchaseResponse.InventoryChanges); } - inventory.UsedDailyDeals.push(purchaseParams.StoreItem); - purchaseResponse.DailyDealUsed = purchaseParams.StoreItem; + if (!config.noDarvoDealPurchaseLimit) { + 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 caf7be01..5f515204 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 a56103b6..c2faa5f2 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_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 36d38301..d4390e6d 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_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 3fbb7bf1..ff992ce3 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_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 a52f5bef..0aa160b0 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_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 26fef974..14cd62da 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_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 e0ba1ff1..b989a2d9 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_noDarvoDealPurchaseLimit: `[UNTRANSLATED] No Darvo Deal Purchase Limit`, cheats_noDeathMarks: `无死亡标记(不会被 Stalker/Grustrag 三霸/Zanuka 猎人等标记)`, cheats_noKimCooldowns: `即时通无冷却时间`, cheats_fullyStockedVendors: `商人贩卖所有商品`,