Exemple #1
0
        public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor)
        {
            Player player       = Main.player[projectile.owner];
            int    weaponItemID = ModContent.ItemType <DMSlasher>();
            Color  lighting     = Lighting.GetColor((int)(player.MountedCenter.X / 16), (int)(player.MountedCenter.Y / 16));

            return(Saber.PreDrawSlashAndWeapon(spriteBatch, projectile, weaponItemID, lighting,
                                               SlashLogic == 0f ? specialSlash : null,
                                               SlashLogic == 0f ? new Color(1f, 255f, 181f, 1f) : lighting,
                                               specialProjFrames,
                                               SlashLogic == 0f ? chargeSlashDirection : SlashLogic));
        }