summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2018-01-18 09:41:51 +0000
committerTenPlus1 <kinsellaja@yahoo.com>2018-01-18 09:41:51 +0000
commit5e238b168ce36e1dfe40149eb6722e2d3b498b54 (patch)
tree57daffacfb404094280528eed9ae0cb6fd58c812
parent331c4e96d24ad1ca05d248b9716df6b653f8c46d (diff)
added fallback to nil min/max for drops
-rw-r--r--api.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/api.lua b/api.lua
index 6ff28c2..8cd2faa 100644
--- a/api.lua
+++ b/api.lua
@@ -3,7 +3,7 @@
mobs = {}
mobs.mod = "redo"
-mobs.version = "20180113"
+mobs.version = "20180118"
-- Intllib
@@ -368,7 +368,7 @@ local item_drop = function(self, cooked)
if random(1, self.drops[n].chance) == 1 then
- num = random(self.drops[n].min, self.drops[n].max)
+ num = random(self.drops[n].min or 1, self.drops[n].max or 1)
item = self.drops[n].name
-- cook items when true