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

fix(webui): remove statAtten from U5 mod editor (#4017)

I definitely have some kind of Mandela effect because I remember that it worked :derp: Closes #4014 Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/4017 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>

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

代码差异

8 个文件 +15 -19
Modified static/webui/script.js +8 -12
@@ -1111,14 +1111,10 @@ function fetchItemList() {
1111 1111 item.name = item.name.replace(/<.+>/g, "").trim();
1112 1112 const nameMap = {
1113 1113 "/Lotus/Language/Suits/RiftWalkAbilityName": loc("code_RiftWalkAbilityName"),
1114 "/Lotus/Upgrades/Modules/GrineerMeleeModule": loc("code_U5Mod").replace(
1115 "|TYPE|",
1116 loc("code_melee") + " [GrineerMeleeModule]"
1117 ),
1118 "/Lotus/Upgrades/Modules/TennoSwordModule": loc("code_U5Mod").replace(
1119 "|TYPE|",
1120 loc("code_melee") + " [TennoSwordModule]"
1121 ),
1114 "/Lotus/Upgrades/Modules/GrineerMeleeModule":
1115 loc("code_U5Mod").replace("|TYPE|", loc("code_melee")) + " [GrineerMeleeModule]",
1116 "/Lotus/Upgrades/Modules/TennoSwordModule":
1117 loc("code_U5Mod").replace("|TYPE|", loc("code_melee")) + " [TennoSwordModule]",
1122 1118
1123 1119 "/Lotus/Upgrades/Modules/GrineerPistolModule": loc("code_U5Mod").replace(
1124 1120 "|TYPE|",
@@ -4066,14 +4062,14 @@ async function populateDetailedViewRoute() {
4066 4062 upgradeFields.innerHTML = "";
4067 4063 const fits = itemMap[item.ItemType].fits;
4068 4064 const fp = JSON.parse(item.UpgradeFingerprint);
4069 const statAtten = fits.find(fit => fit.type == fp.fits).statAtten || 1;
4065 // const statAtten = fits.find(fit => fit.type == fp.fits).statAtten || 1;
4066 const statAtten = 1;
4070 4067
4071 4068 fits.forEach(fit => {
4072 4069 const option = document.createElement("option");
4073 4070 option.value = fit.type;
4074 option.textContent =
4075 (itemMap[fit.type]?.name ?? fit.type) +
4076 (fit.statAtten ? ` (${loc("code_statAtten")}: ${fit.statAtten || 1})` : "");
4071 option.textContent = itemMap[fit.type]?.name ?? fit.type;
4072 // + (fit.statAtten ? ` (${loc("code_statAtten")}: ${fit.statAtten || 1})` : "");
4077 4073 fitsSelect.appendChild(option);
4078 4074 });
4079 4075
Modified static/webui/translations/de.js +1 -1
@@ -195,7 +195,7 @@ dict = {
195 195 detailedView_umbraEchoesLabel: `Echoes Of Umbra`,
196 196
197 197 detailedView_u5ModEditLabel: `[UNTRANSLATED] Update 5 mod editor`,
198 detailedView_u5ModEditDescription: `[UNTRANSLATED] Range for upgrade values changes with rarity and selected equipment.`,
198 detailedView_u5ModEditDescription: `[UNTRANSLATED] Range for upgrade values changes with rarity.`,
199 199 detailedView_u5ModEditFits: `[UNTRANSLATED] Fits:`,
200 200 detailedView_u5ModEditReqLevel: `[UNTRANSLATED] Required Level:`,
201 201
Modified static/webui/translations/en.js +1 -1
@@ -194,7 +194,7 @@ dict = {
194 194 detailedView_umbraEchoesLabel: `Echoes Of Umbra`,
195 195
196 196 detailedView_u5ModEditLabel: `Update 5 mod editor`,
197 detailedView_u5ModEditDescription: `Range for upgrade values changes with rarity and selected equipment.`,
197 detailedView_u5ModEditDescription: `Range for upgrade values changes with rarity.`,
198 198 detailedView_u5ModEditFits: `Fits:`,
199 199 detailedView_u5ModEditReqLevel: `Required Level:`,
200 200
Modified static/webui/translations/es.js +1 -1
@@ -195,7 +195,7 @@ dict = {
195 195 detailedView_umbraEchoesLabel: `[UNTRANSLATED] Echoes Of Umbra`,
196 196
197 197 detailedView_u5ModEditLabel: `[UNTRANSLATED] Update 5 mod editor`,
198 detailedView_u5ModEditDescription: `[UNTRANSLATED] Range for upgrade values changes with rarity and selected equipment.`,
198 detailedView_u5ModEditDescription: `[UNTRANSLATED] Range for upgrade values changes with rarity.`,
199 199 detailedView_u5ModEditFits: `[UNTRANSLATED] Fits:`,
200 200 detailedView_u5ModEditReqLevel: `[UNTRANSLATED] Required Level:`,
201 201
Modified static/webui/translations/fr.js +1 -1
@@ -195,7 +195,7 @@ dict = {
195 195 detailedView_umbraEchoesLabel: `Échos d'Umbra`,
196 196
197 197 detailedView_u5ModEditLabel: `[UNTRANSLATED] Update 5 mod editor`,
198 detailedView_u5ModEditDescription: `[UNTRANSLATED] Range for upgrade values changes with rarity and selected equipment.`,
198 detailedView_u5ModEditDescription: `[UNTRANSLATED] Range for upgrade values changes with rarity.`,
199 199 detailedView_u5ModEditFits: `[UNTRANSLATED] Fits:`,
200 200 detailedView_u5ModEditReqLevel: `[UNTRANSLATED] Required Level:`,
201 201
Modified static/webui/translations/ru.js +1 -1
@@ -195,7 +195,7 @@ dict = {
195 195 detailedView_umbraEchoesLabel: `Эхо Умбры`,
196 196
197 197 detailedView_u5ModEditLabel: `Редакор модов из Обновления 5`,
198 detailedView_u5ModEditDescription: `Диапазон значений улучшения зависит от редкости и выбранного снаряжения.`,
198 detailedView_u5ModEditDescription: `Диапазон значений улучшения зависит от редкости.`,
199 199 detailedView_u5ModEditFits: `Подходит:`,
200 200 detailedView_u5ModEditReqLevel: `Требуемый уровень:`,
201 201
Modified static/webui/translations/uk.js +1 -1
@@ -195,7 +195,7 @@ dict = {
195 195 detailedView_umbraEchoesLabel: `Відлуння Умбри`,
196 196
197 197 detailedView_u5ModEditLabel: `[UNTRANSLATED] Update 5 mod editor`,
198 detailedView_u5ModEditDescription: `[UNTRANSLATED] Range for upgrade values changes with rarity and selected equipment.`,
198 detailedView_u5ModEditDescription: `[UNTRANSLATED] Range for upgrade values changes with rarity.`,
199 199 detailedView_u5ModEditFits: `[UNTRANSLATED] Fits:`,
200 200 detailedView_u5ModEditReqLevel: `[UNTRANSLATED] Required Level:`,
201 201
Modified static/webui/translations/zh.js +1 -1
@@ -195,7 +195,7 @@ dict = {
195 195 detailedView_umbraEchoesLabel: `Umbra回响`,
196 196
197 197 detailedView_u5ModEditLabel: `U5 Mod 编辑器`,
198 detailedView_u5ModEditDescription: `升级数值的范围会根据稀有度和所选装备变化.`,
198 detailedView_u5ModEditDescription: `[UNTRANSLATED] Range for upgrade values changes with rarity.`,
199 199 detailedView_u5ModEditFits: `适配:`,
200 200 detailedView_u5ModEditReqLevel: `所需等级:`,
201 201