Add achievement chat command

This commit is contained in:
Wuzzy 2020-03-30 21:02:13 +02:00
parent e81b5ef58a
commit d8cb7a7164
5 changed files with 73 additions and 1 deletions

View file

@ -178,6 +178,11 @@ function awards.clear_player(name)
awards.players[name] = {}
end
-- Returns true if award exists, false otherwise
function awards.exists(award)
return awards.def[award] ~= nil
end
-- This function is called whenever a target condition is met.
-- It checks if a player already has that achievement, and if they do not,
-- it gives it to them