diff --git a/Facepunch.Steamworks/Structs/Stat.cs b/Facepunch.Steamworks/Structs/Stat.cs index 3fda854..a29d304 100644 --- a/Facepunch.Steamworks/Structs/Stat.cs +++ b/Facepunch.Steamworks/Structs/Stat.cs @@ -123,6 +123,18 @@ public bool Set( float val ) return SteamUserStats.Internal.SetStat2( Name, val ); } + public bool Add( int val ) + { + LocalUserOnly(); + return Set( GetInt() + val ); + } + + public bool Add( float val ) + { + LocalUserOnly(); + return Set( GetFloat() + val ); + } + public bool UpdateAverageRate( float count, float sessionlength ) { LocalUserOnly();