add nightwave standing multiplier configuration

This commit is contained in:
nyaoouo 2025-06-10 01:09:56 +08:00
parent f8ecd49fd6
commit c3aa619652
9 changed files with 21 additions and 5 deletions

View File

@ -64,6 +64,7 @@ interface IConfig {
lockTime?: number;
nightwaveOverride?: string;
};
nightwaveStandingMultliplier?: number;
}
export const configPath = path.join(repoDir, "config.json");

View File

@ -1772,13 +1772,18 @@ export const addChallenges = (
}) - 1
];
}
affiliation.Standing += meta.standing!;
if (affiliationMods.length == 0) {
affiliationMods.push({ Tag: nightwaveSyndicateTag });
let standingToAdd = meta.standing ?? 0;
if (standingToAdd >= 0) {
standingToAdd *= config.nightwaveStandingMultliplier ?? 1;
affiliation.Standing += standingToAdd;
if (affiliationMods.length == 0) {
affiliationMods.push({ Tag: nightwaveSyndicateTag });
}
affiliationMods[0].Standing ??= 0;
affiliationMods[0].Standing += standingToAdd;
}
affiliationMods[0].Standing ??= 0;
affiliationMods[0].Standing += meta.standing!;
}
}
}

View File

@ -722,6 +722,10 @@
<label class="form-label" for="spoofMasteryRank" data-loc="cheats_spoofMasteryRank"></label>
<input class="form-control" id="spoofMasteryRank" type="number" min="-1" max="65535" />
</div>
<div class="form-group mt-2">
<label class="form-label" for="nightwaveStandingMultliplier" data-loc="cheats_nightwaveStandingMultliplier"></label>
<input class="form-control" id="nightwaveStandingMultliplier" type="number" min="1" max="1000000" value="1" />
</div>
<button class="btn btn-primary mt-3" type="submit" data-loc="cheats_saveSettings"></button>
</form>
</div>

View File

@ -163,6 +163,7 @@ dict = {
cheats_noDojoResearchTime: `Keine Dojo-Forschungszeit`,
cheats_fastClanAscension: `Schneller Clan-Aufstieg`,
cheats_spoofMasteryRank: `Gefälschter Meisterschaftsrang (-1 zum deaktivieren)`,
cheats_nightwaveStandingMultliplier: `Nightwave-Ansehen-Multiplikator`,
cheats_saveSettings: `Einstellungen speichern`,
cheats_account: `Account`,
cheats_unlockAllFocusSchools: `Alle Fokus-Schulen freischalten`,

View File

@ -162,6 +162,7 @@ dict = {
cheats_noDojoResearchTime: `No Dojo Research Time`,
cheats_fastClanAscension: `Fast Clan Ascension`,
cheats_spoofMasteryRank: `Spoofed Mastery Rank (-1 to disable)`,
cheats_nightwaveStandingMultliplier: `Nightwave Standing Multiplier`,
cheats_saveSettings: `Save Settings`,
cheats_account: `Account`,
cheats_unlockAllFocusSchools: `Unlock All Focus Schools`,

View File

@ -163,6 +163,7 @@ dict = {
cheats_noDojoResearchTime: `Sin tiempo de investigación del dojo`,
cheats_fastClanAscension: `Ascenso rápido del clan`,
cheats_spoofMasteryRank: `Rango de maestría simulado (-1 para desactivar)`,
cheats_nightwaveStandingMultliplier: `Multiplicador de reputación de Onda Nocturna`,
cheats_saveSettings: `Guardar configuración`,
cheats_account: `Cuenta`,
cheats_unlockAllFocusSchools: `Desbloquear todas las escuelas de enfoque`,

View File

@ -163,6 +163,7 @@ dict = {
cheats_noDojoResearchTime: `Aucun temps de recherche (Dojo)`,
cheats_fastClanAscension: `Ascension de clan rapide`,
cheats_spoofMasteryRank: `Rang de maîtrise personnalisé (-1 pour désactiver)`,
cheats_nightwaveStandingMultliplier: `Multiplicateur de standing Ondes Nocturnes`,
cheats_saveSettings: `Sauvegarder les paramètres`,
cheats_account: `Compte`,
cheats_unlockAllFocusSchools: `Débloquer toutes les écoles de focus`,

View File

@ -163,6 +163,7 @@ dict = {
cheats_noDojoResearchTime: `Мгновенные Исследование Додзё`,
cheats_fastClanAscension: `Мгновенное Вознесение Клана`,
cheats_spoofMasteryRank: `Подделанный ранг мастерства (-1 для отключения)`,
cheats_nightwaveStandingMultliplier: `Множитель репутации Ночной Волны`,
cheats_saveSettings: `Сохранить настройки`,
cheats_account: `Аккаунт`,
cheats_unlockAllFocusSchools: `Разблокировать все школы фокуса`,

View File

@ -163,6 +163,7 @@ dict = {
cheats_noDojoResearchTime: `无视道场研究时间`,
cheats_fastClanAscension: `快速升级氏族`,
cheats_spoofMasteryRank: `伪造精通段位(-1为禁用`,
cheats_nightwaveStandingMultliplier: `午夜电波声望倍率`,
cheats_saveSettings: `保存设置`,
cheats_account: `账户`,
cheats_unlockAllFocusSchools: `解锁所有专精学派`,