git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3455 c06c8d41-db1a-0410-9941-cceddc491573
YEKUFDFCT754KU4HJUPWKG2PUTMEEWMGACIAF6TC7EVKQGBPSPHQC
-- You can optionally annotate items with the item class name (such as
-- "weapon" for weapons) by setting
-- annotate_item_class = true
-- You can optionally disable annotate items with the item class name
-- (such as "weapon" for weapons) by setting
-- annotate_item_class = false
-- The full list of item class names is:
-- gold, weapon, missile, armour, wand, food, scroll, jewellery, potion,
-- book, staff, orb, misc, carrion
--
function opt_boolean(optname)
local optval = options[optname]
return optval == "true" or optval == "yes"
function opt_boolean(optname, default)
default = default or false
local optval = options[optname]
if optval == nil then
return default
else
return optval == "true" or optval == "yes"
end