wip
This commit is contained in:
1 parent
545b2ef44a
commit
8722d88870
3 files changed
+10
-7
No files matched your search
@@ -349,11 +349,13 @@ class PlayerPropsDrop extends Widget
|
||||
|
||||
$count_player = 0;
|
||||
foreach ($player as $key => $value) {
|
||||
if ($value['position'] != 'GK') {
|
||||
if ($value['position'] != 'GK' and $value['is_active'] == 1) {
|
||||
$count_player++;
|
||||
}
|
||||
}
|
||||
|
||||
dd($count_player);
|
||||
|
||||
// Aspettativa Team di Riferimento
|
||||
// (ATR) = Aspettativa Team * Numero di Giocatori di Team in Rosters (esclusi i portieri) / 10.
|
||||
// Ad esempio per Remo (supponiamo 24 giocatori nel Roster esclusi i portieri): ATR = 1.2 * 24 / 10 = 2.88
|
||||
@@ -395,6 +397,7 @@ class PlayerPropsDrop extends Widget
|
||||
$tmp['id'] = $ss_player_id;
|
||||
$tmp['name'] = $val->details->player_name;
|
||||
|
||||
$tmp['id_team'] = $team_id;
|
||||
$tmp['asp_team'] = $asp_team;
|
||||
$tmp['asp_team_riferimento'] = $asp_team_riferimento;
|
||||
$tmp['player_count_without_gk'] = $count_player;
|
||||
|
||||
Reference in new issue
Block a user