GlobalUnlockedPercentage to GlobalUnlocked

This commit is contained in:
Garry Newman 2019-04-16 21:16:43 +01:00
parent 79ed6a299a
commit 650fb08522
2 changed files with 4 additions and 4 deletions

View File

@ -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();

View File

@ -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;
}
}