Browse Source

remove hunting rewards block

SaltyMonkey 6 years ago
parent
commit
1bba75bdb5
3 changed files with 3 additions and 15 deletions
  1. 0 2
      lib/unitFps.js
  2. 0 4
      lib/unitState.js
  3. 3 9
      settings/presets/common.json

+ 0 - 2
lib/unitFps.js

@@ -153,8 +153,6 @@ class unitFps {
 		const isAbnormalBlockable = (event) => {
 			if (data.activeMode.blockBuffs) {
 				if (isEntityBlocked(event.target) || (data.activeMode.blockBuffs.area && !isMe(event.target) && tracker.spawnedPlayers.has(event.target))) return true;
-
-				if (data.activeMode.blockBuffs.huntRewards && data.huntingRewardsBuffs.has(event.id)) return true;
 				if (data.activeMode.blockBuffs.shapeChange && data.shapeChangersBuffs.has(event.id)) return true;
 				if (data.activeMode.blockBuffs.effects && data.onScreenEffectsBuffs.has(event.id)) return true;
 			}

+ 0 - 4
lib/unitState.js

@@ -21,7 +21,6 @@ const utils = require("./helpers/utils");
 const { RAW_HOOK_MODE, HOOK_SETTINGS, ABN, EVENTS } = require("./helpers/enums");
 
 //types for abnormals to find in client data
-const huntingRewards = [ABN.HuntingGoldModifier, ABN.QuestingGoldModifier, ABN.ReputationBoostModifier, ABN.EPExp];
 const shapeChangers = [ABN.BigHead, ABN.ShapeChanger];
 const onScreenEffects = [ABN.FX, ABN.PostProcessingEffect, ABN.CCB];
 
@@ -50,7 +49,6 @@ class unitState extends EventEmitter {
 			"lockedPacketsData": [],
 			"throttlePacketsData": [],
 			//lookup structures 
-			"huntingRewardsBuffs": new Set(),
 			"shapeChangersBuffs": new Set(),
 			"onScreenEffectsBuffs": new Set(),
 			"smtData": new Set()
@@ -58,8 +56,6 @@ class unitState extends EventEmitter {
 
 		deps.mod.game.data.abnormalities.forEach(abnormality => {
 			let types = abnormality.effects.map(x => x.type);
-			if (utils.arraysHasIntersect(types, huntingRewards))
-				this.huntingRewardsBuffs.add(abnormality.id);
 			if (utils.arraysHasIntersect(types, shapeChangers))
 				this.shapeChangersBuffs.add(abnormality.id);
 			if (utils.arraysHasIntersect(types, onScreenEffects))

+ 3 - 9
settings/presets/common.json

@@ -27,7 +27,6 @@
 			},
 			"blockBuffs": {
 				"area": false,
-				"huntRewards": false,
 				"shapeChange": false,
 				"effects": false
 			},
@@ -48,8 +47,7 @@
 				"templateId": []
 			},
 			"blockServants": {
-				"area": false,
-				"me": false
+				"area": false
 			},
 			"blockSummons": {
 				"me": false,
@@ -91,7 +89,6 @@
 			},
 			"blockBuffs": {
 				"area": false,
-				"huntRewards": true,
 				"shapeChange": true,
 				"effects": true
 			},
@@ -112,8 +109,7 @@
 				"templateId": []
 			},
 			"blockServants": {
-				"area": true,
-				"me": false
+				"area": true
 			},
 			"blockSummons": {
 				"me": false,
@@ -155,7 +151,6 @@
 			},
 			"blockBuffs": {
 				"area": true,
-				"huntRewards": true,
 				"shapeChange": true,
 				"effects": true
 			},
@@ -176,8 +171,7 @@
 				"templateId": []
 			},
 			"blockServants": {
-				"area": true,
-				"me": false
+				"area": true
 			},
 			"blockSummons": {
 				"me": true,