From d6b3966c9dc889f05ddfe6ea099485c4762868ea Mon Sep 17 00:00:00 2001 From: Garry Newman Date: Wed, 6 Dec 2017 12:27:50 +0000 Subject: [PATCH] Renamed Achievement.Percentage to GlobalUnlockedPercentage, fixed description --- Facepunch.Steamworks.Test/Client/AchievementsTest.cs | 2 +- Facepunch.Steamworks/Client/Achievements.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Facepunch.Steamworks.Test/Client/AchievementsTest.cs b/Facepunch.Steamworks.Test/Client/AchievementsTest.cs index 79dbf3c..dc9db85 100644 --- a/Facepunch.Steamworks.Test/Client/AchievementsTest.cs +++ b/Facepunch.Steamworks.Test/Client/AchievementsTest.cs @@ -56,7 +56,7 @@ public void GetNames() Console.WriteLine( " - - " + ach.Description ); Console.WriteLine( " - - " + ach.State ); Console.WriteLine( " - - " + ach.UnlockTime ); - Console.WriteLine( " - - " + ach.Percentage ); + Console.WriteLine( " - - " + ach.GlobalUnlockedPercentage ); if ( ach.Icon != null ) { diff --git a/Facepunch.Steamworks/Client/Achievements.cs b/Facepunch.Steamworks/Client/Achievements.cs index ce80fd1..ba152cf 100644 --- a/Facepunch.Steamworks/Client/Achievements.cs +++ b/Facepunch.Steamworks/Client/Achievements.cs @@ -143,9 +143,9 @@ public class Achievement private int refreshCount = 0; /// - /// If this achievement is linked to a stat this will return the progress. + /// Returns the percentage of users who have unlocked the specified achievement, or -1 if no data available. /// - public float Percentage + public float GlobalUnlockedPercentage { get {