What does: Cannot implicitly convert type 'int' to 'Terraria.Audio.LegacySoundStyle' mean?

Orika

Terrarian
Hello Friends! I have recently come across an error which states
Cannot implicitly convert type 'int' to 'Terraria.Audio.LegacySoundStyle'
I am brand new to modding, and I don't understand what this means. I have seen that the source of my error is the item.UseSound Section. But I don't know what is wrong.

Code:
        public override void SetDefaults()
        {
            item.damage = 20;
            item.magic = true;
            item.width = 40;
            item.height = 40;
            item.useAnimation = 20;
            item.useTime = 20;
            item.useStyle = 5;
            item.knockBack = 6;
            item.value = 10000;
            item.rare = 1;
            item.UseSound = 2;
            item.shoot = mod.ProjectileType("ES_Ball");
 
Back
Top Bottom