XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

XFESpaceNinjaServer

A simple server for a small space ninja game

公开
关注 0 Fork 0 Star 0
返回提交历史

XFEstudio/XFESpaceNinjaServer

chore(webui): use Orokin Catalyst in feature list when it acceptable (#3206)

Closes #3205 Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/3206 Co-authored-by: AMelonInsideLemon <166175391+AMelonInsideLemon@users.noreply.github.com> Co-committed-by: AMelonInsideLemon <166175391+AMelonInsideLemon@users.noreply.github.com>

539ca9aa
AMelonInsideLemon <166175391+AMelonInsideLemon@users.noreply.github.com>
提交于

代码差异

8 个文件 +24 -2
Modified static/webui/script.js +17 -2
@@ -1535,8 +1535,23 @@ function updateInventory() {
1535 1535 const label = document.createElement("label");
1536 1536 label.classList = "form-check-label";
1537 1537 label.htmlFor = input.id;
1538 label.innerHTML = loc(`code_feature_${bit}`);
1539 label.setAttribute("data-loc", `code_feature_${bit}`);
1538 let locString = `code_feature_${bit}`;
1539 if (
1540 ![
1541 "Suits",
1542 "SpaceSuits",
1543 "Hoverboards",
1544 "MechSuits",
1545 "Sentinels",
1546 "MoaPets",
1547 "KubrowPets"
1548 ].includes(category) &&
1549 bit === 1
1550 ) {
1551 locString = `code_feature_${bit}_alt`;
1552 }
1553 label.innerHTML = loc(locString);
1554 label.setAttribute("data-loc", locString);
1540 1555
1541 1556 input.onchange = function (event) {
1542 1557 event.preventDefault();
Modified static/webui/translations/de.js +1 -0
@@ -85,6 +85,7 @@ dict = {
85 85 code_succChange: `Erfolgreich geändert.`,
86 86 code_requiredInvigorationUpgrade: `Du musst sowohl ein Offensiv- als auch ein Support-Upgrade auswählen.`,
87 87 code_feature_1: `[UNTRANSLATED] Orokin Reactor`,
88 code_feature_1_alt: `[UNTRANSLATED] Orokin Catalyst`,
88 89 code_feature_2: `[UNTRANSLATED] Exilus Adapter`,
89 90 code_feature_4: `[UNTRANSLATED] Gravimag`,
90 91 code_feature_8: `[UNTRANSLATED] Gild`,
Modified static/webui/translations/en.js +1 -0
@@ -84,6 +84,7 @@ dict = {
84 84 code_succChange: `Successfully changed.`,
85 85 code_requiredInvigorationUpgrade: `You must select both an offensive & utility upgrade.`,
86 86 code_feature_1: `Orokin Reactor`,
87 code_feature_1_alt: `Orokin Catalyst`,
87 88 code_feature_2: `Exilus Adapter`,
88 89 code_feature_4: `Gravimag`,
89 90 code_feature_8: `Gild`,
Modified static/webui/translations/es.js +1 -0
@@ -85,6 +85,7 @@ dict = {
85 85 code_succChange: `Cambiado correctamente`,
86 86 code_requiredInvigorationUpgrade: `Debes seleccionar una mejora ofensiva y una mejora de utilidad.`,
87 87 code_feature_1: `[UNTRANSLATED] Orokin Reactor`,
88 code_feature_1_alt: `[UNTRANSLATED] Orokin Catalyst`,
88 89 code_feature_2: `[UNTRANSLATED] Exilus Adapter`,
89 90 code_feature_4: `[UNTRANSLATED] Gravimag`,
90 91 code_feature_8: `[UNTRANSLATED] Gild`,
Modified static/webui/translations/fr.js +1 -0
@@ -85,6 +85,7 @@ dict = {
85 85 code_succChange: `Changement effectué.`,
86 86 code_requiredInvigorationUpgrade: `Invigoration offensive et défensive requises.`,
87 87 code_feature_1: `[UNTRANSLATED] Orokin Reactor`,
88 code_feature_1_alt: `[UNTRANSLATED] Orokin Catalyst`,
88 89 code_feature_2: `[UNTRANSLATED] Exilus Adapter`,
89 90 code_feature_4: `[UNTRANSLATED] Gravimag`,
90 91 code_feature_8: `[UNTRANSLATED] Gild`,
Modified static/webui/translations/ru.js +1 -0
@@ -85,6 +85,7 @@ dict = {
85 85 code_succChange: `Успешно изменено.`,
86 86 code_requiredInvigorationUpgrade: `Вы должны выбрать как атакующее, так и вспомогательное улучшение.`,
87 87 code_feature_1: `Реактор Орокин`,
88 code_feature_1_alt: `Катализатор Орокин`,
88 89 code_feature_2: `Адаптер Эксилус`,
89 90 code_feature_4: `Гравимаг`,
90 91 code_feature_8: `Улучшение`,
Modified static/webui/translations/uk.js +1 -0
@@ -85,6 +85,7 @@ dict = {
85 85 code_succChange: `Успішно змінено.`,
86 86 code_requiredInvigorationUpgrade: `Ви повинні вибрати як атакуюче, так і допоміжне вдосконалення.`,
87 87 code_feature_1: `[UNTRANSLATED] Orokin Reactor`,
88 code_feature_1_alt: `[UNTRANSLATED] Orokin Catalyst`,
88 89 code_feature_2: `[UNTRANSLATED] Exilus Adapter`,
89 90 code_feature_4: `[UNTRANSLATED] Gravimag`,
90 91 code_feature_8: `[UNTRANSLATED] Gild`,
Modified static/webui/translations/zh.js +1 -0
@@ -85,6 +85,7 @@ dict = {
85 85 code_succChange: `更改成功`,
86 86 code_requiredInvigorationUpgrade: `[UNTRANSLATED] You must select both an offensive & utility upgrade.`,
87 87 code_feature_1: `[UNTRANSLATED] Orokin Reactor`,
88 code_feature_1_alt: `[UNTRANSLATED] Orokin Catalyst`,
88 89 code_feature_2: `[UNTRANSLATED] Exilus Adapter`,
89 90 code_feature_4: `[UNTRANSLATED] Gravimag`,
90 91 code_feature_8: `[UNTRANSLATED] Gild`,