Abrir menú principal
Inicio
Al azar
Acceder
Configuración
Acerca de Stardew Valley Wiki
Exoneraciones
Stardew Valley Wiki
Buscar
Cambios
← Edición anterior
Edición siguiente →
Módulo:Tcartprice
(ver código)
Revisión del 13:35 12 may 2023
20 bytes añadidos
,
13:35 12 may 2023
sin resumen de edición
Línea 46:
Línea 46:
end
end
−
if ((tonumber(price) * 5) <= 1000) then
+
if
(
((tonumber(price) * 5) <= 1000
) or (ulang ~= "ES")
) then
formattedprice = formattedprice .. tostring(mw.language.getContentLanguage():formatNum(1000))
formattedprice = formattedprice .. tostring(mw.language.getContentLanguage():formatNum(1000))
else
else
Línea 53:
Línea 53:
length = #(tostring(temp))
length = #(tostring(temp))
local temp2 = string.sub(tostring(temp), -3)
local temp2 = string.sub(tostring(temp), -3)
−
formattedprice = formattedprice ..
string.sub(tostring(temp), 1, (length-3)) .. "." .. temp2
+
formattedprice = formattedprice .. string.sub(tostring(temp), 1, (length-3)) .. "." .. temp2
else
else
temp = {mw.ustring.gsub(tostring(temp), "%s" , ".")}
temp = {mw.ustring.gsub(tostring(temp), "%s" , ".")}
Margotbean
Administradores de interfaz
, patroller,
Supresores
,
Administradores
, translators
105 900
ediciones