From 4887818be97c8acc85253efa7943044fc892c61b Mon Sep 17 00:00:00 2001 From: milimoe Date: Wed, 18 Dec 2024 01:53:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=BB=8F=E9=AA=8C=E4=B9=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Library/Main.cs | 62 ++++++++++++++++++++++++------------------------- 1 file changed, 31 insertions(+), 31 deletions(-) diff --git a/Library/Main.cs b/Library/Main.cs index cda041a..6f76648 100644 --- a/Library/Main.cs +++ b/Library/Main.cs @@ -28,42 +28,42 @@ FunGameActionQueue.InitFunGameActionQueue(); //Console.WriteLine(testc.InitialINT + $" ({testc.INTGrowth}/Lv)"); FunGameController controller = new(new Logger(new LoggerFactory())); -Console.WriteLine(controller.CreateSaved(1, "test1")); -Console.WriteLine(controller.CreateSaved(2, "test2")); +//Console.WriteLine(controller.CreateSaved(1, "test1")); +//Console.WriteLine(controller.CreateSaved(2, "test2")); -PluginConfig pc = new("saved", "2"); -pc.LoadConfig(); -User user = FunGameService.GetUser(pc); -Console.WriteLine(user.Inventory); -Character c = user.Inventory.Characters.First(); +//PluginConfig pc = new("saved", "2"); +//pc.LoadConfig(); +//User user = FunGameService.GetUser(pc); +//Console.WriteLine(user.Inventory); +//Character c = user.Inventory.Characters.First(); -Dictionary skillargs = []; -skillargs.Add("active", true); -skillargs.Add("self", true); -skillargs.Add("enemy", false); -Skill skill = Factory.OpenFactory.GetInstance((long)EffectID.GetEXP, "经验书", skillargs); -Dictionary effectargs = new() -{ - { "skill", skill }, - { - "values", - new Dictionary() - { - { "exp", 7777 } - } - } -}; -skill.Effects.Add(Factory.OpenFactory.GetInstance(skill.Id, "", effectargs)); -skill.Character = c; -skill.Level = 1; +//Dictionary skillargs = []; +//skillargs.Add("active", true); +//skillargs.Add("self", true); +//skillargs.Add("enemy", false); +//Skill skill = Factory.OpenFactory.GetInstance((long)EffectID.GetEXP, "经验书", skillargs); +//Dictionary effectargs = new() +//{ +// { "skill", skill }, +// { +// "values", +// new Dictionary() +// { +// { "exp", 7777 } +// } +// } +//}; +//skill.Effects.Add(Factory.OpenFactory.GetInstance(skill.Id, "", effectargs)); +//skill.Character = c; +//skill.Level = 1; -skill.OnSkillCasted(null, c, [c]); -c.OnLevelUp(); -c.OnLevelBreak(); +//skill.OnSkillCasted(null, c, [c]); +//c.OnLevelUp(); +//c.OnLevelBreak(); -Console.WriteLine(user.Inventory.Characters.First().GetInfo(showEXP: true)); +//Console.WriteLine(user.Inventory.Characters.First().GetInfo(showEXP: true)); -Console.WriteLine(string.Join("\r\n", controller.FightCustom(1, 2))); +Console.WriteLine(string.Join("", controller.FightCustom(1, 2, true))); //FunGameActionQueue.StartSimulationGame(true, true, true, true); //foreach (string str in controller.GetTest(false, true))