Hi~
I have modifying it to increase resource production depending on the level of the alliance.
However, I modified it as shown below, but not many resources are produced.
Where should I add it?
I added the code below in class.PlanetRessUpdate.
Check an alliance member..
If are not an alliance member, it is 1. If are an alliance member, it is on the level value of the alliance.
And add the code below
And add the $allyprod code below
I have modifying it to increase resource production depending on the level of the alliance.
However, I modified it as shown below, but not many resources are produced.
Where should I add it?
I added the code below in class.PlanetRessUpdate.
Check an alliance member..
If are not an alliance member, it is 1. If are an alliance member, it is on the level value of the alliance.
PHP Source Code: class.PlanetRessUpdate.php
And add the $allyprod code below
PHP Source Code: class.PlanetRessUpdate.php
- //added $allyprod
- $this->PLANET['metal_perhour'] = ($temp[901]['plus'] * $allyprod * (1 + $this->USER['factor']['Resource'] + 0.02 * $this->USER[$resource[131]]) * $prodLevel + $temp[901]['minus']) * $this->config->resource_multiplier;
- //added $allyprod
- $this->PLANET['crystal_perhour'] = ($temp[902]['plus'] * $allyprod * (1 + $this->USER['factor']['Resource'] + 0.02 * $this->USER[$resource[132]]) * $prodLevel + $temp[902]['minus']) * $this->config->resource_multiplier;
- //added $allyprod
- $this->PLANET['deuterium_perhour'] = ($temp[903]['plus'] * $allyprod * (1 + $this->USER['factor']['Resource'] + 0.02 * $this->USER[$resource[133]]) * $prodLevel + $temp[903]['minus']) * $this->config->resource_multiplier;


--------------------------------------------------------------------------------------
The post was edited 1 time, last by noonn ().