float density, meltPoint, boilPoint, hardness, tensile, rigidity, conductance, attunement, resistance; //how well the material repels magical energy (this is not just a defensive stat) #endregion Fields #region Constructors /// <summary> /// Creates an entry of the <see cref="OreData"/> class. /// </summary> /// <param name="dens">The density of the material (g/m^3).</param> /// <param name="melt">Melting point in degrees K</param> /// <param name="boil">Boiling point in degrees K</param> /// <param name="hard">How well the material can take a hit</param> /// <param name="tens">How well the material absorbs a hit</param> /// <param name="rigi">How well the material holds a shape/point</param> /// <param name="cond">How well the material conducts electricity</param> /// <param name="attu">How well the material holds a magic charge</param> /// <param name="resi">How well the material repels magical energy</param> public OreItem(oreType o, float dens, float melt, float boil, float hard, float tens, float rigi, float cond, float attu, float resi) { itemID = o.GetHashCode() + 300; type = o; itemName = o.ToString(); itemType = ItemType.Resource; quantity = 0; density = dens; meltPoint = melt; boilPoint = boil; hardness = hard; tensile = tens; rigidity = rigi; conductance = cond; attunement = attu; resistance = resi; itemDesc = ""; quantity = 0; itemIcon = Resources.Load<Sprite>("ItemIcons/" + itemName); }
public OreItem(oreType oType, float ammount) { itemName = oType.ToString(); type = oType; }