OptionManager::ExistsReplaceHuman()
@@ -146,7 +146,7 @@ | ||
146 | 146 | |
147 | 147 | //-- 村人上限補正 --// |
148 | 148 | if (true === $this->EnableCastChaosCalibration() && |
149 | - false === OptionManager::Exists('group_replace_human') && | |
149 | + false === OptionManager::ExistsReplaceHuman() && | |
150 | 150 | ArrayFilter::Exists($role_list, 'human')) { |
151 | 151 | $role = 'human'; |
152 | 152 | $count = $role_list[$role] - round($user_count / ChaosConfig::$max_human_rate); |
@@ -37,6 +37,11 @@ | ||
37 | 37 | return false; |
38 | 38 | } |
39 | 39 | |
40 | + //オプション存在判定 (村人置換村) | |
41 | + public static function ExistsReplaceHuman() { | |
42 | + return self::Exists('group_replace_human') | |
43 | + } | |
44 | + | |
40 | 45 | //オプション存在判定 (闇鍋モード) |
41 | 46 | public static function ExistsChaos() { |
42 | 47 | return self::Exists('group_chaos'); |
@@ -121,7 +121,7 @@ | ||
121 | 121 | //闇鍋式希望制オプション判定 |
122 | 122 | public function IsChaosWish() { |
123 | 123 | return OptionManager::ExistsChaos() || $this->IsOption('duel') || |
124 | - $this->IsOption('festival') || OptionManager::Exists('group_replace_human') || | |
124 | + $this->IsOption('festival') || OptionManager::ExistsReplaceHuman() || | |
125 | 125 | $this->IsOptionGroup('change_'); |
126 | 126 | } |
127 | 127 |