Bug fixes

Removed some dowuery calls in deprecated code.
Updated labels
Updated requirements & types for ore miner

Signed-off-by: Gregory PLANCHAT <g.planchat@gmail.com>
This commit is contained in:
Gregory PLANCHAT 2012-04-09 20:01:45 +02:00
commit b09c4e6c62
22 changed files with 936 additions and 604 deletions

View file

@ -99,6 +99,7 @@ class Legacies_Empire
const ID_RESEARCH_INTERGALACTIC_RESEARCH_NETWORK = 123;
const ID_RESEARCH_EXPEDITION_TECHNOLOGY = 124;
const ID_RESEARCH_ASTROPHYSICS = 124;
const ID_RESEARCH_ORE_MINING = 125;
const ID_RESEARCH_GRAVITON_TECHNOLOGY = 199;
const ID_SHIP_LIGHT_TRANSPORT = 202;
@ -116,6 +117,7 @@ class Legacies_Empire
const ID_SHIP_DEATH_STAR = 214;
const ID_SHIP_BATTLECRUISER = 215;
const ID_SHIP_SUPERNOVA = 216;
const ID_SHIP_ORE_MININER = 217;
const ID_DEFENSE_ROCKET_LAUNCHER = 401;
const ID_DEFENSE_LIGHT_LASER = 402;
@ -144,6 +146,7 @@ class Legacies_Empire
const ID_MISSION_DESTROY = 9;
const ID_MISSION_MISSILES = 10;
const ID_MISSION_EXPEDITION = 15;
const ID_MISSION_ORE_MINING = 16;
public static function getFieldName($id)
{
@ -155,4 +158,4 @@ class Legacies_Empire
return $fieldsAlias[$id];
}
}
}

View file

@ -42,6 +42,11 @@ class Legacies_Empire_Block_Planet_Shipyard_Item
return $this->getPlanet()->getElement($this->getItemId());
}
public function getClass()
{
return $this->getLabel('class');
}
public function getResourcesNeeded($qty)
{
return $this->getPlanet()->getShipyard()->getResourcesNeeded($this->getItemId(), $qty);
@ -77,4 +82,4 @@ class Legacies_Empire_Block_Planet_Shipyard_Item
}
return $resourceConfig;
}
}
}

View file

@ -244,7 +244,7 @@ class Wootook
}
$userLocale = Wootook_Player_Model_Session::getSingleton()->getData('locale');
if ($userLocale !== null) {
if ($userLocale !== null && in_array($userLocale, $availableLocales)) {
return $userLocale;
}
@ -270,8 +270,8 @@ class Wootook
return self::getDefaultLocale();
}
$preferredLocale = key($locales);
$preferredPriority = current($locales);
$preferredLocale = current($availableLocales);
$preferredPriority = 0;
foreach ($locales as $locale => $piority) {
if (!in_array($locale, $availableLocales)) {
continue;
@ -281,6 +281,7 @@ class Wootook
$preferredLocale = $locale;
}
}
var_dump($preferredLocale);
Wootook_Player_Model_Session::getSingleton()->setData('locale', $preferredLocale);

View file

@ -292,4 +292,4 @@ class Wootook_Core_DateTime
return $this->_mktime($parts);
}
}
}
}

View file

@ -7,6 +7,13 @@ abstract class Wootook_Empire_Block_Planet_Builder_ItemAbstract
protected $_planet = null;
protected $_itemId = null;
protected $_labels = null;
public function __construct()
{
$this->_labels = Wootook_Empire_Helper_Config_Labels::getSingleton();
}
public function setPlayer(Wootook_Player_Model_Entity $player)
{
$this->_player = $player;
@ -56,38 +63,24 @@ abstract class Wootook_Empire_Block_Planet_Builder_ItemAbstract
return $this->getStaticUrl('infos.php', array('gid' => $this->getItemId()));
}
public function getLabel($type)
{
return $this->_labels[$this->getItemId()][$type];
}
public function getItemImageUrl()
{
// TODO : Upgrade theme
return $this->getSkinUrl('graphics/gebaeude/' . $this->getItemId() . '.gif');
return $this->getSkinUrl($this->getLabel('image'));
}
public function getName()
{
static $lang = null;
if ($lang === null) {
// FIXME: implement a cleaner way to get names
$lang = includeLang('tech');
}
if (isset($lang['tech']) && isset($lang['tech'][$this->getItemId()])) {
return $this->__($lang['tech'][$this->getItemId()]);
}
return '';
return $this->getLabel('name');
}
public function getDescription()
{
static $lang = null;
if ($lang === null) {
// FIXME: implement a cleaner way to get names
$lang = includeLang('tech');
}
if (isset($lang['res']) && isset($lang['res']['descriptions']) && isset($lang['res']['descriptions'][$this->getItemId()])) {
return $this->__($lang['res']['descriptions'][$this->getItemId()]);
}
return '';
return $this->getLabel('description');
}
public function getResourceName($resourceId)
@ -115,4 +108,4 @@ abstract class Wootook_Empire_Block_Planet_Builder_ItemAbstract
abstract public function getResourcesNeeded($level);
abstract public function getBuildingTime($level);
}
}

