SaltyMonkey 6 years ago
parent
commit
61e02574bb
3 changed files with 2 additions and 13 deletions
  1. 2 9
      lib/unitFps.js
  2. 0 2
      lib/unitProto.js
  3. 0 2
      lib/unitTracker.js

+ 2 - 9
lib/unitFps.js

@@ -37,8 +37,6 @@ class unitFps {
 
 
 		const blockedProjectiles = new Set();
 		const blockedProjectiles = new Set();
 
 
-		console.log("DEBUG: unitFps -> constructor");
-
 		//-------------------------------------
 		//-------------------------------------
 		// Basic internal functions 
 		// Basic internal functions 
 		//-------------------------------------
 		//-------------------------------------
@@ -139,8 +137,7 @@ class unitFps {
 
 
 		const isProjectileBlockable = (event) => {
 		const isProjectileBlockable = (event) => {
 			if (data.activeMode.blockProjectiles) {
 			if (data.activeMode.blockProjectiles) {
-				if (data.activeMode.blockProjectiles.keepParty && partyMembers.has(event.gameId))
-					return false;
+				if (data.activeMode.blockProjectiles.keepParty && partyMembers.has(event.gameId)) return false;
 				if (data.activeMode.blockProjectiles.players && tracker.spawnedPlayers.has(event.gameId)) return true;
 				if (data.activeMode.blockProjectiles.players && tracker.spawnedPlayers.has(event.gameId)) return true;
 			}
 			}
 			return false;
 			return false;
@@ -478,8 +475,7 @@ class unitFps {
 		};
 		};
 
 
 		const itemsExplosionHandler = (event) => {
 		const itemsExplosionHandler = (event) => {
-			if (isEffectBlockable(event))
-				return false;
+			if (isEffectBlockable(event)) return false;
 		};
 		};
 
 
 		const appearanceChangeHandler = (event) => {
 		const appearanceChangeHandler = (event) => {
@@ -529,7 +525,6 @@ class unitFps {
 		};
 		};
 
 
 		const cleanup = () => {
 		const cleanup = () => {
-			console.log("DEBUG: unitFps -> cleanup");
 			blockedPlayers.clear();
 			blockedPlayers.clear();
 			blockedNpcs.clear();
 			blockedNpcs.clear();
 			blockedSummons.clear();
 			blockedSummons.clear();
@@ -615,7 +610,6 @@ class unitFps {
 		mod.hook("S_LEAVE_PARTY", RAW_HOOK_MODE.EVENT, HOOK_SETTINGS.FIRSTA, partyLeaveHandler);
 		mod.hook("S_LEAVE_PARTY", RAW_HOOK_MODE.EVENT, HOOK_SETTINGS.FIRSTA, partyLeaveHandler);
 
 
 		deps.data.on(EVENTS.RECONFIGURE, () => {
 		deps.data.on(EVENTS.RECONFIGURE, () => {
-			console.log("DEBUG: unitFps -> constructor -> reconfigureEvent");
 			changeShakeState();
 			changeShakeState();
 			reconfigureCollections();
 			reconfigureCollections();
 			reconfigureDrop();
 			reconfigureDrop();
@@ -626,7 +620,6 @@ class unitFps {
 		});
 		});
 
 
 		deps.data.on(EVENTS.RECONFIGUREPARTIAL, () => {
 		deps.data.on(EVENTS.RECONFIGUREPARTIAL, () => {
-			console.log("DEBUG: unitFps -> constructor -> reconfigurePartialEvent");
 			changeShakeState();
 			changeShakeState();
 		});
 		});
 	}
 	}

+ 0 - 2
lib/unitProto.js

@@ -20,8 +20,6 @@ class unitProto {
 	 */
 	 */
 	constructor(deps) {
 	constructor(deps) {
 		this.__mod = deps.mod;
 		this.__mod = deps.mod;
-
-		console.log("DEBUG: unitProto -> constructor");
 	}
 	}
 
 
 	/**
 	/**

+ 0 - 2
lib/unitTracker.js

@@ -22,8 +22,6 @@ class unitTracker {
 		const mod = deps.mod;
 		const mod = deps.mod;
 		const proto = deps.proto;
 		const proto = deps.proto;
 
 
-		console.log("DEBUG: unitTracker -> constructor");
-
 		// portals "shapeId": 652992,
 		// portals "shapeId": 652992,
 		// ninja log "shapeId": 303030
 		// ninja log "shapeId": 303030
 		// sentinel "shapeId": 730500
 		// sentinel "shapeId": 730500