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