Abrir menú principal
Inicio
Al azar
Acceder
Configuración
Acerca de Stardew Valley Wiki
Exoneraciones
Stardew Valley Wiki
Buscar
Cambios
← Edición anterior
Módulo:Calcedibility
(ver código)
Revisión del 16:53 27 feb 2023
20 bytes añadidos
,
16:53 27 feb 2023
m
Margotbean trasladó la página
Módulo:Test
a
Módulo:Calcedibility
sin dejar una redirección: I think I've settled on its final name
Línea 1:
Línea 1:
local p = {}
local p = {}
−
--ceh = calculate energy
or
health
+
--ceh = calculate
edibility (
energy
/
health
)
−
function p.
ceh
(frame)
+
function p.
ce
(frame)
local item = string.lower(frame.args.im)
local item = string.lower(frame.args.im)
local edibility = tonumber(frame.args.ed)
local edibility = tonumber(frame.args.ed)
Línea 27:
Línea 27:
length = #(tostring(result))
length = #(tostring(result))
temp = string.sub(tostring(result), -3)
temp = string.sub(tostring(result), -3)
−
return string.sub(
temp
, 1, (length-3)) .. "." .. temp
+
return string.sub(
tostring(result)
, 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
105 900
ediciones