XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

XFESpaceNinjaServer

A simple server for a small space ninja game

公开
关注 0 Fork 0 Star 0
返回提交历史

XFEstudio/XFESpaceNinjaServer

feat: dontSubtractVoidTraces cheat (#2055)

Closes #2051 Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/2055 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>

3e1e19d6
Sainan <63328889+Sainan@users.noreply.github.com>
提交于

代码差异

10 个文件 +16 -1
Modified config.json.example +1 -0
@@ -20,6 +20,7 @@
20 20 "infiniteRegalAya": false,
21 21 "infiniteHelminthMaterials": false,
22 22 "claimingBlueprintRefundsIngredients": false,
23 "dontSubtractVoidTraces": false,
23 24 "dontSubtractConsumables": false,
24 25 "unlockAllShipFeatures": false,
25 26 "unlockAllShipDecorations": false,
Modified src/controllers/api/projectionManagerController.ts +4 -1
@@ -2,13 +2,16 @@ import { RequestHandler } from "express";
2 2 import { getAccountIdForRequest } from "@/src/services/loginService";
3 3 import { addMiscItems, getInventory } from "@/src/services/inventoryService";
4 4 import { ExportRelics, IRelic } from "warframe-public-export-plus";
5 import { config } from "@/src/services/configService";
5 6
6 7 export const projectionManagerController: RequestHandler = async (req, res) => {
7 8 const accountId = await getAccountIdForRequest(req);
8 9 const inventory = await getInventory(accountId);
9 10 const request = JSON.parse(String(req.body)) as IProjectionUpgradeRequest;
10 11 const [era, category, currentQuality] = parseProjection(request.projectionType);
11 const upgradeCost = (request.qualityTag - qualityKeywordToNumber[currentQuality]) * 25;
12 const upgradeCost = config.dontSubtractVoidTraces
13 ? 0
14 : (request.qualityTag - qualityKeywordToNumber[currentQuality]) * 25;
12 15 const newProjectionType = findProjection(era, category, qualityNumberToKeyword[request.qualityTag]);
13 16 addMiscItems(inventory, [
14 17 {
Modified src/services/configService.ts +1 -0
@@ -25,6 +25,7 @@ interface IConfig {
25 25 infiniteRegalAya?: boolean;
26 26 infiniteHelminthMaterials?: boolean;
27 27 claimingBlueprintRefundsIngredients?: boolean;
28 dontSubtractVoidTraces?: boolean;
28 29 dontSubtractConsumables?: boolean;
29 30 unlockAllShipFeatures?: boolean;
30 31 unlockAllShipDecorations?: boolean;
Modified static/webui/index.html +4 -0
@@ -598,6 +598,10 @@
598 598 <input class="form-check-input" type="checkbox" id="infiniteHelminthMaterials" />
599 599 <label class="form-check-label" for="infiniteHelminthMaterials" data-loc="cheats_infiniteHelminthMaterials"></label>
600 600 </div>
601 <div class="form-check">
602 <input class="form-check-input" type="checkbox" id="dontSubtractVoidTraces" />
603 <label class="form-check-label" for="dontSubtractVoidTraces" data-loc="cheats_dontSubtractVoidTraces"></label>
604 </div>
601 605 <div class="form-check">
602 606 <input class="form-check-input" type="checkbox" id="dontSubtractConsumables" />
603 607 <label class="form-check-label" for="dontSubtractConsumables" data-loc="cheats_dontSubtractConsumables"></label>
Modified static/webui/translations/de.js +1 -0
@@ -132,6 +132,7 @@ dict = {
132 132 cheats_infiniteRegalAya: `Unendlich Reines Aya`,
133 133 cheats_infiniteHelminthMaterials: `Unendlich Helminth-Materialien`,
134 134 cheats_claimingBlueprintRefundsIngredients: `Fertige Blaupausen erstatten Ressourcen zurück`,
135 cheats_dontSubtractVoidTraces: `[UNTRANSLATED] Don't Subtract Void Traces`,
135 136 cheats_dontSubtractConsumables: `Verbrauchsgegenstände (Ausrüstung) nicht verbrauchen`,
136 137 cheats_unlockAllShipFeatures: `Alle Schiffs-Funktionen freischalten`,
137 138 cheats_unlockAllShipDecorations: `Alle Schiffsdekorationen freischalten`,
Modified static/webui/translations/en.js +1 -0
@@ -131,6 +131,7 @@ dict = {
131 131 cheats_infiniteRegalAya: `Infinite Regal Aya`,
132 132 cheats_infiniteHelminthMaterials: `Infinite Helminth Materials`,
133 133 cheats_claimingBlueprintRefundsIngredients: `Claiming Blueprint Refunds Ingredients`,
134 cheats_dontSubtractVoidTraces: `Don't Subtract Void Traces`,
134 135 cheats_dontSubtractConsumables: `Don't Subtract Consumables`,
135 136 cheats_unlockAllShipFeatures: `Unlock All Ship Features`,
136 137 cheats_unlockAllShipDecorations: `Unlock All Ship Decorations`,
Modified static/webui/translations/es.js +1 -0
@@ -132,6 +132,7 @@ dict = {
132 132 cheats_infiniteRegalAya: `Aya Real infinita`,
133 133 cheats_infiniteHelminthMaterials: `Materiales Helminto infinitos`,
134 134 cheats_claimingBlueprintRefundsIngredients: `Reclamar ingredientes devueltos por planos`,
135 cheats_dontSubtractVoidTraces: `[UNTRANSLATED] Don't Subtract Void Traces`,
135 136 cheats_dontSubtractConsumables: `No restar consumibles`,
136 137 cheats_unlockAllShipFeatures: `Desbloquear todas las funciones de nave`,
137 138 cheats_unlockAllShipDecorations: `Desbloquear todas las decoraciones de nave`,
Modified static/webui/translations/fr.js +1 -0
@@ -132,6 +132,7 @@ dict = {
132 132 cheats_infiniteRegalAya: `Aya Raffiné infini`,
133 133 cheats_infiniteHelminthMaterials: `Ressources d'Helminth infinies`,
134 134 cheats_claimingBlueprintRefundsIngredients: `[UNTRANSLATED] Claiming Blueprint Refunds Ingredients`,
135 cheats_dontSubtractVoidTraces: `[UNTRANSLATED] Don't Subtract Void Traces`,
135 136 cheats_dontSubtractConsumables: `[UNTRANSLATED] Don't Subtract Consumables`,
136 137 cheats_unlockAllShipFeatures: `Débloquer tous les segments du vaisseau`,
137 138 cheats_unlockAllShipDecorations: `Débloquer toutes les décorations du vaisseau`,
Modified static/webui/translations/ru.js +1 -0
@@ -132,6 +132,7 @@ dict = {
132 132 cheats_infiniteRegalAya: `Бесконечная Королевская Айя`,
133 133 cheats_infiniteHelminthMaterials: `Бесконечные Выделения Гельминта`,
134 134 cheats_claimingBlueprintRefundsIngredients: `[UNTRANSLATED] Claiming Blueprint Refunds Ingredients`,
135 cheats_dontSubtractVoidTraces: `[UNTRANSLATED] Don't Subtract Void Traces`,
135 136 cheats_dontSubtractConsumables: `Не уменьшать количество расходников`,
136 137 cheats_unlockAllShipFeatures: `Разблокировать все функции корабля`,
137 138 cheats_unlockAllShipDecorations: `Разблокировать все украшения корабля`,
Modified static/webui/translations/zh.js +1 -0
@@ -132,6 +132,7 @@ dict = {
132 132 cheats_infiniteRegalAya: `无限御品阿耶`,
133 133 cheats_infiniteHelminthMaterials: `无限Helminth材料`,
134 134 cheats_claimingBlueprintRefundsIngredients: `[UNTRANSLATED] Claiming Blueprint Refunds Ingredients`,
135 cheats_dontSubtractVoidTraces: `[UNTRANSLATED] Don't Subtract Void Traces`,
135 136 cheats_dontSubtractConsumables: `[UNTRANSLATED] Don't Subtract Consumables`,
136 137 cheats_unlockAllShipFeatures: `解锁所有飞船功能`,
137 138 cheats_unlockAllShipDecorations: `解锁所有飞船装饰`,