返回提交历史
Modified
src/helpers/relicHelper.ts
+6
-0
Modified
src/models/inventoryModels/inventoryModel.ts
+1
-0
Modified
src/types/inventoryTypes/inventoryTypes.ts
+1
-0
Modified
static/webui/index.html
+7
-0
Modified
static/webui/translations/de.js
+1
-0
Modified
static/webui/translations/en.js
+1
-0
Modified
static/webui/translations/es.js
+1
-0
Modified
static/webui/translations/fr.js
+1
-0
Modified
static/webui/translations/ru.js
+1
-0
Modified
static/webui/translations/uk.js
+1
-0
Modified
static/webui/translations/zh.js
+1
-0
XFEstudio/XFESpaceNinjaServer
feat: platinum per relic cracked cheat (#4151)
Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/4151 Reviewed-by: Sainan <63328889+sainan@users.noreply.github.com> Co-authored-by: Drake <kuzuriyager@gmail.com> Co-committed-by: Drake <kuzuriyager@gmail.com>
f6342656
代码差异
11 个文件
+22
-0
@@ -51,6 +51,12 @@ export const crackRelic = async (
51
51
// Give reward
52
52
combineInventoryChanges(inventoryChanges, await addItem(inventory, fromStoreItem(reward.type), reward.itemCount));
53
53
54
const relicBonusPlatAmount = inventory.relicCrackPlatinumBonus ?? 0;
55
if (relicBonusPlatAmount > 0 && !inventory.infinitePlatinum) {
56
inventory.PremiumCredits += relicBonusPlatAmount;
57
combineInventoryChanges(inventoryChanges, { PremiumCredits: relicBonusPlatAmount });
58
}
59
54
60
// Client has picked its own reward (for lack of choice)
55
61
participant.ChosenRewardOwner = participant.AccountId;
56
62
@@ -1635,6 +1635,7 @@ const inventorySchema = new Schema<IInventoryDatabase, InventoryDocumentProps>(
1635
1635
spoofMasteryRank: Number,
1636
1636
dailyTributeRewardMultiplier: Number,
1637
1637
relicRewardItemCountMultiplier: Number,
1638
relicCrackPlatinumBonus: Number,
1638
1639
nightwaveStandingMultiplier: Number,
1639
1640
1640
1641
Created: Date,
@@ -96,6 +96,7 @@ export const accountCheatNumbers = [
96
96
"spoofMasteryRank",
97
97
"dailyTributeRewardMultiplier",
98
98
"relicRewardItemCountMultiplier",
99
"relicCrackPlatinumBonus",
99
100
"nightwaveStandingMultiplier"
100
101
] as const;
101
102
@@ -1180,6 +1180,13 @@
1180
1180
<button class="btn btn-secondary" type="button" data-loc="cheats_save"></button>
1181
1181
</div>
1182
1182
</form>
1183
<form class="form-group mt-2">
1184
<label class="form-label" for="relicCrackPlatinumBonus" data-loc="cheats_relicCrackPlatinumBonus"></label>
1185
<div class="input-group">
1186
<input class="form-control" id="relicCrackPlatinumBonus" type="number" min="0" max="1000000" data-default="0" />
1187
<button class="btn btn-secondary" type="button" data-loc="cheats_save"></button>
1188
</div>
1189
</form>
1183
1190
<form class="form-group mt-2">
1184
1191
<label class="form-label" for="nightwaveStandingMultiplier" data-loc="cheats_nightwaveStandingMultiplier"></label>
1185
1192
<div class="input-group">
@@ -319,6 +319,7 @@ dict = {
319
319
cheats_spoofMasteryRank: `Gefälschter Meisterschaftsrang (-1 zum deaktivieren)`,
320
320
cheats_dailyTributeRewardMultiplier: `Belohnungsmultiplikator für Täglicher Tribut`,
321
321
cheats_relicRewardItemCountMultiplier: `Belohnungsmultiplikator für Relikte`,
322
cheats_relicCrackPlatinumBonus: `[UNTRANSLATED] Platinum Per Relic Crack (0 to disable)`,
322
323
cheats_nightwaveStandingMultiplier: `Nightwave Ansehen Multiplikator`,
323
324
cheats_save: `Speichern`,
324
325
cheats_account: `Account`,
@@ -318,6 +318,7 @@ dict = {
318
318
cheats_spoofMasteryRank: `Spoofed Mastery Rank (-1 to disable)`,
319
319
cheats_dailyTributeRewardMultiplier: `Daily Tribute Reward Multiplier`,
320
320
cheats_relicRewardItemCountMultiplier: `Relic Reward Item Count Multiplier`,
321
cheats_relicCrackPlatinumBonus: `Platinum Per Relic Crack (0 to disable)`,
321
322
cheats_nightwaveStandingMultiplier: `Nightwave Standing Multiplier`,
322
323
cheats_save: `Save`,
323
324
cheats_account: `Account`,
@@ -319,6 +319,7 @@ dict = {
319
319
cheats_spoofMasteryRank: `Rango de maestría simulado (-1 para desactivar)`,
320
320
cheats_dailyTributeRewardMultiplier: `[UNTRANSLATED] Daily Tribute Reward Multiplier`,
321
321
cheats_relicRewardItemCountMultiplier: `Multiplicador de cantidad de recompensas de reliquia`,
322
cheats_relicCrackPlatinumBonus: `[UNTRANSLATED] Platinum Per Relic Crack (0 to disable)`,
322
323
cheats_nightwaveStandingMultiplier: `Multiplicador de Reputación de Onda Nocturna`,
323
324
cheats_save: `Guardar`,
324
325
cheats_account: `Cuenta`,
@@ -319,6 +319,7 @@ dict = {
319
319
cheats_spoofMasteryRank: `Rang de maîtrise personnalisé (-1 pour désactiver)`,
320
320
cheats_dailyTributeRewardMultiplier: `Multiplicateur de récompense journalière`,
321
321
cheats_relicRewardItemCountMultiplier: `Multiplicateur de récompense de relique`,
322
cheats_relicCrackPlatinumBonus: `[UNTRANSLATED] Platinum Per Relic Crack (0 to disable)`,
322
323
cheats_nightwaveStandingMultiplier: `Multiplicateur de réputation des Ondes Nocturnes`,
323
324
cheats_save: `Sauvegarder`,
324
325
cheats_account: `Compte`,
@@ -319,6 +319,7 @@ dict = {
319
319
cheats_spoofMasteryRank: `Поддельный ранг мастерства (-1 для отключения)`,
320
320
cheats_dailyTributeRewardMultiplier: `Множитель награды ежедневного бонуса`,
321
321
cheats_relicRewardItemCountMultiplier: `Мультипликатор количества предметов награды реликвии`,
322
cheats_relicCrackPlatinumBonus: `[UNTRANSLATED] Platinum Per Relic Crack (0 to disable)`,
322
323
cheats_nightwaveStandingMultiplier: `Мультипликатор репутации Ночной волны`,
323
324
cheats_save: `Сохранить`,
324
325
cheats_account: `Аккаунт`,
@@ -319,6 +319,7 @@ dict = {
319
319
cheats_spoofMasteryRank: `Підроблений ранг майстерності (-1 для вимкнення)`,
320
320
cheats_dailyTributeRewardMultiplier: `[UNTRANSLATED] Daily Tribute Reward Multiplier`,
321
321
cheats_relicRewardItemCountMultiplier: `Множник кількості предметів нагороди реліквії`,
322
cheats_relicCrackPlatinumBonus: `[UNTRANSLATED] Platinum Per Relic Crack (0 to disable)`,
322
323
cheats_nightwaveStandingMultiplier: `Множник репутації Нічної хвилі`,
323
324
cheats_save: `Зберегти`,
324
325
cheats_account: `Обліковий запис`,
@@ -319,6 +319,7 @@ dict = {
319
319
cheats_spoofMasteryRank: `伪造精通段位(-1为禁用)`,
320
320
cheats_dailyTributeRewardMultiplier: `每日登陆奖励倍率`,
321
321
cheats_relicRewardItemCountMultiplier: `虚空遗物奖励物品数量倍率`,
322
cheats_relicCrackPlatinumBonus: `[UNTRANSLATED] Platinum Per Relic Crack (0 to disable)`,
322
323
cheats_nightwaveStandingMultiplier: `午夜电波声望倍率`,
323
324
cheats_save: `保存`,
324
325
cheats_account: `账户`,