Phobostar
Spazmatism
error CS0115: 'EyeOfFleshMod.Items.Armor.PhobosHelm.PostDrawInWorld(Microsoft.Xna.Framework.Graphics.SpriteBatch, Microsoft.Xna.Framework.Color, Microsoft.Xna.Framework.Color, float, float, float)': no suitable method found to override
I had a lot of errors with this armor. I am just trying to add a Glowmask.
Code:
using System.Collections.Generic;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;
namespace EyeOfFleshMod.Items.Armor
{
[AutoloadEquip(EquipType.Head)]
public class PhobosHelm : ModItem
{
public override void SetStaticDefaults()
{
base.SetStaticDefaults();
DisplayName.SetDefault("Phobos Filter");
}
public override void SetDefaults()
{
item.width = 24;
item.height = 26;
item.value = 1000000;
item.rare = 7;
item.defense = 36;
}
public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, float whoAmI)
{
Texture2D texture = mod.GetTexture("Items/PhobosHelm_Glowmask");
spriteBatch.draw
(
texture,
new Vector2
(
item.position.X - Main.screenPosition.X + item.width * 0.5f,
item.position.Y - Main.screenPosition.Y + item.height - texture.Height * 0.5f + 2f
),
new Rectangle(0, 0, texture.Width, texture.Height),
Color.White,
rotation,
texture.Size() * 0.5f,
scale,
SpriteEffects.None,
0f
);
}
public override bool IsArmorSet(Item head, Item body, Item legs)
{
return body.type == mod.ItemType("PhobosPlate") && legs.type == mod.ItemType("PhobosLegs");
}
public override void UpdateArmorSet(Player player)
{
player.setBonus = "Phobostar's Blessing";
player.meleeCrit += 0.17f;
player.rangedDamage += 0.16f;
player.rangedCrit += 0.07f;
player.AddBuff(BuffID.Gravitation, 2);
player.AddBuff(BuffID.WeaponImbueIchor, 2);
player.AddBuff(BuffID.SolarShield1, 2);
}
}
I had a lot of errors with this armor. I am just trying to add a Glowmask.