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:Calcedibility
(ver código)
Revisión del 07:38 27 feb 2023
28 bytes añadidos
,
07:38 27 feb 2023
sin resumen de edición
Línea 7:
Línea 7:
local quality = tonumber(frame.args.q)
local quality = tonumber(frame.args.q)
local ulang = string.upper(frame.args.ll)
local ulang = string.upper(frame.args.ll)
−
local result, formattedresult, temp
+
local result, formattedresult, temp
, length
if edibility == 0 then return 0 end
if edibility == 0 then return 0 end
Línea 24:
Línea 24:
if (result < 10000) then
if (result < 10000) then
+
length = #result
temp = string.sub(tostring(result), -3)
temp = string.sub(tostring(result), -3)
−
return string.sub(temp, 1, (
#temp
-3)) .. "." .. temp
+
return string.sub(temp, 1, (
length
-3)) .. "." .. temp
else
else
temp = {mw.ustring.gsub(tostring(formattedresult), "%s" , ".")}
temp = {mw.ustring.gsub(tostring(formattedresult), "%s" , ".")}
Margotbean
Administradores de interfaz
, patroller,
Supresores
,
Administradores
, translators
106 449
ediciones