- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
$compareCost = 0;
$countGacha = 0;
for($i=0; $i<10; ++$i):
$compareCost += $this->freeGacha->getCost();
if( $this->player->getSocialPoint() > $compareCost ) continue;
else break;
$countGacha = $i+1;
endfor;