Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Co-Authored-By: JonaMiX <2124810+jonamix-ar@users.noreply.github.com>
  • Loading branch information
LucasKovacs and jonamix-ar committed Sep 1, 2024
1 parent f5a4371 commit 43a2fa7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/Libraries/BattleEngine/Core/BattleReport.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/**
Expand Down Expand Up @@ -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;
}
Expand All @@ -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;
}
Expand Down

0 comments on commit 43a2fa7

Please sign in to comment.