물자조달 턴 추가 기타 커맨드 버그 수정

This commit is contained in:
2018-10-16 00:53:19 +09:00
parent 928e8a200b
commit 90736b52be
13 changed files with 195 additions and 90 deletions
-12
View File
@@ -186,18 +186,6 @@ function setLeadershipBonus(&$general, $nationLevel){
return $lbonus;
}
function CriticalScore($score, $type) {
switch($type) {
case 0:
$ratio = Util::randF()*0.8 + 2.2; // 2.2~3.0
break;
case 1:
$ratio = Util::randF()*0.2 + 0.2; // 0.2~0.4
break;
}
return Util::round($score * $ratio);
}
function CriticalScoreEx(string $type):float {
if($type == 'success'){
return Util::randRange(2.2, 3.0);