Add achievement chat command
This commit is contained in:
parent
e81b5ef58a
commit
d8cb7a7164
5 changed files with 73 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue