技能优化和测试

This commit is contained in:
milimoe 2026-01-07 02:05:18 +08:00
parent 8bcb95795b
commit 7a06a64dd5
Signed by: milimoe
GPG Key ID: 9554D37E4B8991D0
3 changed files with 23 additions and 11 deletions

View File

@ -60,6 +60,12 @@ namespace Milimoe.FunGame.Testing.Desktop.GameMapTesting
c.Level = clevel;
c.NormalAttack.Level = mlevel;
FunGameService.AddCharacterSkills(c, 1, slevel, slevel);
//Skill test = new 钻石星尘
//{
// Character = c,
// Level = 8
//};
//c.Skills.Add(test);
foreach (Skill skillLoop in FunGameConstant.Skills)
{
Skill skill = skillLoop.Copy();
@ -74,6 +80,7 @@ namespace Milimoe.FunGame.Testing.Desktop.GameMapTesting
passive.Level = 1;
c.Skills.Add(passive);
}
c.EP = 100;
characters.Add(c);
}
@ -346,7 +353,16 @@ namespace Milimoe.FunGame.Testing.Desktop.GameMapTesting
if (currentGrid != null) _gamingQueue.CustomData["currentGrid"] = currentGrid;
}
bool isGameEnd = await _gamingQueue.ProcessTurnAsync(characterToAct);
bool isGameEnd = false;
try
{
isGameEnd = await _gamingQueue.ProcessTurnAsync(characterToAct);
}
catch (Exception e)
{
await Controller.WriteLine(e.ToString());
}
if (isGameEnd)
{

View File

@ -34,10 +34,5 @@ namespace Milimoe.FunGame.Testing.Desktop.GameMapTesting
return map;
}
protected override void AfterTimeElapsed(ref double timeToReduce)
{
}
}
}

View File

@ -51,11 +51,12 @@ foreach (Skill s in FunGameConstant.Skills)
s.Level = 6;
Console.WriteLine(s.GetInfo());
}
//foreach (Skill m in FunGameConstant.Magics)
//{
// m.Level = 1;
// Console.WriteLine(m.GetInfo());
//}
foreach (Skill m in FunGameConstant.Magics)
{
m.GamingQueue = queue;
m.Level = 8;
Console.WriteLine(m.GetInfo());
}
//foreach (Character c in FunGameConstant.Characters)
//{
// Character character = c.Copy();