chenxin
2020-11-26 392f839c8ddff781479e3383d9b1fd99c8ed663c
沒有配金幣掉落,然後掉落10金幣bug
過了新手還走新手關的bug
9 files modified
21 ■■■■ changed files
Assets/Prefabs/UI/TextBlood.prefab 2 ●●● patch | view | raw | blame | history
Assets/Prefabs/UI/TextCrit.prefab 2 ●●● patch | view | raw | blame | history
Assets/Prefabs/UI/TextPoison.prefab 2 ●●● patch | view | raw | blame | history
Assets/Scripts/Core/Economy/Currency.cs 2 ●●●●● patch | view | raw | blame | history
Assets/Scripts/Data/EndlessPortData.cs 1 ●●●● patch | view | raw | blame | history
Assets/Scripts/Json/JsonDataCenter.cs 3 ●●●●● patch | view | raw | blame | history
Assets/Scripts/TowerDefense/Agents/Agent.cs 4 ●●● patch | view | raw | blame | history
Assets/Scripts/TowerDefense/Economy/LootDrop.cs 4 ●●● patch | view | raw | blame | history
Assets/Scripts/TowerDefense/Level/EndlessLevelManager.cs 1 ●●●● patch | view | raw | blame | history
Assets/Prefabs/UI/TextBlood.prefab
@@ -73,7 +73,7 @@
  m_GameObject: {fileID: 8440900062448590361}
  m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
  m_LocalPosition: {x: 0, y: 0, z: 0}
  m_LocalScale: {x: 1, y: 1, z: 1}
  m_LocalScale: {x: 1.2, y: 1.2, z: 1.2}
  m_Children:
  - {fileID: 921286385742553488}
  m_Father: {fileID: 0}
Assets/Prefabs/UI/TextCrit.prefab
@@ -73,7 +73,7 @@
  m_GameObject: {fileID: 8440900062448590361}
  m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
  m_LocalPosition: {x: 0, y: 0, z: 0}
  m_LocalScale: {x: 1, y: 1, z: 1}
  m_LocalScale: {x: 1.2, y: 1.2, z: 1.2}
  m_Children:
  - {fileID: 921286385742553488}
  m_Father: {fileID: 0}
Assets/Prefabs/UI/TextPoison.prefab
@@ -73,7 +73,7 @@
  m_GameObject: {fileID: 8440900062448590361}
  m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
  m_LocalPosition: {x: 0, y: 0, z: 0}
  m_LocalScale: {x: 1, y: 1, z: 1}
  m_LocalScale: {x: 1.2, y: 1.2, z: 1.2}
  m_Children:
  - {fileID: 921286385742553488}
  m_Father: {fileID: 0}
Assets/Scripts/Core/Economy/Currency.cs
@@ -31,6 +31,8 @@
        /// <param name="increment">the change in currency</param>
        public void AddCurrency(int increment)
        {
            if (increment == 0) return;
            ChangeCurrency(increment);
        }
Assets/Scripts/Data/EndlessPortData.cs
@@ -80,7 +80,6 @@
            portDic = new Dictionary<int, List<EndlessPortConfig>>();
            InitPortList();
            InitPortEnemiesTotalHP();
            int score = GetLevelScore(1);
        }
        /// <summary>
Assets/Scripts/Json/JsonDataCenter.cs
@@ -263,13 +263,10 @@
        {
            int guide = PlayerPrefs.GetInt("GemBattleGuide");
            GameConfig.IsNewbie = guide == 0;
            // 必须在EndlessPortData初始化之前
            EndlessEnemyData.Init();
            EndlessPortData.Init();
            EndlessBuffData.Init();
            EndlessBossData.Init();
            EndlessBossSkillData.Init();
            //EventCenter.Ins.BroadCast((int)KTGMGemClient.EventType.JsonDataReadDone);
            GameConfig.JsonReadDone = true;
        }
    }
Assets/Scripts/TowerDefense/Agents/Agent.cs
@@ -349,9 +349,7 @@
            if (moveSpeed > 0)
                fMoveSpeed = moveSpeed;
            // 金币掉落大于零.
            if (coinDrop > 0)
                mLootDrop.lootDropped = coinDrop;
            mLootDrop.lootDropped = coinDrop;
            mAgentData.speed = fMoveSpeed;
            mAgentData.hp = this.configuration.maxHealth;
Assets/Scripts/TowerDefense/Economy/LootDrop.cs
@@ -20,7 +20,7 @@
        /// <summary>
        /// The amount of loot/currency dropped when object "dies"
        /// </summary>
        public int lootDropped = 1;
        public int lootDropped;
        /// <summary>
        /// The attached DamagableBehaviour
@@ -114,6 +114,8 @@
        private void PlayDropGold(int lootDropped, Vector3 worldPos)
        {
            if (lootDropped == 0) return;
            GameObject mainUI = GameObject.Find("MainUI");
            GameObject dropGoldPrefab = Resources.Load<GameObject>("Prefabs/DropGold");
            GameObject obj = Poolable.TryGetPoolable(dropGoldPrefab);
Assets/Scripts/TowerDefense/Level/EndlessLevelManager.cs
@@ -301,6 +301,7 @@
        /// </summary>
        public virtual void StartLevel()
        {
            EndlessPortData.Init();
            ChangeLevelState(LevelState.SpawningEnemies);
            SelfPlacementArea.startCoinGenMode();
        }