feat,refac: 남은 난수 생성값 추가 수정
- rand, mt_rand, Query rand() 쓰는 영역 - 거래장, 토너먼트는 남김
This commit is contained in:
@@ -331,7 +331,7 @@ class Join extends \sammo\BaseAPI
|
||||
$character = $rng->choice(GameConst::$availablePersonality);
|
||||
}
|
||||
//상성 랜덤
|
||||
$affinity = rand() % 150 + 1;
|
||||
$affinity = $rng->nextRangeInt(1, 150);
|
||||
|
||||
########## 회원정보 테이블에 입력값을 등록한다. ##########
|
||||
$db->insert('general', [
|
||||
|
||||
@@ -652,7 +652,7 @@ class GeneralBuilder{
|
||||
$killturn = $this->killturn;
|
||||
}
|
||||
else if($this->birth !== null){
|
||||
$killturn = ($this->death - $year) * 12 + mt_rand(0, 11) + $month - 1;
|
||||
$killturn = ($this->death - $year) * 12 + $this->rng->nextRangeInt(0, 11) + $month - 1;
|
||||
}
|
||||
else{
|
||||
throw new \InvalidArgumentException();
|
||||
|
||||
@@ -286,7 +286,7 @@ class WarUnit
|
||||
//최소 전투력 50 보장
|
||||
$warPower = max(0, $warPower);
|
||||
$warPower = ($warPower + 100) / 2;
|
||||
$warPower = rand($warPower, 100);
|
||||
$warPower = $this->rng->nextRangeInt($warPower, 100);
|
||||
}
|
||||
|
||||
$warPower *= $this->getComputedAtmos();
|
||||
|
||||
Reference in New Issue
Block a user