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

feat(webui): revive booster (#3018)

Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/3018 Reviewed-by: Sainan <63328889+sainan@users.noreply.github.com> Co-authored-by: AMelonInsideLemon <166175391+AMelonInsideLemon@users.noreply.github.com> Co-committed-by: AMelonInsideLemon <166175391+AMelonInsideLemon@users.noreply.github.com>

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

代码差异

8 个文件 +27 -0
Modified static/webui/script.js +13 -0
@@ -472,6 +472,12 @@ function fetchItemList() {
472 472 name: loc("disabled")
473 473 });
474 474
475 data.Boosters ??= [];
476 data.Boosters.push({
477 uniqueName: "/Lotus/Types/Boosters/ReviveBooster",
478 name: loc("code_reviveBooster")
479 });
480
475 481 const itemMap = {
476 482 // Generics for rivens
477 483 "/Lotus/Weapons/Tenno/Archwing/Primary/ArchGun": { name: loc("code_archgun") },
@@ -1053,6 +1059,13 @@ function updateInventory() {
1053 1059 const td = document.createElement("td");
1054 1060 td.textContent = itemMap[item.ItemType]?.name ?? item.ItemType;
1055 1061 tr.appendChild(td);
1062 if (item.ItemType == "/Lotus/Types/Boosters/ReviveBooster") {
1063 td.textContent += " ";
1064 const abbr = document.createElement("abbr");
1065 abbr.innerHTML = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><path d="M320 576C461.4 576 576 461.4 576 320C576 178.6 461.4 64 320 64C178.6 64 64 178.6 64 320C64 461.4 178.6 576 320 576zM320 200C333.3 200 344 210.7 344 224L344 336C344 349.3 333.3 360 320 360C306.7 360 296 349.3 296 336L296 224C296 210.7 306.7 200 320 200zM293.3 416C292.7 406.1 297.6 396.7 306.1 391.5C314.6 386.4 325.3 386.4 333.8 391.5C342.3 396.7 347.2 406.1 346.6 416C347.2 425.9 342.3 435.3 333.8 440.5C325.3 445.6 314.6 445.6 306.1 440.5C297.6 435.3 292.7 425.9 293.3 416z"/></svg>`;
1066 abbr.title = loc("code_reviveBoosterDesc");
1067 td.appendChild(abbr);
1068 }
1056 1069 }
1057 1070 {
1058 1071 const td = document.createElement("td");
Modified static/webui/translations/de.js +2 -0
@@ -79,6 +79,8 @@ dict = {
79 79 code_drifterBeardName: `Drifter-Bart: |INDEX|`,
80 80 code_drifterFaceName: `Drifter-Gesicht: |INDEX|`,
81 81 code_operatorFaceName: `Operator-Gesicht: |INDEX|`,
82 code_reviveBooster: `Wiederbelebungsbooster`,
83 code_reviveBoosterDesc: `[UNTRANSLATED] Sets revive count to 4, which allows self-revive in Archon Hunts.`,
82 84 code_succChange: `Erfolgreich geändert.`,
83 85 code_requiredInvigorationUpgrade: `Du musst sowohl ein Offensiv- als auch ein Support-Upgrade auswählen.`,
84 86 code_feature_1: `[UNTRANSLATED] Orokin Reactor`,
Modified static/webui/translations/en.js +2 -0
@@ -78,6 +78,8 @@ dict = {
78 78 code_drifterBeardName: `Drifter Beard |INDEX|`,
79 79 code_drifterFaceName: `Drifter Visage |INDEX|`,
80 80 code_operatorFaceName: `Operator Visage |INDEX|`,
81 code_reviveBooster: `Revive Booster`,
82 code_reviveBoosterDesc: `Sets revive count to 4, which allows self-revive in Archon Hunts.`,
81 83 code_succChange: `Successfully changed.`,
82 84 code_requiredInvigorationUpgrade: `You must select both an offensive & utility upgrade.`,
83 85 code_feature_1: `Orokin Reactor`,
Modified static/webui/translations/es.js +2 -0
@@ -79,6 +79,8 @@ dict = {
79 79 code_drifterBeardName: `Barba del Viajero: |INDEX|`,
80 80 code_drifterFaceName: `Rostro del Viajero |INDEX|`,
81 81 code_operatorFaceName: `Rostro del operador |INDEX|`,
82 code_reviveBooster: `Potenciador de reanimaciones`,
83 code_reviveBoosterDesc: `[UNTRANSLATED] Sets revive count to 4, which allows self-revive in Archon Hunts.`,
82 84 code_succChange: `Cambiado correctamente`,
83 85 code_requiredInvigorationUpgrade: `Debes seleccionar una mejora ofensiva y una mejora de utilidad.`,
84 86 code_feature_1: `[UNTRANSLATED] Orokin Reactor`,
Modified static/webui/translations/fr.js +2 -0
@@ -79,6 +79,8 @@ dict = {
79 79 code_drifterBeardName: `Barbe du Voyageur |INDEX|`,
80 80 code_drifterFaceName: `Visage du Voyageur |INDEX|`,
81 81 code_operatorFaceName: `Visage de l'Opérateur |INDEX|`,
82 code_reviveBooster: `Booster de Réanimation`,
83 code_reviveBoosterDesc: `[UNTRANSLATED] Sets revive count to 4, which allows self-revive in Archon Hunts.`,
82 84 code_succChange: `Changement effectué.`,
83 85 code_requiredInvigorationUpgrade: `Invigoration offensive et défensive requises.`,
84 86 code_feature_1: `[UNTRANSLATED] Orokin Reactor`,
Modified static/webui/translations/ru.js +2 -0
@@ -79,6 +79,8 @@ dict = {
79 79 code_drifterBeardName: `Борода скитальца: |INDEX|`,
80 80 code_drifterFaceName: `Внешность скитальца: |INDEX|`,
81 81 code_operatorFaceName: `Внешность оператора: |INDEX|`,
82 code_reviveBooster: `Усилитель возрождения`,
83 code_reviveBoosterDesc: `Устанавливает количество возрождений на 4. Снимает ограничение на самовоскрешение на миссиях Охоты на архонтов.`,
82 84 code_succChange: `Успешно изменено.`,
83 85 code_requiredInvigorationUpgrade: `Вы должны выбрать как атакующее, так и вспомогательное улучшение.`,
84 86 code_feature_1: `Реактор Орокин`,
Modified static/webui/translations/uk.js +2 -0
@@ -79,6 +79,8 @@ dict = {
79 79 code_drifterBeardName: `Борода мандрівника: |INDEX|`,
80 80 code_drifterFaceName: `Зовнішність мандрівника: |INDEX|`,
81 81 code_operatorFaceName: `Зовнішність оператора: |INDEX|`,
82 code_reviveBooster: `Збільшувач зцілення`,
83 code_reviveBoosterDesc: `[UNTRANSLATED] Sets revive count to 4, which allows self-revive in Archon Hunts.`,
82 84 code_succChange: `Успішно змінено.`,
83 85 code_requiredInvigorationUpgrade: `Ви повинні вибрати як атакуюче, так і допоміжне вдосконалення.`,
84 86 code_feature_1: `[UNTRANSLATED] Orokin Reactor`,
Modified static/webui/translations/zh.js +2 -0
@@ -79,6 +79,8 @@ dict = {
79 79 code_drifterBeardName: `漂泊者胡须 |INDEX|`,
80 80 code_drifterFaceName: `漂泊者面部 |INDEX|`,
81 81 code_operatorFaceName: `指挥官面部 |INDEX|`,
82 code_reviveBooster: `复活加速器`,
83 code_reviveBoosterDesc: `[UNTRANSLATED] Sets revive count to 4, which allows self-revive in Archon Hunts.`,
82 84 code_succChange: `更改成功`,
83 85 code_requiredInvigorationUpgrade: `[UNTRANSLATED] You must select both an offensive & utility upgrade.`,
84 86 code_feature_1: `[UNTRANSLATED] Orokin Reactor`,