/// <summary> Increment the metal reserve of a specific metal </summary> /// <param id="metal"> The name of the metal power to increment the reserve </param> public void SetMetalReserve(string metal, float amount) { if (amount < 0) { amount = 0; } MetalReserves.SetFloat(metal, amount); Entity.WatchedAttributes.MarkPathDirty("allomancy"); }
/// <summary> Get the metal reserve of a specific metal </summary> /// <param id="metal"> The name of the metal power of which to obtain the reserve of</param> public float GetMetalReserve(string metal) { return(MetalReserves.GetFloat(metal)); }