Skip to content

Trophy awarded does not register on Game Jolt #3

@Tricky1975

Description

@Tricky1975

And this fill fix it.

I've left the original code in a comment so you can see what I edited.
I've also put in a way to fix the typo in "Achieved" as the function was misspelled as "Acheived", however I did so on a way that nobody using this module should fear that their original code won't work. 😉

function _:trophies_addAcheived(trophy_id)
    -- return json:decode(self:request("trophies/?&trophy_id=" .. trophy_id .. self.user.idstring)).response    
    return json:decode(self:request("trophies/add-achieved/?&trophy_id=" .. trophy_id .. self.user.idstring)).response
end

_.addAchieved = _.addAcheived

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions