using System.Collections.Generic;
public class ModifiedStat : BaseStat {
private List _mods; //A list of Attribute that modify the stat
private int _modValue; //Amount added to the baseValue from the modifiers
public ModifyingStat() {
_mods = new List();
_modValue = 0;
}
public void AddModifier( ModifyingAttribute mod) {
_mods.Add(mod);
}
private void CalculateModValue(){
_modValue = 0;
if(_mods.Count > 0)
foreach(ModifyingAttribute att in _mods)
_modValue += (int)(att.attribute.AdjustedValue() * att.ratio);
}
public new int AdjustValue {
get{return BaseValue + BuffValue + _modValue;}
}
}
public struct ModifyingAttribute {
public Attribute attribute;
public float ratio;
}
it then says in the unity console
Assets/Scripts/CharacterClasses/ModifiedStat.cs(7,16): error CS1520: Class, struct, or interface method must have a return type
I need help