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

SpaceNinjaServer

A simple server for a small space ninja game

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

XFEstudio/SpaceNinjaServer

feat(webui): max focus schools (#2270)

Closes #1433 Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/2270 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>

ca3cfb52
Sainan <63328889+Sainan@users.noreply.github.com>
提交于

代码差异

8 个文件 +252 -1
Modified static/webui/index.html +5 -1
@@ -803,8 +803,12 @@
803 803 </div>
804 804 <div data-route="/webui/import" data-title="Import | OpenWF WebUI">
805 805 <p data-loc="import_importNote"></p>
806 <textarea class="form-control" id="import-inventory"></textarea>
806 <textarea class="form-control" id="import-inventory" style="height: calc(100vh - 300px)"></textarea>
807 807 <button class="btn btn-primary mt-3" onclick="doImport();" data-loc="import_submit"></button>
808 <p class="mt-3 mb-1" data-loc="import_samples"></p>
809 <ul>
810 <li><a href="#" onclick="event.preventDefault();setImportSample('maxFocus');" data-loc="import_samples_maxFocus"></a></li>
811 </ul>
808 812 </div>
809 813 </div>
810 814 <div class="toast-container position-fixed bottom-0 end-0 p-3"></div>
Modified static/webui/script.js +235 -0
@@ -2339,3 +2339,238 @@ async function doUnlockAllMissions() {
2339 2339 await fetch("/custom/completeAllMissions?" + window.authz);
2340 2340 updateInventory();
2341 2341 }
2342
2343 const importSamples = {
2344 maxFocus: {
2345 FocusUpgrades: [
2346 {
2347 ItemType: "/Lotus/Upgrades/Focus/Attack/AttackFocusAbility"
2348 },
2349 {
2350 ItemType: "/Lotus/Upgrades/Focus/Attack/Stats/MoreAmmoFocusUpgrade",
2351 Level: 3,
2352 IsUniversal: true
2353 },
2354 {
2355 ItemType: "/Lotus/Upgrades/Focus/Attack/Residual/PowerSnapFocusUpgrade",
2356 Level: 3
2357 },
2358 {
2359 ItemType: "/Lotus/Upgrades/Focus/Attack/Residual/PhysicalDamageFocusUpgrade",
2360 Level: 3
2361 },
2362 {
2363 ItemType: "/Lotus/Upgrades/Focus/Attack/Active/CloakAttackChargeFocusUpgrade",
2364 Level: 3
2365 },
2366 {
2367 ItemType: "/Lotus/Upgrades/Focus/Attack/Stats/RegenAmmoFocusUpgrade",
2368 Level: 3,
2369 IsUniversal: true
2370 },
2371 {
2372 ItemType: "/Lotus/Upgrades/Focus/Tactic/TacticFocusAbility"
2373 },
2374 {
2375 ItemType: "/Lotus/Upgrades/Focus/Ward/WardFocusAbility"
2376 },
2377 {
2378 ItemType: "/Lotus/Upgrades/Focus/Defense/DefenseFocusAbility"
2379 },
2380 {
2381 ItemType: "/Lotus/Upgrades/Focus/Power/PowerFocusAbility"
2382 },
2383 {
2384 ItemType: "/Lotus/Upgrades/Focus/Ward/Active/KnockdownImmunityFocusUpgrade",
2385 Level: 3
2386 },
2387 {
2388 ItemType: "/Lotus/Upgrades/Focus/Ward/Active/UnairuWispFocusUpgrade",
2389 Level: 3
2390 },
2391 {
2392 ItemType: "/Lotus/Upgrades/Focus/Ward/Active/SunderingDissipationUpgrade",
2393 Level: 3
2394 },
2395 {
2396 ItemType: "/Lotus/Upgrades/Focus/Ward/Active/MagneticExtensionUpgrade",
2397 Level: 3
2398 },
2399 {
2400 ItemType: "/Lotus/Upgrades/Focus/Ward/Active/MagneticFieldFocusUpgrade",
2401 Level: 3
2402 },
2403 {
2404 ItemType: "/Lotus/Upgrades/Focus/Ward/Residual/ArmourBuffFocusUpgrade",
2405 Level: 3
2406 },
2407 {
2408 ItemType: "/Lotus/Upgrades/Focus/Ward/Active/ClearStaticOnKillFocusUpgrade",
2409 Level: 3
2410 },
2411 {
2412 ItemType: "/Lotus/Upgrades/Focus/Ward/Residual/SecondChanceDamageBuffFocusUpgrade",
2413 Level: 3,
2414 IsUniversal: true
2415 },
2416 {
2417 ItemType: "/Lotus/Upgrades/Focus/Ward/Residual/SecondChanceFocusUpgrade",
2418 Level: 3,
2419 IsUniversal: true
2420 },
2421 {
2422 ItemType: "/Lotus/Upgrades/Focus/Ward/Active/InvulnerableReturnFocusUpgrade",
2423 Level: 3
2424 },
2425 {
2426 ItemType: "/Lotus/Upgrades/Focus/Attack/Active/ConsecutivePowerUpgrade",
2427 Level: 3
2428 },
2429 {
2430 ItemType: "/Lotus/Upgrades/Focus/Attack/Active/AttackEfficiencyFocusUpgrade",
2431 Level: 3
2432 },
2433 {
2434 ItemType: "/Lotus/Upgrades/Focus/Attack/Active/GhostlyTouchUpgrade",
2435 Level: 3
2436 },
2437 {
2438 ItemType: "/Lotus/Upgrades/Focus/Attack/Active/GhostWaveUpgrade",
2439 Level: 3
2440 },
2441 {
2442 ItemType: "/Lotus/Upgrades/Focus/Attack/Active/ConsecutiveEfficienyUpgrade",
2443 Level: 3
2444 },
2445 {
2446 ItemType: "/Lotus/Upgrades/Focus/Tactic/Active/ProjectionStretchUpgrade",
2447 Level: 3,
2448 IsUniversal: true
2449 },
2450 {
2451 ItemType: "/Lotus/Upgrades/Focus/Tactic/Active/ProjectionExecutionUpgrade",
2452 Level: 3
2453 },
2454 {
2455 ItemType: "/Lotus/Upgrades/Focus/Tactic/Active/FinisherTransferenceUpgrade",
2456 Level: 3
2457 },
2458 {
2459 ItemType: "/Lotus/Upgrades/Focus/Tactic/Active/ComboAmpDamageFocusUpgrade",
2460 Level: 3
2461 },
2462 {
2463 ItemType: "/Lotus/Upgrades/Focus/Tactic/Residual/MeleeComboFocusUpgrade",
2464 Level: 3
2465 },
2466 {
2467 ItemType: "/Lotus/Upgrades/Focus/Tactic/Residual/MeleeXpFocusUpgrade",
2468 Level: 3
2469 },
2470 {
2471 ItemType: "/Lotus/Upgrades/Focus/Tactic/Active/LiftHitWaveUpgrade",
2472 Level: 3
2473 },
2474 {
2475 ItemType: "/Lotus/Upgrades/Focus/Tactic/Active/LiftHitDamageUpgrade",
2476 Level: 3
2477 },
2478 {
2479 ItemType: "/Lotus/Upgrades/Focus/Tactic/Stats/MoveSpeedFocusUpgrade",
2480 Level: 3,
2481 IsUniversal: true
2482 },
2483 {
2484 ItemType: "/Lotus/Upgrades/Focus/Tactic/Active/SlamComboFocusUpgrade",
2485 Level: 3
2486 },
2487 {
2488 ItemType: "/Lotus/Upgrades/Focus/Power/Active/PowerFieldFocusUpgrade",
2489 Level: 3
2490 },
2491 {
2492 ItemType: "/Lotus/Upgrades/Focus/Power/Active/DisarmedEnergyUpgrade",
2493 Level: 3
2494 },
2495 {
2496 ItemType: "/Lotus/Upgrades/Focus/Power/Stats/EnergyPoolFocusUpgrade",
2497 Level: 3,
2498 IsUniversal: true
2499 },
2500 {
2501 ItemType: "/Lotus/Upgrades/Focus/Power/Residual/EnergyOverTimeFocusUpgrade",
2502 Level: 3
2503 },
2504 {
2505 ItemType: "/Lotus/Upgrades/Focus/Power/Active/BlastSlowFocusUpgrade",
2506 Level: 3
2507 },
2508 {
2509 ItemType: "/Lotus/Upgrades/Focus/Power/Stats/EnergyRestoreFocusUpgrade",
2510 Level: 3,
2511 IsUniversal: true
2512 },
2513 {
2514 ItemType: "/Lotus/Upgrades/Focus/Power/Residual/FreeAbilityCastsFocusUpgrade",
2515 Level: 3
2516 },
2517 {
2518 ItemType: "/Lotus/Upgrades/Focus/Power/Active/DisarmingProjectionUpgrade",
2519 Level: 3
2520 },
2521 {
2522 ItemType: "/Lotus/Upgrades/Focus/Power/Residual/SlowHeadshotDamageFocusUpgrade",
2523 Level: 3
2524 },
2525 {
2526 ItemType: "/Lotus/Upgrades/Focus/Power/Active/DashBubbleFocusUpgrade",
2527 Level: 3
2528 },
2529 {
2530 ItemType: "/Lotus/Upgrades/Focus/Defense/Stats/HealthRegenFocusUpgrade",
2531 Level: 3,
2532 IsUniversal: true
2533 },
2534 {
2535 ItemType: "/Lotus/Upgrades/Focus/Defense/Residual/RadialXpFocusUpgrade",
2536 Level: 3
2537 },
2538 {
2539 ItemType: "/Lotus/Upgrades/Focus/Defense/Active/DefenseShieldFocusUpgrade",
2540 Level: 3
2541 },
2542 {
2543 ItemType: "/Lotus/Upgrades/Focus/Defense/Active/CloakHealFocusUpgrade",
2544 Level: 3
2545 },
2546 {
2547 ItemType: "/Lotus/Upgrades/Focus/Defense/Active/DefenseShieldBreakFocusUpgrade",
2548 Level: 3
2549 },
2550 {
2551 ItemType: "/Lotus/Upgrades/Focus/Defense/Active/DashImmunityFocusUpgrade",
2552 Level: 3
2553 },
2554 {
2555 ItemType: "/Lotus/Upgrades/Focus/Defense/Residual/InstantReviveFocusUpgrade",
2556 Level: 3
2557 },
2558 {
2559 ItemType: "/Lotus/Upgrades/Focus/Defense/Active/SonicDissipationUpgrade",
2560 Level: 3
2561 },
2562 {
2563 ItemType: "/Lotus/Upgrades/Focus/Defense/Stats/HealthMaxFocusUpgrade",
2564 Level: 3,
2565 IsUniversal: true
2566 },
2567 {
2568 ItemType: "/Lotus/Upgrades/Focus/Defense/Active/CloakHealOthersFocusUpgrade",
2569 Level: 2
2570 }
2571 ]
2572 }
2573 };
2574 function setImportSample(key) {
2575 $("#import-inventory").val(JSON.stringify(importSamples[key], null, 2));
2576 }
Modified static/webui/translations/de.js +2 -0
@@ -185,6 +185,8 @@ dict = {
185 185 cheats_none: `Keines`,
186 186 import_importNote: `Du kannst hier eine vollständige oder teilweise Inventarantwort (Client-Darstellung) einfügen. Alle Felder, die vom Importer unterstützt werden, <b>werden in deinem Account überschrieben</b>.`,
187 187 import_submit: `Absenden`,
188 import_samples: `[UNTRANSLATED] Samples:`,
189 import_samples_maxFocus: `[UNTRANSLATED] All Focus Schools Maxed Out`,
188 190
189 191 upgrade_Equilibrium: `[UNTRANSLATED] +|VAL|% Energy from Health pickups, +|VAL|% Health from Energy pickups`,
190 192 upgrade_MeleeCritDamage: `[UNTRANSLATED] +|VAL|% Melee Critical Damage`,
Modified static/webui/translations/en.js +2 -0
@@ -184,6 +184,8 @@ dict = {
184 184 cheats_none: `None`,
185 185 import_importNote: `You can provide a full or partial inventory response (client respresentation) here. All fields that are supported by the importer <b>will be overwritten</b> in your account.`,
186 186 import_submit: `Submit`,
187 import_samples: `Samples:`,
188 import_samples_maxFocus: `All Focus Schools Maxed Out`,
187 189
188 190 upgrade_Equilibrium: `+|VAL|% Energy from Health pickups, +|VAL|% Health from Energy pickups`,
189 191 upgrade_MeleeCritDamage: `+|VAL|% Melee Critical Damage`,
Modified static/webui/translations/es.js +2 -0
@@ -185,6 +185,8 @@ dict = {
185 185 cheats_none: `Ninguno`,
186 186 import_importNote: `Puedes proporcionar una respuesta de inventario completa o parcial (representación del cliente) aquí. Todos los campos compatibles con el importador <b>serán sobrescritos</b> en tu cuenta.`,
187 187 import_submit: `Enviar`,
188 import_samples: `[UNTRANSLATED] Samples:`,
189 import_samples_maxFocus: `[UNTRANSLATED] All Focus Schools Maxed Out`,
188 190
189 191 upgrade_Equilibrium: `+|VAL|% de Energía al recoger salud, +|VAL|% de Salud al recoger energía`,
190 192 upgrade_MeleeCritDamage: `+|VAL|% de daño crítico cuerpo a cuerpo`,
Modified static/webui/translations/fr.js +2 -0
@@ -185,6 +185,8 @@ dict = {
185 185 cheats_none: `Aucun`,
186 186 import_importNote: `Import manuel. Toutes les modifcations supportées par l'inventaire <b>écraseront celles présentes dans la base de données</b>.`,
187 187 import_submit: `Soumettre`,
188 import_samples: `[UNTRANSLATED] Samples:`,
189 import_samples_maxFocus: `[UNTRANSLATED] All Focus Schools Maxed Out`,
188 190
189 191 upgrade_Equilibrium: `[UNTRANSLATED] +|VAL|% Energy from Health pickups, +|VAL|% Health from Energy pickups`,
190 192 upgrade_MeleeCritDamage: `[UNTRANSLATED] +|VAL|% Melee Critical Damage`,
Modified static/webui/translations/ru.js +2 -0
@@ -185,6 +185,8 @@ dict = {
185 185 cheats_none: `Отсутствует`,
186 186 import_importNote: `Вы можете загрузить полный или частичный ответ инвентаря (клиентское представление) здесь. Все поддерживаемые поля <b>будут перезаписаны</b> в вашем аккаунте.`,
187 187 import_submit: `Отправить`,
188 import_samples: `[UNTRANSLATED] Samples:`,
189 import_samples_maxFocus: `[UNTRANSLATED] All Focus Schools Maxed Out`,
188 190
189 191 upgrade_Equilibrium: `[UNTRANSLATED] +|VAL|% Energy from Health pickups, +|VAL|% Health from Energy pickups`,
190 192 upgrade_MeleeCritDamage: `[UNTRANSLATED] +|VAL|% Melee Critical Damage`,
Modified static/webui/translations/zh.js +2 -0
@@ -185,6 +185,8 @@ dict = {
185 185 cheats_none: `无`,
186 186 import_importNote: `您可以在此处提供完整或部分库存响应(客户端表示)。支持的所有字段<b>将被覆盖</b>到您的账户中。`,
187 187 import_submit: `提交`,
188 import_samples: `[UNTRANSLATED] Samples:`,
189 import_samples_maxFocus: `[UNTRANSLATED] All Focus Schools Maxed Out`,
188 190
189 191 upgrade_Equilibrium: `+|VAL|% 能量 来自生命球, +|VAL|% 生命 来自能量球`,
190 192 upgrade_MeleeCritDamage: `+|VAL|% 近战暴击伤害`,