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

            return(ModSabres.PreDrawSlashAndWeapon(spriteBatch, projectile, weaponItemID, lighting,
                                                   SlashLogic == 0f ? specialSlash : null,
                                                   SlashLogic == 0f ? new Color(1f, 1f, 1f, 0.1f) : lighting,
                                                   specialProjFrames,
                                                   SlashLogic == 0f ? chargeSlashDirection : SlashLogic));
        }
Exemple #2
0
        public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor)
        {
            Player    player       = Main.player[projectile.owner];
            Texture2D specialSlash = mod.GetTexture("Items/Weapons/Sabres/BeamSabres/" + GetType().Name + "_Special");
            int       weaponItemID = player.HeldItem.type;

            //Color lighting = Lighting.GetColor((int)(player.MountedCenter.X / 16), (int)(player.MountedCenter.Y / 16));
            return(ModSabres.PreDrawSlashAndWeapon(spriteBatch, projectile, weaponItemID, Color.White,
                                                   SlashLogic == 0f ? specialSlash : null,
                                                   new Color(1f, 1f, 1f, 0.1f), specialProjFrames,
                                                   SlashLogic == 0f ? chargeSlashDirection : SlashLogic));
        }