json_valid 설정. officer 설정 방식 변경

This commit is contained in:
Hide_D committed 2020-05-05 19:17:27 +09:00
1 parent 8f1845b334
commit 9a6b5d8e66
8 files changed
+81 -89

No files matched your search

+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,