Просмотр исходного кода

Fix.

And removed classic server compatibility.
Mie лет назад: 7
Родитель
Сommit
201855ef8b
2 измененных файлов с 2 добавлено и 5 удалено
  1. 1 4
      lib/index.js
  2. 1 1
      manifest.json

+ 1 - 4
lib/index.js

@@ -495,7 +495,6 @@ module.exports = function FpsUtils(mod) {
 			if (event.mount) event.mount = 16;
 			if (mod.settings.Hideguildlogos) event.guildLogoId = 0;
 			event.title = 0;
-			// event.weaponModel = event.bodyModel = event.handModel = event.feetModel // TODO;
 			event.weaponDye = event.bodyDye = event.handDye = event.feetDye = event.weaponEnchant = 0;
 			event.showFace = false;
 			event.styleHead = event.styleFace = event.styleBack = event.styleWeapon = event.styleBody = 0;
@@ -563,7 +562,6 @@ module.exports = function FpsUtils(mod) {
 
 	function NpcBCheck(event) {
 		let blocked = false;
-		//if (mod.settings.ShowStyle) event.repairable = false;
 
 		if (mod.settings.HideBlacklistedNpcs) {
 			for (let i = 0; i < mod.settings.NpcsBlacklist.length; i++) {
@@ -813,7 +811,6 @@ module.exports = function FpsUtils(mod) {
 		SNpcs[event.gameId].spawnType = 1;
 		SNpcs[event.gameId].spawnScript = 0;
 		if (NpcBCheck(event)) return false;
-		//if (mod.settings.ShowStyle) { event.repairable = false; return true; } // partially... This option is not only used for the icons above npcs heads, but it's used also for showing the whole shape of some npcs, e.g. bahaar & glsh. :\
 	}
 
 	function sDespawnNpc(event) {
@@ -957,7 +954,7 @@ module.exports = function FpsUtils(mod) {
 	// ~~~ * Packet Hooks * ~~~ \\
 
 	const Last_Hook = { order: 100010 }
-	const Last_Hookfn = { order: 100010, filter: { fake: null } };
+	const Last_Hookfn = { order: 100010, filter: { fake: null } }
 
 	mod.hook('S_LOGIN', 12, sLogin)
 	mod.hook('S_LOAD_TOPO', 'raw', sLoadTopo)

+ 1 - 1
manifest.json

@@ -3,7 +3,7 @@
         "README.md": "d460498a2503b6857f0faed356b8f06cf4108ae863d022e361f6762877966837",
         "lib/data/npcData.json": "913aace2b007dc2c04cfcb4b96bd8fea4abbc4a149df8a901c7382797b25f23b",
         "lib/data/skillString.json": "9d69876fea0be8e6ac5dd43b3fc74ea023f6b8a6145384f8f780dd977045d8ef",
-        "lib/index.js": "ad8bcc96675eb29b5b9f5b88dd11360bbe40fd7b1efd5d816edb9f20700f8f8f",
+        "lib/index.js": "90c18a34af941478bb029a77c1d98868a0471a95a653c38f7e820169615b298f",
         "lib/setting_migration.js": "868abf1f54c8e91df415e19220a2046021fa67a905dcff6a799b01a83488f6a8",
         "module.json": "edcfd2361bc0f72ed7b3838f9f07ad3647738ed2564e230e7da8f7b4a08db715",
         "package.json": "f3e3cf2c845e54b6503108b6bef7f8f5bf33654f6ae1664c75bedbf7f6aa83c1"