cheat: nemesisExtraWeapon
This commit is contained in:
		
							parent
							
								
									c614e33f39
								
							
						
					
					
						commit
						478b6a22f9
					
				@ -1470,6 +1470,7 @@ const inventorySchema = new Schema<IInventoryDatabase, InventoryDocumentProps>(
 | 
			
		||||
        nemesisHintProgressMultiplierGrineer: Number,
 | 
			
		||||
        nemesisHintProgressMultiplierCorpus: Number,
 | 
			
		||||
        nemesisWeaponFusionMultiplier: Number,
 | 
			
		||||
        nemesisExtraWeapon: Number,
 | 
			
		||||
 | 
			
		||||
        SubscribedToEmails: { type: Number, default: 0 },
 | 
			
		||||
        SubscribedToEmailsPersonalized: { type: Number, default: 0 },
 | 
			
		||||
 | 
			
		||||
@ -862,6 +862,8 @@ export const addMissionInventoryUpdates = async (
 | 
			
		||||
                    const att: string[] = [];
 | 
			
		||||
                    let countedAtt: ITypeCount[] | undefined;
 | 
			
		||||
 | 
			
		||||
                    const extraWeaponCheat = inventory.nemesisExtraWeapon ?? 0; // 0 means no extra weapon and token
 | 
			
		||||
 | 
			
		||||
                    if (value.killed) {
 | 
			
		||||
                        if (
 | 
			
		||||
                            value.weaponLoc &&
 | 
			
		||||
@ -871,6 +873,20 @@ export const addMissionInventoryUpdates = async (
 | 
			
		||||
                            giveNemesisWeaponRecipe(inventory, weaponType, value.nemesisName, value.weaponLoc, profile);
 | 
			
		||||
                            att.push(weaponType);
 | 
			
		||||
                        }
 | 
			
		||||
                        if (extraWeaponCheat >= 1) {
 | 
			
		||||
                            for (let i = 0; i < extraWeaponCheat; i++) {
 | 
			
		||||
                                const randomIndex = Math.floor(Math.random() * manifest.weapons.length);
 | 
			
		||||
                                const randomWeapon = manifest.weapons[randomIndex];
 | 
			
		||||
                                giveNemesisWeaponRecipe(
 | 
			
		||||
                                    inventory,
 | 
			
		||||
                                    randomWeapon,
 | 
			
		||||
                                    value.nemesisName,
 | 
			
		||||
                                    value.weaponLoc,
 | 
			
		||||
                                    profile
 | 
			
		||||
                                );
 | 
			
		||||
                                att.push(randomWeapon);
 | 
			
		||||
                            }
 | 
			
		||||
                        }
 | 
			
		||||
                        //if (value.petLoc) {
 | 
			
		||||
                        if (profile.petHead) {
 | 
			
		||||
                            giveNemesisPetRecipe(inventory, value.nemesisName, profile);
 | 
			
		||||
@ -913,7 +929,7 @@ export const addMissionInventoryUpdates = async (
 | 
			
		||||
                            countedAtt = [
 | 
			
		||||
                                {
 | 
			
		||||
                                    ItemType: "/Lotus/Types/Items/MiscItems/CodaWeaponBucks",
 | 
			
		||||
                                    ItemCount: getKillTokenRewardCount(inventory.Nemesis.fp)
 | 
			
		||||
                                    ItemCount: getKillTokenRewardCount(inventory.Nemesis.fp) * (extraWeaponCheat + 1)
 | 
			
		||||
                                }
 | 
			
		||||
                            ];
 | 
			
		||||
                            addMiscItems(inventory, countedAtt);
 | 
			
		||||
 | 
			
		||||
@ -63,6 +63,7 @@ export interface IAccountCheats {
 | 
			
		||||
    nemesisHintProgressMultiplierGrineer?: number;
 | 
			
		||||
    nemesisHintProgressMultiplierCorpus?: number;
 | 
			
		||||
    nemesisWeaponFusionMultiplier?: number;
 | 
			
		||||
    nemesisExtraWeapon?: number;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
export interface IInventoryDatabase
 | 
			
		||||
 | 
			
		||||
@ -857,6 +857,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="nemesisExtraWeapon" data-loc="cheats_nemesisExtraWeapon"></label>
 | 
			
		||||
                                    <div class="input-group">
 | 
			
		||||
                                        <input class="form-control" id="nemesisExtraWeapon" 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(unlockAllMissions);" data-loc="cheats_unlockAllMissions"></button>
 | 
			
		||||
                                    <button class="btn btn-primary" onclick="debounce(markAllAsRead);" data-loc="cheats_markAllAsRead"></button>
 | 
			
		||||
 | 
			
		||||
@ -250,6 +250,7 @@ dict = {
 | 
			
		||||
    cheats_nemesisHintProgressMultiplierGrineer: `[UNTRANSLATED] Hint Progress Multiplier (Grineer)`,
 | 
			
		||||
    cheats_nemesisHintProgressMultiplierCorpus: `[UNTRANSLATED] Hint Progress Multiplier (Corpus)`,
 | 
			
		||||
    cheats_nemesisWeaponFusionMultiplier: `[UNTRANSLATED] Nemesis Weapon Fusion Multiplier`,
 | 
			
		||||
    cheats_nemesisExtraWeapon: `[UNTRANSLATED] Extra Nemesis Weapon / Token On Vanquish (0 to disable)`,
 | 
			
		||||
 | 
			
		||||
    worldState: `Weltstatus`,
 | 
			
		||||
    worldState_creditBoost: `Event Booster: Credit`,
 | 
			
		||||
 | 
			
		||||
@ -249,6 +249,7 @@ dict = {
 | 
			
		||||
    cheats_nemesisHintProgressMultiplierGrineer: `Hint Progress Multiplier (Grineer)`,
 | 
			
		||||
    cheats_nemesisHintProgressMultiplierCorpus: `Hint Progress Multiplier (Corpus)`,
 | 
			
		||||
    cheats_nemesisWeaponFusionMultiplier: `Nemesis Weapon Fusion Multiplier`,
 | 
			
		||||
    cheats_nemesisExtraWeapon: `Extra Nemesis Weapon / Token On Vanquish (0 to disable)`,
 | 
			
		||||
 | 
			
		||||
    worldState: `World State`,
 | 
			
		||||
    worldState_creditBoost: `Credit Boost`,
 | 
			
		||||
 | 
			
		||||
@ -250,6 +250,7 @@ dict = {
 | 
			
		||||
    cheats_nemesisHintProgressMultiplierGrineer: `[UNTRANSLATED] Hint Progress Multiplier (Grineer)`,
 | 
			
		||||
    cheats_nemesisHintProgressMultiplierCorpus: `[UNTRANSLATED] Hint Progress Multiplier (Corpus)`,
 | 
			
		||||
    cheats_nemesisWeaponFusionMultiplier: `[UNTRANSLATED] Nemesis Weapon Fusion Multiplier`,
 | 
			
		||||
    cheats_nemesisExtraWeapon: `[UNTRANSLATED] Extra Nemesis Weapon / Token On Vanquish (0 to disable)`,
 | 
			
		||||
 | 
			
		||||
    worldState: `Estado del mundo`,
 | 
			
		||||
    worldState_creditBoost: `Potenciador de Créditos`,
 | 
			
		||||
 | 
			
		||||
@ -250,6 +250,7 @@ dict = {
 | 
			
		||||
    cheats_nemesisHintProgressMultiplierGrineer: `[UNTRANSLATED] Hint Progress Multiplier (Grineer)`,
 | 
			
		||||
    cheats_nemesisHintProgressMultiplierCorpus: `[UNTRANSLATED] Hint Progress Multiplier (Corpus)`,
 | 
			
		||||
    cheats_nemesisWeaponFusionMultiplier: `[UNTRANSLATED] Nemesis Weapon Fusion Multiplier`,
 | 
			
		||||
    cheats_nemesisExtraWeapon: `[UNTRANSLATED] Extra Nemesis Weapon / Token On Vanquish (0 to disable)`,
 | 
			
		||||
 | 
			
		||||
    worldState: `Carte Solaire`,
 | 
			
		||||
    worldState_creditBoost: `Booster de Crédit`,
 | 
			
		||||
 | 
			
		||||
@ -250,6 +250,7 @@ dict = {
 | 
			
		||||
    cheats_nemesisHintProgressMultiplierGrineer: `[UNTRANSLATED] Hint Progress Multiplier (Grineer)`,
 | 
			
		||||
    cheats_nemesisHintProgressMultiplierCorpus: `[UNTRANSLATED] Hint Progress Multiplier (Corpus)`,
 | 
			
		||||
    cheats_nemesisWeaponFusionMultiplier: `[UNTRANSLATED] Nemesis Weapon Fusion Multiplier`,
 | 
			
		||||
    cheats_nemesisExtraWeapon: `[UNTRANSLATED] Extra Nemesis Weapon / Token On Vanquish (0 to disable)`,
 | 
			
		||||
 | 
			
		||||
    worldState: `Состояние мира`,
 | 
			
		||||
    worldState_creditBoost: `Глобальный бустер Кредитов`,
 | 
			
		||||
 | 
			
		||||
@ -250,6 +250,7 @@ dict = {
 | 
			
		||||
    cheats_nemesisHintProgressMultiplierGrineer: `[UNTRANSLATED] Hint Progress Multiplier (Grineer)`,
 | 
			
		||||
    cheats_nemesisHintProgressMultiplierCorpus: `[UNTRANSLATED] Hint Progress Multiplier (Corpus)`,
 | 
			
		||||
    cheats_nemesisWeaponFusionMultiplier: `[UNTRANSLATED] Nemesis Weapon Fusion Multiplier`,
 | 
			
		||||
    cheats_nemesisExtraWeapon: `[UNTRANSLATED] Extra Nemesis Weapon / Token On Vanquish (0 to disable)`,
 | 
			
		||||
 | 
			
		||||
    worldState: `Стан світу`,
 | 
			
		||||
    worldState_creditBoost: `Глобальне посилення Кредитів`,
 | 
			
		||||
 | 
			
		||||
@ -250,6 +250,7 @@ dict = {
 | 
			
		||||
    cheats_nemesisHintProgressMultiplierGrineer: `解密进度倍率 (Grineer)`,
 | 
			
		||||
    cheats_nemesisHintProgressMultiplierCorpus: `解密进度倍率 (Corpus)`,
 | 
			
		||||
    cheats_nemesisWeaponFusionMultiplier: `玄骸武器效价融合倍率`,
 | 
			
		||||
    cheats_nemesisExtraWeapon: `额外玄骸武器/代币 (0为禁用)`,
 | 
			
		||||
 | 
			
		||||
    worldState: `世界状态配置`,
 | 
			
		||||
    worldState_creditBoost: `现金加成`,
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user