|
@@ -23,6 +23,12 @@ class Info_College extends Object_ext{
|
|
|
/// 所处的课程id
|
|
|
/// </summary>
|
|
|
public $courseId = 1001;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 将领取课程奖励的保存在这
|
|
|
+ * @var type
|
|
|
+ */
|
|
|
+ public $comCourseList = array();
|
|
|
|
|
|
/// <summary>
|
|
|
/// 任务卡信息
|
|
@@ -83,24 +89,43 @@ class Info_College extends Object_ext{
|
|
|
$this->progress += 1;
|
|
|
}
|
|
|
|
|
|
+ public function updataCourseNew() {
|
|
|
+ //检测是否到下一年级
|
|
|
+// $collegeDic = GameConfig::college_getItem($this->collegeId);
|
|
|
+// if(in_array($this->courseId +1,explode(',', $collegeDic->cList))){
|
|
|
+// $this->courseId += 1;
|
|
|
+// $this->initCompMissCardDic();
|
|
|
+// $this->progress = 0;
|
|
|
+// } else {
|
|
|
+ $this->collegeId += 1;
|
|
|
+ $newCollegeDic = GameConfig::college_getItem($this->collegeId);
|
|
|
+ $cList = explode(',', $newCollegeDic->cList);
|
|
|
+ $this->courseId = $cList[0];
|
|
|
+ $this->initCompMissCardDic();
|
|
|
+// }
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
*
|
|
|
*/
|
|
|
- public function updataCourse() {
|
|
|
+ public function updataCourse() {
|
|
|
+ array_pushs($this->comCourseList, $this->courseId);
|
|
|
//检测是否到下一年级
|
|
|
$collegeDic = GameConfig::college_getItem($this->collegeId);
|
|
|
if(in_array($this->courseId +1,explode(',', $collegeDic->cList))){
|
|
|
$this->courseId += 1;
|
|
|
$this->initCompMissCardDic();
|
|
|
$this->progress = 0;
|
|
|
- } else {
|
|
|
- $this->collegeId += 1;
|
|
|
- $newCollegeDic = GameConfig::college_getItem($this->collegeId);
|
|
|
- $cList = explode(',', $newCollegeDic->cList);
|
|
|
- $this->courseId = $cList[0];
|
|
|
- $this->initCompMissCardDic();
|
|
|
- $this->progress = 0;
|
|
|
- }
|
|
|
+ }
|
|
|
+
|
|
|
+// else {
|
|
|
+// $this->collegeId += 1;
|
|
|
+// $newCollegeDic = GameConfig::college_getItem($this->collegeId);
|
|
|
+// $cList = explode(',', $newCollegeDic->cList);
|
|
|
+// $this->courseId = $cList[0];
|
|
|
+// $this->initCompMissCardDic();
|
|
|
+// $this->progress = 0;
|
|
|
+// }
|
|
|
}
|
|
|
|
|
|
|