• R/O
  • SSH
  • HTTPS

jinrousiki: Commit


Commit MetaInfo

Revision2722 (tree)
Time2021-05-29 22:32:29
Authorumethyl

Log Message

RoomOptionManager::LoadPostChaos()

Change Summary

Incremental Difference

--- trunk/include/option/room_option_manager_class.php (revision 2721)
+++ trunk/include/option/room_option_manager_class.php (revision 2722)
@@ -21,15 +21,10 @@
2121 self::LoadPostQuiz();
2222 } else {
2323 self::LoadPostDummyBoy();
24-
25- //闇鍋モード
2624 if (RQ::Get()->chaos || RQ::Get()->chaosfull || RQ::Get()->chaos_hyper ||
27- RQ::Get()->chaos_verso) { //闇鍋
28- RoomOption::LoadPost(
29- 'secret_sub_role', 'topping', 'boost_rate', 'chaos_open_cast', 'sub_role_limit'
30- );
31- } elseif (RQ::Get()->duel || RQ::Get()->gray_random || RQ::Get()->step) {
32- //特殊配役
25+ RQ::Get()->chaos_verso) { //闇鍋モード
26+ self::LoadPostChaos();
27+ } elseif (RQ::Get()->duel || RQ::Get()->gray_random || RQ::Get()->step) { //特殊配役
3328 } else { //通常村
3429 RoomOption::LoadPost(
3530 'poison', 'assassin', 'wolf', 'boss_wolf', 'poison_wolf', 'tongue_wolf', 'possessed_wolf',
@@ -105,6 +100,14 @@
105100 RoomOption::Set(OptionGroup::GAME, 'gm_login');
106101 }
107102
103+ //村作成オプション入力情報ロード (GM ログインパスワード)
104+ private static function LoadPostPassword() {
105+ RQ::Get()->ParsePostStr('gm_password');
106+ if (RQ::Get()->gm_password == '') {
107+ RoomManagerHTML::OutputResult('no_password');
108+ }
109+ }
110+
108111 //村作成オプション入力情報ロード (身代わり君関連)
109112 private static function LoadPostDummyBoy() {
110113 if (RQ::Get()->dummy_boy) {
@@ -129,11 +132,10 @@
129132 }
130133 }
131134
132- //村作成オプション入力情報ロード (GM ログインパスワード)
133- private static function LoadPostPassword() {
134- RQ::Get()->ParsePostStr('gm_password');
135- if (RQ::Get()->gm_password == '') {
136- RoomManagerHTML::OutputResult('no_password');
137- }
135+ //村作成オプション入力情報ロード (闇鍋モード)
136+ private static function LoadPostChaos() {
137+ RoomOption::LoadPost(
138+ 'secret_sub_role', 'topping', 'boost_rate', 'chaos_open_cast', 'sub_role_limit'
139+ );
138140 }
139141 }
Show on old repository browser