فهرست منبع

神庙和配置

cyzhao 3 سال پیش
والد
کامیت
6e5507a2fa

+ 1 - 1
Gameserver/Amfphp/configs/GameConfig.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2021-09-26 14:30:16
+ // 日期: 2021-09-28 08:54:38
 ////////////////////
 namespace loyalsoft;
 /**

+ 1 - 1
Gameserver/Amfphp/model/Const/GameConfig.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2021-09-26 14:30:16
+ // 日期: 2021-09-28 08:54:38
 ////////////////////
 
 /**

+ 1 - 1
Gameserver/Amfphp/model/Const/sm_item_base.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2021-09-24 10:48:57
+ // 日期: 2021-09-27 17:42:11
 ////////////////////
 
 

+ 1 - 1
Gameserver/Amfphp/model/Const/sm_item_taskcard.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2021-09-24 16:26:23
+ // 日期: 2021-09-27 17:01:55
 ////////////////////
 
 

+ 6 - 6
Gameserver/Amfphp/model/Const/sm_shenmiao.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2021-05-12 09:50:20
+ // 日期: 2021-09-27 17:56:19
 ////////////////////
 
 
@@ -50,27 +50,27 @@ class sm_shenmiao
     /**
     * @var String sr信息  
     */
-    public $srList;
+    public $rList;
 
     /**
     * @var String 用途未知!!请到数据库中添加字段注释。  
     */
-    public $ssrList;
+    public $srList;
 
     /**
     * @var String 用途未知!!请到数据库中添加字段注释。  
     */
-    public $ssrUp;
+    public $srUp;
 
     /**
     * @var String 用途未知!!请到数据库中添加字段注释。  
     */
-    public $urList;
+    public $ssrList;
 
     /**
     * @var String 用途未知!!请到数据库中添加字段注释。  
     */
-    public $urUp;
+    public $ssrUp;
 
     /**
     * @var String 用途未知!!请到数据库中添加字段注释。  

+ 6 - 6
Gameserver/Amfphp/model/Const/sm_shenmiaoTypeList.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2021-05-12 09:50:20
+ // 日期: 2021-09-27 17:56:19
 ////////////////////
 
 
@@ -50,27 +50,27 @@ class sm_shenmiaoTypeList
     /**
     * @var String sr信息  
     */
-    public $srList;
+    public $rList;
 
     /**
     * @var String 用途未知!!请到数据库中添加字段注释。  
     */
-    public $ssrList;
+    public $srList;
 
     /**
     * @var String 用途未知!!请到数据库中添加字段注释。  
     */
-    public $ssrUp;
+    public $srUp;
 
     /**
     * @var String 用途未知!!请到数据库中添加字段注释。  
     */
-    public $urList;
+    public $ssrList;
 
     /**
     * @var String 用途未知!!请到数据库中添加字段注释。  
     */
-    public $urUp;
+    public $ssrUp;
 
     /**
     * @var String 用途未知!!请到数据库中添加字段注释。  

+ 17 - 3
Gameserver/Amfphp/model/User/Enum_Active.php

@@ -43,15 +43,29 @@ class Enum_ActiveItemType extends Enum{
     /**
      * 
      */
-    const Sr = 1;
+    const R = 1;
 
     /**
      * 
      */
-    const Ssr= 2;
+    const Sr= 2;
     /**
      *
      */
-    const Ur= 3;
+    const Ssr= 3;
   
 }
+
+/**
+     * 
+     */
+    //const Sr = 1;
+
+    /**
+     * 
+     */
+    //const Ssr= 2;
+    /**
+     *
+     */
+    //const Ur= 3;

+ 26 - 26
Gameserver/Amfphp/process/ActiveProc.php

