Fixed enqueuing issue

Signed-off-by: Gregory PLANCHAT <g.planchat@gmail.com>
This commit is contained in:
Gregory PLANCHAT 2011-06-20 00:39:13 +02:00
commit 98cc710653
14 changed files with 225 additions and 126 deletions

View file

@ -80,11 +80,11 @@ class Legacies_Empire_Model_Planet
Math::setPrecision(50);
$resources = Legacies_Empire_Model_Game_Resources::getSingleton();
foreach ($resources->getAllDatas() as $resource => $resourceData) {
if (!isset($resourceData['storage_field']) || $resourceData['storage_field'] === null && $this['rpg_stockeur'] === null) {
if (!isset($resourceData['storage_field']) || $resourceData['storage_field'] === null) {
continue;
}
$officerEnhancement = (.5 * $this->getData('rpg_stockeur')) + 1;
$officerEnhancement = (.5 * $this->getUser()->getData('rpg_stockeur')) + 1;
$storageEnhancementFactor = Math::floor(Math::pow(1.6, $this[Legacies_Empire::getFieldName($resourceData['storage'])]));
$storageEnhancement = Math::mul(BASE_STORAGE_SIZE / 2, $storageEnhancementFactor);