perfectionist-plugins 2.4.5 → 2.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/auto-accept.js +19 -109
- package/dodge-helper.js +835 -560
- package/package.json +40 -40
- package/perfectionist-utils.js +7 -7
package/package.json
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "perfectionist-plugins",
|
|
3
|
-
"version": "2.4.
|
|
4
|
-
"description": "Small plugins that fix the annoying parts of League of Legends champ select. Built for Pengu Loader.",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"main": "perfectionist-utils.js",
|
|
7
|
-
"exports": {
|
|
8
|
-
".": "./perfectionist-utils.js",
|
|
9
|
-
"./perfectionist-utils.js": "./perfectionist-utils.js",
|
|
10
|
-
"./ban-blocker.js": "./ban-blocker.js",
|
|
11
|
-
"./hide-unowned-skins.js": "./hide-unowned-skins.js",
|
|
12
|
-
"./unlock-profile-skins.js": "./unlock-profile-skins.js",
|
|
13
|
-
"./auto-claimer.js": "./auto-claimer.js",
|
|
14
|
-
"./auto-read.js": "./auto-read.js",
|
|
15
|
-
"./better-client.js": "./better-client.js",
|
|
16
|
-
"./dodge-helper.js": "./dodge-helper.js",
|
|
17
|
-
"./auto-accept.js": "./auto-accept.js"
|
|
18
|
-
},
|
|
19
|
-
"files": [
|
|
20
|
-
"perfectionist-utils.js",
|
|
21
|
-
"ban-blocker.js",
|
|
22
|
-
"hide-unowned-skins.js",
|
|
23
|
-
"unlock-profile-skins.js",
|
|
24
|
-
"auto-claimer.js",
|
|
25
|
-
"auto-read.js",
|
|
26
|
-
"better-client.js",
|
|
27
|
-
"dodge-helper.js",
|
|
28
|
-
"auto-accept.js"
|
|
29
|
-
],
|
|
30
|
-
"repository": {
|
|
31
|
-
"type": "git",
|
|
32
|
-
"url": "git+https://github.com/SrKing-9812/Perfectionist-Plugins.git"
|
|
33
|
-
},
|
|
34
|
-
"keywords": [
|
|
35
|
-
"pengu-loader",
|
|
36
|
-
"league-of-legends",
|
|
37
|
-
"plugin"
|
|
38
|
-
],
|
|
39
|
-
"author": "Sr. King"
|
|
40
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "perfectionist-plugins",
|
|
3
|
+
"version": "2.4.6",
|
|
4
|
+
"description": "Small plugins that fix the annoying parts of League of Legends champ select. Built for Pengu Loader.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "perfectionist-utils.js",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": "./perfectionist-utils.js",
|
|
9
|
+
"./perfectionist-utils.js": "./perfectionist-utils.js",
|
|
10
|
+
"./ban-blocker.js": "./ban-blocker.js",
|
|
11
|
+
"./hide-unowned-skins.js": "./hide-unowned-skins.js",
|
|
12
|
+
"./unlock-profile-skins.js": "./unlock-profile-skins.js",
|
|
13
|
+
"./auto-claimer.js": "./auto-claimer.js",
|
|
14
|
+
"./auto-read.js": "./auto-read.js",
|
|
15
|
+
"./better-client.js": "./better-client.js",
|
|
16
|
+
"./dodge-helper.js": "./dodge-helper.js",
|
|
17
|
+
"./auto-accept.js": "./auto-accept.js"
|
|
18
|
+
},
|
|
19
|
+
"files": [
|
|
20
|
+
"perfectionist-utils.js",
|
|
21
|
+
"ban-blocker.js",
|
|
22
|
+
"hide-unowned-skins.js",
|
|
23
|
+
"unlock-profile-skins.js",
|
|
24
|
+
"auto-claimer.js",
|
|
25
|
+
"auto-read.js",
|
|
26
|
+
"better-client.js",
|
|
27
|
+
"dodge-helper.js",
|
|
28
|
+
"auto-accept.js"
|
|
29
|
+
],
|
|
30
|
+
"repository": {
|
|
31
|
+
"type": "git",
|
|
32
|
+
"url": "git+https://github.com/SrKing-9812/Perfectionist-Plugins.git"
|
|
33
|
+
},
|
|
34
|
+
"keywords": [
|
|
35
|
+
"pengu-loader",
|
|
36
|
+
"league-of-legends",
|
|
37
|
+
"plugin"
|
|
38
|
+
],
|
|
39
|
+
"author": "Sr. King"
|
|
40
|
+
}
|
package/perfectionist-utils.js
CHANGED
|
@@ -51,15 +51,15 @@ const BUNDLED_MODULES = [
|
|
|
51
51
|
id: "auto-accept",
|
|
52
52
|
file: "auto-accept.js",
|
|
53
53
|
name: "Auto Accept",
|
|
54
|
-
version: "1.1.
|
|
55
|
-
description: "Accepts the match for you when the ready check pops up.
|
|
54
|
+
version: "1.1.3",
|
|
55
|
+
description: "Accepts the match for you when the ready check pops up.",
|
|
56
56
|
},
|
|
57
57
|
{
|
|
58
58
|
id: "dodge-helper",
|
|
59
59
|
file: "dodge-helper.js",
|
|
60
60
|
name: "Dodge Helper",
|
|
61
|
-
version: "1.4.
|
|
62
|
-
description: "Adds a button to
|
|
61
|
+
version: "1.4.3",
|
|
62
|
+
description: "Adds a DODGE/QUIT button to champ select, showing the LP and queue penalty for the next dodge.",
|
|
63
63
|
},
|
|
64
64
|
{
|
|
65
65
|
id: "auto-claimer",
|
|
@@ -348,11 +348,11 @@ function findOption(entry, key) {
|
|
|
348
348
|
return null;
|
|
349
349
|
}
|
|
350
350
|
|
|
351
|
-
function getOption(id, key) {
|
|
351
|
+
function getOption(id, key, fallback = false) {
|
|
352
352
|
const entry = registry.get(id);
|
|
353
|
-
const
|
|
353
|
+
const fallbackValue = findOption(entry, key)?.default ?? fallback;
|
|
354
354
|
const stored = state.options?.[id]?.[key];
|
|
355
|
-
return stored === undefined ? Boolean(
|
|
355
|
+
return stored === undefined ? Boolean(fallbackValue) : Boolean(stored);
|
|
356
356
|
}
|
|
357
357
|
|
|
358
358
|
function setOption(id, key, value, refresh = true) {
|