Add get_setting
This commit is contained in:
parent
ae38826a2e
commit
fe85b07625
1 changed files with 7 additions and 0 deletions
|
|
@ -80,6 +80,13 @@ function util.initialize(them)
|
||||||
util.me = me
|
util.me = me
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function util.get_setting(name)
|
||||||
|
if settings.startup[name] == nil then
|
||||||
|
return nil
|
||||||
|
end
|
||||||
|
return settings.startup[name].value
|
||||||
|
end
|
||||||
|
|
||||||
function util.item(item, quantity, probability)
|
function util.item(item, quantity, probability)
|
||||||
if not quantity then
|
if not quantity then
|
||||||
quantity = 1
|
quantity = 1
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue