ソースを参照

关闭一倍卡以及倍率逻辑调整

lvjincheng 4 年 前
コミット
71c8b8275f

+ 1 - 1
Assets/BowArrow/Scripts/Debug/GameDebug.cs

@@ -68,7 +68,7 @@ public class GameDebug : MonoBehaviour
         if (!loaded) return;
         float mySpeed = Arrow.speed;
         if (GameAssistUI.ins) {
-            mySpeed *= (1 + GameAssistUI.ins.shootScaleValue);
+            mySpeed *= GameAssistUI.ins.shootScaleValue;
         } 
         Vector3 destination = GameObject.Find("GameArea/010").transform.position;
         Vector3 startPoint = BowCamera.ins.transform.position;

+ 1 - 1
Assets/BowArrow/Scripts/Game/AimLoadChecker.cs

@@ -16,7 +16,7 @@ public class AimLoadChecker : MonoBehaviour
             if (ray.transform && ray.transform.gameObject.name == "TargetBody") {
                 float mySpeed = Arrow.speed;
                 if (GameAssistUI.ins) {
-                    mySpeed *= (1 + GameAssistUI.ins.shootScaleValue);
+                    mySpeed *= GameAssistUI.ins.shootScaleValue;
                 } 
                 Vector3 destination = ray.point;
                 Vector3 startPoint = BowCamera.ins.transform.position;

+ 1 - 1
Assets/BowArrow/Scripts/Game/Arrow.cs

@@ -26,7 +26,7 @@ public class Arrow : MonoBehaviour
 
         mySpeed = speed;
         if (GameAssistUI.ins) {
-            mySpeed *= (1 + GameAssistUI.ins.shootScaleValue);
+            mySpeed *= GameAssistUI.ins.shootScaleValue;
         } 
 
         if (absoluteRay.transform && absoluteRay.transform.gameObject.name == "TargetBody") {

+ 11 - 1
Assets/BowArrow/Scripts/Manager/PropMgr.cs

@@ -46,7 +46,10 @@ public class PropMgr {
         List<PropConfig> list = new List<PropConfig>();
         foreach (int id in propConfigIds)
         {
-            list.Add((PropConfig) propConfigs[id]);
+            PropConfig propConfig = (PropConfig) propConfigs[id];
+            if (propConfig.inShop) {
+                list.Add(propConfig);
+            }
         }
         return list;
     }
@@ -138,12 +141,16 @@ public class PropConfig {
     public string[] detail = {null};
     public int difficulty = -1;
     public int diamond = 0;
+    public bool inShop = true;
 }
 public class PropScaleAim : PropConfig {
     public int scaleValue = 0;
     public PropScaleAim(int baseID, int scaleValue)
     {
         this.scaleValue = scaleValue;
+        if (this.scaleValue == 1) {
+            this.inShop = false;
+        }
         id = baseID + scaleValue;
         type = 1;
         iconID = 1000;
@@ -157,6 +164,9 @@ public class PropScaleShoot : PropConfig {
     public PropScaleShoot(int baseID, int scaleValue)
     {
         this.scaleValue = scaleValue;
+        if (this.scaleValue == 1) {
+            this.inShop = false;
+        }
         id = baseID + scaleValue;
         type = 2;
         iconID = 1001;