Skip to content
This repository has been archived by the owner on Nov 24, 2021. It is now read-only.

Commit

Permalink
Tech points fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mys authored Mar 25, 2018
1 parent 75fde64 commit 9dc051b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions includes/classes/class.statbuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,8 @@ private function GetTechnoPoints($USER)
if($USER[$resource[$Techno]] == 0) continue;

// PointsPerCot == Config::get()->stat_settings
for ($i = 1; $i <= $PLANET[$resource[$Build]]; $i++) {
$BuildPoints += ($pricelist[$Techno]['cost'][901] + $pricelist[$Techno]['cost'][902] + $pricelist[$Techno]['cost'][903]) * pow($pricelist[$Techno]['factor'], $i - 1);
for ($i = 1; $i <= $USER[$resource[$Techno]]; $i++) {
$TechPoints += ($pricelist[$Techno]['cost'][901] + $pricelist[$Techno]['cost'][902] + $pricelist[$Techno]['cost'][903]) * pow($pricelist[$Techno]['factor'], $i - 1);
}
$TechCounts += $USER[$resource[$Techno]];

Expand Down

0 comments on commit 9dc051b

Please sign in to comment.