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: noBlessingCooldown cheat (#3166)

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

9dce72f7
Sainan <63328889+Sainan@users.noreply.github.com>
提交于

代码差异

11 个文件 +15 -2
Modified src/controllers/api/hubBlessingController.ts +2 -2
@@ -14,8 +14,8 @@ export const hubBlessingController: RequestHandler = async (req, res) => {
14 14 if (req.query.mode == "send") {
15 15 const boosterType = ExportBoosters[data.booster!].typeName;
16 16
17 const inventory = await getInventory(accountId, "BlessingCooldown Boosters");
18 inventory.BlessingCooldown = new Date(Date.now() + 23 * unixTimesInMs.hour);
17 const inventory = await getInventory(accountId, "noBlessingCooldown BlessingCooldown Boosters");
18 inventory.BlessingCooldown = new Date(inventory.noBlessingCooldown ? 0 : Date.now() + 23 * unixTimesInMs.hour);
19 19 addBooster(boosterType, 3 * 3600, inventory); // unfaithful for < U41 but correct for >= U41 afaict. Either way, needed for blessings to work without a (full) HUB server.
20 20 await inventory.save();
21 21
Modified src/models/inventoryModels/inventoryModel.ts +1 -0
@@ -1540,6 +1540,7 @@ const inventorySchema = new Schema<IInventoryDatabase, InventoryDocumentProps>(
1540 1540 noVendorPurchaseLimits: Boolean,
1541 1541 noDeathMarks: Boolean,
1542 1542 noKimCooldowns: Boolean,
1543 noBlessingCooldown: Boolean,
1543 1544 claimingBlueprintRefundsIngredients: Boolean,
1544 1545 instantResourceExtractorDrones: Boolean,
1545 1546 noResourceExtractorDronesDamage: Boolean,
Modified src/types/inventoryTypes/inventoryTypes.ts +1 -0
@@ -57,6 +57,7 @@ export interface IAccountCheats {
57 57 noVendorPurchaseLimits?: boolean;
58 58 noDeathMarks?: boolean;
59 59 noKimCooldowns?: boolean;
60 noBlessingCooldown?: boolean;
60 61 claimingBlueprintRefundsIngredients?: boolean;
61 62 instantResourceExtractorDrones?: boolean;
62 63 noResourceExtractorDronesDamage?: boolean;
Modified static/webui/index.html +4 -0
@@ -1065,6 +1065,10 @@
1065 1065 <input class="form-check-input" type="checkbox" id="noKimCooldowns" />
1066 1066 <label class="form-check-label" for="noKimCooldowns" data-loc="cheats_noKimCooldowns"></label>
1067 1067 </div>
1068 <div class="form-check">
1069 <input class="form-check-input" type="checkbox" id="noBlessingCooldown" />
1070 <label class="form-check-label" for="noBlessingCooldown" data-loc="cheats_noBlessingCooldown"></label>
1071 </div>
1068 1072 <div class="form-check">
1069 1073 <input class="form-check-input" type="checkbox" id="noResourceExtractorDronesDamage" />
1070 1074 <label class="form-check-label" for="noResourceExtractorDronesDamage" data-loc="cheats_noResourceExtractorDronesDamage"></label>
Modified static/webui/translations/de.js +1 -0
@@ -247,6 +247,7 @@ dict = {
247 247 cheats_noVendorPurchaseLimits: `Keine Kaufbeschränkungen bei Händlern`,
248 248 cheats_noDeathMarks: `Keine Todesmarkierungen`,
249 249 cheats_noKimCooldowns: `Keine Wartezeit bei KIM`,
250 cheats_noBlessingCooldown: `[UNTRANSLATED] No Blessing Cooldown`,
250 251 cheats_fullyStockedVendors: `Händler haben volles Inventar`,
251 252 cheats_baroAlwaysAvailable: `Baro immer im Relais verfügbar`,
252 253 cheats_baroFullyStocked: `Baro hat volles Inventar`,
Modified static/webui/translations/en.js +1 -0
@@ -246,6 +246,7 @@ dict = {
246 246 cheats_noVendorPurchaseLimits: `No Vendor Purchase Limits`,
247 247 cheats_noDeathMarks: `No Death Marks`,
248 248 cheats_noKimCooldowns: `No KIM Cooldowns`,
249 cheats_noBlessingCooldown: `No Blessing Cooldown`,
249 250 cheats_fullyStockedVendors: `Fully Stocked Vendors`,
250 251 cheats_baroAlwaysAvailable: `Baro Always Available`,
251 252 cheats_baroFullyStocked: `Baro Fully Stocked`,
Modified static/webui/translations/es.js +1 -0
@@ -247,6 +247,7 @@ dict = {
247 247 cheats_noVendorPurchaseLimits: `Sin límite de compras de vendedores`,
248 248 cheats_noDeathMarks: `Sin marcas de muerte`,
249 249 cheats_noKimCooldowns: `Sin tiempo de espera para conversaciones KIM`,
250 cheats_noBlessingCooldown: `[UNTRANSLATED] No Blessing Cooldown`,
250 251 cheats_fullyStockedVendors: `Vendedores con stock completo`,
251 252 cheats_baroAlwaysAvailable: `Baro siempre disponible`,
252 253 cheats_baroFullyStocked: `Baro con stock completo`,
Modified static/webui/translations/fr.js +1 -0
@@ -247,6 +247,7 @@ dict = {
247 247 cheats_noVendorPurchaseLimits: `Aucune limite d'achat chez les PNJ`,
248 248 cheats_noDeathMarks: `Aucune marque d'assassin`,
249 249 cheats_noKimCooldowns: `Aucun cooldown sur le KIM`,
250 cheats_noBlessingCooldown: `[UNTRANSLATED] No Blessing Cooldown`,
250 251 cheats_fullyStockedVendors: `Les vendeurs ont un stock à 100%`,
251 252 cheats_baroAlwaysAvailable: `Baro toujours présent`,
252 253 cheats_baroFullyStocked: `Stock de Baro au max`,
Modified static/webui/translations/ru.js +1 -0
@@ -247,6 +247,7 @@ dict = {
247 247 cheats_noVendorPurchaseLimits: `Отсутствие лимитов на покупки у торговцев`,
248 248 cheats_noDeathMarks: `Без меток смерти`,
249 249 cheats_noKimCooldowns: `Чаты KIM без кулдауна`,
250 cheats_noBlessingCooldown: `[UNTRANSLATED] No Blessing Cooldown`,
250 251 cheats_fullyStockedVendors: `Полностью укомплектованные торговцы`,
251 252 cheats_baroAlwaysAvailable: `Баро всегда доступен`,
252 253 cheats_baroFullyStocked: `Баро полностью укомплектован`,
Modified static/webui/translations/uk.js +1 -0
@@ -247,6 +247,7 @@ dict = {
247 247 cheats_noVendorPurchaseLimits: `Відсутність лімітів на купівлю у продавців`,
248 248 cheats_noDeathMarks: `Без позначок смерті`,
249 249 cheats_noKimCooldowns: `Чати KIM без очікування`,
250 cheats_noBlessingCooldown: `[UNTRANSLATED] No Blessing Cooldown`,
250 251 cheats_fullyStockedVendors: `Повністю укомплектовані продавці`,
251 252 cheats_baroAlwaysAvailable: `Баро завжди доступний`,
252 253 cheats_baroFullyStocked: `Баро повністю укомплектований`,
Modified static/webui/translations/zh.js +1 -0
@@ -247,6 +247,7 @@ dict = {
247 247 cheats_noVendorPurchaseLimits: `商城或商人无购买限制`,
248 248 cheats_noDeathMarks: `无死亡标记(不会被 Stalker/Grustrag 三霸/Zanuka 猎人等标记)`,
249 249 cheats_noKimCooldowns: `即时通无冷却时间`,
250 cheats_noBlessingCooldown: `[UNTRANSLATED] No Blessing Cooldown`,
250 251 cheats_fullyStockedVendors: `商人贩卖所有商品`,
251 252 cheats_baroAlwaysAvailable: `虚空商人可永久访问`,
252 253 cheats_baroFullyStocked: `虚空商人贩卖所有商品`,