You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Runtime/Health.cs
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -84,6 +84,11 @@ public bool Heal(int amount)
84
84
returntrue;
85
85
}
86
86
87
+
/// <summary>
88
+
/// Sets the current health to the given amount. If increaseMaxHealth is true, the max health will be increased to the given amount if it is greater than the current max health.
89
+
/// </summary>
90
+
/// <param name="amount">The int value that is used to set the current health of the object</param>
91
+
/// <param name="increaseMaxHealth">If true, the max health will be increased to the given amount if it is greater than the current max health</param>
0 commit comments