Browse Source

:v

Auto-Update inventory after reload potion
Fukki 7 years ago
parent
commit
f58f0d3515
2 changed files with 4 additions and 1 deletions
  1. 2 0
      index.js
  2. 2 1
      manifest.json

+ 2 - 0
index.js

@@ -26,10 +26,12 @@ module.exports = function AutoPOT(mod) {
 				switch (arg2) {
 					case 'hp':
 						hpPot = getHP();
+						mod.toServer('C_SHOW_INVEN', 1, {unk: 1});
 						msg(`HP.json has been reloaded.`);
 						break;
 					case 'mp':
 						mpPot = getMP();
+						mod.toServer('C_SHOW_INVEN', 1, {unk: 1});
 						msg(`MP.json has been reloaded.`);
 						break;
 					case 'config':

+ 2 - 1
manifest.json

@@ -1,8 +1,9 @@
 {
 	"files": {
-		"index.js": "3aa8632bebf03b33eb98d4d9d86a25c13ad1d88aa200f9e07921f6cea68eb064"
+		"index.js": "5984783cd0e61d660c64a293c580ef743c87cba7843fa57a3b34d2a326dea055"
 	},
 	"defs": {
+		"C_SHOW_INVEN": 1,
 		"C_USE_ITEM": 3,
 		"S_INVEN": 17,
 		"S_PLAYER_STAT_UPDATE": 10,