Browse Source

Fix.

Small fix in readme and `mod.dispatch`.
Risenio 8 years ago
parent
commit
c9742361d4
3 changed files with 24 additions and 21 deletions
  1. 17 14
      README.md
  2. 5 5
      lib/index.js
  3. 2 2
      manifest.json

+ 17 - 14
README.md

@@ -2,29 +2,32 @@
 Written for tera-proxy, a free script filled with features dedicated to improve your fps, in the open world, in dungeons and in battlegrounds.
 Written for tera-proxy, a free script filled with features dedicated to improve your fps, in the open world, in dungeons and in battlegrounds.
 
 
 ## How to use
 ## How to use
-* Put the script folder "fps-utils" into `mods`.
-* Log the game using the proxy.
+  * Put the script folder "fps-utils" into `bin/node_modules`. (Or `mods` if you're caali's proxy user).
+  * Log the game using the proxy.
+
+## Capability
+  * Works on both (Caali's & Pony's) proxies.
+  * No dependencies.
 
 
 ## Commands can be found in [this Wiki](https://github.com/Risenio/fps-utils/wiki/Commands).
 ## Commands can be found in [this Wiki](https://github.com/Risenio/fps-utils/wiki/Commands).
 
 
 ## Suggestions
 ## Suggestions
-* If you have suggestions, need help, or want to comment on my coding, dm me on discord `@Risenio#1785` or leave an issue report.
+ * If you have suggestions, need help, or want to comment on my coding, dm me on discord `@Risenio#1785` or leave an issue report.
 
 
 ## Credits
 ## Credits
 Contributers:
 Contributers:
-- [HugeDong69](https://github.com/codeagon) - Super-Cozy developer. [Donation link](https://ko-fi.com/codeagon)
-- [Saegusae](https://github.com/Saegusae) - Original developer. [Donation link](https://www.patreon.com/saegusa)
-- [SerenTera](https://github.com/SerenTera)
-- [Kyoukaya](https://github.com/kyoukaya)
-- [SaltyMonkey](https://github.com/SaltyMonkey) - [Donation link](https://www.patreon.com/SaltyMonkey)
-- [Leyki](https://github.com/Leyki)
+  - [HugeDong69](https://github.com/codeagon) - Super-Cozy developer. [Donation link](https://ko-fi.com/codeagon)
+  - [Saegusae](https://github.com/Saegusae) - Original developer. [Donation link](https://www.patreon.com/saegusa)
+  - [SerenTera](https://github.com/SerenTera)
+  - [Kyoukaya](https://github.com/kyoukaya)
+  - [SaltyMonkey](https://github.com/SaltyMonkey) - [Donation link](https://www.patreon.com/SaltyMonkey)
+  - [Leyki](https://github.com/Leyki)
 
 
 ---
 ---
 
 
 Thanks to the following people in maintaining this module.
 Thanks to the following people in maintaining this module.
-- [Pinkie Pie](https://github.com/pinkipi) - [Donation link](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=5MTKARBK2CNG8&lc=US&item_name=Pinkie%27s%20TERA%20Mods&currency_code=USD)
-- [Caali](https://github.com/hackerman-caali) 
-- [Bernkastel](https://github.com/Bernkastel-0)
-- [Kasea](https://github.com/Kaseaa)
+  - [Caali](https://github.com/hackerman-caali)
+  - [Pinkie Pie](https://github.com/pinkipi) - [Donation link](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=5MTKARBK2CNG8&lc=US&item_name=Pinkie%27s%20TERA%20Mods&currency_code=USD)
+  - [Bernkastel](https://github.com/Bernkastel-0)
+  - [Kasea](https://github.com/Kaseaa)
 
 
-***

+ 5 - 5
lib/index.js

@@ -31,9 +31,9 @@ module.exports = function FpsUtils(mod) {
 		Xdata = '',
 		Xdata = '',
 		Xdone = false
 		Xdone = false
 
 
-	const Xmap = new WeakMap();	//ok I know what you think...if you got a better way feel free to inform me, thank you.
-	if (!Xmap.has(mod)) {
-		Xmap.set(mod, {});
+	const Xmap = new WeakMap();
+	if (!Xmap.has(mod.dispatch || mod)) {
+		Xmap.set(mod.dispatch || mod, {});
 
 
 		mod.hook('C_CONFIRM_UPDATE_NOTIFICATION', 'raw', () => false)
 		mod.hook('C_CONFIRM_UPDATE_NOTIFICATION', 'raw', () => false)
 
 
@@ -61,9 +61,9 @@ module.exports = function FpsUtils(mod) {
 			if (!Xdone) {
 			if (!Xdone) {
 				if (Xarray[i].command) Xshove(`<a href='admincommand:/@${Xarray[i].command}'>${Xarray[i].text}</a>`)
 				if (Xarray[i].command) Xshove(`<a href='admincommand:/@${Xarray[i].command}'>${Xarray[i].text}</a>`)
 				else if (!Xarray[i].command) Xshove(`${Xarray[i].text}`)
 				else if (!Xarray[i].command) Xshove(`${Xarray[i].text}`)
-				else console.log(`--v9-ERROR in Fps-Utils, pls report this as this ain't supposed to happen.`)
+				else console.log(`--v9-ERROR in Fps-Utils, pls report this.`)
 			} else if (Xdone) break;
 			} else if (Xdone) break;
-			else console.log(`---ERROR in Fps-Utils, pls report this as this ain't supposed to happen.`)
+			else console.log(`---ERROR in Fps-Utils, pls report this.`)
 		}
 		}
 		return Xdata
 		return Xdata
 	}
 	}

+ 2 - 2
manifest.json

@@ -1,9 +1,9 @@
 {
 {
 	"files": {
 	"files": {
-		"README.md": "b3bdcae6641fc741f65c11bc19788191d48b73a70b47f03cf15963dfe337a793",
+		"README.md": "1e217dd86a2584c5f6300196e9870288d99c517f1d6ae6c7652d096cc9d034e2",
 		"lib/data/npcData.json": "df6ea18642a274017e173d9bf34884a44202c72b3e030085aa5bb64f7b2d6337",
 		"lib/data/npcData.json": "df6ea18642a274017e173d9bf34884a44202c72b3e030085aa5bb64f7b2d6337",
 		"lib/data/skillString.json": "9d69876fea0be8e6ac5dd43b3fc74ea023f6b8a6145384f8f780dd977045d8ef",
 		"lib/data/skillString.json": "9d69876fea0be8e6ac5dd43b3fc74ea023f6b8a6145384f8f780dd977045d8ef",
-		"lib/index.js": "b35f51f72e704cb073587cde6d47466493ddd755c5309180188355a8c7b4cc3f",
+		"lib/index.js": "f41cb7ff5da0186d0afcea65f81c5d6e8201847b0ef9c445cd363efbe09e270a",
 		"lib/setting_migration.js": "b31d10274986e26f09643ddbd3b34735e3528065186c7b1d0c9ce49e7bdd4669",
 		"lib/setting_migration.js": "b31d10274986e26f09643ddbd3b34735e3528065186c7b1d0c9ce49e7bdd4669",
 		"module.json": "daad9efa0cb942c279a592e67d01d9d500c99176cbbd3254d27b62b3a6d2096d",
 		"module.json": "daad9efa0cb942c279a592e67d01d9d500c99176cbbd3254d27b62b3a6d2096d",
 		"package.json": "be83cd6f1b534497556ff64feb0d19766c03de3428b63ce11f08908afcc4eafe"
 		"package.json": "be83cd6f1b534497556ff64feb0d19766c03de3428b63ce11f08908afcc4eafe"