Example #1
0
 /// <summary>
 /// Parses this Active Effect to a string format suitable for saving
 /// </summary>
 /// <returns>The parsed Active Effect</returns>
 public string ParseToString()
 {
     return(String.Format("{0}:{1}:{2}", TAG, resource.GetName(), resource.GetAmount()));
 }
Example #2
0
 /// <summary>
 /// Modifies a primary resource of the current PC
 /// </summary>
 /// <param name="resource">Primary resource to modify</param>
 /// <param name="amount">Amount to modify the resource by</param>
 public void ModifyPrimaryResource(PrimaryResource resource, int amount)
 {
     currentPC.AdjustResource(resource.GetName(), amount);
 }