Module:Dice/Format: Difference between revisions

m
no edit summary
imported>Ontoclasm
m (Add a 'multiplier' field to Dice/Format)
imported>Ontoclasm
mNo edit summary
Line 11: Line 11:


local template_title = (frame.args.template ~= nil and frame.args.template ~= '') and frame.args.template or 'Dice string'
local template_title = (frame.args.template ~= nil and frame.args.template ~= '') and frame.args.template or 'Dice string'
local mult = (frame.args.multiplier ~= nil and frame.args.multiplier ~= '') and frame.args.mult or 1
local mult = (frame.args.multiplier ~= nil and frame.args.multiplier ~= '') and frame.args.multiplier or 1


     local average = dice:average() * mult
     local average = dice:average() * mult
Anonymous user