diff --git a/app/Libraries/BattleEngine/Core/BattleReport.php b/app/Libraries/BattleEngine/Core/BattleReport.php index 137671e1c..901868274 100755 --- a/app/Libraries/BattleEngine/Core/BattleReport.php +++ b/app/Libraries/BattleEngine/Core/BattleReport.php @@ -5,6 +5,7 @@ use App\Libraries\BattleEngine\Models\PlayerGroup; use App\Libraries\BattleEngine\Utils\Events; use App\Libraries\BattleEngine\Utils\Math; +use App\Libraries\Functions; use Exception; /** @@ -256,7 +257,7 @@ public function getAttackerDebris() $metal += $lost[0]; $crystal += $lost[1]; } - $factor = constant(strtoupper($role) . '_DEBRIS_FACTOR'); + $factor = Functions::readConfig('fleet_cdr') / 100; $sendMetal += $metal * $factor; $sendCrystal += $crystal * $factor; } @@ -278,7 +279,7 @@ public function getDefenderDebris() $metal += $lost[0]; $crystal += $lost[1]; } - $factor = constant(strtoupper($role) . '_DEBRIS_FACTOR'); + $factor = Functions::readConfig('defs_cdr') / 100; $sendMetal += $metal * $factor; $sendCrystal += $crystal * $factor; }