Переглянути джерело

修复了soul报空的问题,给木的灵魂花增加了存在时间上限,调整了一下标签技能数值

HY-LSZNWIN10\Administrator 1 місяць тому
батько
коміт
a222a1b92a

+ 12 - 7
ActionTowerDefense/Assets/Resources/Prefab/GameManager.prefab

@@ -74,8 +74,10 @@ MonoBehaviour:
   dropGoldFX: {fileID: 1723151111827507807, guid: 8ac2bd44510cc7840adf9877a9ecad46, type: 3}
   dropGoldText: {fileID: 6467251191553420251, guid: 7df1aa66331659042a29ed5c238dce79, type: 3}
   isFireEnable: 0
-  fireProbability: 20
-  fireDamageRadio: 0.01
+  fireProbability: 60
+  fireInterval: 0.5
+  fireDamage: 1
+  fireBuffTime: 3
   isIceEnable: 0
   iceProbability: 50
   frozenTime: 5
@@ -83,20 +85,23 @@ MonoBehaviour:
   thunderProbability: 100
   moveSpeedScale: 0.3
   attackSpeedScale: 0.3
-  thunderDamage: 100
+  vulnerableRate: 0.5
+  thunderDamage: 3
+  electrifyTime: 5
   isWindEnable: 0
   windProbability: 100
-  weightReductionratio: 0.1
-  windDamage: 3
+  forceToGround: 100
+  landingDamageRate: 1
+  forceToFly: 80
   isWoodEnable: 0
-  woodProbability: 10
+  woodProbability: 15
   isRockEnable: 0
   rockProbability: 50
   stoneHpRadio: 0.5
   isSkyEnable: 0
   skyProbability: 30
   isGroundEnable: 0
-  groundProbability: 100
+  groundProbability: 80
   resurrectionTime: 3
   deadHp: 20
   tagWeight:

+ 1 - 0
ActionTowerDefense/Assets/Resources/Prefab/SoulFlower.prefab

@@ -20310,6 +20310,7 @@ MonoBehaviour:
   dropSoulMin: 1
   dropProbability: 100
   dropSoulAngle: 60
+  exitTime: 30
   dropInterval: 10
 --- !u!54 &2084839382815595432
 Rigidbody:

+ 2 - 0
ActionTowerDefense/Assets/Resources/Prefab/soul_purple.prefab

@@ -9848,6 +9848,8 @@ MonoBehaviour:
   isSourPurple: 1
   type: -1
   spiritSystem: {fileID: 0}
+  invincibleTime: 0.5
+  bc: {fileID: 5919614424193721880}
 --- !u!54 &1723151111827507801
 Rigidbody:
   m_ObjectHideFlags: 0

+ 3 - 3
ActionTowerDefense/Assets/Resources/Prefab/soul_red.prefab

@@ -9844,12 +9844,12 @@ MonoBehaviour:
   to: {x: 0, y: 0, z: 0}
   time: 0
   Spirits_Invisible_NotFind: 0
-  haveTransmit: 0
-  transmitTime: 0
-  portalsController: {fileID: 0}
+  getSoulEffect: {fileID: 0}
   isSourPurple: 0
   type: 0
   spiritSystem: {fileID: 0}
+  invincibleTime: 0.5
+  bc: {fileID: 5919614424193721880}
 --- !u!54 &1723151111827507801
 Rigidbody:
   m_ObjectHideFlags: 0

+ 25 - 1
ActionTowerDefense/Assets/Scenes/Game.unity

@@ -38,7 +38,7 @@ RenderSettings:
   m_ReflectionIntensity: 1
   m_CustomReflection: {fileID: 0}
   m_Sun: {fileID: 0}
-  m_IndirectSpecularColor: {r: 0.08884769, g: 0.23271483, b: 0.22609791, a: 1}
+  m_IndirectSpecularColor: {r: 0.088847615, g: 0.23271477, b: 0.22609779, a: 1}
   m_UseRadianceAmbientProbe: 0
 --- !u!157 &3
 LightmapSettings:
@@ -23273,6 +23273,30 @@ PrefabInstance:
       propertyPath: shopButton
       value: 
       objectReference: {fileID: 2041973834}
+    - target: {fileID: 1880576200062196084, guid: bd8119632a1311b44ab791a903582d59, type: 3}
+      propertyPath: fireBuffTime
+      value: 3
+      objectReference: {fileID: 0}
+    - target: {fileID: 1880576200062196084, guid: bd8119632a1311b44ab791a903582d59, type: 3}
+      propertyPath: isFireEnable
+      value: 0
+      objectReference: {fileID: 0}
+    - target: {fileID: 1880576200062196084, guid: bd8119632a1311b44ab791a903582d59, type: 3}
+      propertyPath: electrifyTime
+      value: 5
+      objectReference: {fileID: 0}
+    - target: {fileID: 1880576200062196084, guid: bd8119632a1311b44ab791a903582d59, type: 3}
+      propertyPath: thunderDamage
+      value: 3
+      objectReference: {fileID: 0}
+    - target: {fileID: 1880576200062196084, guid: bd8119632a1311b44ab791a903582d59, type: 3}
+      propertyPath: fireProbability
+      value: 60
+      objectReference: {fileID: 0}
+    - target: {fileID: 1880576200062196084, guid: bd8119632a1311b44ab791a903582d59, type: 3}
+      propertyPath: groundProbability
+      value: 80
+      objectReference: {fileID: 0}
     - target: {fileID: 1880576200062196084, guid: bd8119632a1311b44ab791a903582d59, type: 3}
       propertyPath: demonicNum.Array.data[0]
       value: 

+ 0 - 4
ActionTowerDefense/Assets/Scripts/Characters/Enemy.cs

@@ -68,12 +68,9 @@ public class Enemy : MoveCharacter
     public int dropProbability = 100;
     public float dropSoulAngle = 60f;
 
-    private float mass;
-
     public override void Awake()
     {
         base.Awake();
-        mass = rb.mass;
     }
 
     protected virtual void Start()
@@ -101,7 +98,6 @@ public class Enemy : MoveCharacter
         attributeStatus.attributeTime = 0;
         curAttackID = 0;
         attackController.curAttackMethod = attackController.attackMethod_march[0];
-        rb.mass = mass;
     }
 
     public override void FixedUpdate()

+ 7 - 0
ActionTowerDefense/Assets/Scripts/SoulFlower.cs

@@ -10,10 +10,16 @@ public class SoulFlower : MonoBehaviour
     public int dropSoulMin = 1;
     public int dropProbability = 100;
     public float dropSoulAngle = 60f;
+    public float exitTime = 30;
+    private float exitTimer;
 
     public float dropInterval = 10f;
     private float dropTimer;
 
+    private void OnEnable()
+    {
+        exitTimer = Time.time;
+    }
 
     private void Update()
     {
@@ -22,6 +28,7 @@ public class SoulFlower : MonoBehaviour
             DropSouls();
             dropTimer = Time.time;
         }
+        if (Time.time - exitTimer > exitTime) gameObject.SetActive(false);
     }
     public void DropSouls()
     {