差分

移動先: 案内検索

モジュール:ParamsConverter

500 バイト追加, 1 年前
flammable
 
['end support'] = 'some',
flammable = 'some',
['nether support'] = 'some',
 
['source available'] = true,
['stackable'] = true,
flammable = 'some'true,
type = true,
behavior = true
yesStackable = '可(%s)',
yesStackableP = '可',
yesFlammable = 'あり(%s)',
yesFlammableP = 'あり',
noDirt = '日光と砂が必要',
noLight = 'しない',
noSource = '不可',
noStackable = '不可',
noFlammable = 'なし',
 
type = {
and i18n.yesStackableP or val == 'no'
and i18n.noStackable or origVal
elseif param == 'flammable' then
local encouragement = val:match( 'yes,?%s*%(?(%d+)%)' )
encouragement = tonumber( encouragement )
 
result = ( encouragement ~= nil )
and i18n.yesFlammable:format( encouragement ) or ( val == 'yes' or val == 'する' )
and i18n.yesFlammableP or ( val == 'no' or val == 'しない' )
and i18n.noFlammable or origVal
end
 
1,040

回編集