• R/O
  • SSH
  • HTTPS

jinrousiki: Commit


Commit MetaInfo

Revision2725 (tree)
Time2021-05-29 22:45:14
Authorumethyl

Log Message

RoomOptionManager::LoadPostCommonWithoutQuiz()

Change Summary

Incremental Difference

--- trunk/include/option/room_option_manager_class.php (revision 2724)
+++ trunk/include/option/room_option_manager_class.php (revision 2725)
@@ -29,17 +29,7 @@
2929 } else { //通常村
3030 self::LoadPostNormal();
3131 }
32-
33- if (false === RQ::Get()->perverseness) {
34- RoomOption::LoadPost('sudden_death');
35- }
36- RoomOption::LoadPost(
37- 'joker', 'death_note', 'detective', 'full_weather', 'festival', 'change_common_selector',
38- 'change_mad_selector', 'change_cupid_selector'
39- );
40- if (false === RQ::Get()->full_weather) {
41- RoomOption::LoadPost('weather');
42- }
32+ self::LoadPostCommonWithoutQuiz();
4333 }
4434 RoomOption::LoadPost(
4535 'no_silence', 'liar', 'gentleman', 'passion', 'deep_sleep', 'mind_open', 'blinder',
@@ -149,4 +139,18 @@
149139 RoomOption::LoadPost('decide', 'authority');
150140 }
151141 }
142+
143+ //村作成オプション入力情報ロード (クイズ村以外共通)
144+ private static function LoadPostCommonWithoutQuiz() {
145+ if (false === RQ::Get()->perverseness) {
146+ RoomOption::LoadPost('sudden_death');
147+ }
148+ RoomOption::LoadPost(
149+ 'joker', 'death_note', 'detective', 'full_weather', 'festival', 'change_common_selector',
150+ 'change_mad_selector', 'change_cupid_selector'
151+ );
152+ if (false === RQ::Get()->full_weather) {
153+ RoomOption::LoadPost('weather');
154+ }
155+ }
152156 }
Show on old repository browser