Anonymous

Module:Magic: Difference between revisions

From Melvor Idle
no edit summary
No edit summary
No edit summary
Line 9: Line 9:
local Icons = require('Module:Icons')
local Icons = require('Module:Icons')
local Items = require('Module:Items')
local Items = require('Module:Items')
local Num = require('Module:Number')


p.spellBooks = {
p.spellBooks = {
Line 321: Line 322:
end
end
elseif spellBook.id == 'standard' then
elseif spellBook.id == 'standard' then
return 'Combat spell with a max hit of ' .. Shared.formatnum(spell.maxHit * 10)
return 'Combat spell with a max hit of ' .. Num.formatnum(spell.maxHit * 10)
else
else
return ''
return ''
Line 420: Line 421:
end
end
else
else
local qty = Shared.formatnum(spell.specialCost.quantity)
local qty = Num.formatnum(spell.specialCost.quantity)
local typeString = {
local typeString = {
['AnyItem'] = qty .. ' of any item',
['AnyItem'] = qty .. ' of any item',
2,875

edits