cheat: extraMissionRewards

This commit is contained in:
AlexisinGit 2025-10-08 15:00:08 +08:00
parent f5c1b83598
commit 3a3c90c9e3
11 changed files with 32 additions and 0 deletions

View File

@ -1468,6 +1468,7 @@ const inventorySchema = new Schema<IInventoryDatabase, InventoryDocumentProps>(
nemesisHintProgressMultiplierGrineer: Number,
nemesisHintProgressMultiplierCorpus: Number,
nemesisExtraWeapon: Number,
extraMissionRewards: Number,
SubscribedToEmails: { type: Number, default: 0 },
SubscribedToEmailsPersonalized: { type: Number, default: 0 },

View File

@ -1146,6 +1146,22 @@ export const addMissionRewards = async (
firstCompletion
);
logger.debug("random mission drops:", MissionRewards);
if (inventory.extraMissionRewards) {
for (let i = 0; i < inventory.extraMissionRewards; i++) {
logger.debug("generating extra mission rewards with new seed, this will mismatch the mission report.");
// otherwise would always get the same rewards
const extraDrops = getRandomMissionDrops(
inventory,
{ ...rewardInfo, rewardSeed: generateRewardSeed() },
missions,
wagerTier,
firstCompletion
);
MissionRewards.push(...extraDrops);
}
}
const inventoryChanges: IInventoryChanges = {};
let SyndicateXPItemReward;
let ConquestCompletedMissionsCount;

View File

@ -61,6 +61,7 @@ export interface IAccountCheats {
nemesisHintProgressMultiplierGrineer?: number;
nemesisHintProgressMultiplierCorpus?: number;
nemesisExtraWeapon?: number;
extraMissionRewards?: number;
}
export interface IInventoryDatabase

View File

@ -1057,6 +1057,13 @@
<button class="btn btn-secondary" type="button" data-loc="cheats_save"></button>
</div>
</form>
<form class="form-group mt-2">
<label class="form-label" for="extraMissionRewards" data-loc="cheats_extraMissionRewards"></label>
<div class="input-group">
<input class="form-control" id="extraMissionRewards" type="number" min="0" max="65535" data-default="0" />
<button class="btn btn-secondary" type="button" data-loc="cheats_save"></button>
</div>
</form>
<div class="mt-2 mb-2 d-flex flex-wrap gap-2">
<button class="btn btn-primary" onclick="debounce(doUnlockAllShipFeatures);" data-loc="cheats_unlockAllShipFeatures"></button>
<button class="btn btn-primary" onclick="debounce(unlockAllMissions);" data-loc="cheats_unlockAllMissions"></button>

View File

@ -263,6 +263,7 @@ dict = {
cheats_nemesisHintProgressMultiplierGrineer: `[UNTRANSLATED] Hint Progress Multiplier (Grineer)`,
cheats_nemesisHintProgressMultiplierCorpus: `[UNTRANSLATED] Hint Progress Multiplier (Corpus)`,
cheats_nemesisExtraWeapon: `[UNTRANSLATED] Extra Nemesis Weapon / Token On Vanquish (0 to disable)`,
cheats_extraMissionRewards: `[UNTRANSLATED] Extra Mission Rewards (0 to disable)`,
worldState: `Weltstatus`,
worldState_creditBoost: `Event Booster: Credit`,

View File

@ -262,6 +262,7 @@ dict = {
cheats_nemesisHintProgressMultiplierGrineer: `Hint Progress Multiplier (Grineer)`,
cheats_nemesisHintProgressMultiplierCorpus: `Hint Progress Multiplier (Corpus)`,
cheats_nemesisExtraWeapon: `Extra Nemesis Weapon / Token On Vanquish (0 to disable)`,
cheats_extraMissionRewards: `Extra Mission Rewards (0 to disable)`,
worldState: `World State`,
worldState_creditBoost: `Credit Boost`,

View File

@ -263,6 +263,7 @@ dict = {
cheats_nemesisHintProgressMultiplierGrineer: `[UNTRANSLATED] Hint Progress Multiplier (Grineer)`,
cheats_nemesisHintProgressMultiplierCorpus: `[UNTRANSLATED] Hint Progress Multiplier (Corpus)`,
cheats_nemesisExtraWeapon: `[UNTRANSLATED] Extra Nemesis Weapon / Token On Vanquish (0 to disable)`,
cheats_extraMissionRewards: `[UNTRANSLATED] Extra Mission Rewards (0 to disable)`,
worldState: `Estado del mundo`,
worldState_creditBoost: `Potenciador de Créditos`,

View File

@ -263,6 +263,7 @@ dict = {
cheats_nemesisHintProgressMultiplierGrineer: `[UNTRANSLATED] Hint Progress Multiplier (Grineer)`,
cheats_nemesisHintProgressMultiplierCorpus: `[UNTRANSLATED] Hint Progress Multiplier (Corpus)`,
cheats_nemesisExtraWeapon: `[UNTRANSLATED] Extra Nemesis Weapon / Token On Vanquish (0 to disable)`,
cheats_extraMissionRewards: `[UNTRANSLATED] Extra Mission Rewards (0 to disable)`,
worldState: `Carte Solaire`,
worldState_creditBoost: `Booster de Crédit`,

View File

@ -263,6 +263,7 @@ dict = {
cheats_nemesisHintProgressMultiplierGrineer: `Мультипликатор прогресса подсказки (Гринир)`,
cheats_nemesisHintProgressMultiplierCorpus: `Мультипликатор прогресса подсказки (Корпус)`,
cheats_nemesisExtraWeapon: `Дополнительное оружие/активный Кардиомиоцит за победу над Противником (0 для отключения)`,
cheats_extraMissionRewards: `[UNTRANSLATED] Extra Mission Rewards (0 to disable)`,
worldState: `Состояние мира`,
worldState_creditBoost: `Глобальный бустер Кредитов`,

View File

@ -263,6 +263,7 @@ dict = {
cheats_nemesisHintProgressMultiplierGrineer: `Множник прогресу підсказки (Ґрінери)`,
cheats_nemesisHintProgressMultiplierCorpus: `Множник прогресу підсказки (Корпус)`,
cheats_nemesisExtraWeapon: `Додаткова зброя/Жива сердцевина за перемогу над Недругом (0 для вимкнення)`,
cheats_extraMissionRewards: `[UNTRANSLATED] Extra Mission Rewards (0 to disable)`,
worldState: `Стан світу`,
worldState_creditBoost: `Глобальне посилення Кредитів`,

View File

@ -263,6 +263,7 @@ dict = {
cheats_nemesisHintProgressMultiplierGrineer: `解密进度倍率 (Grineer)`,
cheats_nemesisHintProgressMultiplierCorpus: `解密进度倍率 (Corpus)`,
cheats_nemesisExtraWeapon: `额外玄骸武器/代币 (0为禁用)`,
cheats_extraMissionRewards: `额外任务奖励 (0为禁用)`,
worldState: `世界状态配置`,
worldState_creditBoost: `现金加成`,