866 lines
31 KiB
TypeScript
Raw Normal View History

2022-05-27 23:13:35 +01:00
import { inject, injectable } from "tsyringe";
2022-06-02 00:58:26 +01:00
import type { ILogger } from "@spt-aki/models/spt/utils/ILogger";
2022-05-27 23:13:35 +01:00
import { AIOConfigHandler } from "./AIOConfigHandler";
2022-05-27 23:13:35 +01:00
@injectable()
export class Notifications
{
constructor(
2022-05-27 23:13:35 +01:00
@inject("WinstonLogger") private logger: ILogger,
@inject("AIOConfigHandler") private configHandler: AIOConfigHandler
)
{}
2022-05-27 23:13:35 +01:00
public sendNotifications(): void
{
2022-05-27 23:13:35 +01:00
const config = this.configHandler.getConfig();
const locale = this.configHandler.getLocales();
if (!config.other.hideWarningMessage)
{
this.logger.info("[AIO Mod INFORMATION]");
this.logger.info("Please read the README.PDF carefully as this has all the information you need.");
this.logger.info("[AIO Mod INFORMATION]");
}
//Items:
// All Examined Items:
2022-05-27 23:13:35 +01:00
if (config.items.allExaminedItems)
{
this.logger.info("AllInOne Mod: AllExaminedItems activated.");
2022-05-27 23:13:35 +01:00
if (typeof config.items.allExaminedItems !== "boolean")
{
2022-05-27 23:13:35 +01:00
this.logger.warning(locale.items.allExaminedItems);
}
}
// Weight Changes:
2022-05-27 23:13:35 +01:00
if (config.items.weightChanges !== false)
{
this.logger.info("AllInOne Mod: WeightChanges activated.");
2022-05-27 23:13:35 +01:00
if (typeof config.items.weightChanges !== "boolean" && config.items.weightChanges <= 0)
{
2022-05-27 23:13:35 +01:00
this.logger.warning(locale.items.weightChanges);
}
}
// More Stack:
2022-05-27 23:13:35 +01:00
if (config.items.moreStack !== false)
{
this.logger.info("AllInOne Mod: moreStack activated.");
2022-05-27 23:13:35 +01:00
if (typeof config.items.moreStack !== "number")
{
2022-05-27 23:13:35 +01:00
this.logger.warning(locale.items.moreStack);
}
}
// Equip Rigs With Armors:
2022-05-27 23:13:35 +01:00
if (config.items.equipRigsWithArmors)
{
this.logger.info("AllInOne Mod: equipRigsWithArmors activated.");
2022-05-27 23:13:35 +01:00
if (typeof config.items.equipRigsWithArmors !== "boolean")
{
2022-05-27 23:13:35 +01:00
this.logger.warning(locale.items.equipRigsWithArmors);
}
}
// Force Money Stack:
2022-05-27 23:13:35 +01:00
if (config.items.forceMoneyStack !== false)
{
this.logger.info("AllInOne Mod: forceMoneyStack activated.");
2022-05-27 23:13:35 +01:00
if (typeof config.items.forceMoneyStack !== "number")
{
2022-05-27 23:13:35 +01:00
this.logger.warning(locale.items.forceMoneyStack);
}
}
// Remove Secure Container Filters:
2022-05-27 23:13:35 +01:00
if (config.items.removeSecureContainerFilters)
{
this.logger.info("AllInOne Mod: removeSecureContainerFilters activated.");
2022-05-27 23:13:35 +01:00
if (typeof config.items.removeSecureContainerFilters !== "boolean")
{
2022-05-27 23:13:35 +01:00
this.logger.warning(locale.items.removeSecureContainerFilters);
}
}
// Remove Backpack Restrictions:
2022-05-27 23:13:35 +01:00
if (config.items.removeBackpacksRestrictions)
{
this.logger.info("AllInOne Mod: removeBackpacksRestrictions activated.");
2022-05-27 23:13:35 +01:00
if (typeof config.items.removeBackpacksRestrictions !== "boolean")
{
2022-05-27 23:13:35 +01:00
this.logger.warning(locale.items.removeBackpacksRestrictions);
}
}
// Remove Secure Container Filters:
2022-05-27 23:13:35 +01:00
if (config.items.removeContainersRestrictions)
{
this.logger.info("AllInOne Mod: removeContainersRestrictions activated.");
2022-05-27 23:13:35 +01:00
if (typeof config.items.removeContainersRestrictions !== "boolean")
{
2022-05-27 23:13:35 +01:00
this.logger.warning(locale.items.removeContainersRestrictions);
}
}
// In Raid Moddable
2022-05-27 23:13:35 +01:00
if (config.items.inRaidModdable)
{
this.logger.info("AllInOne Mod: inRaidModdable activated.");
2022-05-27 23:13:35 +01:00
if (typeof config.items.inRaidModdable !== "boolean")
{
2022-05-27 23:13:35 +01:00
this.logger.warning(locale.items.inRaidModdable);
}
}
// Increase Loot Exp
2022-05-27 23:13:35 +01:00
if (config.items.increaseLootExp !== false)
{
this.logger.info("AllInOne Mod: increaseLootExp activated.");
2022-05-27 23:13:35 +01:00
if (typeof config.items.increaseLootExp !== "number")
{
2022-05-27 23:13:35 +01:00
this.logger.warning(locale.items.increaseLootExp);
}
}
// Increase Examine Exp
2022-05-27 23:13:35 +01:00
if (config.items.increaseExamineExp !== false)
{
this.logger.info("AllInOne Mod: increaseExamineExp activated.");
2022-05-27 23:13:35 +01:00
if (typeof config.items.increaseExamineExp !== "number")
{
2022-05-27 23:13:35 +01:00
this.logger.warning(locale.items.increaseExamineExp);
}
}
// Remove Key Usage Number
2022-05-27 23:13:35 +01:00
if (config.items.removeKeyUsageNumber)
{
this.logger.info("AllInOne Mod: removeKeyUsageNumber activated.");
2022-05-27 23:13:35 +01:00
if (typeof config.items.removeKeyUsageNumber !== "boolean")
{
2022-05-27 23:13:35 +01:00
this.logger.warning(locale.items.removeKeyUsageNumber);
}
}
// Stackable Barters
2022-05-27 23:13:35 +01:00
if (config.items.stackableBarters.activated)
{
this.logger.info("AllInOne Mod: stackableBarters activated.");
2022-05-27 23:13:35 +01:00
if (typeof config.items.stackableBarters.activated !== "boolean")
{
2022-05-27 23:13:35 +01:00
this.logger.warning(locale.items.stackableBarters);
}
}
// Weapon Malf - Overheat
2022-05-27 23:13:35 +01:00
if (config.items.weaponMalfunctions.overheat)
{
this.logger.info("AllInOne Mod: weaponMalfunctions.overheat activated.");
2022-05-27 23:13:35 +01:00
if (typeof config.items.weaponMalfunctions.overheat !== "boolean")
{
2022-05-27 23:13:35 +01:00
this.logger.warning(locale.items.weaponMalfunctions.overheat);
}
}
// Weapon Malf - jam
2022-05-27 23:13:35 +01:00
if (config.items.weaponMalfunctions.jam)
{
this.logger.info("AllInOne Mod: weaponMalfunctions.jam activated.");
2022-05-27 23:13:35 +01:00
if (typeof config.items.weaponMalfunctions.jam !== "boolean")
{
2022-05-27 23:13:35 +01:00
this.logger.warning(locale.items.weaponMalfunctions.jam);
}
}
// Weapon Malf - slide
2022-05-27 23:13:35 +01:00
if (config.items.weaponMalfunctions.slide)
{
this.logger.info("AllInOne Mod: weaponMalfunctions.slide activated.");
2022-05-27 23:13:35 +01:00
if (typeof config.items.weaponMalfunctions.slide !== "boolean")
{
2022-05-27 23:13:35 +01:00
this.logger.warning(locale.items.weaponMalfunctions.slide);
}
}
// Weapon Malf - misfire
2022-05-27 23:13:35 +01:00
if (config.items.weaponMalfunctions.misfire)
{
this.logger.info("AllInOne Mod: weaponMalfunctions.misfire activated.");
2022-05-27 23:13:35 +01:00
if (typeof config.items.weaponMalfunctions.misfire !== "boolean")
{
2022-05-27 23:13:35 +01:00
this.logger.warning(locale.items.weaponMalfunctions.misfire);
}
}
// Weapon Malf - misfire
2022-05-27 23:13:35 +01:00
if (config.items.weaponMalfunctions.feed)
{
this.logger.info("AllInOne Mod: weaponMalfunctions.feed activated.");
2022-05-27 23:13:35 +01:00
if (typeof config.items.weaponMalfunctions.feed !== "boolean")
{
2022-05-27 23:13:35 +01:00
this.logger.warning(locale.items.weaponMalfunctions.feed);
}
}
// Weapon Dura - Min
2022-05-27 23:13:35 +01:00
if (config.items.weaponDurabilities.minimumSpawnDurability !== false)
{
this.logger.info("AllInOne Mod: weaponsDurabilities.minimumSpawnDurability activated.");
2022-05-27 23:13:35 +01:00
if (typeof config.items.weaponDurabilities.minimumSpawnDurability !== "number")
{
2022-05-27 23:13:35 +01:00
this.logger.warning(locale.items.weaponDurabilities.minimumSpawnDurability);
}
}
// Weapon Dura - Max
2022-05-27 23:13:35 +01:00
if (config.items.weaponDurabilities.maximumSpawnDurability !== false)
{
this.logger.info("AllInOne Mod: weaponsDurabilities.maximumSpawnDurability activated.");
2022-05-27 23:13:35 +01:00
if (typeof config.items.weaponDurabilities.maximumSpawnDurability !== "number")
{
2022-05-27 23:13:35 +01:00
this.logger.warning(locale.items.weaponDurabilities.maximumSpawnDurability);
}
}
// Remove All Gear Penalties
2022-05-27 23:13:35 +01:00
if (config.items.removeAllGearPenalties)
{
this.logger.info("AllInOne Mod: removeAllGearPenalties activated.");
2022-05-27 23:13:35 +01:00
if (typeof config.items.removeAllGearPenalties !== "boolean")
{
2022-05-27 23:13:35 +01:00
this.logger.warning(locale.items.removeAllGearPenalties);
}
}
// Remove Item Durability Burn
2022-05-27 23:13:35 +01:00
if (config.items.removeItemDurabilityBurn)
{
this.logger.info("AllInOne Mod: removeItemDurabilityBurn activated.");
2022-05-27 23:13:35 +01:00
if (typeof config.items.removeItemDurabilityBurn !== "boolean")
{
2022-05-27 23:13:35 +01:00
this.logger.warning(locale.items.removeItemDurabilityBurn);
}
}
// Remove Bullet Weapon Durability Damage
2022-05-27 23:13:35 +01:00
if (config.items.removeBulletWeaponDurabilityDamage)
{
this.logger.info("AllInOne Mod: removeBulletWeaponDurabilityDamage activated.");
2022-05-27 23:13:35 +01:00
if (typeof config.items.removeBulletWeaponDurabilityDamage !== "boolean")
{
2022-05-27 23:13:35 +01:00
this.logger.warning(locale.items.removeBulletWeaponDurabilityDamage);
}
}
// Remove Weapon Preset Restriction
2022-05-27 23:13:35 +01:00
if (config.items.removeWeaponPresetRestriction)
{
this.logger.info("AllInOne Mod: removeWeaponPresetRestriction activated.");
2022-05-27 23:13:35 +01:00
if (typeof config.items.removeWeaponPresetRestriction !== "boolean")
{
2022-05-27 23:13:35 +01:00
this.logger.warning(locale.items.removeWeaponPresetRestriction);
}
}
// Change Indicidual Item Property
2022-05-27 23:13:35 +01:00
if (config.items.changeIndividualItemProperty.activated)
{
this.logger.info("AllInOne Mod: changeIndividualItemProperty activated.");
2022-05-27 23:13:35 +01:00
if (typeof config.items.changeIndividualItemProperty.activated !== "boolean")
{
2022-05-27 23:13:35 +01:00
this.logger.warning(locale.items.changeIndividualItemProperty.activated);
}
}
// Hideout:
// Change Fuel Consumption Rate
2022-05-27 23:13:35 +01:00
if (config.hideout.changeFuelConsumptionRate !== false)
{
this.logger.info("AllInOne Mod: changeFuelConsumptionRate activated.");
2022-05-27 23:13:35 +01:00
if (typeof config.items.weaponDurabilities.maximumSpawnDurability !== "number")
{
2022-05-27 23:13:35 +01:00
this.logger.warning(locale.hideout.changeFuelConsumptionRate);
}
}
// Fast Hideout Construction
2022-05-27 23:13:35 +01:00
if (config.hideout.fastHideoutConstruction)
{
this.logger.info("AllInOne Mod: fastHideoutConstruction activated.");
2022-05-27 23:13:35 +01:00
if (typeof config.hideout.fastHideoutConstruction !== "boolean")
{
2022-05-27 23:13:35 +01:00
this.logger.warning(locale.hideout.fastHideoutConstruction);
}
}
// Fast Hideout Construction
2022-05-27 23:13:35 +01:00
if (config.hideout.fastHideoutProduction)
{
this.logger.info("AllInOne Mod: fastHideoutProduction activated.");
2022-05-27 23:13:35 +01:00
if (typeof config.hideout.fastHideoutProduction !== "boolean")
{
2022-05-27 23:13:35 +01:00
this.logger.warning(locale.hideout.fastHideoutProduction);
}
}
// Fast Scav Case
2022-05-27 23:13:35 +01:00
if (config.hideout.fastScavCase)
{
this.logger.info("AllInOne Mod: fastScavCase activated.");
2022-05-27 23:13:35 +01:00
if (typeof config.hideout.fastScavCase !== "boolean")
{
2022-05-27 23:13:35 +01:00
this.logger.warning(locale.hideout.fastScavCase);
}
}
// Scav Case Price Reducer
2022-05-27 23:13:35 +01:00
if (config.hideout.scavCasePriceReducer)
{
this.logger.info("AllInOne Mod: scavCasePriceReducer activated.");
2022-05-27 23:13:35 +01:00
if (typeof config.hideout.scavCasePriceReducer !== "boolean")
{
2022-05-27 23:13:35 +01:00
this.logger.warning(locale.hideout.scavCasePriceReducer);
}
}
// Remove Construction Requirements
2022-05-27 23:13:35 +01:00
if (config.hideout.removeConstructionRequirements)
{
this.logger.info("AllInOne Mod: removeConstructionRequirements activated.");
2022-05-27 23:13:35 +01:00
if (typeof config.hideout.removeConstructionRequirements !== "boolean")
{
2022-05-27 23:13:35 +01:00
this.logger.warning(locale.hideout.removeConstructionRequirements);
}
}
// Player:
// Remove Scav Timer
2022-05-27 23:13:35 +01:00
if (config.player.removeScavTimer)
{
this.logger.info("AllInOne Mod: removeScavTimer activated.");
2022-05-27 23:13:35 +01:00
if (typeof config.player.removeScavTimer !== "boolean")
{
2022-05-27 23:13:35 +01:00
this.logger.warning(locale.player.removeScavTimer);
}
}
// Change Skill Progression Multiplier
2022-05-27 23:13:35 +01:00
if (config.player.changeSkillProgressionMultiplier !== false)
{
this.logger.info("AllInOne Mod: changeSkillProgressionMultiplier activated.");
2022-05-27 23:13:35 +01:00
if (typeof config.player.changeSkillProgressionMultiplier !== "number")
{
2022-05-27 23:13:35 +01:00
this.logger.warning(locale.player.changeSkillProgressionMultiplier);
}
}
// Change Weapon Skill Multiplier
2022-05-27 23:13:35 +01:00
if (config.player.changeWeaponSkillMultiplier !== false)
{
this.logger.info("AllInOne Mod: changeWeaponSkillMultiplier activated.");
2022-05-27 23:13:35 +01:00
if (typeof config.player.changeWeaponSkillMultiplier !== "number")
{
2022-05-27 23:13:35 +01:00
this.logger.warning(locale.player.changeWeaponSkillMultiplier);
}
}
// Disable Skill Fatigue
2022-05-27 23:13:35 +01:00
if (config.player.disableSkillFatigue !== false)
{
this.logger.info("AllInOne Mod: disableSkillFatigue activated.");
2022-05-27 23:13:35 +01:00
if (typeof config.player.disableSkillFatigue !== "boolean" && (<string> config.player.disableSkillFatigue).toLowerCase() !== "custom")
{
2022-05-27 23:13:35 +01:00
this.logger.warning(locale.player.disableSkillFatigue);
}
}
// skillFatiguePerPoint
2022-05-27 23:13:35 +01:00
if (typeof config.player.skillFatiguePerPoint !== "number")
{
2022-05-27 23:13:35 +01:00
this.logger.warning(locale.player.skillFatiguePerPoint)
}
// skillFreshEffectiveness
2022-05-27 23:13:35 +01:00
if (typeof config.player.skillFreshEffectiveness !== "number")
{
2022-05-27 23:13:35 +01:00
this.logger.warning(locale.player.skillFreshEffectiveness)
}
// skillFreshPoints
2022-05-27 23:13:35 +01:00
if (typeof config.player.skillFreshPoints !== "number")
{
2022-05-27 23:13:35 +01:00
this.logger.warning(locale.player.skillFreshPoints)
}
// skillPointsBeforeFatigue
2022-05-27 23:13:35 +01:00
if (typeof config.player.skillPointsBeforeFatigue !== "number")
{
2022-05-27 23:13:35 +01:00
this.logger.warning(locale.player.skillPointsBeforeFatigue)
}
// skillFatigueReset
2022-05-27 23:13:35 +01:00
if (typeof config.player.skillFatigueReset !== "number")
{
2022-05-27 23:13:35 +01:00
this.logger.warning(locale.player.skillFatigueReset)
}
// Change Max Stamina
2022-05-27 23:13:35 +01:00
if (config.player.changeMaxStamina !== false)
{
this.logger.info("AllInOne Mod: changeMaxStamina activated.");
2022-05-27 23:13:35 +01:00
if (typeof config.player.changeMaxStamina !== "number")
{
2022-05-27 23:13:35 +01:00
this.logger.warning(locale.player.changeMaxStamina);
}
}
// Unlimited Stamina
2022-05-27 23:13:35 +01:00
if (config.player.unlimitedStamina)
{
this.logger.info("AllInOne Mod: unlimitedStamina activated.");
2022-05-27 23:13:35 +01:00
if (typeof config.player.unlimitedStamina !== "boolean")
{
2022-05-27 23:13:35 +01:00
this.logger.warning(locale.player.unlimitedStamina);
}
}
// Remove In Raid Restrictions
2022-05-27 23:13:35 +01:00
if (config.player.removeInRaidsRestrictions)
{
this.logger.info("AllInOne Mod: removeInRaidsRestrictions activated.");
2022-05-27 23:13:35 +01:00
if (typeof config.player.removeInRaidsRestrictions !== "boolean")
{
2022-05-27 23:13:35 +01:00
this.logger.warning(locale.player.removeInRaidsRestrictions);
}
}
// Diable Fall Damage
2022-05-27 23:13:35 +01:00
if (config.player.disableFallDamage)
{
this.logger.info("AllInOne Mod: disableFallDamage activated.");
2022-05-27 23:13:35 +01:00
if (typeof config.player.disableFallDamage !== "boolean")
{
2022-05-27 23:13:35 +01:00
this.logger.warning(locale.player.disableFallDamage);
}
}
// All Skills Master
2022-05-27 23:13:35 +01:00
if (config.player.allSkillsMaster)
{
this.logger.info("AllInOne Mod: allSkillsMaster activated.");
2022-05-27 23:13:35 +01:00
if (typeof config.player.allSkillsMaster !== "boolean")
{
2022-05-27 23:13:35 +01:00
this.logger.warning(locale.player.allSkillsMaster);
}
}
// Enable Skill BotReload
2022-05-27 23:13:35 +01:00
if (config.player.enableSkillBotReload)
{
this.logger.info("AllInOne Mod: enableSkillBotReload activated.");
2022-05-27 23:13:35 +01:00
if (typeof config.player.enableSkillBotReload !== "boolean")
{
2022-05-27 23:13:35 +01:00
this.logger.warning(locale.player.enableSkillBotReload);
}
}
// Enable Skill BotSound
2022-05-27 23:13:35 +01:00
if (config.player.enableSkillBotSound)
{
this.logger.info("AllInOne Mod: enableSkillBotSound activated.");
2022-05-27 23:13:35 +01:00
if (typeof config.player.enableSkillBotSound !== "boolean")
{
2022-05-27 23:13:35 +01:00
this.logger.warning(locale.player.enableSkillBotSound);
}
}
// Remove Scav Karma
2022-05-27 23:13:35 +01:00
if (config.player.removeScavKarma)
{
this.logger.info("AllInOne Mod: removeScavKarma activated.");
2022-05-27 23:13:35 +01:00
if (typeof config.player.removeScavKarma !== "boolean")
{
2022-05-27 23:13:35 +01:00
this.logger.warning(locale.player.removeScavKarma);
}
}
// Energy Drain Rate
2022-05-27 23:13:35 +01:00
if (config.player.energyDrainRate !== false)
{
this.logger.info("AllInOne Mod: energyDrainRate activated.");
2022-05-27 23:13:35 +01:00
if (typeof config.player.energyDrainRate !== "number")
{
2022-05-27 23:13:35 +01:00
this.logger.warning(locale.player.energyDrainRate);
}
}
// Energy Drain Time
2022-05-27 23:13:35 +01:00
if (config.player.energyDrainTime !== false)
{
this.logger.info("AllInOne Mod: energyDrainTime activated.");
2022-05-27 23:13:35 +01:00
if (typeof config.player.energyDrainTime !== "number")
{
2022-05-27 23:13:35 +01:00
this.logger.warning(locale.player.energyDrainTime);
}
}
// Hydratation Drain Rate
2022-05-27 23:13:35 +01:00
if (config.player.hydrationDrainRate !== false)
{
this.logger.info("AllInOne Mod: hydratationDrainRate activated.");
2022-05-27 23:13:35 +01:00
if (typeof config.player.hydrationDrainRate !== "number")
{
2022-05-27 23:13:35 +01:00
this.logger.warning(locale.player.hydrationDrainRate);
}
}
// Hydratation Drain Time
2022-05-27 23:13:35 +01:00
if (config.player.hydrationDrainTime !== false)
{
this.logger.info("AllInOne Mod: hydratationDrainTime activated.");
2022-05-27 23:13:35 +01:00
if (typeof config.player.hydrationDrainTime !== "number")
{
2022-05-27 23:13:35 +01:00
this.logger.warning(locale.player.hydrationDrainTime);
}
}
// Regeneration Loop Time
2022-05-27 23:13:35 +01:00
if (config.player.regenerationLoopTime !== false)
{
this.logger.info("AllInOne Mod: regenerationLoopTime activated.");
2022-05-27 23:13:35 +01:00
if (typeof config.player.regenerationLoopTime !== "number")
{
2022-05-27 23:13:35 +01:00
this.logger.warning(locale.player.regenerationLoopTime);
}
}
// Energy Restoration
2022-05-27 23:13:35 +01:00
if (config.player.energyRestoration !== false)
{
this.logger.info("AllInOne Mod: energyRestoration activated.");
2022-05-27 23:13:35 +01:00
if (typeof config.player.energyRestoration !== "number")
{
2022-05-27 23:13:35 +01:00
this.logger.warning(locale.player.energyRestoration);
}
}
// Hydration Restoration
2022-05-27 23:13:35 +01:00
if (config.player.hydrationRestoration !== false)
{
this.logger.info("AllInOne Mod: hydrationRestoration activated.");
2022-05-27 23:13:35 +01:00
if (typeof config.player.hydrationRestoration !== "number")
{
2022-05-27 23:13:35 +01:00
this.logger.warning(locale.player.hydrationRestoration);
}
}
// Traders:
// All Quests Available
2022-05-27 23:13:35 +01:00
if (config.traders.allQuestsAvailable)
{
this.logger.info("AllInOne Mod: removeScavKarma activated.");
2022-05-27 23:13:35 +01:00
if (typeof config.traders.allQuestsAvailable !== "boolean")
{
2022-05-27 23:13:35 +01:00
this.logger.warning(locale.traders.allQuestsAvailable);
}
}
// All Clothes Free
2022-05-27 23:13:35 +01:00
if (config.traders.allClothesFree)
{
this.logger.info("AllInOne Mod: allClothesFree activated.");
2022-05-27 23:13:35 +01:00
if (typeof config.traders.allClothesFree !== "boolean")
{
2022-05-27 23:13:35 +01:00
this.logger.warning(locale.traders.allClothesFree);
}
}
// All Clothes For Every Side
2022-05-27 23:13:35 +01:00
if (config.traders.allClothesForEverySide)
{
this.logger.info("AllInOne Mod: allClothesForEverySide activated.");
2022-05-27 23:13:35 +01:00
if (typeof config.traders.allClothesForEverySide !== "boolean")
{
2022-05-27 23:13:35 +01:00
this.logger.warning(locale.traders.allClothesForEverySide);
}
}
// Change Flea Market Level
2022-05-27 23:13:35 +01:00
if (config.traders.changeFleaMarketLvl !== false)
{
this.logger.info("AllInOne Mod: changeFleaMarketLvl activated.");
2022-05-27 23:13:35 +01:00
if (typeof config.traders.changeFleaMarketLvl !== "number")
{
2022-05-27 23:13:35 +01:00
this.logger.warning(locale.traders.changeFleaMarketLvl);
}
}
// Insurance Time Activated
2022-05-27 23:13:35 +01:00
if (config.traders.insuranceTime.activated)
{
this.logger.info("AllInOne Mod: insuranceTime activated.")
2022-05-27 23:13:35 +01:00
if (typeof config.traders.insuranceTime.activated !== "boolean")
{
2022-05-27 23:13:35 +01:00
this.logger.warning(locale.traders.insuranceTime.activated);
}
}
// Insurance Time - Therapist
2022-05-27 23:13:35 +01:00
if (config.traders.insuranceTime.therapist.activated)
{
this.logger.info("AllInOne Mod: InsuranceTime.Therapist activated.")
2022-05-27 23:13:35 +01:00
if (typeof config.traders.insuranceTime.therapist.activated !== "boolean")
{
2022-05-27 23:13:35 +01:00
this.logger.warning(locale.traders.insuranceTime.therapist.activated);
}
}
// Insurance Time - Prapor
2022-05-27 23:13:35 +01:00
if (config.traders.insuranceTime.prapor.activated)
{
this.logger.info("AllInOne Mod: InsuranceTime.Prapor activated.")
2022-05-27 23:13:35 +01:00
if (typeof config.traders.insuranceTime.prapor.activated !== "boolean")
{
2022-05-27 23:13:35 +01:00
this.logger.warning(locale.traders.insuranceTime.prapor.activated);
}
}
// All Traders 4 Star - Unlock All Items At LL1
2022-05-27 23:13:35 +01:00
if (config.traders.traderChanges.unlockAllItemsAtLL1 && config.traders.traderChanges.allTraders4Stars)
{
2022-05-27 23:13:35 +01:00
this.logger.warning(locale.traders.traderChanges.all4StarAndLL1);
}
2022-05-27 23:13:35 +01:00
else if (config.traders.traderChanges.allTraders4Stars)
{
this.logger.info("AllInOne Mod: allTraders4Stars activated.")
2022-05-27 23:13:35 +01:00
if (typeof config.traders.traderChanges.allTraders4Stars !== "boolean")
{
2022-05-27 23:13:35 +01:00
this.logger.warning(locale.traders.traderChanges.allTraders4Stars);
}
}
2022-05-27 23:13:35 +01:00
else if (config.traders.traderChanges.unlockAllItemsAtLL1)
{
this.logger.info("AllInOne Mod: unlockAllItemsAtLL1 activated.")
2022-05-27 23:13:35 +01:00
if (typeof config.traders.traderChanges.unlockAllItemsAtLL1 !== "boolean")
{
2022-05-27 23:13:35 +01:00
this.logger.warning(locale.traders.traderChanges.unlockAllItemsAtLL1);
}
}
// Remove Items From Quest Locks
2022-05-27 23:13:35 +01:00
if (config.traders.traderChanges.removeItemsFromQuestLocks)
{
this.logger.info("AllInOne Mod: removeItemsFromQuestLocks activated.")
2022-05-27 23:13:35 +01:00
if (typeof config.traders.traderChanges.removeItemsFromQuestLocks !== "boolean")
{
2022-05-27 23:13:35 +01:00
this.logger.warning(locale.traders.traderChanges.removeItemsFromQuestLocks);
}
}
// Max Insurance Storage Time
2022-05-27 23:13:35 +01:00
if (config.traders.maxInsuranceStorageTime)
{
this.logger.info("AllInOne Mod: maxInsuranceStorageTime activated.")
2022-05-27 23:13:35 +01:00
if (typeof config.traders.maxInsuranceStorageTime !== "boolean")
{
2022-05-27 23:13:35 +01:00
this.logger.warning(locale.traders.maxInsuranceStorageTime);
}
}
// Max Insurance Storage Time
2022-05-27 23:13:35 +01:00
if (config.traders.preventFenceMastering)
{
this.logger.info("AllInOne Mod: preventFenceMastering activated.")
2022-05-27 23:13:35 +01:00
if (typeof config.traders.preventFenceMastering !== "boolean")
{
2022-05-27 23:13:35 +01:00
this.logger.warning(locale.traders.preventFenceMastering);
}
}
// Remove FIR Condition On Quests
2022-05-27 23:13:35 +01:00
if (config.traders.removeFIRConditionOnQuests)
{
this.logger.info("AllInOne Mod: removeFIRConditionOnQuests activated.")
2022-05-27 23:13:35 +01:00
if (typeof config.traders.removeFIRConditionOnQuests !== "boolean")
{
2022-05-27 23:13:35 +01:00
this.logger.warning(locale.traders.removeFIRConditionOnQuests);
}
}
// Raids:
// No Extract Restrictions
2022-05-27 23:13:35 +01:00
if (config.raids.noExtractRestrictions)
{
this.logger.info("AllInOne Mod: noExtractRestrictions activated.")
2022-05-27 23:13:35 +01:00
if (typeof config.raids.noExtractRestrictions !== "boolean")
{
2022-05-27 23:13:35 +01:00
this.logger.warning(locale.raids.noExtractRestrictions);
}
}
// All Extractions Avaliable
2022-05-27 23:13:35 +01:00
if (config.raids.allExtractionsAvailable)
{
this.logger.info("AllInOne Mod: allExtractionsAvailable activated.")
2022-05-27 23:13:35 +01:00
if (typeof config.raids.allExtractionsAvailable !== "boolean")
{
2022-05-27 23:13:35 +01:00
this.logger.warning(locale.raids.allExtractionsAvailable);
}
}
// Increased Boss Chances
2022-05-27 23:13:35 +01:00
if (config.raids.increasedBossChance)
{
this.logger.info("AllInOne Mod: increasedBossChance activated.")
2022-05-27 23:13:35 +01:00
if (typeof config.raids.increasedBossChance !== "boolean")
{
2022-05-27 23:13:35 +01:00
this.logger.warning(locale.raids.increasedBossChance);
}
}
// Extended Raid
2022-05-27 23:13:35 +01:00
if (config.raids.extendedRaid !== false)
{
this.logger.info("AllInOne Mod: changeFleaMarketLvl activated.");
2022-05-27 23:13:35 +01:00
if (typeof config.raids.extendedRaid !== "number")
{
2022-05-27 23:13:35 +01:00
this.logger.warning(locale.raids.extendedRaid);
}
}
// Remove Labs Keycard
2022-05-27 23:13:35 +01:00
if (config.raids.removeLabsKeycard)
{
this.logger.info("AllInOne Mod: removeLabsKeycard activated.")
2022-05-27 23:13:35 +01:00
if (typeof config.raids.removeLabsKeycard !== "boolean")
{
2022-05-27 23:13:35 +01:00
this.logger.warning(locale.raids.removeLabsKeycard);
}
}
// Extractions Extended
2022-05-27 23:13:35 +01:00
if (config.raids.extractionsExtended)
{
this.logger.info("AllInOne Mod: extractionsExtended activated.")
2022-05-27 23:13:35 +01:00
if (typeof config.raids.extractionsExtended !== "boolean")
{
2022-05-27 23:13:35 +01:00
this.logger.warning(locale.raids.extractionsExtended);
}
}
// Insurance On All Maps
2022-05-27 23:13:35 +01:00
if (config.raids.insuranceOnAllMaps)
{
this.logger.info("AllInOne Mod: insuranceOnAllMaps activated.")
2022-05-27 23:13:35 +01:00
if (typeof config.raids.insuranceOnAllMaps !== "boolean")
{
2022-05-27 23:13:35 +01:00
this.logger.warning(locale.raids.insuranceOnAllMaps);
}
}
// Fixes:
// Fins Choke Me Harder
2022-05-27 23:13:35 +01:00
if (config.fixes.finsChokeMeHarder)
{
this.logger.info("AllInOne Mod: finsChokeMeHarder activated.")
2022-05-27 23:13:35 +01:00
if (typeof config.fixes.finsChokeMeHarder !== "boolean")
{
2022-05-27 23:13:35 +01:00
this.logger.warning(locale.fixes.finsChokeMeHarder);
}
}
// Chomps Raider Spawn Fix
2022-05-27 23:13:35 +01:00
if (config.fixes.chompsRaiderSpawnFix)
{
this.logger.info("AllInOne Mod: chompsRaiderSpawnFix activated.")
2022-05-27 23:13:35 +01:00
if (typeof config.fixes.chompsRaiderSpawnFix !== "boolean")
{
2022-05-27 23:13:35 +01:00
this.logger.warning(locale.fixes.chompsRaiderSpawnFix);
}
}
// justNUs Even More Open Zones
2022-05-27 23:13:35 +01:00
if (config.fixes.justNUsEvenMoreOpenZones)
{
this.logger.info("AllInOne Mod: justNUsEvenMoreOpenZones activated.")
2022-05-27 23:13:35 +01:00
if (typeof config.fixes.justNUsEvenMoreOpenZones !== "boolean")
{
2022-05-27 23:13:35 +01:00
this.logger.warning(locale.fixes.justNUsEvenMoreOpenZones);
}
}
// Other:
// Pre Wipe Events:
2022-05-27 23:13:35 +01:00
if (config.other.preWipeEvents.raidersOnAllMaps)
{
this.logger.info("AllInOne Mod: raidersOnAllMaps activated.")
2022-05-27 23:13:35 +01:00
if (typeof config.other.preWipeEvents.raidersOnAllMaps !== "boolean")
{
2022-05-27 23:13:35 +01:00
this.logger.warning(locale.other.preWipeEvents.raidersOnAllMaps);
}
}
// Killa On Factory:
2022-05-27 23:13:35 +01:00
if (config.other.preWipeEvents.killaOnFactory)
{
this.logger.info("AllInOne Mod: killaOnFactory activated.")
2022-05-27 23:13:35 +01:00
if (typeof config.other.preWipeEvents.killaOnFactory !== "boolean")
{
2022-05-27 23:13:35 +01:00
this.logger.warning(locale.other.preWipeEvents.killaOnFactory);
}
}
// All Bosses On Reserve:
2022-05-27 23:13:35 +01:00
if (config.other.preWipeEvents.allBossesOnReserve)
{
this.logger.info("AllInOne Mod: allBossesOnReserve activated.")
2022-05-27 23:13:35 +01:00
if (typeof config.other.preWipeEvents.allBossesOnReserve !== "boolean")
{
2022-05-27 23:13:35 +01:00
this.logger.warning(locale.other.preWipeEvents.allBossesOnReserve);
}
}
// All Traders Sell Cheap Items
2022-05-27 23:13:35 +01:00
if (config.other.preWipeEvents.allTradersSellCheapItems)
{
this.logger.info("AllInOne Mod: allTradersSellCheapItems activated.")
2022-05-27 23:13:35 +01:00
if (typeof config.other.preWipeEvents.allTradersSellCheapItems !== "boolean")
{
2022-05-27 23:13:35 +01:00
this.logger.warning(locale.other.preWipeEvents.allTradersSellCheapItems);
}
}
// Make Obdolbos Powerful
2022-05-27 23:13:35 +01:00
if (config.other.preWipeEvents.makeObdolbosPowerful)
{
this.logger.info("AllInOne Mod: makeObdolbosPowerful activated.")
2022-05-27 23:13:35 +01:00
if (typeof config.other.preWipeEvents.makeObdolbosPowerful !== "boolean")
{
2022-05-27 23:13:35 +01:00
this.logger.warning(locale.other.preWipeEvents.makeObdolbosPowerful);
}
}
// Gluhkar On Labs
2022-05-27 23:13:35 +01:00
if (config.other.preWipeEvents.gluhkarOnLabs)
{
this.logger.info("AllInOne Mod: gluhkarOnLabs activated.")
2022-05-27 23:13:35 +01:00
if (typeof config.other.preWipeEvents.gluhkarOnLabs !== "boolean")
{
2022-05-27 23:13:35 +01:00
this.logger.warning(locale.other.preWipeEvents.gluhkarOnLabs);
}
}
// Heat Wave
2022-05-27 23:13:35 +01:00
if (config.other.inGameEvents.heatWave)
{
this.logger.info("AllInOne Mod: heatWave activated.")
2022-05-27 23:13:35 +01:00
if (typeof config.other.inGameEvents.heatWave !== "boolean")
{
2022-05-27 23:13:35 +01:00
this.logger.warning(locale.other.inGameEvents.heatWave);
}
}
}
}