hack and slash tutorial Modified stat error

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

Your class is called

ModifiedStat

yet you are trying to use a constructor called

public ModifyingStat()

You need to use the line

public ModifiedStat()

instead.

you wrote

private List _mods; //A list of Attribute that modify the stat
 
private int _modValue; //Amount added to the baseValue from the modifiers

when it should read

	private List<ModifyingAttribute> _mods;     //A List of Attributes that modify this stat
	private int _modValue;                      //The amount added to the baseValue from the Modifiers