View file

@ -0,0 +1,51 @@
<?php
/**
*
* Enter description here ...
*
* @uses Wootook_Object
* @uses Legacies_Empire
*/
class Wootook_Empire_Helper_Config_Labels
extends Wootook_Core_Helper_Config_ConfigHandler
implements Wootook_Core_Singleton
{
private static $_singleton = null;
public static function getSingleton()
{
if (self::$_singleton === null) {
self::$_singleton = new self();
}
return self::$_singleton;
}
protected function _init()
{
$locale = Wootook::getPreferredLocale(array(
'fr_FR', 'en_US'
));
$this->_initData("locale/{$locale}/labels");
return $this;
}
protected function _load()
{
// NOP
return $this;
}
protected function _save()
{
// NOP
return $this;
}
protected function _delete()
{
// NOP
return $this;
}
}

View file

@ -101,7 +101,9 @@ class Wootook_Empire_Model_Planet
$coords['type'] = $type;
}
$collection = new Wootook_Empire_Resource_Planet_Collection('core_read');
$adapter = Wootook_Core_Database_ConnectionManager::getSingleton()
->getConnection('core_read');
$collection = new Wootook_Empire_Resource_Planet_Collection($adapter);
$collection->addCoordsToFilter($coords['galaxy'], $coords['system'], $coords['position'], $coords['type'])
->setPage(1, 1);
@ -196,7 +198,7 @@ class Wootook_Empire_Model_Planet
return $this->getPlanet()->getGalaxyData();
}
public function updateStorages($time = null)
public function updateStorages()
{
Math::setPrecision(50);
$resources = Wootook_Empire_Helper_Config_Resources::getSingleton();
@ -388,15 +390,14 @@ class Wootook_Empire_Model_Planet
$time = new Wootook_Core_DateTime();
}
$timeDiff = clone $time;
$timeDiff->diff($time);
$timeDiff = $time->diff($this->getLastUpdate());
foreach ($resources->getAllDatas() as $resourceId => $resourceConfig) {
if (!$resourceConfig['storage_field']) {
continue;
}
$production = Math::mul($this->getData($resourceConfig['production_field']), $timeDiff->getTimestamp() / 3600);
$production = Math::mul($this->getData($resourceConfig['production_field']), $timeDiff / 3600);
$resourceValue = Math::add($this->getData($resourceConfig['field']), $production);
$this->setData($resourceConfig['field'], Math::min($resourceValue, $this->getData($resourceConfig['storage_field'])));
}
@ -413,7 +414,7 @@ class Wootook_Empire_Model_Planet
if (!isset($production[$buildingId])) {
return null;
}
$class = $production[$buildingId][Legacies_Empire::RESOURCE_CLASS];
$class = $production[$buildingId];
$reflection = new ReflectionClass($class);
self::$_productionInstances[$buildingId] = $reflection->newInstance();
}

View file

@ -2,6 +2,7 @@
<div class="item-container">
<div class="item title">
<h2><a href="<?php echo $this->getItemInfoUrl()?>"><?php echo $this->escape($this->getName())?></a></h2>
<h3 class="class"><?php echo $this->__('Class %s', $this->escape($this->getClass()))?></h3>
<h3 class="count"><?php echo $this->__('Current count: %s', $this->renderNumber($this->getQty()))?></h3>
</div>
<div class="item details">

View file

