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

chore: dogdays 2026 (#4465)

Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/4465 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>

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

代码差异

3 个文件 +68 -13
Modified src/constants/gameToBuildVersion.ts +1 -0
@@ -1,4 +1,5 @@
1 1 const gameToBuildVersion = {
2 "43.0.7": "2026.07.09.15.36",
2 3 "43.0.4": "2026.06.23.13.06",
3 4 "43.0.0": "2026.06.16.07.07",
4 5 "42.0.6": "2026.04.07.14.59",
Modified src/services/worldStateService.ts +66 -13
@@ -2489,7 +2489,7 @@ export const getWorldState = (
2489 2489 [
2490 2490 {
2491 2491 credits: 50000,
2492 items: ["/Lotus/StoreItems/Upgrades/Skins/Sigils/DogDays2023ASigil"],
2492 items: ["/Lotus/StoreItems/Upgrades/Skins/Sigils/DogDays2023ASigil"], // 2023.07.26.16.38
2493 2493 countedItems: [
2494 2494 {
2495 2495 ItemType: "/Lotus/Types/Items/MiscItems/WaterFightBucks",
@@ -2499,7 +2499,7 @@ export const getWorldState = (
2499 2499 },
2500 2500 {
2501 2501 credits: 50000,
2502 items: ["/Lotus/StoreItems/Types/Items/ShipDecos/Plushies/PlushyBeachKavat"],
2502 items: ["/Lotus/StoreItems/Types/Items/ShipDecos/Plushies/PlushyBeachKavat"], // 2024.02.16.17.13
2503 2503 countedItems: [
2504 2504 {
2505 2505 ItemType: "/Lotus/Types/Items/MiscItems/WaterFightBucks",
@@ -2509,7 +2509,7 @@ export const getWorldState = (
2509 2509 },
2510 2510 {
2511 2511 credits: 50000,
2512 items: ["/Lotus/StoreItems/Types/Items/ShipDecos/Plushies/PlushyRucksackKubrow"],
2512 items: ["/Lotus/StoreItems/Types/Items/ShipDecos/Plushies/PlushyRucksackKubrow"], // 2024.02.16.17.13
2513 2513 countedItems: [
2514 2514 {
2515 2515 ItemType: "/Lotus/Types/Items/MiscItems/WaterFightBucks",
@@ -2518,7 +2518,7 @@ export const getWorldState = (
2518 2518 ]
2519 2519 },
2520 2520 {
2521 items: ["/Lotus/StoreItems/Types/Items/ShipDecos/LisetPropCleaningDroneBeachcomber"],
2521 items: ["/Lotus/StoreItems/Types/Items/ShipDecos/LisetPropCleaningDroneBeachcomber"], // 2023.07.26.16.38
2522 2522 countedItems: [
2523 2523 {
2524 2524 ItemType: "/Lotus/Types/Items/MiscItems/WaterFightBucks",
@@ -2530,7 +2530,7 @@ export const getWorldState = (
2530 2530 [
2531 2531 {
2532 2532 credits: 50000,
2533 items: ["/Lotus/StoreItems/Types/StoreItems/AvatarImages/Seasonal/AvatarImageDogDays2024Glyph"],
2533 items: ["/Lotus/StoreItems/Types/StoreItems/AvatarImages/Seasonal/AvatarImageDogDays2024Glyph"], // 2024.07.17.17.07
2534 2534 countedItems: [
2535 2535 {
2536 2536 ItemType: "/Lotus/Types/Items/MiscItems/WaterFightBucks",
@@ -2540,7 +2540,7 @@ export const getWorldState = (
2540 2540 },
2541 2541 {
2542 2542 credits: 50000,
2543 items: ["/Lotus/StoreItems/Types/Items/ShipDecos/DogDays2024Poster"],
2543 items: ["/Lotus/StoreItems/Types/Items/ShipDecos/DogDays2024Poster"], // 2024.07.17.17.07
2544 2544 countedItems: [
2545 2545 {
2546 2546 ItemType: "/Lotus/Types/Items/MiscItems/WaterFightBucks",
@@ -2550,7 +2550,7 @@ export const getWorldState = (
2550 2550 },
2551 2551 {
2552 2552 credits: 50000,
2553 items: ["/Lotus/StoreItems/Upgrades/Skins/Clan/DogDaysKubrowBadgeItem"],
2553 items: ["/Lotus/StoreItems/Upgrades/Skins/Clan/DogDaysKubrowBadgeItem"], // 2024.07.17.17.07
2554 2554 countedItems: [
2555 2555 {
2556 2556 ItemType: "/Lotus/Types/Items/MiscItems/WaterFightBucks",
@@ -2559,7 +2559,7 @@ export const getWorldState = (
2559 2559 ]
2560 2560 },
2561 2561 {
2562 items: ["/Lotus/StoreItems/Types/Items/ShipDecos/DogDays2024LisetPropCleaningDroneBeachcomber"],
2562 items: ["/Lotus/StoreItems/Types/Items/ShipDecos/DogDays2024LisetPropCleaningDroneBeachcomber"], // 2024.07.17.17.07
2563 2563 countedItems: [
2564 2564 {
2565 2565 ItemType: "/Lotus/Types/Items/MiscItems/WaterFightBucks",
@@ -2571,7 +2571,7 @@ export const getWorldState = (
2571 2571 [
2572 2572 {
2573 2573 credits: 50000,
2574 items: ["/Lotus/StoreItems/Types/StoreItems/AvatarImages/AvatarImageDogDaysHydroidGlyph"],
2574 items: ["/Lotus/StoreItems/Types/StoreItems/AvatarImages/AvatarImageDogDaysHydroidGlyph"], // 2025.06.23.11.39
2575 2575 countedItems: [
2576 2576 {
2577 2577 ItemType: "/Lotus/Types/Items/MiscItems/WaterFightBucks",
@@ -2581,7 +2581,7 @@ export const getWorldState = (
2581 2581 },
2582 2582 {
2583 2583 credits: 50000,
2584 items: ["/Lotus/StoreItems/Types/StoreItems/AvatarImages/AvatarImageDogDaysLokiGlyph"],
2584 items: ["/Lotus/StoreItems/Types/StoreItems/AvatarImages/AvatarImageDogDaysLokiGlyph"], // 2025.06.23.11.39
2585 2585 countedItems: [
2586 2586 {
2587 2587 ItemType: "/Lotus/Types/Items/MiscItems/WaterFightBucks",
@@ -2591,7 +2591,7 @@ export const getWorldState = (
2591 2591 },
2592 2592 {
2593 2593 credits: 50000,
2594 items: ["/Lotus/StoreItems/Types/StoreItems/AvatarImages/AvatarImageDogDaysNovaGlyph"],
2594 items: ["/Lotus/StoreItems/Types/StoreItems/AvatarImages/AvatarImageDogDaysNovaGlyph"], // 2025.06.23.11.39
2595 2595 countedItems: [
2596 2596 {
2597 2597 ItemType: "/Lotus/Types/Items/MiscItems/WaterFightBucks",
@@ -2601,7 +2601,49 @@ export const getWorldState = (
2601 2601 },
2602 2602 {
2603 2603 credits: 50000,
2604 items: ["/Lotus/StoreItems/Types/StoreItems/AvatarImages/AvatarImageDogDaysValkyrGlyph"],
2604 items: ["/Lotus/StoreItems/Types/StoreItems/AvatarImages/AvatarImageDogDaysValkyrGlyph"], // 2025.06.23.11.39
2605 countedItems: [
2606 {
2607 ItemType: "/Lotus/Types/Items/MiscItems/WaterFightBucks",
2608 ItemCount: 100
2609 }
2610 ]
2611 }
2612 ],
2613 [
2614 {
2615 credits: 50000,
2616 items: ["/Lotus/StoreItems/Types/StoreItems/AvatarImages/AvatarImageDogDaysKelaGlyph"], // 2026.07.09.15.36
2617 countedItems: [
2618 {
2619 ItemType: "/Lotus/Types/Items/MiscItems/WaterFightBucks",
2620 ItemCount: 25
2621 }
2622 ]
2623 },
2624 {
2625 credits: 50000,
2626 items: ["/Lotus/StoreItems/Types/StoreItems/AvatarImages/AvatarImageDogDaysRusalkaGlyph"], // 2026.07.09.15.36
2627 countedItems: [
2628 {
2629 ItemType: "/Lotus/Types/Items/MiscItems/WaterFightBucks",
2630 ItemCount: 50
2631 }
2632 ]
2633 },
2634 {
2635 credits: 50000,
2636 items: ["/Lotus/StoreItems/Types/StoreItems/AvatarImages/AvatarImageDogDaysErraGlyph"], // 2026.07.09.15.36
2637 countedItems: [
2638 {
2639 ItemType: "/Lotus/Types/Items/MiscItems/WaterFightBucks",
2640 ItemCount: 75
2641 }
2642 ]
2643 },
2644 {
2645 credits: 50000,
2646 items: ["/Lotus/StoreItems/Types/StoreItems/AvatarImages/AvatarImageDogDaysGareshGlyph"], // 2026.07.09.15.36
2605 2647 countedItems: [
2606 2648 {
2607 2649 ItemType: "/Lotus/Types/Items/MiscItems/WaterFightBucks",
@@ -2612,7 +2654,18 @@ export const getWorldState = (
2612 2654 ]
2613 2655 ];
2614 2656
2615 const year = config.worldState?.dogDaysRewardsOverride ?? 3;
2657 const fallbackYear =
2658 buildVersionInt >= gameToBuildVersionInt["43.0.0"]
2659 ? 4
2660 : buildVersionInt >= gameToBuildVersionInt["39.0.0"]
2661 ? 3
2662 : buildVersionInt >= gameToBuildVersionInt["36.1.2"]
2663 ? 2
2664 : buildVersionInt >= gameToBuildVersionInt["33.6.0"]
2665 ? 1
2666 : 0;
2667
2668 const year = config.worldState?.dogDaysRewardsOverride ?? fallbackYear;
2616 2669
2617 2670 worldState.Goals.push({
2618 2671 _id: {
Modified static/webui/index.html +1 -0
@@ -1616,6 +1616,7 @@
1616 1616 <label class="form-label" for="worldState.dogDaysRewardsOverride" data-loc="worldState_dogDaysRewards"></label>
1617 1617 <select class="form-control" id="worldState.dogDaysRewardsOverride" data-default="null">
1618 1618 <option value="null" data-loc="normal"></option>
1619 <option value="4" data-loc="worldState_from_year" data-loc-replace="2026"></option>
1619 1620 <option value="3" data-loc="worldState_from_year" data-loc-replace="2025"></option>
1620 1621 <option value="2" data-loc="worldState_from_year" data-loc-replace="2024"></option>
1621 1622 <option value="1" data-loc="worldState_from_year" data-loc-replace="2023"></option>