tModLoader Error CS0106 The modifier 'override' is not valid for this item [SOLVED]

CosmicSyrup

Terrarian
I need help with my code, I've looked at multiple tutorials, even the calamity source code and still can't figure out why override won't work in this instance. I am trying to create a custom rarity and it doesn't work.

Here is the error:
1740389358104.png


And here is my code:
C#:
using Microsoft.Xna.Framework;
using Terraria.ModLoader;

namespace Divineclasses.Content.Rarity
{
    public class Omnirarity : ModRarity
    {
        public override Color RarityColor => new Color(141, 18, 202);
    }
}
 
Figured it out, I copied my file and I was reading from the wrong file and referring to a different file at the same time, rookie mistake lol
 
Back
Top Bottom