@qianhaoq/dsh-dota2ai 0.2.10 → 0.2.12
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/lib/client.js +29 -3
- package/lib/index.js +309 -55
- package/package.json +1 -1
package/lib/client.js
CHANGED
|
@@ -27524,6 +27524,11 @@ var T9 = {
|
|
|
27524
27524
|
pierces: { en: "goes through spell immunity", zh: "\u65E0\u89C6\u6280\u80FD\u514D\u75AB", ru: "\u043F\u0440\u043E\u0431\u0438\u0432\u0430\u0435\u0442 \u043D\u0435\u0432\u043E\u0441\u043F\u0440\u0438\u0438\u043C\u0447\u0438\u0432\u043E\u0441\u0442\u044C \u043A \u043C\u0430\u0433\u0438\u0438" },
|
|
27525
27525
|
noPierce: { en: "blocked by spell immunity", zh: "\u88AB\u6280\u80FD\u514D\u75AB\u6321\u4F4F", ru: "\u0431\u043B\u043E\u043A\u0438\u0440\u0443\u0435\u0442\u0441\u044F \u043D\u0435\u0432\u043E\u0441\u043F\u0440\u0438\u0438\u043C\u0447\u0438\u0432\u043E\u0441\u0442\u044C\u044E \u043A \u043C\u0430\u0433\u0438\u0438" },
|
|
27526
27526
|
ultimate: { en: "ultimate", zh: "\u5927\u62DB", ru: "\u0443\u043B\u044C\u0442" },
|
|
27527
|
+
scepterGranted: { en: "Aghanim's Scepter", zh: "\u963F\u54C8\u5229\u59C6\u795E\u6756", ru: "Aghanim's Scepter" },
|
|
27528
|
+
shardGranted: { en: "Aghanim's Shard", zh: "\u963F\u54C8\u5229\u59C6\u9B54\u6676", ru: "Aghanim's Shard" },
|
|
27529
|
+
scepterEffect: { en: "Aghanim's Scepter", zh: "\u795E\u6756\u6548\u679C", ru: "Aghanim's Scepter" },
|
|
27530
|
+
shardEffect: { en: "Aghanim's Shard", zh: "\u9B54\u6676\u6548\u679C", ru: "Aghanim's Shard" },
|
|
27531
|
+
grantedAbility: { en: "new ability", zh: "\u6388\u4E88\u6280\u80FD", ru: "\u043D\u043E\u0432\u0430\u044F \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u044C" },
|
|
27527
27532
|
sec: { en: "s", zh: "\u79D2", ru: "\u0441" },
|
|
27528
27533
|
lane: { top: { en: "Top lane", zh: "\u4E0A\u8DEF", ru: "\u0412\u0435\u0440\u0445\u043D\u044F\u044F \u043B\u0438\u043D\u0438\u044F" }, mid: { en: "Mid lane", zh: "\u4E2D\u8DEF", ru: "\u041C\u0438\u0434" }, bot: { en: "Bottom lane", zh: "\u4E0B\u8DEF", ru: "\u041D\u0438\u0436\u043D\u044F\u044F \u043B\u0438\u043D\u0438\u044F" } },
|
|
27529
27534
|
laneAt10: { en: "at 10:00", zh: "10 \u5206\u949F\u65F6", ru: "\u043A 10:00" },
|
|
@@ -28792,6 +28797,14 @@ function Record({ data: data2, lang }) {
|
|
|
28792
28797
|
if (data2.kind === "hero_info") {
|
|
28793
28798
|
const b = r.base ?? {};
|
|
28794
28799
|
const shown = [["health", b.health], ["mana", b.mana], ["armor", b.armor], ["magic_resistance", b.magic_resistance], ["attack_range", b.attack_range], ["base_attack_time", b.base_attack_time], ["move_speed", b.move_speed]];
|
|
28800
|
+
const aghsLines = (list, label, prefix) => (Array.isArray(list) ? list : []).map((u, i) => /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("p", { className: "ag-rec-line", children: [
|
|
28801
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("span", { className: "ag-chip", children: [
|
|
28802
|
+
t2(label),
|
|
28803
|
+
u.kind === "granted_ability" ? ` \xB7 ${t2(T9.grantedAbility)}` : ""
|
|
28804
|
+
] }),
|
|
28805
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("b", { children: u.name ?? N(u.ability) }),
|
|
28806
|
+
u.description ? ` ${u.description}` : ""
|
|
28807
|
+
] }, `${prefix}-${u.ability}-${i}`));
|
|
28795
28808
|
return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: "ag-rec", children: [
|
|
28796
28809
|
/* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("p", { className: "ag-rec-head", children: [
|
|
28797
28810
|
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("b", { children: r.name ?? N(r.hero) }),
|
|
@@ -28812,7 +28825,9 @@ function Record({ data: data2, lang }) {
|
|
|
28812
28825
|
pretty(k2),
|
|
28813
28826
|
" ",
|
|
28814
28827
|
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("em", { children: String(v) })
|
|
28815
|
-
] }, k2)) })
|
|
28828
|
+
] }, k2)) }),
|
|
28829
|
+
aghsLines(r.aghanims_scepter, T9.scepterEffect, "sc"),
|
|
28830
|
+
aghsLines(r.aghanims_shard, T9.shardEffect, "sh")
|
|
28816
28831
|
] });
|
|
28817
28832
|
}
|
|
28818
28833
|
if (data2.kind === "matchup") {
|
|
@@ -29956,6 +29971,14 @@ function Record({ data: data2, lang }) {
|
|
|
29956
29971
|
] });
|
|
29957
29972
|
}
|
|
29958
29973
|
if (data2.kind === "abilities") {
|
|
29974
|
+
const aghsLines = (list, label, prefix) => (Array.isArray(list) ? list : []).map((u, i) => /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("p", { className: "ag-rec-line", children: [
|
|
29975
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("span", { className: "ag-chip", children: [
|
|
29976
|
+
t2(label),
|
|
29977
|
+
u.kind === "granted_ability" ? ` \xB7 ${t2(T9.grantedAbility)}` : ""
|
|
29978
|
+
] }),
|
|
29979
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("b", { children: u.name ?? N(u.ability) }),
|
|
29980
|
+
u.description ? ` ${u.description}` : ""
|
|
29981
|
+
] }, `${prefix}-${u.ability}-${i}`));
|
|
29959
29982
|
return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: "ag-rec", children: [
|
|
29960
29983
|
/* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("p", { className: "ag-rec-sub", children: [
|
|
29961
29984
|
r.source,
|
|
@@ -29965,8 +29988,11 @@ function Record({ data: data2, lang }) {
|
|
|
29965
29988
|
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("p", { className: "ag-rec-line", children: r.abilities.map((a) => /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("span", { className: "ag-chip", children: [
|
|
29966
29989
|
a.name,
|
|
29967
29990
|
a.ultimate ? ` \xB7 ${t2(T9.ultimate)}` : "",
|
|
29991
|
+
a.granted_by === "scepter" ? ` \xB7 ${t2(T9.scepterGranted)}` : a.granted_by === "shard" ? ` \xB7 ${t2(T9.shardGranted)}` : "",
|
|
29968
29992
|
typeof a.goes_through_spell_immunity === "boolean" ? ` \xB7 ${t2(a.goes_through_spell_immunity ? T9.pierces : T9.noPierce)}` : ""
|
|
29969
|
-
] }, a.ability)) })
|
|
29993
|
+
] }, a.ability)) }),
|
|
29994
|
+
aghsLines(r.aghanims_scepter, T9.scepterEffect, "sc"),
|
|
29995
|
+
aghsLines(r.aghanims_shard, T9.shardEffect, "sh")
|
|
29970
29996
|
] });
|
|
29971
29997
|
}
|
|
29972
29998
|
if (data2.kind === "skill_build") {
|
|
@@ -30034,7 +30060,7 @@ function Record({ data: data2, lang }) {
|
|
|
30034
30060
|
N(u.ability),
|
|
30035
30061
|
" Lv",
|
|
30036
30062
|
u.ability_level,
|
|
30037
|
-
u.initial ? /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("em", { children: t2(T9.sbInitial) }) : u.hero_level != null ? /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("em", { children: [
|
|
30063
|
+
u.initial ? /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("em", { children: t2(T9.sbInitial) }) : u.granted_by === "scepter" ? /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("em", { children: t2(T9.scepterGranted) }) : u.granted_by === "shard" ? /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("em", { children: t2(T9.shardGranted) }) : u.hero_level != null ? /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("em", { children: [
|
|
30038
30064
|
"Lv",
|
|
30039
30065
|
u.hero_level
|
|
30040
30066
|
] }) : null
|