summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/dat
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/dat')
-rw-r--r--crawl-ref/source/dat/clua/util.lua10
1 files changed, 9 insertions, 1 deletions
diff --git a/crawl-ref/source/dat/clua/util.lua b/crawl-ref/source/dat/clua/util.lua
index 8dd0b35eba..ffc8e8c3ae 100644
--- a/crawl-ref/source/dat/clua/util.lua
+++ b/crawl-ref/source/dat/clua/util.lua
@@ -242,6 +242,14 @@ function util.expand_entity(entity, msg)
end)
end
+function util.range(start, stop)
+ local rt
+ for i = start, stop do
+ table.insert(rt, i)
+ end
+ return rt
+end
+
----------------------------------------------------------
util.Timer = { CLASS = "Timer" }
@@ -337,4 +345,4 @@ function util.namespace(table_name)
if _G[table_name] == nil then
_G[table_name] = { }
end
-end \ No newline at end of file
+end