Diferencia entre revisiones de «Módulo:LootChest»
Sin resumen de edición |
Sin resumen de edición |
||
| (No se muestran 3 ediciones intermedias del mismo usuario) | |||
| Línea 24: | Línea 24: | ||
end, | end, | ||
dev = 'En la {{1.9}}, | dev = 'En la {{1.9}}, ', | ||
-- these define which sprite, label and link to use, in the table, | -- these define which sprite, label and link to use, in the table, | ||
| Línea 117: | Línea 117: | ||
notes = { | notes = { | ||
["level-book"] = "<ref group='note' name='level-book'>Los libros encantados que se encuentren en el mismo cofre tendrán los mismos encantos (no en la {{1.9}} | ["level-book"] = "<ref group='note' name='level-book'>Los libros encantados que se encuentren en el mismo cofre tendrán los mismos encantos (no en la {{1.9}}. Las probabilidades de encantamiento son las mismas que un hechizo de nivel 30 en una [[mesa de encantamientos]], pero la posibilidad de múltiples encantos no se reduce.</ref>", | ||
["end-ench-equipment"] = "<ref group='note' name='end-city-enchantment'>Los objetos encantados del mismo tipo en el mismo cofre tendrán los mismos encantos. Las probabilidades de encanto son las mismas que de un nivel 20 a un nivel 39<!-- Sí, realmente 39 a pesar de que la mesa normalmente sólo va hasta 30 --> de encanto en una [[mesa de encantamientos]].</ref>", | ["end-ench-equipment"] = "<ref group='note' name='end-city-enchantment'>Los objetos encantados del mismo tipo en el mismo cofre tendrán los mismos encantos. Las probabilidades de encanto son las mismas que de un nivel 20 a un nivel 39<!-- Sí, realmente 39 a pesar de que la mesa normalmente sólo va hasta 30 --> de encanto en una [[mesa de encantamientos]].</ref>", | ||
["random-book"] = "<ref group='note' name='random-book'>Todos los encantamientos son igualmente probables, y cualquier nivel de encantamiento es igualmente probable.</ref>", | ["random-book"] = "<ref group='note' name='random-book'>Todos los encantamientos son igualmente probables, y cualquier nivel de encantamiento es igualmente probable.</ref>", | ||
| Línea 805: | Línea 805: | ||
s = s + 1 | s = s + 1 | ||
local html_per_stack = { ' | local html_per_stack = { 'en ' } | ||
local c = 0 | local c = 0 | ||
local nc = q.tablelength( chest_details ) | local nc = q.tablelength( chest_details ) | ||
| 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, ' | 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, ' [[ | 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, ' | 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, ' | table.insert( html_per_stack, 'todo ' ) | ||
end | end | ||
table.insert( html_per_stack, ' | 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 ' ) | ||