From 534103be54a129d8255988fc1e75a21a63c6021f Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Sun, 15 Jul 2018 19:57:27 -0400 Subject: Finished gather quest arcs Finished base quest system, and added "Gather" arcs, where players gather a certain number of a certain item. --- gamemode/utility/type.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 gamemode/utility/type.lua (limited to 'gamemode/utility') 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 -- cgit v1.2.3-70-g09d2