• R/O
  • SSH
  • HTTPS

jinrousiki: コミット


コミットメタ情報

リビジョン2023 (tree)
日時2017-05-14 22:27:18
作者umethyl

ログメッセージ

RoleVoteTarget::ESCAPER

変更サマリ

差分

--- trunk/include/role/escaper.php (revision 2022)
+++ trunk/include/role/escaper.php (revision 2023)
@@ -25,7 +25,7 @@
2525 $this->AddStack($this->GetID(), RoleVoteSuccess::FROSTBITE);
2626 }
2727 $this->EscapeAction($user); //逃亡処理
28- $this->AddStack($user->id, 'escaper'); //逃亡先をセット
28+ $this->AddStack($user->id, RoleVoteTarget::ESCAPER); //逃亡先をセット
2929 }
3030 }
3131
--- trunk/include/role/vampire.php (revision 2022)
+++ trunk/include/role/vampire.php (revision 2023)
@@ -43,10 +43,10 @@
4343 if (RoleUser::DelayTrap($actor, $user->id)) return; //罠判定
4444
4545 //追加吸血判定
46- foreach ($this->GetStackKey('escaper', $actor->id) as $id) { //自己逃亡判定
46+ foreach ($this->GetStackKey(RoleVoteTarget::ESCAPER, $actor->id) as $id) { //自己逃亡判定
4747 $this->SetInfectTarget($id);
4848 }
49- foreach ($this->GetStackKey('escaper', $user->id) as $id) { //逃亡巻き添え判定
49+ foreach ($this->GetStackKey(RoleVoteTarget::ESCAPER, $user->id) as $id) { //逃亡巻き添え判定
5050 $this->SetInfectTarget($id);
5151 }
5252
--- trunk/include/role/wolf.php (revision 2022)
+++ trunk/include/role/wolf.php (revision 2023)
@@ -147,7 +147,7 @@
147147 $this->SetStack($actor, 'voter');
148148
149149 //逃亡者の巻き添え判定
150- foreach (RoleManager::Stack()->GetKeyList('escaper', $target->id) as $id) {
150+ foreach (RoleManager::Stack()->GetKeyList(RoleVoteTarget::ESCAPER, $target->id) as $id) {
151151 DB::$USER->Kill($id, DeadReason::WOLF_KILLED); //死亡処理
152152 }
153153
--- trunk/include/data/role_vote_data_class.php (revision 2022)
+++ trunk/include/data/role_vote_data_class.php (revision 2023)
@@ -70,6 +70,7 @@
7070 const GATEKEEPER_GUARD = 'gatekeeper_guard';
7171 const DUMMY_GUARD = 'dummy_guard';
7272 const BARRIER_WIZARD = 'barrier_wizard';
73+ const ESCAPER = 'escaper';
7374 }
7475
7576 //-- 定数リスト (Role/Vote/Success) --//
--- trunk/include/game_vote_functions.php (revision 2022)
+++ trunk/include/game_vote_functions.php (revision 2023)
@@ -851,10 +851,15 @@
851851 //変数の初期化
852852 private static function InitStack() {
853853 $stack = array(
854- RoleVoteTarget::TRAP, RoleVoteTarget::SNOW_TRAP,
855- RoleVoteTarget::GUARD, RoleVoteTarget::GATEKEEPER_GUARD, RoleVoteTarget::DUMMY_GUARD,
856- RoleVoteTarget::BARRIER_WIZARD, 'escaper', 'sacrifice', 'anti_voodoo', 'reverse_assassin',
857- RoleVoteSuccess::TRAPPED, RoleVoteSuccess::FROSTBITE,
854+ RoleVoteTarget::TRAP,
855+ RoleVoteTarget::SNOW_TRAP,
856+ RoleVoteTarget::GUARD,
857+ RoleVoteTarget::GATEKEEPER_GUARD,
858+ RoleVoteTarget::DUMMY_GUARD,
859+ RoleVoteTarget::BARRIER_WIZARD,
860+ RoleVoteTarget::ESCAPER, 'sacrifice', 'anti_voodoo', 'reverse_assassin',
861+ RoleVoteSuccess::TRAPPED,
862+ RoleVoteSuccess::FROSTBITE,
858863 RoleVoteSuccess::POSSESSED,
859864 RoleVoteSuccess::ANTI_VOODOO
860865 );
@@ -1005,7 +1010,7 @@
10051010 private static function LoadEscape() {
10061011 $vote_data = RoleManager::GetVoteData();
10071012 RoleVote::FilterNightSet($vote_data[VoteAction::ESCAPE], 'Escape');
1008- //RoleManager::Stack()->p('escaper', '◆Target [escaper]');
1013+ //RoleManager::Stack()->p(RoleVoteTarget::ESCAPER, '◆Target [escaper]');
10091014 }
10101015
10111016 //人狼襲撃処理
旧リポジトリブラウザで表示