Browse Source

some styling changes

SaltyMonkey 6 years ago
parent
commit
3585bff07a
6 changed files with 121 additions and 116 deletions
  1. 12 6
      fpsManager.js
  2. 9 3
      lib/helpers/utils.js
  3. 18 18
      lib/unitControl.js
  4. 42 37
      lib/unitFps.js
  5. 40 51
      lib/unitState.js
  6. 0 1
      lib/unitTracker.js

+ 12 - 6
fpsManager.js

@@ -18,6 +18,11 @@
 * @property {*} mod
 */
 
+const msg = {
+	"proxyWarning": "Proxy runtime detected. Proper work not guaranteed.",
+	"runtimeWarning": "Outdated runtime detected. Proper work not guaranteed."
+};
+
 const units = [
 	["proto", require("./lib/unitProto")],
 	["data", require("./lib/unitState")],
@@ -28,18 +33,19 @@ const units = [
 
 class FpsManager {
 	constructor(mod) {
+		/** 
+		* @type {deps}
+		*/
+		let deps = {};
+		
 		//check compatibility (only warning atm)
 		if (mod.proxyAuthor !== "caali") 
-			mod.error("This mod using possibly will be broken with this runtime.");
+			mod.error(msg.runtimeWarning);
 		else if(mod.proxyAuthor === "caali" && !mod.clientInterface) 
-			mod.error("Proxy runtime detected. Proper work not guaranteed.");
+			mod.error(msg.proxyWarning);
 		
 		mod.game.initialize("me");
 
-		/** 
-		* @type {deps}
-		*/
-		let deps = {};
 		units.forEach(unit => {
 			// eslint-disable-next-line no-magic-numbers
 			deps[unit[0]] = new unit[1](deps);

+ 9 - 3
lib/helpers/utils.js

@@ -57,11 +57,17 @@ exports.loadJsonAsync = async (path, encoding = "utf8") => {
 */
 exports.getFullPath = (str1, str2) => path.resolve(str1, str2);
 
-exports.loadJson = (path) => {
+/**
+* Load JSON file iin sync way
+* @param {string} path path to file
+* @param {string} encoding file encoding
+* @returns {Object|false} return false if failed or Object if successful
+*/
+exports.loadJson = (path, encoding = "utf8") => {
 	try {
-		return JSON.parse(fs.readFileSync(path, "utf8"));
+		return JSON.parse(fs.readFileSync(path, encoding));
 	} catch (err) {
-		return undefined;
+		return false;
 	}
 };
 

+ 18 - 18
lib/unitControl.js

@@ -20,30 +20,30 @@ class unitControl {
 	constructor(deps) {
 		let prefixes = ["fm", "fps"];
 
-		const info = () => {
+		const infoHandler = () => {
 			deps.mod.command.message("FPS Manager information.");
 		};
 
-		const help = () => {
+		const helpHandler = () => {
 			deps.mod.command.message("FPS Manager help.");
 		};
 
-		const auto = () => {
+		const autoSettingHandler = () => {
 			deps.data.settings.applyTriggers = !deps.data.settings.applyTriggers;
 			deps.mod.command.message(`Triggers ${deps.data.settings.applyTriggers ? "a" : "dea"}ctivated.`);
 		};
 
-		const classs = () => {
+		const classBasedPresetSettingHandler = () => {
 			deps.data.settings.classBasedPresets = !deps.data.settings.classBasedPresets;
 			deps.mod.command.message(`Class based presets will be ${deps.data.settings.classBasedPresets ? "a" : "dea"}ctivated after relog.`);
 		};
 
-		const debug = () => {
+		const debugSettingsHandler = () => {
 			deps.data.settings.debug = !deps.data.settings.debug;
 			deps.mod.command.message(`Debug ${deps.data.settings.debug ? "a" : "dea"}ctivated.`);
 		};
 
-		const mode = (str) => {
+		const activeModeHandler = (str) => {
 			if(deps.data.preset[str]) {
 				deps.data.prevMode = rfdc(deps.data.activeMode);
 				deps.data.activeMode = deps.data.preset[str];
@@ -56,18 +56,18 @@ class unitControl {
 		};
 
 		const commands = {
-			"i": info,
-			"info": info,
-			"a": auto,
-			"auto": auto,
-			"c": classs,
-			"class": classs,
-			"h": help,
-			"help": help,
-			"m": mode,
-			"mode": mode,
-			"d": debug,
-			"debug": debug
+			"i": infoHandler,
+			"info": infoHandler,
+			"a": autoSettingHandler,
+			"auto": autoSettingHandler,
+			"c": classBasedPresetSettingHandler,
+			"class": classBasedPresetSettingHandler,
+			"h": helpHandler,
+			"help": helpHandler,
+			"m": activeModeHandler,
+			"mode": activeModeHandler,
+			"d": debugSettingsHandler,
+			"debug": debugSettingsHandler
 		};
 
 		deps.mod.command.add(prefixes, commands);

+ 42 - 37
lib/unitFps.js

@@ -27,12 +27,12 @@ class unitFps {
 
 		let throttledDAta = {};
 
-		let blockedCollections = new Set();
-		let blockedPlayers = new Set();
-		let blockedNpcs = new Set();
-		let blockedSummons = new Set();
-		let blockedServants = new Set();
-		let blockedDrop = new Set();
+		const blockedCollections = new Set();
+		const blockedPlayers = new Set();
+		const blockedNpcs = new Set();
+		const blockedSummons = new Set();
+		const blockedServants = new Set();
+		const blockedDrop = new Set();
 
 		//-------------------------------------
 		// Basic internal functions 
@@ -41,6 +41,10 @@ class unitFps {
 
 		const changeShakeState = (state) => mod.clientInterface.configureCameraShake(state);
 
+		const isMe = (gameId) => mod.game.me.is(gameId);
+
+		const meInCombat = () => mod.game.me.inCombat;
+
 		//-------------------------------------
 		// Handlers for hooks
 		//-------------------------------------
@@ -55,7 +59,7 @@ class unitFps {
 							blockedDrop.add(event.gameId);
 							return false;
 						}
-						else if (utils.arraysHasIntersect(event.templateId, data.activeMode.blockDropItemsOptions.templateId)) {
+						else if (data.activeMode.blockDropItemsOptions.templateId && utils.arraysHasIntersect(event.templateId, data.activeMode.blockDropItemsOptions.templateId)) {
 							blockedDrop.add(event.gameId);
 							return false;
 						}
@@ -64,7 +68,7 @@ class unitFps {
 			}
 		};
 
-		const blockCollections = (type, event) => {
+		const collectionHandler = (type, event) => {
 			switch (type) {
 				case (ENTITY_HOOK_TYPE.DESPAWN):
 					blockedCollections.delete(event.gameId);
@@ -77,11 +81,13 @@ class unitFps {
 			}
 		};
 
-		const blockServants = (type, event) => {
+		const servantsHandler = (type, event) => {
 			switch (type) {
-				case (ENTITY_HOOK_TYPE.DESPAWN): blockedServants.delete(event.gameId); break;
+				case (ENTITY_HOOK_TYPE.DESPAWN): 
+					blockedServants.delete(event.gameId);
+					break;
 				case (ENTITY_HOOK_TYPE.SPAWN):
-					if (data.activeMode.blockOwnServants && mod.game.me.is(event.ownerId)) {
+					if (data.activeMode.blockOwnServants && isMe(event.ownerId)) {
 						blockedServants.add(event.gameId);
 						return false;
 					}
@@ -92,22 +98,22 @@ class unitFps {
 			}
 		};
 
-		const npcHandler = (type, event) => {
+		const npcsHandler = (type, event) => {
 			switch (type) {
 				case (ENTITY_HOOK_TYPE.DESPAWN):
-					blockedNpcs.delete(event.gameId);
 					if (!blockedNpcs.has(event.gameId) && data.activeMode.blockNpcsDeathAnimations && event.type === DESPAWN_TYPES.DEAD) {
 						event.type = DESPAWN_TYPES.OUTOFVIEW;
 						return true;
 					}
+					blockedNpcs.delete(event.gameId);
 					break;
 				case (ENTITY_HOOK_TYPE.SPAWN):
 					if (tracker.summons.has(event.gameId)) {
-						if (data.activeMode.blockOwnSummons && mod.game.me.is(event.owner)) {
+						if (data.activeMode.blockOwnSummons && isMe(event.owner)) {
 							blockedSummons.add(event.gameId);
 							return false;
 						}
-						else if (data.activeMode.blockAreaSummons && !mod.game.me.is(event.owner)) {
+						else if (data.activeMode.blockAreaSummons && !isMe(event.owner)) {
 							blockedSummons.add(event.gameId);
 							return false;
 						}
@@ -160,7 +166,7 @@ class unitFps {
 			if (isEntityBlocked(event.gameId)) return false;
 			if (data.activeMode.blockAdditionalSkillEffects && data.activeMode.blockAdditionalSkillEffectsOptions) {
 				if (data.activeMode.blockProjectilesOptions.players && tracker.users.has(event.gameId)) return false;
-				if (data.activeMode.blockProjectilesOptions.own && mod.game.me.is(event.gameId)) return false;
+				if (data.activeMode.blockProjectilesOptions.own && isMe(event.gameId)) return false;
 			}
 		};
 
@@ -171,7 +177,7 @@ class unitFps {
 		);
 
 		const blockInventoryInCombat = () => (
-			(data.activeMode.blockInventoryInCombat && mod.game.me.inCombat) ? false : undefined
+			(data.activeMode.blockInventoryInCombat && meInCombat()) ? false : undefined
 		);
 
 		const blockUselessPackets = () => (
@@ -185,32 +191,30 @@ class unitFps {
 			return needBlock ? true : undefined;
 		};
 
-		const abnormieHandler = (event) => {
-			if ((data.activeMode.blockAreaBuffs && !mod.game.me.is(event.target)) || isEntityBlocked(event.target)) return false;
+		const abnormalsHandler = (event) => {
+			if ((data.activeMode.blockAreaBuffs && !isMe(event.target)) || isEntityBlocked(event.target)) return false;
 
-			//if (mod.game.me.is(event.target)) {
 			if (data.activeMode.blockHuntingRewardsBuffs && data.huntingRewardsBuffs.has(event.id)) return false;
 			if (data.activeMode.blockShapeChangeBuffs && data.shapeChangersBuffs.has(event.id)) return false;
 			if (data.activeMode.blockOnScreenEffectsBuffs && data.onScreenEffectsBuffs.has(event.id)) return false;
-			//}
 		};
 
 		const blockHpPopups = (event) => {
-			if (data.activeMode.blockHpPopups && mod.game.me.is(event.target)) {
+			if (data.activeMode.blockHpPopups && isMe(event.target)) {
 				event.type = 10;
 				return true;
 			}
 		};
 
 		const blockMpPopups = (event) => {
-			if (data.activeMode.blockMpPopups && mod.game.me.is(event.target)) {
+			if (data.activeMode.blockMpPopups && isMe(event.target)) {
 				event.type = 0;
 				return true;
 			}
 		};
 
 		const eachSkillResultHandler = (event) => {
-			if (mod.game.me.is(event.source) || mod.game.me.is(event.owner)) {
+			if (isMe(event.source) || isMe(event.owner)) {
 				let res = undefined;
 				if (data.activeMode.blockOwnHits) {
 					event.skill.id = 0;
@@ -235,7 +239,7 @@ class unitFps {
 			}
 			else if (
 				data.activeMode.blockAreaHits && (tracker.users.has(event.owner) || tracker.users.has(event.source))
-				&& !mod.game.me.is(event.target) && !mod.game.me.is(event.source) && !mod.game.me.is(event.owner)
+				&& !isMe(event.target) && !isMe(event.source) && !isMe(event.owner)
 			) {
 				event.skill.id = 0;
 				event.templateId = 0;
@@ -266,7 +270,7 @@ class unitFps {
 			if (isEntityBlocked(event.gameId) || data.activeMode.blockCustomAppearanceChanges) return false;
 		};
 
-		const blockAchievementsInCombat = () => ((data.activeMode.blockAchievementSpamInCombat && mod.game.me.inCombat) ? false : undefined);
+		const blockAchievementsInCombat = () => ((data.activeMode.blockAchievementSpamInCombat && meInCombat()) ? false : undefined);
 
 		const cleanup = () => {
 			blockedCollections.clear();
@@ -286,6 +290,7 @@ class unitFps {
 		data.lockedPacketsData.forEach(packet => { mod.hook(packet, RAW_HOOK_MODE.EVENT, HOOK_SETTINGS.LAST, blockUselessPackets); });
 
 		mod.hook(...proto.getData("S_SYSTEM_MESSAGE"), HOOK_SETTINGS.LAST, blockAnnoyingScreenMessages);
+		
 		mod.hook("C_SHOW_ITEMLIST", RAW_HOOK_MODE.EVENT, HOOK_SETTINGS.LAST, blockInventoryInCombat);
 		mod.hook("S_INVEN_USERDATA", RAW_HOOK_MODE.EVENT, HOOK_SETTINGS.LAST, blockInventoryInCombat);
 		mod.hook("S_ITEMLIST", RAW_HOOK_MODE.EVENT, HOOK_SETTINGS.LAST, blockInventoryInCombat);
@@ -294,14 +299,14 @@ class unitFps {
 		mod.hook("S_LOAD_TOPO", RAW_HOOK_MODE.EVENT, HOOK_SETTINGS.FIRST, cleanup);
 
 		//Basic spawn handling
-		mod.hook(...proto.getData("S_DESPAWN_COLLECTION"), HOOK_SETTINGS.LAST, blockCollections.bind(null, ENTITY_HOOK_TYPE.DESPAWN));
-		mod.hook(...proto.getData("S_SPAWN_COLLECTION"), HOOK_SETTINGS.LAST, blockCollections.bind(null, ENTITY_HOOK_TYPE.SPAWN));
+		mod.hook(...proto.getData("S_DESPAWN_COLLECTION"), HOOK_SETTINGS.LAST, collectionHandler.bind(null, ENTITY_HOOK_TYPE.DESPAWN));
+		mod.hook(...proto.getData("S_SPAWN_COLLECTION"), HOOK_SETTINGS.LAST, collectionHandler.bind(null, ENTITY_HOOK_TYPE.SPAWN));
 
-		mod.hook(...proto.getData("S_REQUEST_SPAWN_SERVANT"), HOOK_SETTINGS.LAST, blockServants.bind(null, ENTITY_HOOK_TYPE.SPAWN));
-		mod.hook(...proto.getData("S_REQUEST_DESPAWN_SERVANT"), HOOK_SETTINGS.LAST, blockServants.bind(null, ENTITY_HOOK_TYPE.DESPAWN));
+		mod.hook(...proto.getData("S_REQUEST_SPAWN_SERVANT"), HOOK_SETTINGS.LAST, servantsHandler.bind(null, ENTITY_HOOK_TYPE.SPAWN));
+		mod.hook(...proto.getData("S_REQUEST_DESPAWN_SERVANT"), HOOK_SETTINGS.LAST, servantsHandler.bind(null, ENTITY_HOOK_TYPE.DESPAWN));
 
-		mod.hook(...proto.getData("S_SPAWN_NPC"), HOOK_SETTINGS.LAST, npcHandler.bind(null, ENTITY_HOOK_TYPE.SPAWN));
-		mod.hook(...proto.getData("S_DESPAWN_NPC"), HOOK_SETTINGS.LAST, npcHandler.bind(null, ENTITY_HOOK_TYPE.DESPAWN));
+		mod.hook(...proto.getData("S_SPAWN_NPC"), HOOK_SETTINGS.LAST, npcsHandler.bind(null, ENTITY_HOOK_TYPE.SPAWN));
+		mod.hook(...proto.getData("S_DESPAWN_NPC"), HOOK_SETTINGS.LAST, npcsHandler.bind(null, ENTITY_HOOK_TYPE.DESPAWN));
 
 		mod.hook(...proto.getData("S_SPAWN_USER"), HOOK_SETTINGS.FIRST, userHandler.bind(null, ENTITY_HOOK_TYPE.SPAWN));
 		mod.hook(...proto.getData("S_DESPAWN_USER"), HOOK_SETTINGS.FIRST, userHandler.bind(null, ENTITY_HOOK_TYPE.DESPAWN));
@@ -332,11 +337,11 @@ class unitFps {
 		mod.hook(...proto.getData("S_ACTION_STAGE"), HOOK_SETTINGS.LAST, actionHandler);
 		mod.hook(...proto.getData("S_ACTION_END"), HOOK_SETTINGS.LAST, actionHandler);
 
-		mod.hook(...proto.getData("S_ABNORMALITY_BEGIN"), HOOK_SETTINGS.LAST, abnormieHandler);
-		mod.hook(...proto.getData("S_ABNORMALITY_END"), HOOK_SETTINGS.LAST, abnormieHandler);
-		mod.hook(...proto.getData("S_ABNORMALITY_FAIL"), HOOK_SETTINGS.LAST, abnormieHandler);
-		mod.hook(...proto.getData("S_ABNORMALITY_DAMAGE_ABSORB"), HOOK_SETTINGS.LAST, abnormieHandler);
-		mod.hook(...proto.getData("S_ABNORMALITY_RESIST"), HOOK_SETTINGS.LAST, abnormieHandler);
+		mod.hook(...proto.getData("S_ABNORMALITY_BEGIN"), HOOK_SETTINGS.LAST, abnormalsHandler);
+		mod.hook(...proto.getData("S_ABNORMALITY_END"), HOOK_SETTINGS.LAST, abnormalsHandler);
+		mod.hook(...proto.getData("S_ABNORMALITY_FAIL"), HOOK_SETTINGS.LAST, abnormalsHandler);
+		mod.hook(...proto.getData("S_ABNORMALITY_DAMAGE_ABSORB"), HOOK_SETTINGS.LAST, abnormalsHandler);
+		mod.hook(...proto.getData("S_ABNORMALITY_RESIST"), HOOK_SETTINGS.LAST, abnormalsHandler);
 
 		mod.hook(...proto.getData("S_SPAWN_PROJECTILE"), HOOK_SETTINGS.LAST, projectileHandler);
 		mod.hook(...proto.getData("S_START_USER_PROJECTILE"), HOOK_SETTINGS.LAST, projectileHandler);

+ 40 - 51
lib/unitState.js

@@ -12,8 +12,9 @@
 
 //using es5 compatible mode because json not supports es6 types and es6 version is slow ->(require("fast-deep-equal/es6");)
 const equal = require("fast-deep-equal");
-const rfdc = require("rfdc")({ "proto": true });
 const EventEmitter = require("events").EventEmitter;
+
+const rfdc = require("rfdc")({ "proto": true });
 const utils = require("./helpers/utils");
 
 //import enums 
@@ -57,15 +58,12 @@ class unitState extends EventEmitter {
 
 		deps.mod.game.data.abnormalities.forEach(abnormality => {
 			let types = abnormality.effects.map(x => x.type);
-			if (utils.arraysHasIntersect(types, huntingRewards)) {
+			if (utils.arraysHasIntersect(types, huntingRewards))
 				this.huntingRewardsBuffs.add(abnormality.id);
-			}
-			if (utils.arraysHasIntersect(types, shapeChangers)) {
+			if (utils.arraysHasIntersect(types, shapeChangers))
 				this.shapeChangersBuffs.add(abnormality.id);
-			}
-			if (utils.arraysHasIntersect(types, onScreenEffects)) {
+			if (utils.arraysHasIntersect(types, onScreenEffects))
 				this.onScreenEffectsBuffs.add(abnormality.id);
-			}
 		});
 
 		deps.mod.game.data.users.forEach(template => {
@@ -90,55 +88,46 @@ class unitState extends EventEmitter {
 		this.throttlePacketsData = staticData.throttledProto;
 		this.smtsSet = new Set(...staticData.blockedSmt);
 
-		this.__mod.hook("S_LOGIN", RAW_HOOK_MODE.EVENT, HOOK_SETTINGS.FIRST, this._loginEvent);
-		this.__mod.hook(...this.__proto.getData("S_LOAD_TOPO"), HOOK_SETTINGS.FIRST, this._areaTriggerCheck);
-		this.__mod.hook("S_FIELD_EVENT_ON_ENTER", RAW_HOOK_MODE.EVENT, HOOK_SETTINGS.FIRST, this._guardianTriggerCheck);
-		this.__mod.hook("S_FIELD_EVENT_ON_LEAVE", RAW_HOOK_MODE.EVENT, HOOK_SETTINGS.FIRST, this._guardianLeaveTriggerCheck);
-	}
-
-	//exposed handler for debug purposes 
-	_loginEvent() {
-		this.preset = this.settings["classBasedPresets"]
-			? (this.presets[this.__mod.game.me.class] || this.presets["common"])
-			: this.presets["common"];
+		this.__mod.hook("S_LOGIN", RAW_HOOK_MODE.EVENT, HOOK_SETTINGS.FIRST,  () => {
+			this.preset = this.settings["classBasedPresets"]
+				? (this.presets[this.__mod.game.me.class] || this.presets["common"])
+				: this.presets["common"];
 
-		if (!this.preset) { throw new Error("Preset can't be loaded! Critical error. "); }
+			if (!this.preset) { throw new Error("Preset can't be loaded! Critical error. "); }
 
-		this.activeMode = this.preset[this.preset.directives["default"]];
-	}
+			this.activeMode = this.preset[this.preset.directives["default"]];
+		});
 
-	//exposed handler for debug purposes 
-	_areaTriggerCheck(event) {
-		if (!this.settings["applyTrigger"] || equal(this.prevMode, this.activeMode)) return;
-		this.prevMode = rfdc(this.activeMode);
-		if (this.__mod.game.me.inOpenWorld && this.preset.directives.triggerOW) {
-			this.activeMode = this.preset[this.preset.directives.triggerOW];
-		}
-		else if (this.__mod.game.me.inBattleground && this.preset.directives.triggerBG) {
-			this.activeMode = this.preset[this.preset.directives.triggerBG];
-		}
-		else if (this.__mod.game.me.inCivilUnrest && this.preset.directives.triggerCU) {
-			this.activeMode = this.preset[this.preset.directives.triggerCU];
-		}
-		else if (this.__mod.game.me.inDungeon && this.preset.directives.triggerDungeons) {
-			this.activeMode = this.preset[this.preset.directives.triggerDungeons[event.zone]] || 
-							this.preset[this.preset.directives.triggerDungeons["all"]];
-		}
-	}
+		this.__mod.hook(...this.__proto.getData("S_LOAD_TOPO"), HOOK_SETTINGS.FIRST, (event) => {
+			if (!this.settings["applyTrigger"] || equal(this.prevMode, this.activeMode)) return;
+			this.prevMode = rfdc(this.activeMode);
+			if (this.__mod.game.me.inOpenWorld && this.preset.directives.triggerOW) {
+				this.activeMode = this.preset[this.preset.directives.triggerOW];
+			}
+			else if (this.__mod.game.me.inBattleground && this.preset.directives.triggerBG) {
+				this.activeMode = this.preset[this.preset.directives.triggerBG];
+			}
+			else if (this.__mod.game.me.inCivilUnrest && this.preset.directives.triggerCU) {
+				this.activeMode = this.preset[this.preset.directives.triggerCU];
+			}
+			else if (this.__mod.game.me.inDungeon && this.preset.directives.triggerDungeons) {
+				this.activeMode = this.preset[this.preset.directives.triggerDungeons[event.zone]] || 
+								this.preset[this.preset.directives.triggerDungeons["all"]];
+			}
+		});
 
-	//exposed handler for debug purposes 
-	_guardianTriggerCheck() {
-		if (!this.settings["applyTrigger"] || equal(this.prevMode, this.activeMode)) return;
-		this.prevMode = rfdc(this.activeMode);
-		this.activeMode = this.preset[this.preset.directives.triggerGuardians];
-		this._eventTrigger();
-	}
+		this.__mod.hook("S_FIELD_EVENT_ON_ENTER", RAW_HOOK_MODE.EVENT, HOOK_SETTINGS.FIRST, () => {
+			if (!this.settings["applyTrigger"] || equal(this.prevMode, this.activeMode)) return;
+			this.prevMode = rfdc(this.activeMode);
+			this.activeMode = this.preset[this.preset.directives.triggerGuardians];
+			this._eventTrigger();
+		});
 
-	//exposed handler for debug purposes 
-	_guardianLeaveTriggerCheck() {
-		if (!this.settings["applyTrigger"] || equal(this.prevMode, this.activeMode)) return;
-		this.activeMode = rfdc(this.prevMode);
-		this._eventTrigger();
+		this.__mod.hook("S_FIELD_EVENT_ON_LEAVE", RAW_HOOK_MODE.EVENT, HOOK_SETTINGS.FIRST, ()=> {
+			if (!this.settings["applyTrigger"] || equal(this.prevMode, this.activeMode)) return;
+			this.activeMode = rfdc(this.prevMode);
+			this._eventTrigger();
+		});
 	}
 
 	_eventTrigger() {

+ 0 - 1
lib/unitTracker.js

@@ -12,7 +12,6 @@
 
 const { ENTITY_HOOK_TYPE, HOOK_SETTINGS, RAW_HOOK_MODE, SPECIAL_ZONES } = require("./helpers/enums");
 
-/* eslint-disable default-case */
 class unitState {
 	/**
 	 *Creates an instance of unitState.