From 35dc6353108b7448d1b71c7f18f3795ef4ef1dc5 Mon Sep 17 00:00:00 2001 From: milimoe Date: Sun, 6 Jul 2025 23:55:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Library/Tests/CharacterTest.cs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Library/Tests/CharacterTest.cs b/Library/Tests/CharacterTest.cs index 0c44977..e17af9b 100644 --- a/Library/Tests/CharacterTest.cs +++ b/Library/Tests/CharacterTest.cs @@ -148,9 +148,19 @@ namespace Milimoe.FunGame.Testing.Tests character3.Recovery(); character4.Recovery(); OshimaRegion region = FunGameConstant.Regions.OrderBy(o => Random.Shared.Next()).First(); - ExploreModel model = await FunGameService.GenerateExploreModel(region, [1, 2, 3, 4], user); + ExploreModel model = new() + { + RegionId = region.Id, + CharacterIds = [1, 2, 3 ,4], + StartTime = DateTime.Now + }; + await FunGameService.GenerateExploreModel(model, region, [1, 2, 3, 4], user); Console.WriteLine(model.GetExploreInfo(user.Inventory.Characters, FunGameConstant.Regions)); Console.WriteLine(model.String); + PluginConfig pc2 = new("exploring", user.Id.ToString()); + pc2.LoadConfig(); + FunGameService.SettleExploreAll(pc2, user, true); + pc2.SaveConfig(); ConsoleKey key = Console.ReadKey().Key; if (key == ConsoleKey.Escape) {