json_valid 설정. officer 설정 방식 변경

This commit is contained in:
2020-05-05 19:17:27 +09:00
parent a378ac8738
commit 6ac12d42fe
8 changed files with 81 additions and 89 deletions
+8
View File
@@ -30,6 +30,14 @@ function getCharacterList(bool $onlyAvailable=true){
return $infoText;
}
function isOfficerSet(int $officerSet, int $reqOfficerLevel):bool{
return ($officerSet & (1 << $reqOfficerLevel)) !== 0;
}
function doOfficerSet(int $officerSet, int $reqOfficerLevel):int{
return ($officerSet | (1 << $reqOfficerLevel));
}
function getNationChiefLevel(int $level) {
return [
7=>5,