XGProyect / XG-Proyect-v3.x.x

XG Proyect is an OGame clone open-source web application framework designed for creating game clones, particularly those inspired by the popular game OGame, set in a vast and captivating space-themed universe.
https://xgproyect.org
GNU General Public License v3.0
144 stars 97 forks source link

[Future Improvement] Updating Recruit Officers #250

Open BeReal86 opened 4 years ago

BeReal86 commented 4 years ago

Commander

Admiral

Engineer

Geologist

Technocrat

When all recruitment officers are active, the following bonus officer is active.

Commanding Staff

officers Screenshot_5 Screenshot_7

resim

jonamix-ar commented 4 years ago

*Halves losses to defence systems This is before with the old battle engine with the new jstar engine that does not exist

jonamix-ar commented 3 years ago

Dejo esto por acá para que no tengan problemas con el CP me atreví de cambiar el comandante por la estrella. allOfficers_ikon allOfficers

jonamix-ar commented 2 years ago

El max Expedition

fleet1.php 'max_expeditions' => FleetsLib::getMaxExpeditions( $this->_research->getCurrentResearch()->getResearchAstrophysics(), $this->_premium->getCurrentPremium()->getPremiumOfficierAdmiral() ),

fleetLib.php public static function getMaxExpeditions($astrophysics_tech, $amiral_level) { return floor(sqrt($astrophysics_tech) + (1 * (OfficiersLib::isOfficierActive($amiral_level) ? AMIRAL_EXPEDITION : 0))); }

fleet1_view.php

<tr>
                        <td style="background-color: transparent;">
                            {fl_fleets} {fleets}/{max_fleets}
                            &nbsp;
                            {amiral_bonuses}
                            &nbsp; {fl_expeditions} {expeditions}/{max_expeditions}
                        </td>
                        <td style="background-color: transparent;text-align: right!important;">
                            <a href="game.php?page=movement">{fl_fleets_movements}</a>
                        </td>
                    </tr>

nuevo archivo fleet1_amiral_row.php

`

`

Fleet1.php

private function buildNoAmiralBlock($amiral)
    {
        if ($amiral) {
            return $this->template->set('fleet/fleet1_amiral_row', array_merge($this->langs->language, ['dpath' => DPATH]));
        }
    }

Lang / Spanish 'fl_amiral_bonuses' => '+ 2 Espacios disponibles debido a Almirante',

Lang / English 'fl_amiral_bonuses' => '+ 2 Fleet slots because of Admiral',

Constants.php

define('AMIRAL_EXPEDITION', 1);

Creo q no me olvide nada

Con Almirante image

Sin Almirante image

Fix movimiento de flotas

movement.php

'max_expeditions' => FleetsLib::getMaxExpeditions(
                $this->research->getCurrentResearch()->getResearchAstrophysics(),
                $this->premium->getCurrentPremium()->getPremiumOfficierAdmiral()
            )
LucasKovacs commented 2 years ago

@FGServers tenes que aprender a hacer PRs…. Esto de copiar/pegar es muy aburrido… cual es el propósito además de los pop ups?

jonamix-ar commented 2 years ago

ual es el propósito además de los pop

use overlib por que no tiene implementado un tooltip. es como esta en ogame como para hacerlo lo mas parecido al rediseño con el antiguo diseño jajaja ya voy aprender hacer PR

BeReal86 commented 1 year ago

https://github.com/XGProyect/XG-Proyect-v3.x.x/issues/532

Update; Officers no longer need to be active for the MAX button.

jonamix-ar commented 1 year ago

Update Officers El equipo comando es un bonus extra que suma cuando tenes activos todos los oficiales. que es lo que hace cuando vos tenes todos los oficiales activos te agrega 4 bonus más extras.

Bonus:

Cantidad de flotas máx. +1 +2 % de producción de energía +2 % de producción de mineral +1 al nivel de espionaje +5 días de vacaciones

image

Dejo la imagen modificaa por que la original es de ogame, cuando lo activas image

Le suma a los oficiales los dias que contratas el bonus extra image image image

BeReal86 commented 1 year ago

resim

resim

One is the image I got from ogame.us the other ogame test universe. Bonuses are 4 and have been updated.