@@ 81-84 (lines=4) @@ | ||
78 | // |
|
79 | $homeModule = new Module($this->homeTeam->coach->favouriteModule); |
|
80 | $awayModule = new Module($this->awayTeam->coach->favouriteModule); |
|
81 | if ($homeModule->isOffensive()) { |
|
82 | $goalHome += Randomizer::boolOnPercentage(50) ? rand(1, 2) : 0; |
|
83 | $goalAway += Randomizer::boolOnPercentage(20) ? 1 : 0; |
|
84 | } |
|
85 | if ($awayModule->isOffensive()) { |
|
86 | $goalAway += Randomizer::boolOnPercentage(50) ? rand(1, 2) : 0; |
|
87 | $goalHome += Randomizer::boolOnPercentage(20) ? 1 : 0; |
|
@@ 85-88 (lines=4) @@ | ||
82 | $goalHome += Randomizer::boolOnPercentage(50) ? rand(1, 2) : 0; |
|
83 | $goalAway += Randomizer::boolOnPercentage(20) ? 1 : 0; |
|
84 | } |
|
85 | if ($awayModule->isOffensive()) { |
|
86 | $goalAway += Randomizer::boolOnPercentage(50) ? rand(1, 2) : 0; |
|
87 | $goalHome += Randomizer::boolOnPercentage(20) ? 1 : 0; |
|
88 | } |
|
89 | if ($awayModule->isDefensive()) { |
|
90 | $goalHome -= Randomizer::boolOnPercentage(50) ? 1 : 0; |
|
91 | } |