@ -0,0 +1,407 @@
<?php return array(
//
// Planet buildings labels
// {{{
Legacies_Empire::ID_BUILDING_METAL_MINE => array(
'name' => 'Mine de métal',
'description' => "<p>La <strong>mine de métal</strong> exploite les profondeurs géologiques à la recherche de ressources riches en métaux, puis les raffine et crée ensuite les alliages les plus solides.</p><p>Principales matières premières pour la construction de structures planétaires et de vaisseaux, les métaux permettent d'asseoir votre domination sur l'univers.</p>",
'image' => 'graphics/buildings/metal-mine.png'
),
Legacies_Empire::ID_BUILDING_CRISTAL_MINE => array(
'name' => 'Mine de cristal',
'description' => "<p>La <strong>mine de cristal</strong> développe l'exploitation des minéraux entrant dans la comosition des systèmes électroniques.</p><p>Ces matériaux vous permettront d'augmenter la capacité de calculs de vos laboratoires ainsi que de ceux de vos systèmes de combat.</p>",
'image' => 'graphics/buildings/cristal-mine.png'
),
Legacies_Empire::ID_BUILDING_DEUTERIUM_SYNTHETISER => array(
'name' => "Synthétiseur de deutérium",
'description' => "<p>Le <strong>synthétiseur de deutérium</strong> permet d'exploiter les sources d'hydrogène lourd. Disponible en faible quantité sur les planètes telluriques et plus répandu sur les planètes géantes gazeuses, le deutérium et tritium composent votre principale source d'hydrogène lourd.</p>",
'image' => 'graphics/buildings/deuterium-syntherizer.png'
),
Legacies_Empire::ID_BUILDING_SOLAR_PLANT => array(
'name' => 'Centrale électrique solaire',
'description' => '',
'image' => 'graphics/buildings/solar-plant.png'
),
Legacies_Empire::ID_BUILDING_FUSION_REACTOR => array(
'name' => 'Réacteur à fusion nucléaire',
'description' => '',
'image' => 'graphics/buildings/fusion-reactor.png'
),
Legacies_Empire::ID_BUILDING_ROBOTIC_FACTORY => array(
'name' => 'Usine de robots',
'description' => '',
'image' => 'graphics/buildings/robotic-factory.png'
),
Legacies_Empire::ID_BUILDING_NANITE_FACTORY => array(
'name' => 'Usine de nanites',
'description' => '',
'image' => 'graphics/buildings/nanite-factory.png'
),
Legacies_Empire::ID_BUILDING_SHIPYARD => array(
'name' => 'Chantier spatial',
'description' => '',
'image' => 'graphics/buildings/shipyard.png'
),
Legacies_Empire::ID_BUILDING_METAL_STORAGE => array(
'name' => 'Hangar de métal',
'description' => '',
'image' => 'graphics/buildings/metal-storage.png'
),
Legacies_Empire::ID_BUILDING_CRISTAL_STORAGE => array(
'name' => 'Hangar de cristal',
'description' => '',
'image' => 'graphics/buildings/cristal-storage.png'
),
Legacies_Empire::ID_BUILDING_DEUTERIUM_TANK => array(
'name' => 'Réservoir de deutérium',
'description' => '',
'image' => 'graphics/buildings/deuterium-tank.png'
),
Legacies_Empire::ID_BUILDING_RESEARCH_LAB => array(
'name' => 'Laboratoire de recherche',
'description' => '',
'image' => 'graphics/buildings/research-lab.png'
),
Legacies_Empire::ID_BUILDING_TERRAFORMER => array(
'name' => 'Terraformeur',
'description' => '',
'image' => 'graphics/buildings/terraformer.png'
),
Legacies_Empire::ID_BUILDING_ALLIANCE_DEPOT => array(
'name' => 'Dépôt de ravitaillement',
'description' => '',
'image' => 'graphics/buildings/alliance-depot.png'
),
Legacies_Empire::ID_BUILDING_MISSILE_SILO => array(
'name' => 'Silo de missiles',
'description' => '',
'image' => 'graphics/buildings/missile-silo.png'
),
// }}}
//
// Moon buildings labels
// {{{
Legacies_Empire::ID_BUILDING_LUNAR_BASE => array(
'name' => 'Base lunaire',
'description' => '',
'image' => 'graphics/units/lunar-base.png'
),
Legacies_Empire::ID_BUILDING_SENSOR_PHALANX => array(
'name' => 'Phalange de capteur',
'description' => '',
'image' => 'graphics/units/sensor-phalanx.png'
),
Legacies_Empire::ID_BUILDING_JUMP_GATE => array(
'name' => 'Porte de saut spatial',
'description' => '',
'image' => 'graphics/units/jump-gate.png'
),
// }}}
//
// Technologies labels
// {{{
Legacies_Empire::ID_RESEARCH_ESPIONAGE_TECHNOLOGY => array(
'name' => 'Techniques d\'espionnage',
'description' => '',
'image' => 'graphics/technology/espionnage.png'
),
Legacies_Empire::ID_RESEARCH_COMPUTER_TECHNOLOGY => array(
'name' => 'Recherche informatique',
'description' => '',
'image' => 'graphics/technology/computer.png'
),
Legacies_Empire::ID_RESEARCH_WEAPON_TECHNOLOGY => array(
'name' => 'Technologies d\'armements',
'description' => '',
'image' => 'graphics/technology/weaponry.png'
),
Legacies_Empire::ID_RESEARCH_SHIELDING_TECHNOLOGY => array(
'name' => 'Boucliers énergétiques',
'description' => '',
'image' => 'graphics/technology/shielding.png'
),
Legacies_Empire::ID_RESEARCH_ARMOUR_TECHNOLOGY => array(
'name' => 'Structures spatiales',
'description' => '',
'image' => 'graphics/technology/armour.png'
),
Legacies_Empire::ID_RESEARCH_ENERGY_TECHNOLOGY => array(
'name' => 'Nouvelles énergies',
'description' => '',
'image' => 'graphics/technology/energy.png'
),
Legacies_Empire::ID_RESEARCH_HYPERSPACE_TECHNOLOGY => array(
'name' => 'Technologie hyperespace',
'description' => '',
'image' => 'graphics/technology/hyperspace-technology.png'
),
Legacies_Empire::ID_RESEARCH_COMBUSTION_DRIVE => array(
'name' => 'Propulsion à combustion',
'description' => '',
'image' => 'graphics/technology/combustion-drive.png'
),
Legacies_Empire::ID_RESEARCH_IMPULSE_DRIVE => array(
'name' => 'Propulsion à impulsion',
'description' => '',
'image' => 'graphics/technology/impulse-drive.png'
),
Legacies_Empire::ID_RESEARCH_HYPERSPACE_DRIVE => array(
'name' => 'Propulsion hyperespace',
'description' => '',
'image' => 'graphics/technology/hyperspace-drive.png'
),
Legacies_Empire::ID_RESEARCH_LASER_TECHNOLOGY => array(
'name' => 'Propriétés laser',
'description' => '',
'image' => 'graphics/technology/laser.png'
),
Legacies_Empire::ID_RESEARCH_ION_TECHNOLOGY => array(
'name' => 'Propriétés des ions',
'description' => '',
'image' => 'graphics/technology/ion.png'
),
Legacies_Empire::ID_RESEARCH_PLASMA_TECHNOLOGY => array(
'name' => 'Propriétés des plasma',
'description' => '',
'image' => 'graphics/technology/plasma.png'
),
Legacies_Empire::ID_RESEARCH_INTERGALACTIC_RESEARCH_NETWORK => array(
'name' => 'Réseau de recherche intergalactique',
'description' => '',
'image' => 'graphics/technology/intergalactic-research-network.png'
),
Legacies_Empire::ID_RESEARCH_EXPEDITION_TECHNOLOGY => array(
'name' => 'Technologie expéditions',
'description' => '',
'image' => 'graphics/technology/expedition.png'
),
Legacies_Empire::ID_RESEARCH_ORE_MINING => array(
'name' => 'Exploitation minière',
'description' => '',
'image' => 'graphics/technology/ore-mining.png'
),
Legacies_Empire::ID_RESEARCH_GRAVITON_TECHNOLOGY => array(
'name' => 'Graviton',
'description' => '',
'image' => 'graphics/technology/graviton.png'
),
// }}}
//
// Fleets labels
// {{{
Legacies_Empire::ID_SHIP_LIGHT_TRANSPORT => array(
'name' => 'Transporteur T5',
'class' => 'Etalon',
'description' => '',
'image' => 'graphics/units/light-transport.png'
),
Legacies_Empire::ID_SHIP_LARGE_TRANSPORT => array(
'name' => 'Transporteur T25',
'class' => 'Buffle',
'description' => '',
'image' => 'graphics/units/large-transport.png'
),
Legacies_Empire::ID_SHIP_LIGHT_FIGHTER => array(
'name' => 'Chasseur C50',
'class' => 'Guêpe',
'description' => '',
'image' => 'graphics/units/light-fighter.png'
),
Legacies_Empire::ID_SHIP_HEAVY_FIGHTER => array(
'name' => 'Chasseur C150',
'class' => 'Frelon',
'description' => '',
'image' => 'graphics/units/heavy-fighter.png'
),
Legacies_Empire::ID_SHIP_CRUISER => array(
'name' => 'Croiseur V400',
'class' => 'Aigle',
'description' => '',
'image' => 'graphics/units/cruiser.png'
),
Legacies_Empire::ID_SHIP_BATTLESHIP => array(
'name' => 'Vaisseau de bataille V1000',
'class' => 'Faucon',
'description' => '',
'image' => 'graphics/units/battleship.png'
),
Legacies_Empire::ID_SHIP_COLONY_SHIP => array(
'name' => 'Vaisseau de colonisation',
'class' => 'Romulus',
'description' => '',
'image' => 'graphics/units/colony-ship.png'
),
Legacies_Empire::ID_SHIP_RECYCLER => array(
'name' => 'Recycleur',
'class' => 'Goule',
'description' => '',
'image' => 'graphics/units/recycler.png'
),
Legacies_Empire::ID_SHIP_SPY_DRONE => array(
'name' => 'Sonde d\'espionnage',
'class' => 'Moustique',
'description' => '',
'image' => 'graphics/units/spy-drone.png'
),
Legacies_Empire::ID_SHIP_BOMBER => array(
'name' => 'Bombarider',
'class' => 'Vengeur',
'description' => '',
'image' => 'graphics/units/terraformer.png'
),
Legacies_Empire::ID_SHIP_SOLAR_SATELLITE => array(
'name' => 'Satellite solaire',
'class' => 'Râ',
'description' => '',
'image' => 'graphics/units/terraformer.png'
),
Legacies_Empire::ID_SHIP_DESTRUCTOR => array(
'name' => 'Vaisseau de bataille V2000',
'class' => 'Destructeur',
'description' => '',
'image' => 'graphics/units/terraformer.png'
),
Legacies_Empire::ID_SHIP_DEATH_STAR => array(
'name' => 'Vaisseau mère M1',
'class' => 'Vengeur',
'description' => '',
'image' => 'graphics/units/terraformer.png'
),
Legacies_Empire::ID_SHIP_BATTLECRUISER => array(
'name' => 'Vaisseau de bataille V700',
'class' => 'Dagon',
'description' => '',
'image' => 'graphics/units/terraformer.png'
),
Legacies_Empire::ID_SHIP_SUPERNOVA => array(
'name' => 'Vaisseau mère M5',
'class' => 'Annihilateur',
'description' => '',
'image' => 'graphics/units/terraformer.png'
),
Legacies_Empire::ID_SHIP_ORE_MININER => array(
'name' => 'Vaisseau d\'exploitation',
'class' => 'Onyx',
'description' => '',
'image' => 'graphics/units/terraformer.png'
),
// }}}
//
// Defenses labels
// {{{
Legacies_Empire::ID_DEFENSE_ROCKET_LAUNCHER => array(
'name' => 'Lance-missiles balistiques',
'description' => '',
'image' => 'graphics/defenses/rocket-launcher.png'
),
Legacies_Empire::ID_DEFENSE_LIGHT_LASER => array(
'name' => 'Artillerie laser légère',
'description' => '',
'image' => 'graphics/defenses/light-laser.png'
),
Legacies_Empire::ID_DEFENSE_HEAVY_LASER => array(
'name' => 'Artillerie laser lourde',
'description' => '',
'image' => 'graphics/defenses/heavy-laser.png'
),
Legacies_Empire::ID_DEFENSE_ION_CANNON => array(
'name' => 'Canon à ions',
'description' => '',
'image' => 'graphics/defenses/ion-canon.png'
),
Legacies_Empire::ID_DEFENSE_GAUSS_CANNON => array(
'name' => 'Canon à effet Gauss',
'description' => '',
'image' => 'graphics/defenses/gauss-canon.png'
),
Legacies_Empire::ID_DEFENSE_PLASMA_TURRET => array(
'name' => 'Canon à plasma',
'description' => '',
'image' => 'graphics/defenses/plasma-turret.png'
),
Legacies_Empire::ID_DEFENSE_SMALL_SHIELD_DOME => array(
'name' => 'Dôme bouclier',
'description' => '',
'image' => 'graphics/defenses/small-shield-dome.png'
),
Legacies_Empire::ID_DEFENSE_LARGE_SHIELD_DOME => array(
'name' => 'Grand bouclier planétaire',
'description' => '',
'image' => 'graphics/defenses/large-shield-dome.png'
),
Legacies_Empire::ID_SPECIAL_ANTIBALLISTIC_MISSILE => array(
'name' => 'Missile anti-balistique',
'description' => '',
'image' => 'graphics/defenses/antiballistic-missile.png'
),
// }}}
//
// Special labels
// {{{
Legacies_Empire::ID_SPECIAL_INTERPLANETARY_MISSILE => array(
'name' => 'Missile stratégique',
'description' => '',
'image' => 'graphics/defenses/interplanetary-missile.png'
)
// }}}
);

