overpy 9.5.12 → 9.5.14
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/overpy.js +41 -27
- package/package.json +1 -1
package/overpy.js
CHANGED
|
@@ -19880,6 +19880,9 @@ var customGameSettingsSchema = (
|
|
|
19880
19880
|
"guid": "000000005B4B",
|
|
19881
19881
|
"values": "__boolOnOff__",
|
|
19882
19882
|
"default": "on",
|
|
19883
|
+
"exclude": [
|
|
19884
|
+
"mauga"
|
|
19885
|
+
],
|
|
19883
19886
|
"en-US": "Primary Fire",
|
|
19884
19887
|
"de-DE": "Prim\xE4rer Feuermodus",
|
|
19885
19888
|
"es-ES": "Disparo principal",
|
|
@@ -20268,7 +20271,6 @@ var customGameSettingsSchema = (
|
|
|
20268
20271
|
"orisa",
|
|
20269
20272
|
"pharah",
|
|
20270
20273
|
"reinhardt",
|
|
20271
|
-
"roadhog",
|
|
20272
20274
|
"sierra",
|
|
20273
20275
|
"sigma",
|
|
20274
20276
|
"sojourn",
|
|
@@ -20403,6 +20405,7 @@ var customGameSettingsSchema = (
|
|
|
20403
20405
|
"values": "__boolOnOff__",
|
|
20404
20406
|
"default": "on",
|
|
20405
20407
|
"include": [
|
|
20408
|
+
"anran",
|
|
20406
20409
|
"baptiste",
|
|
20407
20410
|
"genji",
|
|
20408
20411
|
"illari",
|
|
@@ -20411,7 +20414,7 @@ var customGameSettingsSchema = (
|
|
|
20411
20414
|
"mei",
|
|
20412
20415
|
"mercy",
|
|
20413
20416
|
"moira",
|
|
20414
|
-
"
|
|
20417
|
+
"roadhog",
|
|
20415
20418
|
"symmetra",
|
|
20416
20419
|
"torbjorn",
|
|
20417
20420
|
"winston",
|
|
@@ -37848,7 +37851,7 @@ function decompileCustomGameSettingsDict(dict, kwObj, options = {}) {
|
|
|
37848
37851
|
}
|
|
37849
37852
|
}
|
|
37850
37853
|
if (keyName === null || value === null) {
|
|
37851
|
-
error("No translation found for key of element '" + potentialKey + "'");
|
|
37854
|
+
error("No translation found for key of element '" + (options.parent ? options.parent + " > " : "") + potentialKey + "'");
|
|
37852
37855
|
}
|
|
37853
37856
|
if (isInvalidButAcceptedProperty) {
|
|
37854
37857
|
continue;
|
|
@@ -37863,6 +37866,10 @@ function decompileCustomGameSettingsDict(dict, kwObj, options = {}) {
|
|
|
37863
37866
|
warn("w_dead_workshop", "Juno's 'Glide Boost Duration Scalar' cannot be copied from text settings and has been reset to defaults.");
|
|
37864
37867
|
continue;
|
|
37865
37868
|
}
|
|
37869
|
+
if (kwObj[keyName]["en-US"] === "Katashiro Return Duration Scalar" && keyName === "ability1Duration%") {
|
|
37870
|
+
warn("w_dead_workshop", "Mizuki's 'Katashiro Return Duration Scalar' cannot be copied from text settings and has been reset to defaults.");
|
|
37871
|
+
continue;
|
|
37872
|
+
}
|
|
37866
37873
|
error("Expected a percentage for value of elem '" + elem + "'");
|
|
37867
37874
|
}
|
|
37868
37875
|
value = parseInt(value.substring(0, value.length - 1));
|
|
@@ -40527,6 +40534,21 @@ var gamemodeKw = (
|
|
|
40527
40534
|
"tr-TR": "Yeti Avc\u0131s\u0131",
|
|
40528
40535
|
"zh-CN": "\u96EA\u57DF\u72E9\u730E",
|
|
40529
40536
|
"zh-TW": "\u96EA\u602A\u5927\u4F5C\u6230"
|
|
40537
|
+
},
|
|
40538
|
+
"assaultBalancedOverwatch": {
|
|
40539
|
+
"en-US": "Assault Balanced Overwatch"
|
|
40540
|
+
},
|
|
40541
|
+
"controlBalancedOverwatch": {
|
|
40542
|
+
"en-US": "Control Balanced Overwatch"
|
|
40543
|
+
},
|
|
40544
|
+
"escortBalancedOverwatch": {
|
|
40545
|
+
"en-US": "Escort Balanced Overwatch"
|
|
40546
|
+
},
|
|
40547
|
+
"hybridBalancedOverwatch": {
|
|
40548
|
+
"en-US": "Hybrid Balanced Overwatch"
|
|
40549
|
+
},
|
|
40550
|
+
"pushBalancedOverwatch": {
|
|
40551
|
+
"en-US": "Push Balanced Overwatch"
|
|
40530
40552
|
}
|
|
40531
40553
|
}
|
|
40532
40554
|
);
|
|
@@ -41757,7 +41779,7 @@ var heroKw = (
|
|
|
41757
41779
|
"junkerQueen": {
|
|
41758
41780
|
"secondaryFire": {
|
|
41759
41781
|
"guid": "00000000D3A4",
|
|
41760
|
-
"en-US": "Jagged Blade",
|
|
41782
|
+
"en-US": "Jagged Blade Gracie",
|
|
41761
41783
|
"de-DE": "Gezackte Klinge",
|
|
41762
41784
|
"es-ES": "Cuchilla dentada",
|
|
41763
41785
|
"es-MX": "Hoja dentada",
|
|
@@ -43007,22 +43029,7 @@ var heroKw = (
|
|
|
43007
43029
|
},
|
|
43008
43030
|
"sojourn": {
|
|
43009
43031
|
"secondaryFire": {
|
|
43010
|
-
"
|
|
43011
|
-
"en-US": "Railgun Alt Fire",
|
|
43012
|
-
"de-DE": "Railgun \u2013 Alternativer Feuermodus",
|
|
43013
|
-
"es-ES": "Disparo secundario del ca\xF1\xF3n de riel",
|
|
43014
|
-
"es-MX": "Disparo secundario de Ca\xF1\xF3n de riel",
|
|
43015
|
-
"fr-FR": "Canon \xE9lectrique : tir alternatif",
|
|
43016
|
-
"it-IT": "Fuoco Alternativo Fucile a Rotaia",
|
|
43017
|
-
"ja-JP": "\u30EC\u30FC\u30EB\u30AC\u30F3 - \u30B5\u30D6\u653B\u6483",
|
|
43018
|
-
"ko-KR": "\uB808\uC77C\uAC74 \uBCF4\uC870 \uBC1C\uC0AC",
|
|
43019
|
-
"pl-PL": "Alternatywny atak Karabinu Kinetycznego",
|
|
43020
|
-
"pt-BR": "Canh\xE3o El\xE9trico - Disparo alternativo",
|
|
43021
|
-
"ru-RU": "\u0414\u043E\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u044B\u0439 \u0440\u0435\u0436\u0438\u043C \u043E\u0433\u043D\u044F \u0440\u0435\u043B\u044C\u0441\u043E\u0442\u0440\u043E\u043D\u0430",
|
|
43022
|
-
"th-TH": "\u0E2D\u0E32\u0E27\u0E38\u0E18\u0E2A\u0E33\u0E23\u0E2D\u0E07\u0E40\u0E23\u0E25\u0E01\u0E31\u0E19",
|
|
43023
|
-
"tr-TR": "Rayl\u0131 T\xFCfek Alternatif Ate\u015Fi",
|
|
43024
|
-
"zh-CN": "\u5145\u80FD\u5C04\u51FB",
|
|
43025
|
-
"zh-TW": "\u78C1\u8ECC\u69CD\u6B21\u8981\u653B\u64CA"
|
|
43032
|
+
"en-US": "Charged Shot"
|
|
43026
43033
|
},
|
|
43027
43034
|
"ability1": {
|
|
43028
43035
|
"guid": "000000007964",
|
|
@@ -46787,14 +46794,14 @@ function getDecompressionAst(compressedString, compressionInfo) {
|
|
|
46787
46794
|
let { minDecimalPlace, maxDecimalPlace, offset, arrayType } = compressionInfo;
|
|
46788
46795
|
if (arrayType === "number") {
|
|
46789
46796
|
let decompressionFormula = Array(Math.ceil((maxDecimalPlace - minDecimalPlace) / 2)).fill(0).map((x, i) => i).map((x) => `${Math.pow(100, x + minDecimalPlace / 2)}*x.last().strIndex(x[0].charAt(${x}))`).join(" + ");
|
|
46790
|
-
return parseOpyMacro(`[${decompressionFormula} - ${offset} for x in [
|
|
46797
|
+
return parseOpyMacro(`[${decompressionFormula} - ${offset} for x in [e.concat(${escapeString(alphabet2, false)}) for e in $compressedString.split(null[0])]]`, ["$compressedString"], [compressedString]);
|
|
46791
46798
|
} else {
|
|
46792
46799
|
let decompressionFormulas = Array(3).fill(0).map((_, h) => {
|
|
46793
46800
|
return Array(Math.ceil((maxDecimalPlace - minDecimalPlace) / 2)).fill(0).map((x, i) => i).map((x) => `
|
|
46794
46801
|
${Math.pow(100, x + minDecimalPlace / 2)}*x.last().strIndex(x[0].charAt(${x + Math.ceil((maxDecimalPlace - minDecimalPlace) / 2) * h}))
|
|
46795
46802
|
`).join(" + ");
|
|
46796
46803
|
});
|
|
46797
|
-
return parseOpyMacro(`[vect(${decompressionFormulas[0]},${decompressionFormulas[2]},${decompressionFormulas[1]}) - vect(1,1,1)*${offset} for x in [
|
|
46804
|
+
return parseOpyMacro(`[vect(${decompressionFormulas[0]},${decompressionFormulas[2]},${decompressionFormulas[1]}) - vect(1,1,1)*${offset} for x in [e.concat(${escapeString(alphabet2, false)}) for e in $compressedString.split(null[0])]]`, ["$compressedString"], [compressedString]);
|
|
46798
46805
|
}
|
|
46799
46806
|
}
|
|
46800
46807
|
astParsingFunctions.compressed = function(content) {
|
|
@@ -60077,7 +60084,9 @@ var valueFuncKw = (
|
|
|
60077
60084
|
{
|
|
60078
60085
|
"name": "index",
|
|
60079
60086
|
"description": "The index of the character to be acquired (with 0 as the first character, 1 as the second character, etc.).",
|
|
60080
|
-
"type": "unsigned int"
|
|
60087
|
+
"type": "unsigned int",
|
|
60088
|
+
"canReplace0ByFalse": true,
|
|
60089
|
+
"canReplace1ByTrue": true
|
|
60081
60090
|
}
|
|
60082
60091
|
],
|
|
60083
60092
|
isConstant: true,
|
|
@@ -65191,7 +65200,7 @@ function exportToPoFiles(translatedStrings2) {
|
|
|
65191
65200
|
}
|
|
65192
65201
|
error("Cannot do translations in browsers (fs not found)");
|
|
65193
65202
|
}
|
|
65194
|
-
translatedStrings2 = translatedStrings2.filter((x) => x.occurrences.length > 0 || keepUnusedTranslations).sort((a, b) => +(b.occurrences.length > 0) - +(a.occurrences.length > 0) || a.occurrences[0].localeCompare(b.occurrences[0]));
|
|
65203
|
+
translatedStrings2 = translatedStrings2.filter((x) => x.occurrences.length > 0 || keepUnusedTranslations).sort((a, b) => +(b.occurrences.length > 0) - +(a.occurrences.length > 0) || (a.occurrences[0] ?? "zzzzz").localeCompare(b.occurrences[0] ?? "zzzzz"));
|
|
65195
65204
|
for (let language of translationLanguages2.slice(1)) {
|
|
65196
65205
|
let po = new import_pofile.default();
|
|
65197
65206
|
po.headers = {
|
|
@@ -68814,7 +68823,7 @@ Wrapping a string with \`___\` has the same caveats as putting a translated stri
|
|
|
68814
68823
|
"return": "void"
|
|
68815
68824
|
},
|
|
68816
68825
|
"compress": {
|
|
68817
|
-
"description": "Compresses the specified array of numbers or vectors into a string. Strings take much fewer elements, so use this function if you are running out of elements.\n\nNote that numbers will get rounded to 3 decimal places, and vectors to 2 decimal places.\n\nUse the `
|
|
68826
|
+
"description": "Compresses the specified array of numbers or vectors into a string. Strings take much fewer elements, so use this function if you are running out of elements.\n\nNote that numbers will get rounded to 3 decimal places, and vectors to 2 decimal places.\n\nUse the `decompressNumbers()` or `decompressVectors()` function to get the original array back.",
|
|
68818
68827
|
"args": [
|
|
68819
68828
|
{
|
|
68820
68829
|
"name": "array",
|
|
@@ -68825,7 +68834,7 @@ Wrapping a string with \`___\` has the same caveats as putting a translated stri
|
|
|
68825
68834
|
return: "String"
|
|
68826
68835
|
},
|
|
68827
68836
|
"compressed": {
|
|
68828
|
-
"description": "Compresses in-place the specified array of numbers or vectors into a string, then returns the decompressed array. Strings take much fewer elements, so use this function if you are running out of elements.\n\nNote that numbers will get rounded to 3 decimal places, and vectors to 2 decimal places.\n\nThis function is only effective once the array has at least 18 vectors or 26 numbers.\n\
|
|
68837
|
+
"description": "Compresses in-place the specified array of numbers or vectors into a string, then returns the decompressed array. Strings take much fewer elements, so use this function if you are running out of elements.\n\nNote that numbers will get rounded to 3 decimal places, and vectors to 2 decimal places.\n\nThis function is only effective once the array has at least 18 vectors or 26 numbers.\n\nThis function can be more effective than `compress()` and `decompressNumbers()` / `decompressVectors()`, as it can apply optimizations if all numbers have a low amount of significant digits or if they are all positive.",
|
|
68829
68838
|
"args": [
|
|
68830
68839
|
{
|
|
68831
68840
|
"name": "array",
|
|
@@ -69836,12 +69845,16 @@ function computeCustomGameSettingsSchema() {
|
|
|
69836
69845
|
} else {
|
|
69837
69846
|
Object.assign(customGameSettingsSchema.gamemodes.values[gamemode].values, customGameSettingsSchema.gamemodes.values.general.values);
|
|
69838
69847
|
}
|
|
69848
|
+
if (gamemode.endsWith("BalancedOverwatch")) {
|
|
69849
|
+
Object.assign(customGameSettingsSchema.gamemodes.values[gamemode].values, customGameSettingsSchema.gamemodes.values[gamemode.replace("BalancedOverwatch", "")].values);
|
|
69850
|
+
}
|
|
69839
69851
|
}
|
|
69840
69852
|
delete customGameSettingsSchema.gamemodes.values.general.values.enabledMaps;
|
|
69841
69853
|
delete customGameSettingsSchema.gamemodes.values.general.values.disabledMaps;
|
|
69842
69854
|
for (var gamemode in customGameSettingsSchema.gamemodes.values) {
|
|
69843
69855
|
Object.assign(customGameSettingsSchema.gamemodes.values.general.values, customGameSettingsSchema.gamemodes.values[gamemode].values);
|
|
69844
69856
|
}
|
|
69857
|
+
customGameSettingsSchema.gamemodes.values.general.values.scoreToWin = customGameSettingsSchema.gamemodes.values.ffa.values.scoreToWin;
|
|
69845
69858
|
customGameSettingsSchema.heroes.values["general"] = { values: {} };
|
|
69846
69859
|
customGameSettingsSchema.heroes.values["general"].values = Object.assign(
|
|
69847
69860
|
{},
|
|
@@ -71257,7 +71270,7 @@ function decompileCustomGameSettings(content) {
|
|
|
71257
71270
|
}
|
|
71258
71271
|
}
|
|
71259
71272
|
}
|
|
71260
|
-
Object.assign(result[opyCategory][opyGamemode], decompileCustomGameSettingsDict(dict, customGameSettingsSchema[opyCategory].values[opyGamemode].values));
|
|
71273
|
+
Object.assign(result[opyCategory][opyGamemode], decompileCustomGameSettingsDict(dict, customGameSettingsSchema[opyCategory].values[opyGamemode].values, { parent: gamemode }));
|
|
71261
71274
|
}
|
|
71262
71275
|
} else if (opyCategory === "heroes") {
|
|
71263
71276
|
for (var team of Object.keys(serialized[category])) {
|
|
@@ -71287,6 +71300,7 @@ function decompileCustomGameSettings(content) {
|
|
|
71287
71300
|
Object.assign(
|
|
71288
71301
|
result[opyCategory][opyTeam][opyHero],
|
|
71289
71302
|
decompileCustomGameSettingsDict(Object.keys(serialized[category][team][property]), heroValues, {
|
|
71303
|
+
parent: property,
|
|
71290
71304
|
invalidButAcceptedProperties: customGameSettingsSchema[opyCategory].values.general?.values ?? error("No general values for heroes")
|
|
71291
71305
|
})
|
|
71292
71306
|
);
|
package/package.json
CHANGED