修复活动任务只能完成不能结算的问题,并将其和任务系统同步结算

This commit is contained in:
milimoe 2025-12-25 19:38:53 +08:00
parent 92a0e7aae8
commit 86ce69d7be
Signed by: milimoe
GPG Key ID: 9554D37E4B8991D0

View File

@ -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));
}
}
}