• R/O
  • SSH
  • HTTPS

jinrousiki: Commit


Commit MetaInfo

Revision1970 (tree)
Time2017-04-23 01:37:32
Authorumethyl

Log Message

UserMode::LOST

Change Summary

Incremental Difference

--- trunk/include/data/user_data_class.php (revision 1969)
+++ trunk/include/data/user_data_class.php (revision 1970)
@@ -12,4 +12,5 @@
1212 const DEAD = 'dead';
1313 const SUICIDE = 'suicide';
1414 const REVIVE = 'revive';
15+ const LOST = 'lost';
1516 }
--- trunk/include/user_class.php (revision 1969)
+++ trunk/include/user_class.php (revision 1970)
@@ -6,7 +6,6 @@
66 public $role;
77 public $main_role;
88 public $live;
9- public $lost_flag = false;
109 protected $role_list = array();
1110 protected $partner = array();
1211 protected $updated = array();
@@ -307,7 +306,7 @@
307306 //能力喪失判定
308307 public function IsActive($role = null) {
309308 return (is_null($role) || $this->IsRole($role)) &&
310- ! $this->lost_flag && ! $this->IsRole('lost_ability');
309+ ! $this->IsOn(UserMode::LOST) && ! $this->IsRole('lost_ability');
311310 }
312311
313312 //期間限定表示役職
@@ -553,7 +552,7 @@
553552 //能力喪失処理
554553 public function LostAbility() {
555554 $this->AddRole('lost_ability');
556- $this->lost_flag = true;
555+ $this->Flag()->On(UserMode::LOST);
557556 }
558557
559558 //憑依解除処理
Show on old repository browser