Ракетная атака, мое решение.
Pinned [V1.X.X] New Star Сlassic
This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.
-
-
Найдены проблемы с бонусами благодаря eduardo_forte9005. Заменить весь этот код, на этот.
PHP Source Code: GeneralFunctions.php
- function getFactors($USER, $Type = 'basic', $TIME = NULL) {
- global $resource, $pricelist, $reslist;
- if(empty($TIME))
- $TIME = TIMESTAMP;
- $bonusList = BuildFunctions::getBonusList();
- $factor = ArrayUtil::combineArrayWithSingleElement($bonusList, 0);
- foreach($reslist['bonus'] as $elementID) {
- $bonus = $pricelist[$elementID]['bonus'];
- if (isset($PLANET[$resource[$elementID]])) {
- $elementLevel = $PLANET[$resource[$elementID]];
- } elseif (isset($USER[$resource[$elementID]])) {
- $elementLevel = $USER[$resource[$elementID]];
- } else {
- continue;
- }
- if(in_array($elementID, array_merge($reslist['dmfunc'], $reslist['premium']))) {
- if(DMExtra($elementLevel, $TIME, false, true)) {
- continue;
- }
- foreach($bonusList as $bonusKey)
- {
- $factor[$bonusKey] += $bonus[$bonusKey][0];
- }
- } else {
- foreach($bonusList as $bonusKey)
- {
- $factor[$bonusKey] += $elementLevel * $bonus[$bonusKey][0];
- }
- }
- }
- return $factor;
- }
-
-
-
-
А вот над чем я работаю:
Скриншот арсенала.
Добавил звездную руду, антиматерию и контейнеры.
Переписываю логику экспедиции.
Пишу новые моды для применения новых ресурсов.
Обновление выйдет тогда, когда будет готово. Это займет много времени. -
@Yaro2709 este código para que se utiliza, y en qué línea lo coloco??
-
eduardo_forte9005 wrote:
-
ein87 wrote:
eduardo_forte9005 wrote:
-
ein87 wrote:
eduardo_forte9005 wrote:
Чтобы игрок видел это, пишется этот код. -
-
-
-
-
Add in order by numbering
-
NuAdd in order by numbering
????????? -
page.buildings.default.tpl
25
main.navigation.tpl
56
Always use to edit files notepad++
-
-
-
Yaro2709 wrote:
Зачем? Смысла нет.
-
Share
- Facebook 0
- Twitter 0
- Google Plus 0
- Reddit 0
-
Users Online 13
13 Guests