返回提交历史
Modified
src/services/cheatsService.ts
+2
-2
XFEstudio/XFESpaceNinjaServer
fix: retroactively applying noMasteryRankUpCooldown & noBlessingCooldown (#3519)
Closes #3518 Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/3519 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
8adba021
代码差异
1 个文件
+2
-2
@@ -51,7 +51,7 @@ export const lockCheats: Partial<Record<keyof IAccountCheats, ILockCheat>> = {
51
51
noMasteryRankUpCooldown: {
52
52
projection: "TrainingDate",
53
53
isInventoryInIdealState: (inventory: TInventoryDatabaseDocument) =>
54
inventory.TrainingDate.getTime() < Date.now(),
54
inventory.TrainingDate.getTime() <= Date.now(),
55
55
cleanupInventory: (inventory: TInventoryDatabaseDocument) => {
56
56
inventory.TrainingDate = new Date();
57
57
}
@@ -59,7 +59,7 @@ export const lockCheats: Partial<Record<keyof IAccountCheats, ILockCheat>> = {
59
59
noBlessingCooldown: {
60
60
projection: "BlessingCooldown",
61
61
isInventoryInIdealState: (inventory: TInventoryDatabaseDocument) =>
62
(inventory.BlessingCooldown?.getTime() ?? 0) < Date.now(),
62
(inventory.BlessingCooldown?.getTime() ?? 0) <= Date.now(),
63
63
cleanupInventory: (inventory: TInventoryDatabaseDocument) => {
64
64
inventory.BlessingCooldown = new Date();
65
65
}