Browse Source

patch 102

WithoutLogic 5 years ago
parent
commit
5caa9283a6
5 changed files with 29 additions and 49 deletions
  1. 3 3
      config.json
  2. 1 1
      index.js
  3. 10 30
      manifest.json
  4. 12 12
      module.json
  5. 3 3
      settings_migrator.js

+ 3 - 3
config.json

@@ -15,8 +15,8 @@
         "autoHeal": true,
         "autoCleanse": true,
         "hpCutoff": 97,
-        "maxDistance": 35,
-        "lockSpeed": 30,
-        "castSpeed": 100
+        "maxDistance": 27,
+        "lockSpeed": 45,
+        "castSpeed": 150
     }
 }

+ 1 - 1
index.js

@@ -113,7 +113,7 @@ module.exports = function AutoHeal(mod) {
                 playerLocation.w = event.w;
             })
             
-            hook('S_SPAWN_USER', 15, (event) => {
+            hook('S_SPAWN_USER', 17, (event) => {
                 if (partyMembers.length != 0) {
                     let member = partyMembers.find(m => m.playerId === event.playerId);
                     if (member) {

+ 10 - 30
manifest.json

@@ -1,31 +1,11 @@
 {
-  "files": {
-    "config.json": {
-        "overwrite": false,
-        "hash": "69c206298dd7705762e602b1bed66cd9a13aa90e9c6ba6900f486956dd59c8e2"
-    },
-    "index.js": "50afce6bef0c40e75f2b2cae06b236151329b9c61d9450bc20324ccbd18c27b2",
-    "module.json": "d21df02f2d9406d01c11514ba88437d801dcfb31ec8911af9f94a5f1b344a3ec",
-    "settings_migrator.js": "457017eb5eb7f9cd6ee1dd0b463082e62a401724af7ba84b60d0c1dc822786cf"
-  },
-  "defs": {
-    "C_CAN_LOCKON_TARGET": 3,
-    "C_PLAYER_LOCATION": 5,
-    "C_START_SKILL": 7,
-    "S_BAN_PARTY_MEMBER": 1,
-    "S_CREST_APPLY": 2,
-    "S_CREST_INFO": 2,
-    "S_DEAD_LOCATION": 2,
-    "S_INSTANT_DASH": 3,
-    "S_LEAVE_PARTY": 1,
-    "S_LEAVE_PARTY_MEMBER": 2,
-    "S_LOGOUT_PARTY_MEMBER": 1,
-    "S_PARTY_MEMBER_CHANGE_HP": 4,    
-    "S_PARTY_MEMBER_LIST": 7,
-    "S_PARTY_MEMBER_STAT_UPDATE": 3,    
-    "S_SPAWN_ME": 3,
-    "S_SPAWN_USER": 15,
-    "S_USER_LOCATION": 5,
-    "S_USER_LOCATION_IN_ACTION": 2
-  }
-}
+    "files": {
+        "config.json": {
+			"overwrite": false,
+			"hash": "587bd6b05d5f53bca6abc0a10a71b5f19fb33512a144b619a0bf469cf7b5d66c"
+		},
+        "index.js": "5b3f8eaa69c6b1c3950221806583230a6c5c6a7c5216ddf3929f0951257a8725",
+        "module.json": "992ccca15a09437b74caded28d2f6af8fea5c533b2153ab22995e32cea13203b",
+        "settings_migrator.js": "d179ced619b903e02b5591ad25a4070351b777165f028bd274d60567d9a1bd5b"
+    }
+}

+ 12 - 12
module.json

@@ -1,16 +1,16 @@
 {
     "disableAutoUpdate": false,
-	"name": "auto-heal",
-	"author": "teralove",
-	"description": "Auto lockon and instantly heal/cleanse party members.",
-    "version": "97.03",
-    "donationUrl": "https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=PXRFYB39SQP4A", 
-	"options": {
-		"niceName": "Auto Heal",
+    "name": "auto-heal",
+    "author": "teralove",
+    "description": "Auto lockon and instantly heal/cleanse party members.",
+    "version": "102",
+    "donationUrl": "https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=PXRFYB39SQP4A",
+    "options": {
+        "niceName": "Auto Heal",
         "settingsVersion": 1,
         "settingsFile": "config.json",
-        "settingsMigrator": "settings_migrator.js"    
-	},
-    "servers": ["https://raw.githubusercontent.com/teralove/auto-heal/master/"],
-    "supportUrl": "https://github.com/teralove/auto-heal/issues"
-}
+        "settingsMigrator": "settings_migrator.js"
+    },
+    "servers": ["https://raw.githubusercontent.com/WithoutLogic/auto-heal/master/"],
+    "supportUrl": "https://github.com/WithoutLogic/auto-heal/issues"
+}

+ 3 - 3
settings_migrator.js

@@ -16,9 +16,9 @@ const DefaultSettings = {
     "autoHeal": true,     // enable healing skills
     "autoCleanse": true,  // enable mystic cleanse
     "hpCutoff": 97,       // (healing only) ignore members that have more HP% than this
-    "maxDistance": 35,    // in-game meters. can work up to 35m
-    "lockSpeed": 30,       // delay for locking on targets.
-    "castSpeed": 100       // delay for casting skills. castSpeed needs to be greater than lockSpeed.
+    "maxDistance": 27,    // in-game meters. can work up to 35m
+    "lockSpeed": 45,       // delay for locking on targets.
+    "castSpeed": 150       // delay for casting skills. castSpeed needs to be greater than lockSpeed.
 }
 
 module.exports = function MigrateSettings(from_ver, to_ver, settings) {