示例#1
0
 /// <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");
 }
示例#2
0
 /// <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));
 }