forked from OpenWF/SpaceNinjaServer
		
	feat: noDailyFocusLimit cheat (#1661)
Closes #1641 Reviewed-on: OpenWF/SpaceNinjaServer#1661 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
This commit is contained in:
		
							parent
							
								
									46aef2c00e
								
							
						
					
					
						commit
						3d1b009bdb
					
				@ -29,6 +29,7 @@
 | 
			
		||||
  "unlockExilusEverywhere": false,
 | 
			
		||||
  "unlockArcanesEverywhere": false,
 | 
			
		||||
  "noDailyStandingLimits": false,
 | 
			
		||||
  "noDailyFocusLimit": false,
 | 
			
		||||
  "noArgonCrystalDecay": false,
 | 
			
		||||
  "noMasteryRankUpCooldown": false,
 | 
			
		||||
  "noVendorPurchaseLimits": true,
 | 
			
		||||
 | 
			
		||||
@ -258,6 +258,10 @@ export const getInventoryResponse = async (
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    if (config.noDailyFocusLimit) {
 | 
			
		||||
        inventoryResponse.DailyFocus = Math.max(999_999, 250000 + inventoryResponse.PlayerLevel * 5000);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    if (inventoryResponse.InfestedFoundry) {
 | 
			
		||||
        applyCheatsToInfestedFoundry(inventoryResponse.InfestedFoundry);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
@ -35,6 +35,7 @@ interface IConfig {
 | 
			
		||||
    unlockExilusEverywhere?: boolean;
 | 
			
		||||
    unlockArcanesEverywhere?: boolean;
 | 
			
		||||
    noDailyStandingLimits?: boolean;
 | 
			
		||||
    noDailyFocusLimit?: boolean;
 | 
			
		||||
    noArgonCrystalDecay?: boolean;
 | 
			
		||||
    noMasteryRankUpCooldown?: boolean;
 | 
			
		||||
    noVendorPurchaseLimits?: boolean;
 | 
			
		||||
 | 
			
		||||
@ -1372,7 +1372,9 @@ export const addFocusXpIncreases = (inventory: TInventoryDatabaseDocument, focus
 | 
			
		||||
    inventory.FocusXP.AP_POWER += focusXpPlus[FocusType.AP_POWER];
 | 
			
		||||
    inventory.FocusXP.AP_WARD += focusXpPlus[FocusType.AP_WARD];
 | 
			
		||||
 | 
			
		||||
    if (!config.noDailyFocusLimit) {
 | 
			
		||||
        inventory.DailyFocus -= focusXpPlus.reduce((a, b) => a + b, 0);
 | 
			
		||||
    }
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
export const addLoreFragmentScans = (inventory: TInventoryDatabaseDocument, arr: ILoreFragmentScan[]): void => {
 | 
			
		||||
 | 
			
		||||
@ -595,6 +595,10 @@
 | 
			
		||||
                                        <input class="form-check-input" type="checkbox" id="noDailyStandingLimits" />
 | 
			
		||||
                                        <label class="form-check-label" for="noDailyStandingLimits" data-loc="cheats_noDailyStandingLimits"></label>
 | 
			
		||||
                                    </div>
 | 
			
		||||
                                    <div class="form-check">
 | 
			
		||||
                                        <input class="form-check-input" type="checkbox" id="noDailyFocusLimit" />
 | 
			
		||||
                                        <label class="form-check-label" for="noDailyFocusLimit" data-loc="cheats_noDailyFocusLimit"></label>
 | 
			
		||||
                                    </div>
 | 
			
		||||
                                    <div class="form-check">
 | 
			
		||||
                                        <input class="form-check-input" type="checkbox" id="noArgonCrystalDecay" />
 | 
			
		||||
                                        <label class="form-check-label" for="noArgonCrystalDecay" data-loc="cheats_noArgonCrystalDecay"></label>
 | 
			
		||||
 | 
			
		||||
@ -134,6 +134,7 @@ dict = {
 | 
			
		||||
    cheats_unlockExilusEverywhere: `Exilus-Adapter überall`,
 | 
			
		||||
    cheats_unlockArcanesEverywhere: `Arkana-Adapter überall`,
 | 
			
		||||
    cheats_noDailyStandingLimits: `Kein tägliches Ansehenslimit`,
 | 
			
		||||
    cheats_noDailyFocusLimit: `[UNTRANSLATED] No Daily Focus Limits`,
 | 
			
		||||
    cheats_noArgonCrystalDecay: `Argon-Kristalle verschwinden niemals`,
 | 
			
		||||
    cheats_noMasteryRankUpCooldown: `Keine Wartezeit beim Meisterschaftsrangaufstieg`,
 | 
			
		||||
    cheats_noVendorPurchaseLimits: `Keine Kaufbeschränkungen bei Händlern`,
 | 
			
		||||
 | 
			
		||||
@ -133,6 +133,7 @@ dict = {
 | 
			
		||||
    cheats_unlockExilusEverywhere: `Exilus Adapters Everywhere`,
 | 
			
		||||
    cheats_unlockArcanesEverywhere: `Arcane Adapters Everywhere`,
 | 
			
		||||
    cheats_noDailyStandingLimits: `No Daily Standing Limits`,
 | 
			
		||||
    cheats_noDailyFocusLimit: `No Daily Focus Limit`,
 | 
			
		||||
    cheats_noArgonCrystalDecay: `No Argon Crystal Decay`,
 | 
			
		||||
    cheats_noMasteryRankUpCooldown: `No Mastery Rank Up Cooldown`,
 | 
			
		||||
    cheats_noVendorPurchaseLimits: `No Vendor Purchase Limits`,
 | 
			
		||||
 | 
			
		||||
@ -134,6 +134,7 @@ dict = {
 | 
			
		||||
    cheats_unlockExilusEverywhere: `Adaptadores Exilus en todas partes`,
 | 
			
		||||
    cheats_unlockArcanesEverywhere: `Adaptadores de Arcanos en todas partes`,
 | 
			
		||||
    cheats_noDailyStandingLimits: `Sin límite diario de reputación`,
 | 
			
		||||
    cheats_noDailyFocusLimit: `[UNTRANSLATED] No Daily Focus Limits`,
 | 
			
		||||
    cheats_noArgonCrystalDecay: `Sin descomposición de cristal de Argón`,
 | 
			
		||||
    cheats_noMasteryRankUpCooldown: `Sin tiempo de espera para rango de maestría`,
 | 
			
		||||
    cheats_noVendorPurchaseLimits: `Sin límite de compras de vendedores`,
 | 
			
		||||
 | 
			
		||||
@ -134,6 +134,7 @@ dict = {
 | 
			
		||||
    cheats_unlockExilusEverywhere: `Adaptateurs Exilus partout`,
 | 
			
		||||
    cheats_unlockArcanesEverywhere: `Adaptateur d'Arcanes partout`,
 | 
			
		||||
    cheats_noDailyStandingLimits: `Pas de limite de réputation journalière`,
 | 
			
		||||
    cheats_noDailyFocusLimit: `[UNTRANSLATED] No Daily Focus Limits`,
 | 
			
		||||
    cheats_noArgonCrystalDecay: `[UNTRANSLATED] No Argon Crystal Decay`,
 | 
			
		||||
    cheats_noMasteryRankUpCooldown: `[UNTRANSLATED] No Mastery Rank Up Cooldown`,
 | 
			
		||||
    cheats_noVendorPurchaseLimits: `[UNTRANSLATED] No Vendor Purchase Limits`,
 | 
			
		||||
 | 
			
		||||
@ -134,6 +134,7 @@ dict = {
 | 
			
		||||
    cheats_unlockExilusEverywhere: `Адаптеры Эксилус везде`,
 | 
			
		||||
    cheats_unlockArcanesEverywhere: `Адаптеры для мистификаторов везде`,
 | 
			
		||||
    cheats_noDailyStandingLimits: `Без ежедневных ограничений репутации`,
 | 
			
		||||
    cheats_noDailyFocusLimit: `[UNTRANSLATED] No Daily Focus Limits`,
 | 
			
		||||
    cheats_noArgonCrystalDecay: `Без распада аргоновых кристаллов`,
 | 
			
		||||
    cheats_noMasteryRankUpCooldown: `Повышение ранга мастерства без кулдауна`,
 | 
			
		||||
    cheats_noVendorPurchaseLimits: `Отсутствие лимитов на покупки у вендоров`,
 | 
			
		||||
 | 
			
		||||
@ -134,6 +134,7 @@ dict = {
 | 
			
		||||
    cheats_unlockExilusEverywhere: `全物品自带适配器`,
 | 
			
		||||
    cheats_unlockArcanesEverywhere: `全物品自带赋能适配器`,
 | 
			
		||||
    cheats_noDailyStandingLimits: `无每日声望限制`,
 | 
			
		||||
    cheats_noDailyFocusLimit: `[UNTRANSLATED] No Daily Focus Limits`,
 | 
			
		||||
    cheats_noArgonCrystalDecay: `[UNTRANSLATED] No Argon Crystal Decay`,
 | 
			
		||||
    cheats_noMasteryRankUpCooldown: `[UNTRANSLATED] No Mastery Rank Up Cooldown`,
 | 
			
		||||
    cheats_noVendorPurchaseLimits: `[UNTRANSLATED] No Vendor Purchase Limits`,
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user