Diferencia entre revisiones de «Módulo:LootChest»

Leynaf (discusión | contribs.)
Sin resumen de edición
Leynaf (discusión | contribs.)
Sin resumen de edición
Línea 815: Línea 815:
c = c + 1
c = c + 1
if c == nc and nc > 1 then
if c == nc and nc > 1 then
table.insert( html_per_stack, 'and ' )
table.insert( html_per_stack, 'y ' )
end
end
table.insert( html_per_stack, string.format("%.1f", chest.chance*100) )
table.insert( html_per_stack, string.format("%.1f", chest.chance*100) )
table.insert( html_per_stack, "% de " )
table.insert( html_per_stack, "% de " )
if chest.chest_name == 'mineshaft' then
if chest.chest_name == 'mineshaft' then
table.insert( html_per_stack, ' [[Minecart with Chest|chest minecarts]] in ' )
table.insert( html_per_stack, ' [[Vagoneta con cofre|vagonetas con cofre]] en ' )
table.insert( html_per_stack, p.chests[chest.chest_name].link )
table.insert( html_per_stack, p.chests[chest.chest_name].link )
else
else
table.insert( html_per_stack, p.chests[chest.chest_name].link )
table.insert( html_per_stack, p.chests[chest.chest_name].link )
table.insert( html_per_stack, ' chests' )
table.insert( html_per_stack, ' cofres' )
end
end
table.insert( html_per_stack, sep )
table.insert( html_per_stack, sep )
end
end
if nc > 2 then
if nc > 2 then
table.insert( html_per_stack, 'all ' )
table.insert( html_per_stack, 'todo ' )
end
end
table.insert( html_per_stack, 'in ' )
table.insert( html_per_stack, 'en ' )
if p.items[itemname].cannot_stack ~= nil then
if p.items[itemname].cannot_stack ~= nil then
table.insert( html_per_stack, 'grupos de ' )
table.insert( html_per_stack, 'grupos de ' )