View file

@ -2,70 +2,17 @@
//
// Buildings production
// {{{
Legacies_Empire::ID_BUILDING_METAL_MINE => array(
Legacies_Empire::RESOURCE_METAL => 40,
Legacies_Empire::RESOURCE_CRISTAL => 10,
Legacies_Empire::RESOURCE_DEUTERIUM => 0,
Legacies_Empire::RESOURCE_ENERGY => 0,
Legacies_Empire::RESOURCE_MULTIPLIER => 1.5,
Legacies_Empire::RESOURCE_CLASS => 'Legacies_Empire_Model_Planet_Building_MetalMine'
),
Legacies_Empire::ID_BUILDING_CRISTAL_MINE => array(
Legacies_Empire::RESOURCE_METAL => 30,
Legacies_Empire::RESOURCE_CRISTAL => 15,
Legacies_Empire::RESOURCE_DEUTERIUM => 0,
Legacies_Empire::RESOURCE_ENERGY => 0,
Legacies_Empire::RESOURCE_MULTIPLIER => 1.6,
Legacies_Empire::RESOURCE_CLASS => 'Legacies_Empire_Model_Planet_Building_CristalMine'
),
Legacies_Empire::ID_BUILDING_DEUTERIUM_SYNTHETISER => array(
Legacies_Empire::RESOURCE_METAL => 150,
Legacies_Empire::RESOURCE_CRISTAL => 50,
Legacies_Empire::RESOURCE_DEUTERIUM => 0,
Legacies_Empire::RESOURCE_ENERGY => 0,
Legacies_Empire::RESOURCE_MULTIPLIER => 1.5,
Legacies_Empire::RESOURCE_CLASS => 'Legacies_Empire_Model_Planet_Building_DeuteriumSynthetiser'
),
Legacies_Empire::ID_BUILDING_SOLAR_PLANT => array(
Legacies_Empire::RESOURCE_METAL => 50,
Legacies_Empire::RESOURCE_CRISTAL => 20,
Legacies_Empire::RESOURCE_DEUTERIUM => 0,
Legacies_Empire::RESOURCE_ENERGY => 0,
Legacies_Empire::RESOURCE_MULTIPLIER => 1.5,
Legacies_Empire::RESOURCE_CLASS => 'Legacies_Empire_Model_Planet_Building_SolarPlant'
),
Legacies_Empire::ID_BUILDING_FUSION_REACTOR => array(
Legacies_Empire::RESOURCE_METAL => 500,
Legacies_Empire::RESOURCE_CRISTAL => 200,
Legacies_Empire::RESOURCE_DEUTERIUM => 100,
Legacies_Empire::RESOURCE_ENERGY => 0,
Legacies_Empire::RESOURCE_MULTIPLIER => 1.8,
Legacies_Empire::RESOURCE_CLASS => 'Legacies_Empire_Model_Planet_Building_FusionReactor'
),
Legacies_Empire::ID_BUILDING_METAL_MINE => 'Legacies_Empire_Model_Planet_Building_MetalMine',
Legacies_Empire::ID_BUILDING_CRISTAL_MINE => 'Legacies_Empire_Model_Planet_Building_CristalMine',
Legacies_Empire::ID_BUILDING_DEUTERIUM_SYNTHETISER => 'Legacies_Empire_Model_Planet_Building_DeuteriumSynthetiser',
Legacies_Empire::ID_BUILDING_SOLAR_PLANT => 'Legacies_Empire_Model_Planet_Building_SolarPlant',
Legacies_Empire::ID_BUILDING_FUSION_REACTOR => 'Legacies_Empire_Model_Planet_Building_FusionReactor',
// }}}
//
// Ships production
// {{{
Legacies_Empire::ID_SHIP_SOLAR_SATELLITE => array(
Legacies_Empire::RESOURCE_METAL => 0,
Legacies_Empire::RESOURCE_CRISTAL => 2000,
Legacies_Empire::RESOURCE_DEUTERIUM => 500,
Legacies_Empire::RESOURCE_ENERGY => 0,
Legacies_Empire::RESOURCE_MULTIPLIER => 0.5,
Legacies_Empire::RESOURCE_CLASS => 'Legacies_Empire_Model_Planet_Ship_SolarSatellite'
),
Legacies_Empire::ID_SHIP_SUPERNOVA => array(
Legacies_Empire::RESOURCE_METAL => 0,
Legacies_Empire::RESOURCE_CRISTAL => 2000,
Legacies_Empire::RESOURCE_DEUTERIUM => 500,
Legacies_Empire::RESOURCE_ENERGY => 0,
Legacies_Empire::RESOURCE_MULTIPLIER => 0.5,
Legacies_Empire::RESOURCE_CLASS => 'Legacies_Empire_Model_Planet_Ship_Supernova'
)
Legacies_Empire::ID_SHIP_SOLAR_SATELLITE => 'Legacies_Empire_Model_Planet_Ship_SolarSatellite',
Legacies_Empire::ID_SHIP_SUPERNOVA => 'Legacies_Empire_Model_Planet_Ship_Supernova'
// }}}
);

