|
@@ -22,7 +22,8 @@ const { RAW_HOOK_MODE, HOOK_SETTINGS, ABN, EVENTS } = require("./helpers/enums")
|
|
|
|
|
|
|
|
//types for abnormals to find in client data
|
|
//types for abnormals to find in client data
|
|
|
const shapeChangers = [ABN.BigHead, ABN.ShapeChanger];
|
|
const shapeChangers = [ABN.BigHead, ABN.ShapeChanger];
|
|
|
-const onScreenEffects = [ABN.FX, ABN.PostProcessingEffect, ABN.CCB];
|
|
|
|
|
|
|
+const onScreenEffects = [ABN.FX, ABN.PostProcessingEffect];
|
|
|
|
|
+const ccbEffects = [ABN.CCB];
|
|
|
|
|
|
|
|
class unitState extends EventEmitter {
|
|
class unitState extends EventEmitter {
|
|
|
/**
|
|
/**
|
|
@@ -51,6 +52,7 @@ class unitState extends EventEmitter {
|
|
|
//lookup structures
|
|
//lookup structures
|
|
|
"shapeChangersBuffs": new Set(),
|
|
"shapeChangersBuffs": new Set(),
|
|
|
"onScreenEffectsBuffs": new Set(),
|
|
"onScreenEffectsBuffs": new Set(),
|
|
|
|
|
+ "ccbBuffs": new Set(),
|
|
|
"smtData": new Set(),
|
|
"smtData": new Set(),
|
|
|
"specialAs": new Set(),
|
|
"specialAs": new Set(),
|
|
|
"whitelistAbnormals": new Set(),
|
|
"whitelistAbnormals": new Set(),
|
|
@@ -63,6 +65,8 @@ class unitState extends EventEmitter {
|
|
|
this.shapeChangersBuffs.add(abnormality.id);
|
|
this.shapeChangersBuffs.add(abnormality.id);
|
|
|
if (utils.arraysHasIntersect(types, onScreenEffects))
|
|
if (utils.arraysHasIntersect(types, onScreenEffects))
|
|
|
this.onScreenEffectsBuffs.add(abnormality.id);
|
|
this.onScreenEffectsBuffs.add(abnormality.id);
|
|
|
|
|
+ if (utils.arraysHasIntersect(types, ccbEffects))
|
|
|
|
|
+ this.ccbBuffs.add(abnormality.id);
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
this.__mod.queryData("/S1ActionScripts@type=?/Script/", ["Teleport"], true, false, ["id"]).then(result => {
|
|
this.__mod.queryData("/S1ActionScripts@type=?/Script/", ["Teleport"], true, false, ["id"]).then(result => {
|