Exemplo n.º 1
0
        public int ProjectileDamage(PlayerCharacter character)
        {
            int   constant   = Main.hardMode ? character.Level / 3 : 5;
            float multiplier = Main.expertMode ? 1f : 0.65f;

            multiplier = Glyphs.Aggregate(multiplier, (current, item) => current * ((Glyph)item.modItem).DamageModifier());
            return((int)Math.Round(Math.Pow(1.04, Math.Min(130, character.Level)) * 9f * multiplier) + constant);
        }
Exemplo n.º 2
0
        // ReSharper disable once IdentifierTypo
        public int ManaCost(PlayerCharacter character)
        {
            float multiplier = Glyphs.Aggregate(0.4f, (current, item) => current * ((Glyph)item.modItem).ManaModifier());

            return((int)Math.Round((20 + character.Level) * multiplier));
        }