Skip to content
This repository was archived by the owner on Jun 21, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions NwPluginAPI/Core/Player.cs
Original file line number Diff line number Diff line change
Expand Up @@ -630,10 +630,14 @@ public float ArtificialHealth
}
}

/// <summary>

[Obsolete("Use MaxArtificialHealth instead")]
public float MaxArtificalHealth => MaxArtificialHealth;

/// <summary>
/// Gets the player's current maximum artifical health.
/// </summary>
public float MaxArtificalHealth => IsSCP ? ((HumeShieldStat)ReferenceHub.playerStats.StatModules[4]).MaxValue : ((AhpStat)ReferenceHub.playerStats.StatModules[1]).MaxValue;
public float MaxArtificialHealth => IsSCP ? ((HumeShieldStat)ReferenceHub.playerStats.StatModules[4]).MaxValue : ((AhpStat)ReferenceHub.playerStats.StatModules[1]).MaxValue;

/// <summary>
/// Gets whether or not the player has remoteadmin access.
Expand Down Expand Up @@ -1389,4 +1393,4 @@ public bool TryGetComponent<T>(out T component, bool globalSearch = false) where
#endregion

}
}
}