• R/O
  • SSH
  • HTTPS

jinrousiki: コミット


コミットメタ情報

リビジョン2050 (tree)
日時2017-08-23 22:54:52
作者umethyl

ログメッセージ

蘇生能力者:コードを最適化

変更サマリ

差分

--- trunk/include/role/revive_doll_master.php (revision 2049)
+++ trunk/include/role/revive_doll_master.php (revision 2050)
@@ -15,7 +15,7 @@
1515 }
1616
1717 protected function GetReviveRate() {
18- return 15 + $this->CountDoll() * 10;
18+ return 15 + ($this->CountDoll() * 10);
1919 }
2020
2121 protected function IgnoreReviveTarget(User $user) {
--- trunk/include/role/revive_mania.php (revision 2049)
+++ trunk/include/role/revive_mania.php (revision 2050)
@@ -14,7 +14,7 @@
1414
1515 //コピー先無効判定 (不在 > 生存 > 蘇生制限)
1616 $id = $this->GetActor()->GetMainRoleTarget();
17- if(is_null($id)) return false;
17+ if (is_null($id)) return false;
1818 $target = DB::$USER->ByID($id);
1919 if ($target->IsLive(true) || RoleUser::LimitedRevive($target)) return false;
2020
--- trunk/include/role/poison_cat.php (revision 2049)
+++ trunk/include/role/poison_cat.php (revision 2050)
@@ -69,7 +69,7 @@
6969 //蘇生
7070 final public function Revive(User $user) {
7171 $target = $this->GetReviveTarget($user);
72- $result = is_null($target) || ! $this->ReviveUser($target) ? 'failed' : 'success';
72+ $result = (is_null($target) || ! $this->ReviveUser($target)) ? 'failed' : 'success';
7373 if ($result == 'success') {
7474 if (! DB::$ROOM->IsEvent('full_revive')) { //雷雨ならスキップ
7575 $this->CallParent('ReviveAction');
旧リポジトリブラウザで表示