|
@@ -101,6 +101,10 @@ class room_info
|
|
|
|
|
|
return ($uid == $this->creator() || $uid == $this->owner());
|
|
return ($uid == $this->creator() || $uid == $this->owner());
|
|
}
|
|
}
|
|
|
|
+ public function steps_count(){
|
|
|
|
+ return intval($this->mParams['steps_count']);
|
|
|
|
+ }
|
|
|
|
+
|
|
public function format()
|
|
public function format()
|
|
{
|
|
{
|
|
$ret = [];
|
|
$ret = [];
|
|
@@ -118,6 +122,7 @@ class room_info
|
|
$ret['level'] = $this->level();
|
|
$ret['level'] = $this->level();
|
|
|
|
|
|
$ret['shared_bonus'] = $this->shared_bonus();
|
|
$ret['shared_bonus'] = $this->shared_bonus();
|
|
|
|
+ $ret['steps_count'] = $this->steps_count();
|
|
$ret['notice'] = $this->notice();
|
|
$ret['notice'] = $this->notice();
|
|
|
|
|
|
return $ret;
|
|
return $ret;
|