This commit is contained in:
Alex Corn 2018-04-01 03:31:07 -04:00
parent e97e63fe6d
commit 9e380e71f5

View File

@ -31,7 +31,7 @@ SteamCommunity.prototype.getMarketApps = function(callback) {
}; };
/** /**
* * Check if an item is eligible to be turned into gems and if so, get its gem value
* @param {int} appid * @param {int} appid
* @param {int|string} assetid * @param {int|string} assetid
* @param {function} callback * @param {function} callback
@ -69,6 +69,13 @@ SteamCommunity.prototype.getGemValue = function(appid, assetid, callback) {
}); });
}; };
/**
* Turn an eligible item into gems.
* @param {int} appid
* @param {int|string} assetid
* @param {int} expectedGemsValue
* @param {function} callback
*/
SteamCommunity.prototype.turnItemIntoGems = function(appid, assetid, expectedGemsValue, callback) { SteamCommunity.prototype.turnItemIntoGems = function(appid, assetid, expectedGemsValue, callback) {
this._myProfile({ this._myProfile({
"endpoint": "ajaxgrindintogoo/", "endpoint": "ajaxgrindintogoo/",