@@ -134,10 +134,10 @@ class ActiveProc {
                     $tag = true;
                 }
                 if ($n == 10 && $tag == false && $shenmiaoInfo->activeDic->$type->totalNum > 10) {
-                    $list[] = self::getActiveRandomItem(Enum_ActiveItemType::Ssr, $shenmo); //self::randSsrUr($shenmo->per)
+                    $list[] = self::getActiveRandomItem(Enum_ActiveItemType::Sr, $shenmo); //self::randSsrUr($shenmo->per)
                 } else {
                     if ($shenmiaoInfo->activeDic->$type->totalNum <= 10) {
-                        $itemType = Enum_ActiveItemType::Sr;
+                        $itemType = Enum_ActiveItemType::R;
                     }
                     $nId = self::getActiveRandomItem($itemType, $shenmo);
                     $list[] = $nId;
@@ -208,11 +208,11 @@ class ActiveProc {
             $aid = self::getActiveRandomItem_3($itemType, $shenmo, $type); //随机出的id
         }
 
-        if ($shenmiaoInfo->activeDic->$type->num % glc()->Active_UR_Num == 0 && $itemType != Enum_ActiveItemType::Ur) {
+        if ($shenmiaoInfo->activeDic->$type->num % glc()->Active_UR_Num == 0 && $itemType != Enum_ActiveItemType::Ssr) {
             if ($type == Enum_Active::OpenWish) {
-                $aid = self::getActiveRandomItem(Enum_ActiveItemType::Ur, $shenmo);
+                $aid = self::getActiveRandomItem(Enum_ActiveItemType::Ssr, $shenmo);
             } else {
-                $aid = self::getActiveRandomItem_3(Enum_ActiveItemType::Ur, $shenmo, $type);
+                $aid = self::getActiveRandomItem_3(Enum_ActiveItemType::Ssr, $shenmo, $type);
             }
         }
 
@@ -239,9 +239,9 @@ class ActiveProc {
             }
             if ($n == 10 && $tag == false) {
                 if ($type == Enum_Active::OpenWish) {
-                    $list[] = self::getActiveRandomItem(Enum_ActiveItemType::Ssr, $shenmo); //self::randSsrUr($shenmo->per)
+                    $list[] = self::getActiveRandomItem(Enum_ActiveItemType::Sr, $shenmo); //self::randSsrUr($shenmo->per)
                 } else {
-                    $list[] = self::getActiveRandomItem_3(Enum_ActiveItemType::Ssr, $shenmo, $type);
+                    $list[] = self::getActiveRandomItem_3(Enum_ActiveItemType::Sr, $shenmo, $type);
                 }
             } else {
                 if ($type == Enum_Active::OpenWish) {
@@ -253,9 +253,9 @@ class ActiveProc {
         }
         if ($shenmiaoInfo->activeDic->$type->totalNum >= glc()->Active_UR_Num) {//第90次必得
             if ($type == Enum_Active::OpenWish) {
-                $aid = self::getActiveRandomItem(Enum_ActiveItemType::Ur, $shenmo);
+                $aid = self::getActiveRandomItem(Enum_ActiveItemType::Ssr, $shenmo);
             } else {
-                $aid = self::getActiveRandomItem_3(Enum_ActiveItemType::Ur, $shenmo, $type);
+                $aid = self::getActiveRandomItem_3(Enum_ActiveItemType::Ssr, $shenmo, $type);
             }
             $list[0] = $aid;
             $shenmiaoInfo->activeDic->$type->totalNum = 0;
@@ -343,16 +343,16 @@ class ActiveProc {
     public static function getActiveRandomItem($type, $mo) {
         $id = 0;
         switch ($type) {
+            case Enum_ActiveItemType::R:
+                $id = self::prizeTypeRand($mo->rList);
+                //$id = self::randList(explode(',', $mo->srList));
+                break;
             case Enum_ActiveItemType::Sr:
                 $id = self::prizeTypeRand($mo->srList);
-                //$id = self::randList(explode(',', $mo->srList));
+                //$id = self::randList(explode(',', $mo->ssrList));
                 break;
             case Enum_ActiveItemType::Ssr:
                 $id = self::prizeTypeRand($mo->ssrList);
-                //$id = self::randList(explode(',', $mo->ssrList));
-                break;
-            case Enum_ActiveItemType::Ur:
-                $id = self::prizeTypeRand($mo->urList);
                 //$id = self::randList(explode(',', $mo->urList));
                 break;
             default:
@@ -372,14 +372,14 @@ class ActiveProc {
 
         $id = 0;
         switch ($type) {
-            case Enum_ActiveItemType::Sr:
-                $id = self::prizeTypeRand($mo->srList);
+            case Enum_ActiveItemType::R:
+                $id = self::prizeTypeRand($mo->rList);
                 //$id = self::randList(explode(',', $mo->srList));
                 break;
-            case Enum_ActiveItemType::Ssr:
-                if ($mo->ssrUp != null) {
+            case Enum_ActiveItemType::Sr:
+                if ($mo->srUp != null) {
                     $dic = new \stdClass();
-                    $ssrList = explode(';', $mo->ssrUp);
+                    $ssrList = explode(';', $mo->srUp);
 
                     $tNum = 0;
                     foreach ($ssrList as $val) {
@@ -415,7 +415,7 @@ class ActiveProc {
                             }
                             if ($sNum >= $count) { //随机到普通的id
                                 $shenmiaoInfo->activeDic->$activeType->isUpSsr = 1;
-                                $id = self::prizeTypeRand($mo->ssrList);
+                                $id = self::prizeTypeRand($mo->srList);
                                 //$id = self::randList(explode(',', $mo->ssrList));
                                 break;
                             }
@@ -423,14 +423,14 @@ class ActiveProc {
                         }
                     }
                 } else {
-                    $id = self::prizeTypeRand($mo->ssrList);
+                    $id = self::prizeTypeRand($mo->srList);
                     //$id = self::randList(explode(',', $mo->ssrList));
                 }
                 break;
-            case Enum_ActiveItemType::Ur:
-                if ($mo->ssrUp != null) {
+            case Enum_ActiveItemType::Ssr:
+                if ($mo->srUp != null) {
                     $dic = new \stdClass();
-                    $urList = explode(';', $mo->urUp);
+                    $urList = explode(';', $mo->ssrUp);
                     $tNum = 0;
                     foreach ($urList as $val) {
                         $sList = explode(',', $val);
@@ -466,7 +466,7 @@ class ActiveProc {
                             }
                             if ($sNum >= $count) {
                                 $shenmiaoInfo->activeDic->$activeType->isUpUr = 1;
-                                $id = self::prizeTypeRand($mo->urList);
+                                $id = self::prizeTypeRand($mo->ssrList);
                                 //$id = self::randList(explode(',', $mo->urList));
                                 break;
                             }
@@ -475,7 +475,7 @@ class ActiveProc {
                     }
                 } else {
                     //$id = self::randList(explode(',', $mo->urList));
-                    $id = self::prizeTypeRand($mo->urList);
+                    $id = self::prizeTypeRand($mo->ssrList);
                 }
                 break;
             default: