Browse Source

:v

old inventory version for some region not patch >= 80
Fukki 7 years ago
parent
commit
30c4c7788b
2 changed files with 3 additions and 3 deletions
  1. 1 1
      index.js
  2. 2 2
      manifest.json

+ 1 - 1
index.js

@@ -214,7 +214,7 @@ module.exports = function AutoPOT(mod) {
 		}
 	});
 	
-	mod.hook('S_INVEN', 18, e => {
+	mod.hook('S_INVEN', mod.majorPatchVersion > 79 ? 18 : 17, e => {
 		if (!invUpdate) {
 			invUpdate = true;
 			for(let hp = 0; hp < hpPot.length; hp++) {

+ 2 - 2
manifest.json

@@ -1,6 +1,6 @@
 {
 	"files": {
-		"index.js": "3fa58e1a0f2fdb9edb4802792178977b9cf19dd283a54d2213ebaa08c6084d5c"
+		"index.js": "305a299c4f8988708d432dd1681d8b1f39b7f04921919458fae7db92e1b671cf"
 	},
 	"defs": {
 		"C_ADMIN": 1,
@@ -10,7 +10,7 @@
 		"C_USE_ITEM": 3,
 		"S_ANNOUNCE_UPDATE_NOTIFICATION": 1,
 		"S_CREATURE_CHANGE_HP": 6,
-		"S_INVEN": 18,
+		"S_INVEN": [17,18],
 		"S_PLAYER_CHANGE_MP": 1,
 		"S_RETURN_TO_LOBBY": "raw",
 		"S_SPAWN_ME": 3