From 86ce69d7bee8e9429a71db4733371827d7e54b94 Mon Sep 17 00:00:00 2001 From: milimoe Date: Thu, 25 Dec 2025 19:38:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=B4=BB=E5=8A=A8=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=E5=8F=AA=E8=83=BD=E5=AE=8C=E6=88=90=E4=B8=8D=E8=83=BD?= =?UTF-8?q?=E7=BB=93=E7=AE=97=E7=9A=84=E9=97=AE=E9=A2=98=EF=BC=8C=E5=B9=B6?= =?UTF-8?q?=E5=B0=86=E5=85=B6=E5=92=8C=E4=BB=BB=E5=8A=A1=E7=B3=BB=E7=BB=9F?= =?UTF-8?q?=E5=90=8C=E6=AD=A5=E7=BB=93=E7=AE=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Library/Tests/ActivityTest.cs | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/Library/Tests/ActivityTest.cs b/Library/Tests/ActivityTest.cs index f62c2a8..82328de 100644 --- a/Library/Tests/ActivityTest.cs +++ b/Library/Tests/ActivityTest.cs @@ -268,33 +268,16 @@ namespace Milimoe.FunGame.Testing.Tests public static void Test3() { - Activity activity = new(1, "糖糖一周年纪念活动", new DateTime(2025, 12, 25, 4, 0, 0), new DateTime(2026, 1, 4, 3, 59, 59)) + Activity activity = new(7, "糖糖一周年纪念活动", new DateTime(2025, 12, 25, 4, 0, 0), new DateTime(2026, 1, 4, 3, 59, 59)) { Description = "在活动期间,累计消耗 360 个探索许可即可领取【一周年纪念礼包】,打开后获得金币、钻石奖励以及【一周年纪念套装】(包含武器粉糖雾蝶 * 1,防具糖之誓约 * 1,鞋子蜜步流心 * 1,饰品回忆糖纸 * 1,饰品蜂糖蜜酿 * 1)!自2024年12月进入上线前的测试阶段起,糖糖已经陪我们走过了第一个年头,放眼未来,糖糖将为我们带来更多快乐。" }; - Quest quest1 = new() - { - Id = 1, - Name = "糖糖一周年纪念", - Description = "消耗 360 个探索许可(即参与探索玩法、秘境挑战)。", - NeedyExploreItemName = "探索许可", - CreditsAward = 10000, - Awards = [ - new 一周年纪念礼包() - ], - AwardsCount = new() { - { "一周年纪念礼包", 1 } - }, - QuestType = QuestType.Progressive, - MaxProgress = 360 - }; - activity.Quests.Add(quest1); Console.WriteLine(FunGameService.AddEvent(activity)); Console.WriteLine(FunGameService.GetEventCenter(null)); Console.WriteLine(); Console.WriteLine(FunGameService.GetEvents(null)); Console.WriteLine(); - Console.WriteLine(FunGameService.GetEvent(null, 1)); + Console.WriteLine(FunGameService.GetEvent(null, 7)); } } }