Closed ogamespec closed 4 months ago
Посмотрел код Quaua, он сломан. Во первых тут / Looked at Quaua's code, it's broken. First of all, here::
($g_factor + 20 * $speed)
Коэффициент Геолога просто прибавляется к естественной выработке планеты / The Geologist factor is simply added to the planet's natural production.
Во вторых тут / Second here::
// Limita le risorse massime
$planet['m'] = min($planet['m'], $planet['mmax']);
Если на планете было ресурсов больше чем в хранилищах, то этот код просто отрежет лишние ресурсы / If there were more resources on the planet than in the storages, this code will simply cut off the extra resources.
В третьих тут / Third here: $tempo = time();
Теряется возможность вычислять отложенный прирост ресов (не привязанный к реальному времени).
The ability to calculate deferred res growth (not tied to real time) is lost.
Закрываю эту Issue, т.к. нет ничего определенного по ней. Нужны конкретные цифры (постройки на планете, время между обновлениями), скрины некорректной выработки, хотя бы что-то..
I am closing this Issue, as there is nothing definite about it. We need specific figures (buildings on the planet, time between updates), screens of incorrect output, at least something.
ProdResources is the primary method that calculates the production of a planet between the
from
andto
time points. Quaua found an error there and sent a corrected version of ProdResources.ProdResources - это основной метод, который производит вычисление выработки планеты между моментами времени from и to. Quaua нашёл там ошибку и прислал исправленную версию ProdResources.