버그 수정

This commit is contained in:
2020-05-19 00:18:45 +09:00
parent 1da46f1615
commit 5d77e227e9
+9 -3
View File
@@ -86,9 +86,6 @@ class SpecialityHelper{
if($leadership > GameConst::$chiefStatMin){ if($leadership > GameConst::$chiefStatMin){
$myCond |= self::STAT_LEADERSHIP; $myCond |= self::STAT_LEADERSHIP;
} }
if($leadership < GameConst::$chiefStatMin){
$myCond |= self::STAT_NOT_LEADERSHIP;
}
if($strength >= $intel * 0.95 && $strength > GameConst::$chiefStatMin){ if($strength >= $intel * 0.95 && $strength > GameConst::$chiefStatMin){
$myCond |= self::STAT_STRENGTH; $myCond |= self::STAT_STRENGTH;
@@ -100,9 +97,18 @@ class SpecialityHelper{
if($intel >= $strength * 0.95 && $intel > GameConst::$chiefStatMin){ if($intel >= $strength * 0.95 && $intel > GameConst::$chiefStatMin){
$myCond |= self::STAT_INTEL; $myCond |= self::STAT_INTEL;
} }
if($myCond){
if($leadership < GameConst::$chiefStatMin){
$myCond |= self::STAT_NOT_LEADERSHIP;
}
if($strength < GameConst::$chiefStatMin){
$myCond |= self::STAT_NOT_STRENGTH;
}
if($intel < GameConst::$chiefStatMin){ if($intel < GameConst::$chiefStatMin){
$myCond |= self::STAT_NOT_INTEL; $myCond |= self::STAT_NOT_INTEL;
} }
}
if($myCond === 0){ if($myCond === 0){
if ($leadership * 0.9 > $strength && $leadership * 0.9 > $intel) { if ($leadership * 0.9 > $strength && $leadership * 0.9 > $intel) {