示例#1
0
        static void Score(string itemName, double attack = 0, double magicAttack = 0, double accuracy = 0, double criticalRate = 0, double defense = 0, double magicDefense = 0, double hp = 0, double strength = 0, double intelligence = 0, double dexterity = 0)
        {
            var item = ItemFilter.MakeItems(40).First(x => x.Name == itemName);

            Console.WriteLine(itemName);
            WriteStatDiff("Atk ", attack, item.Attack);
            WriteStatDiff("Matk", magicAttack, item.MagicAttack);
            WriteStatDiff("Acc ", accuracy, item.Accuracy);
            WriteStatDiff("Crit", criticalRate, item.CriticalRate);
            WriteStatDiff("Def ", defense, item.Defense);
            WriteStatDiff("Mdef", magicDefense, item.MagicDefense);
            WriteStatDiff("HP  ", hp, item.HP);
            WriteStatDiff("Str ", strength, item.Strength);
            WriteStatDiff("Int ", intelligence, item.Intelligence);
            WriteStatDiff("Dex ", dexterity, item.Dexterity);
            Console.WriteLine();
        }