mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2025-02-03 17:20:45 +03:00
GlobalUnlockedPercentage to GlobalUnlocked
This commit is contained in:
parent
79ed6a299a
commit
650fb08522
@ -21,7 +21,7 @@ namespace Steamworks
|
||||
Console.WriteLine( $" a.UnlockTime: {a.UnlockTime}" );
|
||||
Console.WriteLine( $" a.Name: {a.Name}" );
|
||||
Console.WriteLine( $" a.Description: {a.Description}" );
|
||||
Console.WriteLine( $" a.GlobalUnlockedPercentage: {a.GlobalUnlockedPercentage}" );
|
||||
Console.WriteLine( $" a.GlobalUnlocked: {a.GlobalUnlocked}" );
|
||||
|
||||
var icon = a.GetIcon();
|
||||
|
||||
|
@ -63,9 +63,9 @@ namespace Steamworks.Data
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the percentage of users who have unlocked the specified achievement, or -1 if no data available.
|
||||
/// Returns the fraction (0-1) of users who have unlocked the specified achievement, or -1 if no data available.
|
||||
/// </summary>
|
||||
public float GlobalUnlockedPercentage
|
||||
public float GlobalUnlocked
|
||||
{
|
||||
get
|
||||
{
|
||||
@ -74,7 +74,7 @@ namespace Steamworks.Data
|
||||
if ( !SteamUserStats.Internal.GetAchievementAchievedPercent( Value, ref pct ) )
|
||||
return -1.0f;
|
||||
|
||||
return pct;
|
||||
return pct / 100.0f;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user