Closed jonamix-ar closed 6 months ago
Estaba modificando un poco el codigo del formatter number y decidi agregar el de Ogame
Es facil de usar
$metal = FormatLib::prettyNumber($this->current_planet['planet_metal']);
Cambiar por $metal = FormatLib::xgNumberGetHumanReadable($this->current_planet['planet_metal'], true);
$metal = FormatLib::xgNumberGetHumanReadable($this->current_planet['planet_metal'], true);
El true habilita o desabilita si quieres convertirlo o no es para poner la opcion que tiene ogame en las preferencias.
Es facil de usar
$metal = FormatLib::prettyNumber($this->current_planet['planet_metal']);
Cambiar por
$metal = FormatLib::xgNumberGetHumanReadable($this->current_planet['planet_metal'], true);
El true habilita o desabilita si quieres convertirlo o no es para poner la opcion que tiene ogame en las preferencias.