• R/O
  • SSH
  • HTTPS

jinrousiki: Commit


Commit MetaInfo

Revision2684 (tree)
Time2020-07-05 00:09:57
Authorumethyl

Log Message

OptionManager::ExistsReplaceHuman()

Change Summary

Incremental Difference

--- trunk/include/option/chaos.php (revision 2683)
+++ trunk/include/option/chaos.php (revision 2684)
@@ -146,7 +146,7 @@
146146
147147 //-- 村人上限補正 --//
148148 if (true === $this->EnableCastChaosCalibration() &&
149- false === OptionManager::Exists('group_replace_human') &&
149+ false === OptionManager::ExistsReplaceHuman() &&
150150 ArrayFilter::Exists($role_list, 'human')) {
151151 $role = 'human';
152152 $count = $role_list[$role] - round($user_count / ChaosConfig::$max_human_rate);
--- trunk/include/option/option_class.php (revision 2683)
+++ trunk/include/option/option_class.php (revision 2684)
@@ -37,6 +37,11 @@
3737 return false;
3838 }
3939
40+ //オプション存在判定 (村人置換村)
41+ public static function ExistsReplaceHuman() {
42+ return self::Exists('group_replace_human')
43+ }
44+
4045 //オプション存在判定 (闇鍋モード)
4146 public static function ExistsChaos() {
4247 return self::Exists('group_chaos');
--- trunk/include/room_class.php (revision 2683)
+++ trunk/include/room_class.php (revision 2684)
@@ -121,7 +121,7 @@
121121 //闇鍋式希望制オプション判定
122122 public function IsChaosWish() {
123123 return OptionManager::ExistsChaos() || $this->IsOption('duel') ||
124- $this->IsOption('festival') || OptionManager::Exists('group_replace_human') ||
124+ $this->IsOption('festival') || OptionManager::ExistsReplaceHuman() ||
125125 $this->IsOptionGroup('change_');
126126 }
127127
Show on old repository browser