From Dark and Darker Wiki
You do not have permission to edit this page, for the following reason:
You can view and copy the source of this page.
local enchantments_data = mw.loadJsonData("Data:Enchantments.json")
local utils = require("Module:Utilities")
local p = {}
function p.get_roll(slots_data, slot_name, base_or_gem, min_or_max, if_not_exist)
if min_or_max ~= "min" and min_or_max ~= "max" then
min_or_max = "max"
end
if if_not_exist == nil then
if_not_exist = 0
end
slot_data = slots_data[slot_name]
if slot_data == nil then
return if_not_exist
end
roll_data = slot_data[base_or_gem]
if roll_data == nil then
return if_not_exist
000
1:0
Templates used on this page:
Return to Module:Enchantments.