diff options
| author | Alexander Pickering <alexandermpickering@gmail.com> | 2018-07-15 19:57:27 -0400 |
|---|---|---|
| committer | Alexander Pickering <alexandermpickering@gmail.com> | 2018-07-15 19:57:27 -0400 |
| commit | 534103be54a129d8255988fc1e75a21a63c6021f (patch) | |
| tree | c172b0884b4ca26452c5a74f5033b3b1526b6e3a /gamemode/utility | |
| parent | 34d9ae7c4f4176fa9a943e9c2776afc32a867163 (diff) | |
| download | artery-534103be54a129d8255988fc1e75a21a63c6021f.tar.gz artery-534103be54a129d8255988fc1e75a21a63c6021f.tar.bz2 artery-534103be54a129d8255988fc1e75a21a63c6021f.zip | |
Finished gather quest arcs
Finished base quest system, and added "Gather" arcs, where players
gather a certain number of a certain item.
Diffstat (limited to 'gamemode/utility')
| -rw-r--r-- | gamemode/utility/type.lua | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gamemode/utility/type.lua b/gamemode/utility/type.lua new file mode 100644 index 0000000..61f1a8b --- /dev/null +++ b/gamemode/utility/type.lua @@ -0,0 +1,11 @@ + +local t = {} + +t.checktypes = function(...) + local args = {...} + for i = 1, #args, 2 do + assert(type(args[i]) == args[i + 1], string.format("Bad argument #%d, was %s, expected %s",(i + 1) / 2,type(args[i]),args[i + 1])) + end +end + +return t |
