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 03:11 12 may 2023
11 bytes añadidos
,
03:11 12 may 2023
sin resumen de edición
Línea 32:
Línea 32:
if (temp < 10000) then
if (temp < 10000) then
length = #(tostring(temp))
length = #(tostring(temp))
−
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" , ".")}
Línea 52:
Línea 52:
if (temp < 10000) then
if (temp < 10000) then
length = #(tostring(temp))
length = #(tostring(temp))
−
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
Margotbean
Administradores de interfaz
, patroller,
Supresores
,
Administradores
, translators
106 436
ediciones