View file

@ -114,6 +114,10 @@
Legacies_Empire::ID_RESEARCH_IMPULSE_DRIVE => 3
),
Legacies_Empire::ID_RESEARCH_ORE_MINING => array(
Legacies_Empire::ID_BUILDING_RESEARCH_LAB => 2
),
Legacies_Empire::ID_RESEARCH_GRAVITON_TECHNOLOGY => array(
Legacies_Empire::ID_BUILDING_RESEARCH_LAB => 12
),
@ -207,6 +211,13 @@
Legacies_Empire::ID_RESEARCH_HYPERSPACE_TECHNOLOGY => 14,
Legacies_Empire::ID_RESEARCH_GRAVITON_TECHNOLOGY => 3
),
Legacies_Empire::ID_SHIP_ORE_MININER => array(
Legacies_Empire::ID_BUILDING_SHIPYARD => 12,
Legacies_Empire::ID_RESEARCH_HYPERSPACE_DRIVE => 8,
Legacies_Empire::ID_RESEARCH_GRAVITON_TECHNOLOGY => 1,
Legacies_Empire::ID_RESEARCH_LASER_TECHNOLOGY => 16
),
// }}}
//

View file

@ -75,6 +75,7 @@
Legacies_Empire::ID_RESEARCH_PLASMA_TECHNOLOGY,
Legacies_Empire::ID_RESEARCH_INTERGALACTIC_RESEARCH_NETWORK,
Legacies_Empire::ID_RESEARCH_EXPEDITION_TECHNOLOGY,
Legacies_Empire::ID_RESEARCH_ORE_MINING,
Legacies_Empire::ID_RESEARCH_GRAVITON_TECHNOLOGY
),
// }}}
@ -97,7 +98,8 @@
Legacies_Empire::ID_SHIP_DESTRUCTOR,
Legacies_Empire::ID_SHIP_DEATH_STAR,
Legacies_Empire::ID_SHIP_BATTLECRUISER,
Legacies_Empire::ID_SHIP_SUPERNOVA
Legacies_Empire::ID_SHIP_SUPERNOVA,
Legacies_Empire::ID_SHIP_ORE_MININER
),
// }}}