mirror of
https://github.com/milimoe/FunGame-Testing.git
synced 2026-01-19 22:18:26 +00:00
技能优化和测试
This commit is contained in:
parent
8bcb95795b
commit
7a06a64dd5
@ -60,6 +60,12 @@ namespace Milimoe.FunGame.Testing.Desktop.GameMapTesting
|
|||||||
c.Level = clevel;
|
c.Level = clevel;
|
||||||
c.NormalAttack.Level = mlevel;
|
c.NormalAttack.Level = mlevel;
|
||||||
FunGameService.AddCharacterSkills(c, 1, slevel, slevel);
|
FunGameService.AddCharacterSkills(c, 1, slevel, slevel);
|
||||||
|
//Skill test = new 钻石星尘
|
||||||
|
//{
|
||||||
|
// Character = c,
|
||||||
|
// Level = 8
|
||||||
|
//};
|
||||||
|
//c.Skills.Add(test);
|
||||||
foreach (Skill skillLoop in FunGameConstant.Skills)
|
foreach (Skill skillLoop in FunGameConstant.Skills)
|
||||||
{
|
{
|
||||||
Skill skill = skillLoop.Copy();
|
Skill skill = skillLoop.Copy();
|
||||||
@ -74,6 +80,7 @@ namespace Milimoe.FunGame.Testing.Desktop.GameMapTesting
|
|||||||
passive.Level = 1;
|
passive.Level = 1;
|
||||||
c.Skills.Add(passive);
|
c.Skills.Add(passive);
|
||||||
}
|
}
|
||||||
|
c.EP = 100;
|
||||||
characters.Add(c);
|
characters.Add(c);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -346,7 +353,16 @@ namespace Milimoe.FunGame.Testing.Desktop.GameMapTesting
|
|||||||
if (currentGrid != null) _gamingQueue.CustomData["currentGrid"] = currentGrid;
|
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)
|
if (isGameEnd)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -34,10 +34,5 @@ namespace Milimoe.FunGame.Testing.Desktop.GameMapTesting
|
|||||||
|
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void AfterTimeElapsed(ref double timeToReduce)
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -51,11 +51,12 @@ foreach (Skill s in FunGameConstant.Skills)
|
|||||||
s.Level = 6;
|
s.Level = 6;
|
||||||
Console.WriteLine(s.GetInfo());
|
Console.WriteLine(s.GetInfo());
|
||||||
}
|
}
|
||||||
//foreach (Skill m in FunGameConstant.Magics)
|
foreach (Skill m in FunGameConstant.Magics)
|
||||||
//{
|
{
|
||||||
// m.Level = 1;
|
m.GamingQueue = queue;
|
||||||
// Console.WriteLine(m.GetInfo());
|
m.Level = 8;
|
||||||
//}
|
Console.WriteLine(m.GetInfo());
|
||||||
|
}
|
||||||
//foreach (Character c in FunGameConstant.Characters)
|
//foreach (Character c in FunGameConstant.Characters)
|
||||||
//{
|
//{
|
||||||
// Character character = c.Copy();
|
// Character character = c.Copy();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user