mirror of
https://github.com/milimoe/FunGame-Testing.git
synced 2025-04-23 12:49:34 +08:00
添加还原存档;优化分类库存查询;添加仅角色的查询;优化了装备的提示信息
This commit is contained in:
parent
884d301873
commit
1d65470799
@ -1,5 +1,6 @@
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Milimoe.FunGame.Core.Api.Utility;
|
||||
using Milimoe.FunGame.Core.Entity;
|
||||
using Oshima.Core.Controllers;
|
||||
using Oshima.Core.Utils;
|
||||
using Oshima.FunGame.OshimaModules;
|
||||
@ -14,12 +15,32 @@ im.Load();
|
||||
FunGameService.InitFunGame();
|
||||
FunGameSimulation.InitFunGame();
|
||||
|
||||
List<string> strings = FunGameSimulation.StartGame(true, false, true);
|
||||
strings.ForEach(Console.WriteLine);
|
||||
//List<string> strings = FunGameSimulation.StartGame(true, false, true);
|
||||
//strings.ForEach(Console.WriteLine);
|
||||
|
||||
FunGameController controller = new(new Logger<FunGameController>(new LoggerFactory()));
|
||||
Console.WriteLine(controller.CreateSaved(1, "test"));
|
||||
|
||||
//¿â´æ²âÊÔ
|
||||
//PluginConfig pc = new("saved", "1");
|
||||
//pc.LoadConfig();
|
||||
//User u = FunGameService.GetUser(pc);
|
||||
//if (u.Inventory.Characters.Count == 0)
|
||||
//{
|
||||
// u.Inventory.Characters.Add(FunGameService.Characters[0].Copy());
|
||||
//}
|
||||
//Character c = u.Inventory.Characters.First();
|
||||
//Item? i = FunGameService.GenerateMagicCardPack(3);
|
||||
//if (i != null)
|
||||
//{
|
||||
// u.Inventory.Items.Add(i);
|
||||
// c.Equip(i);
|
||||
//}
|
||||
//Console.WriteLine(u.Inventory.Characters.First().GetInfo());
|
||||
//pc.Add("user", u);
|
||||
//pc.SaveConfig();
|
||||
//pc.LoadConfig();
|
||||
//u = FunGameService.GetUser(pc);
|
||||
|
||||
//for (int i = 1; i <= 100; i++)
|
||||
//{
|
||||
@ -41,6 +62,10 @@ while (true)
|
||||
}
|
||||
else Console.WriteLine(controller.ExchangeCredits(1));
|
||||
}
|
||||
else if (msg == "kb")
|
||||
{
|
||||
Console.WriteLine(string.Join("\r\n", controller.GenerateMagicCardPack()));
|
||||
}
|
||||
else if (msg == "tck")
|
||||
{
|
||||
Console.WriteLine(string.Join("\r\n", controller.DrawCards(1)));
|
||||
|
Loading…
x
Reference in New Issue
Block a user