Add giveTrophy

This commit is contained in:
insweater 2015-02-05 18:54:35 +03:00
parent 49d0e64752
commit f2668b6c88

View File

@ -135,4 +135,9 @@ function GJ.fetchStorageKeys(isGlobal)
return t
end
-- trophies
function GJ.giveTrophy(id)
return string.find(req("trophies/add-achieved/?trophy_id=" .. tostring(id), "dump", true, true), "SUCCESS") ~= nil
end
return GJ