|
@@ -33,6 +33,8 @@ class unitFps {
|
|
|
const blockedServants = new Set();
|
|
const blockedServants = new Set();
|
|
|
const blockedDrop = new Set();
|
|
const blockedDrop = new Set();
|
|
|
|
|
|
|
|
|
|
+ console.log("DEBUG: unitFps -> constructor");
|
|
|
|
|
+
|
|
|
//-------------------------------------
|
|
//-------------------------------------
|
|
|
// Basic internal functions
|
|
// Basic internal functions
|
|
|
//-------------------------------------
|
|
//-------------------------------------
|
|
@@ -271,6 +273,7 @@ class unitFps {
|
|
|
const blockAchievementsInCombat = () => ((data.activeMode.blockAchievementSpamInCombat && meInCombat()) ? false : undefined);
|
|
const blockAchievementsInCombat = () => ((data.activeMode.blockAchievementSpamInCombat && meInCombat()) ? false : undefined);
|
|
|
|
|
|
|
|
const cleanup = () => {
|
|
const cleanup = () => {
|
|
|
|
|
+ console.log("DEBUG: unitFps -> cleanup");
|
|
|
blockedPlayers.clear();
|
|
blockedPlayers.clear();
|
|
|
blockedNpcs.clear();
|
|
blockedNpcs.clear();
|
|
|
blockedSummons.clear();
|
|
blockedSummons.clear();
|
|
@@ -351,6 +354,7 @@ class unitFps {
|
|
|
mod.hook(...proto.getData("S_USER_CHANGE_FACE_CUSTOM"), HOOK_SETTINGS.LAST, appearanceChangeHandler);
|
|
mod.hook(...proto.getData("S_USER_CHANGE_FACE_CUSTOM"), HOOK_SETTINGS.LAST, appearanceChangeHandler);
|
|
|
|
|
|
|
|
deps.data.on(EVENTS.RECONFIGURE, (oldMode, newMode) => {
|
|
deps.data.on(EVENTS.RECONFIGURE, (oldMode, newMode) => {
|
|
|
|
|
+ console.log("DEBUG: unitFps -> constructor -> reconfigureEvent");
|
|
|
let spawnCollections = oldMode.blockCollections !== newMode.blockCollections && newMode.blockCollections === false;
|
|
let spawnCollections = oldMode.blockCollections !== newMode.blockCollections && newMode.blockCollections === false;
|
|
|
let spawnOwnServants = oldMode.blockOwnServants !== newMode.blockOwnServants && newMode.blockOwnServants === false;
|
|
let spawnOwnServants = oldMode.blockOwnServants !== newMode.blockOwnServants && newMode.blockOwnServants === false;
|
|
|
let spawnAreaServants = oldMode.blockAreaServants !== newMode.blockAreaServants && newMode.blockAreaServants === false;
|
|
let spawnAreaServants = oldMode.blockAreaServants !== newMode.blockAreaServants && newMode.blockAreaServants === false;
|