mirror of
https://github.com/milimoe/FunGame-Testing.git
synced 2025-12-05 08:09:04 +00:00
添加测试
This commit is contained in:
parent
591175b781
commit
e1707c922e
@ -36,16 +36,16 @@ FunGameController controller = new(new Logger<FunGameController>(new LoggerFacto
|
||||
// FunGameService.AddCharacterSkills(character, 1, 1, 1);
|
||||
// Console.WriteLine(character.GetInfo());
|
||||
//}
|
||||
//foreach (Skill s in FunGameConstant.Skills)
|
||||
//{
|
||||
// s.Level = 1;
|
||||
// Console.WriteLine(s.GetInfo());
|
||||
//}
|
||||
//foreach (Skill m in FunGameConstant.Magics)
|
||||
//{
|
||||
// m.Level = 1;
|
||||
// Console.WriteLine(m.GetInfo());
|
||||
//}
|
||||
foreach (Skill s in FunGameConstant.Skills)
|
||||
{
|
||||
s.Level = 1;
|
||||
Console.WriteLine(s.GetInfo());
|
||||
}
|
||||
foreach (Skill m in FunGameConstant.Magics)
|
||||
{
|
||||
m.Level = 1;
|
||||
Console.WriteLine(m.GetInfo());
|
||||
}
|
||||
//foreach (Character c in FunGameConstant.Characters)
|
||||
//{
|
||||
// Character character = c.Copy();
|
||||
@ -54,16 +54,17 @@ FunGameController controller = new(new Logger<FunGameController>(new LoggerFacto
|
||||
// FunGameService.AddCharacterSkills(character, 1, 6, 6);
|
||||
// Console.WriteLine(character.GetInfo());
|
||||
//}
|
||||
//foreach (Skill s in FunGameConstant.Skills)
|
||||
//{
|
||||
// s.Level = 6;
|
||||
// Console.WriteLine(s.GetInfo());
|
||||
//}
|
||||
//foreach (Skill m in FunGameConstant.Magics)
|
||||
//{
|
||||
// m.Level = 8;
|
||||
// Console.WriteLine(m.GetInfo());
|
||||
//}
|
||||
foreach (Skill s in FunGameConstant.Skills)
|
||||
{
|
||||
s.Level = 6;
|
||||
Console.WriteLine(s.GetInfo());
|
||||
}
|
||||
foreach (Skill m in FunGameConstant.Magics)
|
||||
{
|
||||
m.Level = 8;
|
||||
Console.WriteLine(m.GetInfo());
|
||||
}
|
||||
Console.ReadKey();
|
||||
//Character character = new Oshima.FunGame.OshimaModules.Characters.CustomCharacter(0, "");
|
||||
//character.SetLevel(60);
|
||||
//foreach (Item i in FunGameConstant.Equipment)
|
||||
@ -73,36 +74,36 @@ FunGameController controller = new(new Logger<FunGameController>(new LoggerFacto
|
||||
// Console.WriteLine(i.ToString());
|
||||
//}
|
||||
//Console.WriteLine(character.GetInfo());
|
||||
foreach (Item i in FunGameConstant.Equipment)
|
||||
{
|
||||
StringBuilder builder = new();
|
||||
//foreach (Item i in FunGameConstant.Equipment)
|
||||
//{
|
||||
// StringBuilder builder = new();
|
||||
|
||||
builder.AppendLine($"【{i.Name}】");
|
||||
// builder.AppendLine($"【{i.Name}】");
|
||||
|
||||
string itemquality = ItemSet.GetQualityTypeName(i.QualityType);
|
||||
string itemtype = ItemSet.GetItemTypeName(i.ItemType) + (i.ItemType == ItemType.Weapon && i.WeaponType != WeaponType.None ? "-" + ItemSet.GetWeaponTypeName(i.WeaponType) : "");
|
||||
if (itemtype != "") itemtype = $" {itemtype}";
|
||||
// string itemquality = ItemSet.GetQualityTypeName(i.QualityType);
|
||||
// string itemtype = ItemSet.GetItemTypeName(i.ItemType) + (i.ItemType == ItemType.Weapon && i.WeaponType != WeaponType.None ? "-" + ItemSet.GetWeaponTypeName(i.WeaponType) : "");
|
||||
// if (itemtype != "") itemtype = $" {itemtype}";
|
||||
|
||||
builder.AppendLine($"{itemquality + itemtype}");
|
||||
// builder.AppendLine($"{itemquality + itemtype}");
|
||||
|
||||
if (i.Description != "")
|
||||
{
|
||||
builder.AppendLine("物品描述:" + i.Description);
|
||||
}
|
||||
// if (i.Description != "")
|
||||
// {
|
||||
// builder.AppendLine("物品描述:" + i.Description);
|
||||
// }
|
||||
|
||||
if (i.BackgroundStory != "")
|
||||
{
|
||||
builder.AppendLine($"\"{i.BackgroundStory}\"");
|
||||
}
|
||||
// if (i.BackgroundStory != "")
|
||||
// {
|
||||
// builder.AppendLine($"\"{i.BackgroundStory}\"");
|
||||
// }
|
||||
|
||||
Console.WriteLine(builder.ToString());
|
||||
}
|
||||
Console.ReadKey();
|
||||
foreach (OshimaRegion region in FunGameConstant.Regions.Union(FunGameConstant.PlayerRegions))
|
||||
{
|
||||
Console.WriteLine(region.ToString());
|
||||
}
|
||||
Console.ReadKey();
|
||||
// Console.WriteLine(builder.ToString());
|
||||
//}
|
||||
//Console.ReadKey();
|
||||
//foreach (OshimaRegion region in FunGameConstant.Regions.Union(FunGameConstant.PlayerRegions))
|
||||
//{
|
||||
// Console.WriteLine(region.ToString());
|
||||
//}
|
||||
//Console.ReadKey();
|
||||
|
||||
//Dictionary<int, RoundRecord> rounds = FunGameSimulation.ReadRoundsFromZip("rounds_archive.zip") ?? [];
|
||||
//Console.WriteLine(rounds.Count);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user