randBool이 아니라 randF 써서 생기는 버그 수정

This commit is contained in:
2018-06-28 01:57:41 +09:00
parent e03715ee46
commit 6f88a80118
2 changed files with 9 additions and 9 deletions
+6 -6
View File
@@ -602,14 +602,14 @@ function processWar($general, $city) {
//특기보정 : 저격(수극), 활무기저격
$snipe = false;
$snipeItem = false;
if(!$snipe && $general['special2'] == 70 && Util::randF(1/3)){
if(!$snipe && $general['special2'] == 70 && Util::randBool(1/3)){
$snipe = true;
}
if(!$snipe && in_array($general['weap'], [10, 14, 18, 22]) && Util::randF(1/5)){
if(!$snipe && in_array($general['weap'], [10, 14, 18, 22]) && Util::randBool(1/5)){
$snipe = true;
}
if(!$snipe && $general['item'] == 2){
if(Util::randF(1/5)){
if(Util::randBool(1/5)){
$snipe = true;
$snipeItem = true;
}
@@ -642,14 +642,14 @@ function processWar($general, $city) {
//특기보정 : 저격(수극), 활무기저격
$snipe = false;
$snipeItem = false;
if(!$snipe && $oppose['special2'] == 70 && Util::randF(1/3)){
if(!$snipe && $oppose['special2'] == 70 && Util::randBool(1/3)){
$snipe = true;
}
if(!$snipe && in_array($oppose['weap'], [10, 14, 18, 22]) && Util::randF(1/5)){
if(!$snipe && in_array($oppose['weap'], [10, 14, 18, 22]) && Util::randBool(1/5)){
$snipe = true;
}
if(!$snipe && $oppose['item'] == 2){
if(Util::randF(1/5)){
if(Util::randBool(1/5)){
$snipe = true;
$snipeItem = true;
}