Dmitry S 4 years ago
parent
commit
f835986db2
2 changed files with 3 additions and 3 deletions
  1. 2 2
      index.js
  2. 1 1
      manifest.json

+ 2 - 2
index.js

@@ -222,7 +222,7 @@ module.exports = function AutoPOT(mod) {
 	});
 	});
 	
 	
 	//Because S_PLAYER_STAT_UPDATE faster than CREATURE
 	//Because S_PLAYER_STAT_UPDATE faster than CREATURE
-	mod.hook('S_PLAYER_STAT_UPDATE', 13, e => {
+	mod.hook('S_PLAYER_STAT_UPDATE', mod.majorPatchVersion >= 93 ? 14 : 13, e => {
 		if (config.enabled) {
 		if (config.enabled) {
 			useHP(Math.round(s2n(e.hp) / s2n(e.maxHp) * 100));
 			useHP(Math.round(s2n(e.hp) / s2n(e.maxHp) * 100));
 			useMP(Math.round(s2n(e.mp) / s2n(e.maxMp) * 100));
 			useMP(Math.round(s2n(e.mp) / s2n(e.maxMp) * 100));
@@ -239,7 +239,7 @@ module.exports = function AutoPOT(mod) {
 			useMP(Math.round(s2n(e.currentMp) / s2n(e.maxMp) * 100));
 			useMP(Math.round(s2n(e.currentMp) / s2n(e.maxMp) * 100));
 	});*/
 	});*/
 	
 	
-	mod.hook('S_ITEMLIST', 3, e => {
+	mod.hook('S_ITEMLIST', mod.majorPatchVersion >= 96 ? 4 : 3, e => {
 		if (!invUpdate && e.gameId === mod.game.me.gameId) {
 		if (!invUpdate && e.gameId === mod.game.me.gameId) {
 			invUpdate = true;
 			invUpdate = true;
 			for(let hp = 0; hp < hpPot.length; hp++)
 			for(let hp = 0; hp < hpPot.length; hp++)

+ 1 - 1
manifest.json

@@ -9,7 +9,7 @@
             "overwrite": false,
             "overwrite": false,
             "hash": "19ee03ebc681238e9ec13c04f75d21ed9fcbeaed29fc38ef49c3e3b5abd4f2ee"
             "hash": "19ee03ebc681238e9ec13c04f75d21ed9fcbeaed29fc38ef49c3e3b5abd4f2ee"
         },
         },
-        "index.js": "4c07d58adf92538524777fee1790bdd3d26462cd5f62623f5cd6dafb57a6be8d",
+        "index.js": "39983acfdbd7611b6c0ceb62eb7a34c815aba175521f8a4dea19b52306f69b1f",
         "module.json": "89f99b9622cf062cf00777ffd18614080f380708b8098162eadb273d3beebbe5",
         "module.json": "89f99b9622cf062cf00777ffd18614080f380708b8098162eadb273d3beebbe5",
         "mp.json": {
         "mp.json": {
             "overwrite": false,
             "overwrite": false,