Browse Source

:x

missing reload command
Fukki 7 years ago
parent
commit
023d1c04f9
2 changed files with 22 additions and 1 deletions
  1. 20 0
      index.js
  2. 2 1
      manifest.json

+ 20 - 0
index.js

@@ -20,6 +20,26 @@ module.exports = function AutoPOT(mod) {
 				config.notice = !config.notice;
 				msg(`Notice has ${config.notice ? 'Enable' : 'Disable'}.`);
 				break;
+			case 're':
+			case 'load':
+			case 'reload':
+				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':
+						config = getConfig();
+						msg(`Config.json has been reloaded.`);
+						break;
+				}
+				break;
 			case 'slay':
 			case 'slaying':
 				isSlaying = !isSlaying;

+ 2 - 1
manifest.json

@@ -1,8 +1,9 @@
 {
 	"files": {
-		"index.js": "5f016265bd9882786cfc9ce0d723e723afd4062dd5d64ed15ab2b296b43e3e53"
+		"index.js": "b03b889cde74250c179e522c32fb0120609464403a75f0e5c855a68c7ef2d840"
 	},
 	"defs": {
+		"C_SHOW_INVEN": 1,
 		"C_USE_ITEM": 3,
 		"S_CREATURE_CHANGE_HP": 6,
 		"S_INVEN": 17,