应用新的魔法

This commit is contained in:
milimoe 2024-11-01 00:11:21 +08:00
parent 672573ecfd
commit 20e9301102
Signed by: milimoe
GPG Key ID: 05D280912DA6C69E
3 changed files with 18 additions and 34 deletions

View File

@ -215,18 +215,6 @@ namespace Oshima.Core.Controllers
c.Level = General.GameplayEquilibriumConstant.MaxLevel; c.Level = General.GameplayEquilibriumConstant.MaxLevel;
c.NormalAttack.Level = General.GameplayEquilibriumConstant.MaxNormalAttackLevel; c.NormalAttack.Level = General.GameplayEquilibriumConstant.MaxNormalAttackLevel;
Skill ±ù˪¹¥»÷ = new ±ù˪¹¥»÷(c)
{
Level = General.GameplayEquilibriumConstant.MaxMagicLevel
};
c.Skills.Add(±ù˪¹¥»÷);
Skill ¼²·ç²½ = new ¼²·ç²½(c)
{
Level = General.GameplayEquilibriumConstant.MaxSkillLevel
};
c.Skills.Add(¼²·ç²½);
if (id == 1) if (id == 1)
{ {
Skill METAÂí = new METAÂí(c) Skill METAÂí = new METAÂí(c)

View File

@ -11,24 +11,9 @@ namespace Oshima.Core.Utils
{ {
public class FunGameSimulation public class FunGameSimulation
{ {
public FunGameSimulation()
{
InitCharacter();
bool printout = true;
List<string> strs = StartGame(printout);
if (printout == false)
{
foreach (string str in strs)
{
Console.WriteLine(str);
}
}
Console.ReadKey();
}
public static List<Character> Characters { get; } = []; public static List<Character> Characters { get; } = [];
public static List<Skill> Skills { get; } = [];
public static List<Skill> Magics { get; } = [];
public static List<Item> Items { get; } = []; public static List<Item> Items { get; } = [];
public static Dictionary<Character, CharacterStatistics> CharacterStatistics { get; } = []; public static Dictionary<Character, CharacterStatistics> CharacterStatistics { get; } = [];
public static Dictionary<Character, CharacterStatistics> TeamCharacterStatistics { get; } = []; public static Dictionary<Character, CharacterStatistics> TeamCharacterStatistics { get; } = [];
@ -100,11 +85,12 @@ namespace Oshima.Core.Utils
c.Level = clevel; c.Level = clevel;
c.NormalAttack.Level = mlevel; c.NormalAttack.Level = mlevel;
Skill = new (c) IEnumerable<Skill> magics = Magics.OrderBy(x => Random.Shared.Next()).Take(3);
foreach (Skill magic in magics)
{ {
Level = mlevel magic.Level = mlevel;
}; c.Skills.Add(magic);
c.Skills.Add(); }
Skill = new (c) Skill = new (c)
{ {
@ -747,6 +733,9 @@ namespace Oshima.Core.Utils
Dictionary<string, Item> exItems = Factory.GetGameModuleInstances<Item>(OshimaGameModuleConstant.General, OshimaGameModuleConstant.Item); Dictionary<string, Item> exItems = Factory.GetGameModuleInstances<Item>(OshimaGameModuleConstant.General, OshimaGameModuleConstant.Item);
Items.AddRange(exItems.Values); Items.AddRange(exItems.Values);
Items.AddRange([new 10(), new 30(), new 50()]); Items.AddRange([new 10(), new 30(), new 50()]);
Skills.AddRange([new ()]);
Magics.AddRange([new (), new (), new (), new (), new (), new (), new (), new ()]);
} }
public static void UpdateStatistics(CharacterStatistics totalStats, CharacterStatistics stats) public static void UpdateStatistics(CharacterStatistics totalStats, CharacterStatistics stats)

View File

@ -28,6 +28,13 @@ namespace Oshima.FunGame.OshimaModules
Skill skill = id switch Skill skill = id switch
{ {
(long)MagicID. => new (), (long)MagicID. => new (),
(long)MagicID. => new (),
(long)MagicID. => new (),
(long)MagicID. => new (),
(long)MagicID. => new (),
(long)MagicID. => new (),
(long)MagicID. => new (),
(long)MagicID. => new (),
(long)SkillID. => new (), (long)SkillID. => new (),
(long)SuperSkillID. => new (), (long)SuperSkillID. => new (),
(long)SuperSkillID. => new (), (long)SuperSkillID. => new (),