wip
This commit is contained in:
1 parent
6ecee8635a
commit
2c641b5507
1 file changed
+6
-6
@@ -449,7 +449,7 @@ class PlayerPropsDrop extends Widget
|
||||
|
||||
switch ($bettype) {
|
||||
case 'goals':
|
||||
if ($val->goals < $this->y_value) {
|
||||
if ($val->total_min < $this->y_value) {
|
||||
$asp_gioco = 0;
|
||||
} else {
|
||||
$asp_gioco = $val->goals / $val->total_min * 90;
|
||||
@@ -458,7 +458,7 @@ class PlayerPropsDrop extends Widget
|
||||
$tmp['asp_teorica_'.$bettype] = ($this->x_value * $asp_gioco + $asp_statistica) / (1 + $this->x_value);
|
||||
break;
|
||||
case 'cards':
|
||||
if ($val->cards < $this->y_value) {
|
||||
if ($val->total_min < $this->y_value) {
|
||||
$asp_gioco = 0;
|
||||
} else {
|
||||
$asp_gioco = $val->cards / $val->total_min * 90;
|
||||
@@ -467,7 +467,7 @@ class PlayerPropsDrop extends Widget
|
||||
$tmp['asp_teorica_'.$bettype] = ($this->x_value * $asp_gioco + $asp_statistica) / (1 + $this->x_value);
|
||||
break;
|
||||
case 'fouls':
|
||||
if ($val->fouls < $this->y_value) {
|
||||
if ($val->total_min < $this->y_value) {
|
||||
$asp_gioco = 0;
|
||||
} else {
|
||||
$asp_gioco = $val->fouls / $val->total_min * 90;
|
||||
@@ -476,7 +476,7 @@ class PlayerPropsDrop extends Widget
|
||||
$tmp['asp_teorica_'.$bettype] = ($this->x_value * $asp_gioco + $asp_statistica) / (1 + $this->x_value);
|
||||
break;
|
||||
case 'offsides':
|
||||
if ($val->offsides < $this->y_value) {
|
||||
if ($val->total_min < $this->y_value) {
|
||||
$asp_gioco = 0;
|
||||
} else {
|
||||
$asp_gioco = $val->offsides / $val->total_min * 90;
|
||||
@@ -485,7 +485,7 @@ class PlayerPropsDrop extends Widget
|
||||
$tmp['asp_teorica_'.$bettype] = ($this->x_value * $asp_gioco + $asp_statistica) / (1 + $this->x_value);
|
||||
break;
|
||||
case 'total_shots':
|
||||
if ($val->total_shots < $this->y_value) {
|
||||
if ($val->total_min < $this->y_value) {
|
||||
$asp_gioco = 0;
|
||||
} else {
|
||||
$asp_gioco = $val->total_shots / $val->total_min * 90;
|
||||
@@ -494,7 +494,7 @@ class PlayerPropsDrop extends Widget
|
||||
$tmp['asp_teorica_'.$bettype] = ($this->x_value * $asp_gioco + $asp_statistica) / (1 + $this->x_value);
|
||||
break;
|
||||
case 'shots_on_target':
|
||||
if ($val->shots_on_target < $this->y_value) {
|
||||
if ($val->total_min < $this->y_value) {
|
||||
$asp_gioco = 0;
|
||||
} else {
|
||||
$asp_gioco = $val->shots_on_target / $val->total_min * 90;
|
||||
|
||||
Reference in new issue
Block a user