토너먼트값, 전투, 계략값을 분리
This commit is contained in:
@@ -720,4 +720,11 @@ class Util extends \utilphp\util
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
function isPowerOfTwo(int $number):bool{
|
||||
if($number <= 0){
|
||||
return false;
|
||||
}
|
||||
return ($number & ($number - 1)) == 0;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user